Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

HTTP 500 Error After Unraid 7 Upgrade

Featured Replies

Hi all,

 

I just upgraded to Unraid 7, which went fine until rebooting. After rebooting, I'm no longer able to access the GUI, I instead get an HTTP 500 error from Nginx.

 

I'm still able to SSH in, so I ran 

/etc/rc.d/rc.php-fpm restart

to restart PHP, and now I'm able to access the login screen. But as soon as I login, I'm back to an HTTP 500.

 

Contents of /var/log/nginx/error.log:

2025/01/13 10:38:29 [crit] 8341#8341: *1 connect() to unix:/var/run/php-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.200.139, server: , request: "GET /Main HTTP/1.1", subrequest: "/auth-request.php", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.200.82"
2025/01/13 10:38:29 [error] 8341#8341: *1 auth request unexpected status: 502 while sending to client, client: 192.168.200.139, server: , request: "GET /Main HTTP/1.1", host: "192.168.200.82"
2025/01/13 10:38:29 [crit] 8341#8341: *3 connect() to unix:/var/run/php-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.200.139, server: , request: "GET /favicon.ico HTTP/1.1", subrequest: "/auth-request.php", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.200.82", referrer: "http://192.168.200.82/Main"
2025/01/13 10:38:29 [error] 8341#8341: *3 auth request unexpected status: 502 while sending to client, client: 192.168.200.139, server: , request: "GET /favicon.ico HTTP/1.1", host: "192.168.200.82", referrer: "http://192.168.200.82/Main"
2025/01/13 10:38:46 [crit] 8341#8341: *5 connect() to unix:/var/run/php-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.200.139, server: , request: "GET /Main HTTP/1.1", subrequest: "/auth-request.php", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.200.82"
2025/01/13 10:38:46 [error] 8341#8341: *5 auth request unexpected status: 502 while sending to client, client: 192.168.200.139, server: , request: "GET /Main HTTP/1.1", host: "192.168.200.82"
2025/01/13 10:46:51 [crit] 8341#8341: *15 connect() to unix:/var/run/php-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.200.139, server: , request: "GET /Main HTTP/1.1", subrequest: "/auth-request.php", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.200.82"
2025/01/13 10:46:51 [error] 8341#8341: *15 auth request unexpected status: 502 while sending to client, client: 192.168.200.139, server: , request: "GET /Main HTTP/1.1", host: "192.168.200.82"
2025/01/13 10:46:53 [crit] 8341#8341: *17 connect() to unix:/var/run/php-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.200.139, server: , request: "GET /Main HTTP/1.1", subrequest: "/auth-request.php", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.200.82"
2025/01/13 10:46:53 [error] 8341#8341: *17 auth request unexpected status: 502 while sending to client, client: 192.168.200.139, server: , request: "GET /Main HTTP/1.1", host: "192.168.200.82"
2025/01/13 10:55:31 [crit] 8341#8341: *28 connect() to unix:/var/run/php-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.200.139, server: , request: "GET /Main HTTP/1.1", subrequest: "/auth-request.php", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.200.82"
2025/01/13 10:55:31 [error] 8341#8341: *28 auth request unexpected status: 502 while sending to client, client: 192.168.200.139, server: , request: "GET /Main HTTP/1.1", host: "192.168.200.82"
2025/01/13 10:55:33 [crit] 8341#8341: *30 connect() to unix:/var/run/php-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.200.139, server: , request: "GET /Main HTTP/1.1", subrequest: "/auth-request.php", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.200.82"
2025/01/13 10:55:33 [error] 8341#8341: *30 auth request unexpected status: 502 while sending to client, client: 192.168.200.139, server: , request: "GET /Main HTTP/1.1", host: "192.168.200.82"
2025/01/13 11:06:23 [crit] 8341#8341: *43 connect() to unix:/var/run/php-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.200.139, server: , request: "GET /Main HTTP/1.1", subrequest: "/auth-request.php", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.200.82"
2025/01/13 11:06:23 [error] 8341#8341: *43 auth request unexpected status: 502 while sending to client, client: 192.168.200.139, server: , request: "GET /Main HTTP/1.1", host: "192.168.200.82"

 

Based on PHP logs there may be some sort of issue with one of the dynamix scripts:

 

[13-Jan-2025 11:07:56 America/New_York] PHP Fatal error:  Uncaught TypeError: date(): Argument #2 ($timestamp) must be of type ?int, string given in /usr/local/emhttp/plugins/dynamix/template.php:54

 

Looking at that script, it appears that it's trying to include several ini files from /usr/local/emhttp/state:

 

Screenshot2025-01-13at11_45_18AM.png.0916e98654ec760a3df58a7c9a322688.png

 

However, none of those files seem to exist on my system (or I'm looking in the wrong place):

Screenshot2025-01-13at11_45_58AM.png.8ae20dbf2a958f83471b4db0f28c9307.png

 

Diagnostics are attached.

 

Any help or advice is welcome.

tower-diagnostics-20250113-1118.zip

Solved by JorgeB

  • Community Expert
  • Solution

The go file is empty, replace it with the one from the Unraid download zip.

  • Author

Thanks, that seems to have been the key. Any idea how that could have ended up empty? Also, I'm assuming you saw that it was empty in diagnostics/config/go.txt?

  • Community Expert
Just now, steenbag said:

Any idea how that could have ended up empty?

Difficult to say, possible the file got corrupted, it's not replaced with the upgrade.

 

Just now, steenbag said:

Also, I'm assuming you saw that it was empty in diagnostics/config/go.txt?

Yep.

I'm having exactly the same issue but sadly I don't even know which is the go file or what do you mean by "Unraid download zip"...:S Could you please help me? :$

  • Community Expert
12 hours ago, CarlosGT said:

I'm having exactly the same issue

Please post the diagnostics to confirm.

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.