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.

Can't Access Server Terminal and Docker Consoles - 502 Bad Gateway nginx

Featured Replies

This is the error I get in my server log when trying to enter either the unraid terminal or a docker container console:

 

Feb 15 18:10:53 Tower nginx: 2019/02/15 18:10:53 [error] 4718#4718: *2927 upstream prematurely closed connection while reading response header from upstream, client: 192.168.0.100, server: , request: "GET /dockerterminal/binhex-plex/ HTTP/1.1", upstream: "http://unix:/var/tmp/binhex-plex.sock:/", host: "192.168.0.200", referrer: "http://192.168.0.200/Docker"

Any idea what could be causing this?

 

Diagnostics attached.

  • 2 months later...
May 3 11:30:46 shoebox nginx: 2019/05/03 11:30:46 [error] 7825#7825: *408019 upstream prematurely closed connection while reading response header from upstream, client: 192.168.88.116, server: , request: "GET /dockerterminal/ApacheGuacamole/ HTTP/1.1", upstream: "http://unix:/var/tmp/ApacheGuacamole.sock:/", host: "192.168.88.8", referrer: "http://192.168.88.8/Docker"

Same issue.  Getting a 502 Bad Gateway nginx error when I try to enter a docker terminal.  Unraid version 6.6.7

 

It's a common issue I encounter, usually fixed with a reboot.  It may even resolve itself, but I'm not sure as I've learned to ignore the problem and hope it fixes it self or I've had to reboot unraid for some other reason.

 

 

  • 2 weeks later...
On 5/3/2019 at 8:36 PM, m8ty said:

May 3 11:30:46 shoebox nginx: 2019/05/03 11:30:46 [error] 7825#7825: *408019 upstream prematurely closed connection while reading response header from upstream, client: 192.168.88.116, server: , request: "GET /dockerterminal/ApacheGuacamole/ HTTP/1.1", upstream: "http://unix:/var/tmp/ApacheGuacamole.sock:/", host: "192.168.88.8", referrer: "http://192.168.88.8/Docker"

Same issue.  Getting a 502 Bad Gateway nginx error when I try to enter a docker terminal.  Unraid version 6.6.7

 

It's a common issue I encounter, usually fixed with a reboot.  It may even resolve itself, but I'm not sure as I've learned to ignore the problem and hope it fixes it self or I've had to reboot unraid for some other reason.

 

 

How do you ignore something like this? Usually you need to do something rather important when going into the terminal don't you?

 

Personally I'm trying to migrate my Plex lib to my new unRAID server and getting 502'd on my way to the terminal is pretty bad.

 

I usually try to avoid my root share as much as possible, guess I have no choice today... A terminal session should ALWAYS "just work".

I'm not entirely familiar with this specific way of getting a docker terminal but if it's not working - you can always just do this directly via:

docker exec -it <container> /bin/bash

 

so an example might be something like:

docker exec -it ApacheGuacamole /bin/bash

 

At least you can get logged in to a docker in this manner - as to why the gui isn't letting you, not sure.

 

2 hours ago, Glassed Silver said:

How do you ignore something like this? Usually you need to do something rather important when going into the terminal don't you?

 

 Personally I'm trying to migrate my Plex lib to my new unRAID server and getting 502'd on my way to the terminal is pretty bad.

  

 I usually try to avoid my root share as much as possible, guess I have no choice today... A terminal session should ALWAYS "just work".

At that point I usually start a ssh session through an actual ssh client via bitvise on windows or terminal.app on macos.

 

There's a new update for unraid available, version 6.7.0.  I've updated and hopefully the issue has been addressed 🤞 

 

@Delarius has the right idea with the `docker` command

2 minutes ago, m8ty said:

At that point I usually start a ssh session through an actual ssh client via bitvise on windows or terminal.app on macos.

 

There's a new update for unraid available, version 6.7.0.  I've updated and hopefully the issue has been addressed 🤞 

 

@Delarius has the right idea with the `docker` command

Well that's certainly an option, true, but it's still quite the inconvenience.

 

As for the 6.7.0 update: that's what I'm running and I'm experiencing this problem regardless. So unless we have different things going on triggering the same symptom I think it's fair to say it's unfixed. :/

  • Author

Hey, if I remember correctly, in the end it wasn't to do with unRaid, and I think Chrome was the issue. Might seem strange, but try a different browser.

 

MC

  • 2 months later...
On 5/14/2019 at 11:48 AM, MCMaestro said:

Hey, if I remember correctly, in the end it wasn't to do with unRaid, and I think Chrome was the issue. Might seem strange, but try a different browser.

 

MC

Could you maybe explain why this is the problem. (yes it got solved by using firefox!)

I can use terminal and VMs perfectly outside the house and when I connect to the external IP.

It really blows my mind... 

 

~ Controlol

  • Community Expert

Works fine for me with Chrome. Perhaps it is some Chrome addon or something else interfering. If you have an adblocker, whitelist your server.

Archived

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

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.