Unraid running but have no web or ssh access


madaroda

Recommended Posts

A couple of days ago i added letsencrypt/nginx and organizr2 dockers. I am guessing this was the start of the problems I now have.

 

All of my docker apps are accessible via both internal IP and external https (my own domain). However: I have no access to the unraid webgui. Log files pointed to a permissions error on .htpassword. In following some instructions on fixing that, I rebooted the box. Now I don't even have SSH access with root ("Permission denied" on entering password).

 

I deleted all the password files in /boot/config and rebooted. Only way in is through telnet. Again, all apps work, I just have no (easy) way to configure the system. 

 

How do I get my webgui and SSH access back with only telnet at my disposal?

 

 

Link to comment
16 minutes ago, trurl said:

You might try editing /boot/config/docker.cfg to set the Docker Service off then reboot.

Disabled dockers as you suggested. 

 

Trying webgui through IP address now reports a "502 Bad Gateway - ngnix" page. Still no SSH access. Entering through telnet, here is the contents of /var/log/ngnix /error.log.

 

Quote

2018/09/22 10:27:23 [alert] 10006#10006: connect() failed (13: Permission denied)
2018/09/22 10:27:23 [crit] 10006#10006: *18 stat() "/usr/local/emhttp/Main" failed (13: Permission denied), client: 10.10.11.
114, server: , request: "GET /Main HTTP/1.1", host: "10.10.10.111"
2018/09/22 10:27:23 [alert] 10006#10006: connect() failed (13: Permission denied)
2018/09/22 10:27:23 [crit] 10006#10006: *18 connect() to unix:/var/run/php5-fpm.sock failed (13: Permission denied) while con
necting to upstream, client: 10.10.11.114, server: , request: "GET /Main HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-f
pm.sock:", host: "10.10.10.111"
2018/09/22 10:27:24 [alert] 10006#10006: connect() failed (13: Permission denied)
2018/09/22 10:27:24 [crit] 10006#10006: *18 stat() "/usr/local/emhttp/favicon.ico" failed (13: Permission denied), client: 10
.10.11.114, server: , request: "GET /favicon.ico HTTP/1.1", host: "10.10.10.111", referrer: "http://10.10.10.111/Main"
2018/09/22 10:27:24 [alert] 10006#10006: connect() failed (13: Permission denied)
2018/09/22 10:27:24 [crit] 10006#10006: *18 connect() to unix:/var/run/php5-fpm.sock failed (13: Permission denied) while con
necting to upstream, client: 10.10.11.114, server: , request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://unix:/var/run
/php5-fpm.sock:", host: "10.10.10.111", referrer: "http://10.10.10.111/Main"
2018/09/22 10:27:46 [alert] 10006#10006: connect() failed (13: Permission denied)
2018/09/22 10:27:46 [crit] 10006#10006: *46 stat() "/usr/local/emhttp/Main" failed (13: Permission denied), client: 10.10.11.
114, server: , request: "GET /Main HTTP/1.1", host: "10.10.10.111"
2018/09/22 10:27:46 [alert] 10006#10006: connect() failed (13: Permission denied)
2018/09/22 10:27:46 [crit] 10006#10006: *46 connect() to unix:/var/run/php5-fpm.sock failed (13: Permission denied) while con
necting to upstream, client: 10.10.11.114, server: , request: "GET /Main HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-f
pm.sock:", host: "10.10.10.111"
2018/09/22 10:27:54 [alert] 10006#10006: connect() failed (13: Permission denied)
2018/09/22 10:27:54 [crit] 10006#10006: *54 stat() "/usr/local/emhttp/Main" failed (13: Permission denied), client: 10.10.11.
114, server: , request: "GET /Main HTTP/1.1", host: "10.10.10.111"
2018/09/22 10:27:54 [alert] 10006#10006: connect() failed (13: Permission denied)
2018/09/22 10:27:54 [crit] 10006#10006: *54 connect() to unix:/var/run/php5-fpm.sock failed (13: Permission denied) while con
necting to upstream, client: 10.10.11.114, server: , request: "GET /Main HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-f
pm.sock:", host: "10.10.10.111"
2018/09/22 10:27:54 [alert] 10006#10006: connect() failed (13: Permission denied)
2018/09/22 10:27:54 [crit] 10006#10006: *54 stat() "/usr/local/emhttp/favicon.ico" failed (13: Permission denied), client: 10
.10.11.114, server: , request: "GET /favicon.ico HTTP/1.1", host: "10.10.10.111"
2018/09/22 10:27:54 [alert] 10006#10006: connect() failed (13: Permission denied)
2018/09/22 10:27:54 [crit] 10006#10006: *54 connect() to unix:/var/run/php5-fpm.sock failed (13: Permission denied) while con
necting to upstream, client: 10.10.11.114, server: , request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://unix:/var/run
/php5-fpm.sock:", host: "10.10.10.111"

 

Also, got this via email:

 

Quote

Tower : Sep 22 10:27:05 : root : unable to stat /etc/sudoers : Permission denied ; TTY=unknown ; PWD=/ ; USER=nobody ;

 

Thanks.

 

Link to comment

UPDATE: 

 

I got SSH and webgui up again by reverting to the last saved version of my flash drive (6.3.x). I upgraded to the current version (6.5.x) and SSH continues to run. The WEBGUI is down again, though. I enter my user name and password, and the browser (any of them) now goes to a "500 Internal Server Error --- nginx" page.

 

The content of /var/log/ngnix /error.log is now different, reading:

 

Quote

2018/09/23 12:52:27 [alert] 12174#12174: connect() failed (13: Permission denied)
2018/09/23 12:52:27 [crit] 12174#12174: *168 open() "/etc/nginx/htpasswd" failed (13: Permission denied), client: 10.10.11.114, server: , request: "GET /Main HTTP/1.1", host: "10.10.10.111"

 

Permissions of /etc/nginx/htpasswd are at 666.

 

Fix?

 

 

Link to comment

I'll keep updating in hopes someone runs into this:

 

Via SSH, I made DOCKER_ENABLED="no" in /boot/config/docker.cfg; and rebooted. Still getting the 500 error on the webgui. The errors reported in /var/log/ngnix/error.log have changed slightly:

 

Quote

2018/09/25 09:57:20 [alert] 10486#10486: connect() failed (13: Permission denied)
2018/09/25 09:57:20 [crit] 10486#10486: *977 open() "/etc/nginx/htpasswd" failed (13: Permission denied), client: 10.10.11.114, server: , request: "GET /sub/var HTTP/1.1", host: "10.10.10.111", referrer: "http://10.10.10.111/Docker"

 

The very last part (referrer: "http://10.10.10.111/Docker") is new, and came up AFTER I disabled docker altogether. How is that possible?

 

Also I continue to get the following email from my unraid install after reboot:

 

Quote

Tower : Sep 25 09:42:37 : root : unable to stat /etc/sudoers : Permission denied ; TTY=unknown ; PWD=/ ; USER=nobody ;

 

Could this be related? Do I need to add a user "nobody"?

 

Gracias.

 

Link to comment

you are going to have to disable all the plugins first (move /boon/config/plugins/*.plg to another location first), restart then re install one at a time (checking the / directory permissions after each plugin)

 

Nothing stands out, but some packages installed by plugins have been known to do this before, because they were incorrectly built by the maintainer.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.