Help - 502 Bad Gateway

CPU, memory, fan, process, services status, system log, tempreture
Locked
User avatar
MrsCooper
Posts: 1
Joined: 30 Nov 2021, 11:50

Help - 502 Bad Gateway

Post by MrsCooper »

Yesterday my Plex server stopped working. So I tried to login via my IP 10.0.0.101:8181. I am greeted by "502 Bad Gateway nginx/1.18.0" so I try http://10.0.0.102:8181/tos/index.php. Same 502 error. I reboot the NAS and tried again, same 502 error. Interestingly I can still access the drive via my windows PC where I added the public folder as a Mapped Drive. I was able to open files and copy data back and forth, but Plex is still not working and I cannot connect via SSH, IP address, or via mobile apps.

I did some googling and found these two resources:
viewtopic.php?f=23&t=1085&p=6283&hilit=502#p6283
viewtopic.php?f=71&t=2720

I plugged in an HDMI cable into the back and connected a keyboard via the USB. I signed in as root and typed in:
/etc/init.d/nginx stop
/etc/init.d/nginx start
/etc/init.d/php-fpm restart

No luck, still 502 error. Please help!
User avatar
TMSupport
TerraMaster Team
Posts: 2314
Joined: 13 Dec 2019, 15:15

Re: Help - 502 Bad Gateway

Post by TMSupport »

Hi! If you cannot access the SSH terminal, you can fix it by reinstalling the TOS.
To contact our team, please send email to following addresses, remember to replace (at) with @
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
User avatar
Brodieman
Posts: 19
Joined: 16 Feb 2021, 02:54

Re: Help - 502 Bad Gateway

Post by Brodieman »

I am having this same error except I cannot access my shares. Just get the 502 when I try and access the web console
User avatar
TMSupport
TerraMaster Team
Posts: 2314
Joined: 13 Dec 2019, 15:15

Re: Help - 502 Bad Gateway

Post by TMSupport »

{L_BUTTON_AT}Brodieman
Please refer to the article for troubleshooting: viewtopic.php?f=71&t=2720
To contact our team, please send email to following addresses, remember to replace (at) with @
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
Locked