502 Bad Gateway
Re: 502 Bad Gateway
The strange thing is that it worked for me for a while, and at a certain point it did not anymore. Meaning that the libraries (or better, the links to the library) must have been deleted by something?
Anyway, it is OK and stable now.
Anyway, it is OK and stable now.
Re: 502 Bad Gateway
This fixed my issue too! thank you so much for the response!Fdq wrote: ↑08 Feb 2023, 01:20 I do not know what caused it, but after some investigation I discovered PHP was not working because of a missing library, and therefore caused the 502 errors.
I did this to solve (via SSH):
Maybe it works for others.Code: Select all
cd /usr/lib ln -s libpcre2-8.so.0.10.1 libpcre2-8.so ln -s libpcre2-8.so.0.10.1 libpcre2-8.so.0 /etc/init.d/php-fpm start
Thanks!
Re: 502 Bad Gateway
Actually this issue is caused by official qbittorrent app.
If this app is installed from App Store, it will replace the TOS symlinks for libpcre2-8.so.0, libpcre2-posix.so.0 with his own symlinks pointing to qbittorrent folder.
Once the app is removed, the symlinks are also removed.
This will make the start of php-fpm to fail after restart the app or reboot the NAS, as is searching for the symlink libpcre2-8.so.
To completely restore the symlinks after the official qbittorrent app is removed run this commands
@TMROY, please ask to have the qbittorrent app fixed
If this app is installed from App Store, it will replace the TOS symlinks for libpcre2-8.so.0, libpcre2-posix.so.0 with his own symlinks pointing to qbittorrent folder.
Once the app is removed, the symlinks are also removed.
This will make the start of php-fpm to fail after restart the app or reboot the NAS, as is searching for the symlink libpcre2-8.so.
To completely restore the symlinks after the official qbittorrent app is removed run this commands
Code: Select all
cd /usr/lib
ln -sf libpcre2-8.so.0 libpcre2-8.so
ln -sf libpcre2-8.so.0.10.1 libpcre2-8.so.0
ln -sf libpcre2-posix.so.2 libpcre2-posix.so
ln -sf libpcre2-posix.so.2.0.3 libpcre2-posix.so.2
/etc/init.d/php-fpm start
Re: 502 Bad Gateway
Thank you! will forward to the tech team.
To contact our team, please send email to following addresses, remember to replace (at) with @:
Support team: support(at)terra-master.com (for technical support only)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
Support team: support(at)terra-master.com (for technical support only)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
Re: 502 Bad Gateway
It has been fixed.
To contact our team, please send email to following addresses, remember to replace (at) with @:
Support team: support(at)terra-master.com (for technical support only)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
Support team: support(at)terra-master.com (for technical support only)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
Re: 502 Bad Gateway
{L_BUTTON_AT}outkastm
When i'm trying to do this to fix the 502 Bad Gateway error on the your apps I installed:
Radarr
Sonarr
Sabnz
Ombi
Modbase
Mono
I get this error in SSH
[05-Dec-2023 01:58:26] ERROR: FPM initialization failed
failed
Can anyone help?
Re: 502 Bad Gateway
Unfortunatelly this needs to be checked with TM as is related to TOS builtin PHP. You can try to install the Qbitorrent from app store (not mandatory to have it running) , restart your NAS and see if this issue persist.
Re: 502 Bad Gateway
Any solution for this error? The same thing happens to me after installing TOS 6 on my F2-2023.
/etc/init.d/php-fpm start
Starting php-fpm [12-Apr-2024 04:57:16] ALERT: [pool TOS] no listen address have been defined!
[12-Apr-2024 04:57:16] ERROR: failed to post process the configuration
[12-Apr-2024 04:57:16] ERROR: FPM initialization failed
failed
/etc/init.d/php-fpm start
Starting php-fpm [12-Apr-2024 04:57:16] ALERT: [pool TOS] no listen address have been defined!
[12-Apr-2024 04:57:16] ERROR: failed to post process the configuration
[12-Apr-2024 04:57:16] ERROR: FPM initialization failed
failed
Re: 502 Bad Gateway
I know this is an old thread...but I followed @outkastm's most recent instructions and removed official qbittorrent from TOS App Store...rebooted my NAS, and all of the 3rd party apps were working. I think you should start there.sprietof wrote: ↑12 Apr 2024, 05:04 Any solution for this error? The same thing happens to me after installing TOS 6 on my F2-2023.
/etc/init.d/php-fpm start
Starting php-fpm [12-Apr-2024 04:57:16] ALERT: [pool TOS] no listen address have been defined!
[12-Apr-2024 04:57:16] ERROR: failed to post process the configuration
[12-Apr-2024 04:57:16] ERROR: FPM initialization failed
failed
Re: 502 Bad Gateway
Thanks for the response. Yes, in the case of the qBittorrente application it works because the official one is in the application center, but I cannot do it with applications like Jellyfin, aMule, etc., which are not in the official store. If any Terramastere admin can take up the issue, it is vitally important to find a solution.TheRandy wrote: ↑25 Jul 2024, 05:07I know this is an old thread...but I followed @outkastm's most recent instructions and removed official qbittorrent from TOS App Store...rebooted my NAS, and all of the 3rd party apps were working. I think you should start there.sprietof wrote: ↑12 Apr 2024, 05:04 Any solution for this error? The same thing happens to me after installing TOS 6 on my F2-2023.
/etc/init.d/php-fpm start
Starting php-fpm [12-Apr-2024 04:57:16] ALERT: [pool TOS] no listen address have been defined!
[12-Apr-2024 04:57:16] ERROR: failed to post process the configuration
[12-Apr-2024 04:57:16] ERROR: FPM initialization failed
failed

