Jump to content

500 Internal Server Error from nginx when trying WebGUI


rzwahr

Recommended Posts

Hi everyone,

Running UnRAID 6.6.6, and for some reason all of a sudden, I cannot access the UnRAID web GUI, unless I boot the server into safe mode.  What is also interesting is I cannot hit any Samba shares unless I boot into safe mode and start the array.

 

I have no idea what caused this problem, but based on the nginx logs it appears to be some kind of permissions issue.  Don't know if Samba is related at all or indicative of a greater problem.

 

Here's a sample of what is in /var/log/nginx/error.log

2018/12/18 11:14:31 [alert] 6526#6526: connect() failed (13: Permission denied)
2018/12/18 11:14:31 [crit] 6526#6526: *85 open() "/etc/nginx/htpasswd" failed (13: Permission denied), client: 10.19.28.201, server: , request: "GET /Tools HTTP/1.1", host: "10.19.28.100", referrer: "http://10.19.28.100/Main"
2018/12/18 11:14:35 [alert] 6526#6526: connect() failed (13: Permission denied)
2018/12/18 11:14:35 [crit] 6526#6526: *99 open() "/etc/nginx/htpasswd" failed (13: Permission denied), client: 10.19.28.201, server: , request: "GET /Tools HTTP/1.1", host: "10.19.28.100", referrer: "http://10.19.28.100/Main"
2018/12/18 11:14:36 [alert] 6526#6526: connect() failed (13: Permission denied)
2018/12/18 11:14:36 [crit] 6526#6526: *103 open() "/etc/nginx/htpasswd" failed (13: Permission denied), client: 10.19.28.201, server: , request: "GET /Tools HTTP/1.1", host: "10.19.28.100", referrer: "http://10.19.28.100/Main"
2018/12/18 11:14:41 [alert] 6526#6526: connect() failed (13: Permission denied)
2018/12/18 11:14:41 [crit] 6526#6526: *118 open() "/etc/nginx/htpasswd" failed (13: Permission denied), client: 10.19.28.201, server: , request: "GET /Main HTTP/1.1", host: "10.19.28.100"

 

No problem getting to the GUI in safe mode.

 

This problem seemed to start when I was making a change in the Swapfile plugin.  iirc, the GUI froze up and then went to the 500 Internal Server Error/nginx and I havent been able to get in since.  I'd love to get in and do fix docker safe permissions, however unfortunately I cannot get into the GUI to do so.  That option isn't in safe mode, because I think it comes from a plugin.

 

Another interesting thing I noticed is, the permissions on the htpasswd file in the /etc/nginx directory are set to -rw-rw-rw is that what they should be?  I tried setting it to 644, but when I reboot, something sets it back on that one file to 666.

 

I'm perplexed! Can someone help a noob sort this out?

 

 

tower-diagnostics-20181218-1051.zip

Link to comment

Ok good to know!

 

I did as you said and went in and deleted the swapfile.plg and the problem has gone away.  I'm glad, but I also hate not knowing what the problem was.  Would a plugin be mucking around with permissions in the /etc/nginx directory?

 

This seems to have fixed my Samba problem also.  Very strange.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...