I can't access my TNAS anymore after a reboot.
I get the page 502 Bad Gateway when i go to http://tnas.local:8181/tos/
i can SSH on the tnas, i can still see my data in /Volume1.
How to fix this issue ?
F8 SSD plus
[Help] 502 Bad Gateway after reboot [SOLVED]
[Help] 502 Bad Gateway after reboot
F8 SSD Plus / 16GB
Lexar NM790 2 to * 8
MADN0301.V02 / TOS 6.0.673 / BIOS Revision: 5.26
Lexar NM790 2 to * 8
MADN0301.V02 / TOS 6.0.673 / BIOS Revision: 5.26
Re: [Help] 502 Bad Gateway after reboot
i followed this procedure documented here viewtopic.php?t=6810 and it worked.
However i would really like to understand why we can lost the OS like this.
Also i am seeing some error on startup during the boot : is that expected ?
- Failed to start Atop advanced performance monitor
- Failed to start Iptables service
However i would really like to understand why we can lost the OS like this.
Also i am seeing some error on startup during the boot : is that expected ?
- Failed to start Atop advanced performance monitor
- Failed to start Iptables service
F8 SSD Plus / 16GB
Lexar NM790 2 to * 8
MADN0301.V02 / TOS 6.0.673 / BIOS Revision: 5.26
Lexar NM790 2 to * 8
MADN0301.V02 / TOS 6.0.673 / BIOS Revision: 5.26
Re: [Help] 502 Bad Gateway after reboot
I had this same problem.
It was resolved by SSHing into the TNAS and deleting /etc/p, which was roughly 5GB in size, then rebooting:
# rm /etc/p
# reboot
I believe that file was somehow created after I did a system configuration backup. It filled the system partition, preventing a bunch of different operations that need to write to the system log.
It was resolved by SSHing into the TNAS and deleting /etc/p, which was roughly 5GB in size, then rebooting:
# rm /etc/p
# reboot
I believe that file was somehow created after I did a system configuration backup. It filled the system partition, preventing a bunch of different operations that need to write to the system log.
Re: [Help] 502 Bad Gateway after reboot
We sincerely apologize for the inconvenience caused by this issue. After confirmation, it has been identified as a bug related to the backup system configuration. Our technical team has prioritized the fix, and it is scheduled to be resolved in an upcoming version. We truly appreciate you sharing your workaround and thank you for your continued support of TerraMaster!
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)
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
Re: [Help] 502 Bad Gateway after reboot
Thanks a lot for the information, i had the same problem (actually 2 times, but new to Terramaster, i thought i made a mistake or something wrong the first time) : but it really was after backing up the system config.
I would like to add that SSH connection didnt work for me, the only way to use the command prompt was to connect a hdmi monitor and a usb keyboard.
For the record, the logs indicate that postgre cannot start, unable to create postmaster.pid because there's no disk space.
So DONT USE THE SYSTEM CONFIG BACKUP until it is fixed !
I would like to add that SSH connection didnt work for me, the only way to use the command prompt was to connect a hdmi monitor and a usb keyboard.
For the record, the logs indicate that postgre cannot start, unable to create postmaster.pid because there's no disk space.
So DONT USE THE SYSTEM CONFIG BACKUP until it is fixed !
Re: [Help] 502 Bad Gateway after reboot
Sad to hear that another user encountered that bug.
Instead of sincere apologizes a warning to prevent it would be so much better.
Like a message popping up, or a link to a known bugs page, when downloading v6.0.673a (or v6.0.688a) ?
Reading all threads on the forum is not an option, you should be able to trust the stuff offered is safe.
Right now there is nothing in place, user after user is reporting their mishap.
Sad. And sorry for your and everybody else's experience.
Instead of sincere apologizes a warning to prevent it would be so much better.
Like a message popping up, or a link to a known bugs page, when downloading v6.0.673a (or v6.0.688a) ?
Reading all threads on the forum is not an option, you should be able to trust the stuff offered is safe.
Right now there is nothing in place, user after user is reporting their mishap.
Sad. And sorry for your and everybody else's experience.
F5-221 - TOS7.0.0765 - 5x4TB TRAID - 1x4TB Single USB - 2x4TB HwRAID1 USB
F2-221 - TOS7.0.0765 - 2x3TB JBOD - 1x4TB Single USB
F2-221 - TOS7.0.0765 - 2x3TB JBOD - 1x4TB Single USB
Re: [Help] 502 Bad Gateway after reboot
i again had the same issue after making a backup of the system configuration and rebooting
Last edited by djguana on 23 May 2025, 02:58, edited 1 time in total.
F8 SSD Plus / 16GB
Lexar NM790 2 to * 8
MADN0301.V02 / TOS 6.0.673 / BIOS Revision: 5.26
Lexar NM790 2 to * 8
MADN0301.V02 / TOS 6.0.673 / BIOS Revision: 5.26
Re: [Help] 502 Bad Gateway after reboot
Thank you : rm /etc/p solve my issue. glad i not had to redo the procedure for a complete OS installethaneade wrote: ↑20 May 2025, 02:45 I had this same problem.
It was resolved by SSHing into the TNAS and deleting /etc/p, which was roughly 5GB in size, then rebooting:
# rm /etc/p
# reboot
I believe that file was somehow created after I did a system configuration backup. It filled the system partition, preventing a bunch of different operations that need to write to the system log.
F8 SSD Plus / 16GB
Lexar NM790 2 to * 8
MADN0301.V02 / TOS 6.0.673 / BIOS Revision: 5.26
Lexar NM790 2 to * 8
MADN0301.V02 / TOS 6.0.673 / BIOS Revision: 5.26
- redpillmurica
- Posts: 2
- Joined: 23 May 2025, 10:12

Re: [Help] 502 Bad Gateway after reboot
So... what does that mean in terms of a timeline for the fix? Tomorrow, next month, ???
TMjack wrote: ↑20 May 2025, 19:04 We sincerely apologize for the inconvenience caused by this issue. After confirmation, it has been identified as a bug related to the backup system configuration. Our technical team has prioritized the fix, and it is scheduled to be resolved in an upcoming version. We truly appreciate you sharing your workaround and thank you for your continued support of TerraMaster!
Re: [Help] 502 Bad Gateway after reboot
There are plans to optimize it in future versions
To contact our team, please send email to following addresses. "(at)" = "@"
Technical team: support(at)terra-master.com
Service team: service(at)terra-master.com
Technical team: support(at)terra-master.com
Service team: service(at)terra-master.com


