Re: TOS6.0 Main Web Interface Failure (502 Bad Gateway) - Need SSH Terminal-Based Repair Options
Posted: 12 Mar 2025, 23:54
Thank you Gremlin for checking the image file and your helpful suggestions.
I initially encountered validation errors when using BalenaEtcher on Windows, which led me to believe the image might be corrupted. However, I also tried an alternative approach by creating the bootable USB directly on the NAS using terminal commands:
```bash
# Installed pv (pipe viewer) on the NAS
apt install --no-install-recommends pv
# Wrote the image directly to USB
pv /Volume1/00_TNAS_ADMIN/USB_Initboot_UEFI-229.img > /dev/sdd
# Verified completion
sync
```
This method successfully created a bootable USB that functions correctly (I can boot from it and log in as root using root/admin). Unfortunately, it produced the same results as the original USB boot drive - showing the "No disk detected" message in the web interface without launching any reinstall scripts automatically.
Since I can access all system files via the terminal as root, it should be possible to install or repair them manually. Since 99% of the system is working correctly, I'd prefer a targeted solution to fix the main problem first:
1) Could anyone provide a list of specific files needed to rebuild just the main TOS web interface? (or share in the BBS)
OR
2) Provide the commands for the reinstallation scripts on the USB that I can run manually.
OR
3) I like your idea of using an installation (*.ins) package locally, although I'd then need to upgrade to 6.0 again, but that's not painful. Do you know how to launch that installation script from an SSH terminal?
Your suggestion about TNAS-PC for auto-installation is also interesting. I can't seem to login to the NAS from the PC atm (apart from SSH Terminal) - but I'll look into that as well if the more targeted approaches aren't viable.
Thank you for your continued support and ideas!
Best regards,
Colin
I initially encountered validation errors when using BalenaEtcher on Windows, which led me to believe the image might be corrupted. However, I also tried an alternative approach by creating the bootable USB directly on the NAS using terminal commands:
```bash
# Installed pv (pipe viewer) on the NAS
apt install --no-install-recommends pv
# Wrote the image directly to USB
pv /Volume1/00_TNAS_ADMIN/USB_Initboot_UEFI-229.img > /dev/sdd
# Verified completion
sync
```
This method successfully created a bootable USB that functions correctly (I can boot from it and log in as root using root/admin). Unfortunately, it produced the same results as the original USB boot drive - showing the "No disk detected" message in the web interface without launching any reinstall scripts automatically.
Since I can access all system files via the terminal as root, it should be possible to install or repair them manually. Since 99% of the system is working correctly, I'd prefer a targeted solution to fix the main problem first:
1) Could anyone provide a list of specific files needed to rebuild just the main TOS web interface? (or share in the BBS)
OR
2) Provide the commands for the reinstallation scripts on the USB that I can run manually.
OR
3) I like your idea of using an installation (*.ins) package locally, although I'd then need to upgrade to 6.0 again, but that's not painful. Do you know how to launch that installation script from an SSH terminal?
Your suggestion about TNAS-PC for auto-installation is also interesting. I can't seem to login to the NAS from the PC atm (apart from SSH Terminal) - but I'll look into that as well if the more targeted approaches aren't viable.
Thank you for your continued support and ideas!
Best regards,
Colin