Permission Denied

Hello everyone,

This is a new install of Hassio on an Ubuntu host. On a large number of addons I get errors similar to the ones below:

Visual Studio Code Addon:

INFO  code-server v1.1156-vsc1.33.1
INFO  Additional documentation: http://github.com/cdr/code-server
INFO  Initializing {"data-dir":"/data/vscode","extensions-dir":"/data/vscode/extensions","working-dir":"/config","log-dir":"/root/.cache/code-server/logs/20190706110036300"}
INFO  Starting webserver... {"host":"127.0.0.1","port":"8443"}
WARN  No certificate specified. This could be insecure.
WARN  Documentation on securing your setup: https://github.com/cdr/code-server/blob/28c93612e63fde62fbb470e3f2265f81da1bac19/doc/security/ssl.md
WARN   
WARN  Launched without authentication.
INFO   
INFO  Started (click the link below to open):
INFO  http://localhost:8443/
INFO   
INFO  Starting shared process [1/5]...
[21:00:36] INFO: Starting NGinx...
nginx: [emerg] open() "/proc/1/fd/1" failed (13: Permission denied)
[cont-finish.d] executing container finish scripts...
[cont-finish.d] 99-message.sh: executing... 
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

Portainer:

[21:05:13] INFO: Starting NGinx...
nginx: [alert] detected a LuaJIT version which is not OpenResty's; many optimizations will be disabled and performance will be compromised (see https://github.com/openresty/luajit2 for OpenResty's LuaJIT or, even better, consider using the OpenResty releases from https://openresty.org/en/download.html)
nginx: [emerg] open() "/proc/1/fd/1" failed (13: Permission denied)
[cont-finish.d] executing container finish scripts...
[cont-finish.d] 99-message.sh: executing... 
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM 

I have SSH-ed into the container and tried chown root /proc and restarted the VM and HassIo but I still have the same error. Does any one have any ideas on how to fix it?

Did you ever find a solution to this?
I have the same ubuntu setup and get the same errors.

Hey @yayadrian

I have not been able to find a solution just yet, have you had any luck with it?

Seem to have fixed this.

I had installed Docker via Ubuntu package not the suggested script.

I uninstalled docker, and used

curl -sSL https://get.docker.com | sh

Now everything appears to work fine.

2 Likes