Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI integ tests failing: Running as root without --no-sandbox is not supported #3550

Closed
justinmk3 opened this issue Jun 9, 2023 · 1 comment · Fixed by #3551
Closed

CI integ tests failing: Running as root without --no-sandbox is not supported #3550

justinmk3 opened this issue Jun 9, 2023 · 1 comment · Fixed by #3551

Comments

@justinmk3
Copy link
Contributor

justinmk3 commented Jun 9, 2023

[10429:0609/133041.674749:ERROR:network_service_instance_impl.cc(521)] Network service crashed, restarting service.
--
19 | [0609/133041.694037:FATAL:electron_main_delegate.cc(304)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

Solution

@ITAxReal
Copy link

ITAxReal commented Jun 10, 2023

A lot of people won't switch to unprivileged mode because their working files will be unaccessible from vscode. Just give us back working --no-sandbox flag instead!

justinmk3 added a commit that referenced this issue Jun 11, 2023
Problem:
Running as root causes lots of warnings, latest (fatal) example (#3550):
    [10429:0609/133041.674749:ERROR:network_service_instance_impl.cc(521)] Network service crashed, restarting service.
    19 | [0609/133041.694037:FATAL:electron_main_delegate.cc(304)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

Solution:
- Use "run-as" directive and "export $HOME".
- docker is already running, don't need "nohup /usr/local/bin/dockerd".
  Instead just give the user permissions to the socket: "chmod 666 /var/run/docker.sock"
- remove useless things:
  pylint
- TODO: "goenv", "go" are broken...
leigaol pushed a commit to leigaol/aws-toolkit-vscode that referenced this issue Jun 13, 2023
Problem:
Running as root causes lots of warnings, latest (fatal) example (aws#3550):
    [10429:0609/133041.674749:ERROR:network_service_instance_impl.cc(521)] Network service crashed, restarting service.
    19 | [0609/133041.694037:FATAL:electron_main_delegate.cc(304)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

Solution:
- Use "run-as" directive and "export $HOME".
- docker is already running, don't need "nohup /usr/local/bin/dockerd".
  Instead just give the user permissions to the socket: "chmod 666 /var/run/docker.sock"
- remove useless things:
  pylint
- TODO: "goenv", "go" are broken...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants