Page 2 of 2

Re: 502 Bad Gateway

Posted: 08 Feb 2023, 18:16
by Fdq
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.

Re: 502 Bad Gateway

Posted: 14 Feb 2023, 02:29
by drakey83
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):

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
Maybe it works for others.
Thanks!
This fixed my issue too! thank you so much for the response!

Re: 502 Bad Gateway

Posted: 04 Mar 2023, 05:47
by outkastm
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

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
@TMROY, please ask to have the qbittorrent app fixed

Re: 502 Bad Gateway

Posted: 04 Mar 2023, 11:46
by TMroy
Thank you! will forward to the tech team.

Re: 502 Bad Gateway

Posted: 11 May 2023, 10:34
by TMroy
outkastm wrote: 04 Mar 2023, 05:47
@TMROY, please ask to have the qbittorrent app fixed
It has been fixed.

Re: 502 Bad Gateway

Posted: 05 Dec 2023, 02:00
by PriestyUK
{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

Posted: 05 Dec 2023, 02:11
by outkastm
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

Posted: 12 Apr 2024, 05:04
by sprietof
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

Posted: 25 Jul 2024, 05:07
by TheRandy
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
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.

Re: 502 Bad Gateway

Posted: 24 Aug 2024, 06:00
by sprietof
TheRandy wrote: 25 Jul 2024, 05:07
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
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.
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.