RStudio Connect cannot start

Hi All,

I am trying to run rstudio connect

2020/09/11 09:05:15 Resource limits: {"nofile":{"soft":1048576,"hard":1048576}}
2020/09/11 09:05:15 Starting RStudio Connect v1.8.4-11
2020/09/11 09:05:15 Loaded server migration from '/etc/rstudio-connect/rstudio-connect-migration.gcfg'
2020/09/11 09:05:15 The migration file does not affect the configuration
2020/09/11 09:05:15 Server.MinRSConnectVersion resolved to 0.8.3
2020/09/11 09:05:15 Git.MinVersion is 1.7.12
2020/09/11 09:05:15 Using detected git version "2.17.1"

And I am getting this error:

Error: Unable to launch a sandbox with Applications.RunAs as 'rstudio-connect'; 
may not be a real user or may not have sufficient permission: exit status 1; 
output: 11 Sep 2020 09:05:15 [rsandbox] ERROR system error 1 (Operation not permitted);
OCCURRED AT int main(int, char* const*) src/cpp/server/sandbox/SandboxMain.cpp:158; 
LOGGED FROM: int main(int, char* const*) src/cpp/server/sandbox/SandboxMain.cpp:159


This particular error is because Connect is unable to use the unshare system call to prepare our sandbox environment. Are you running Connect within a Docker container? That container needs additional privileges so it can construct our process sandboxes within the container.

You can use either --privileged=true or --cap-add=SYS_ADMIN to allow these sandboxes.

The RStudio Connect Admin Guide has additional details.

We will improve this error message in an upcoming release.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.