TOS 7.0.1422: native app icons return 502 Bad Gateway (php-fpm.sock missing, no PHP installed)

Discussion of applications not mentioned above.
Post Reply
User avatar
Pelusototal
Posts: 1
Joined: Today, 04:17
Spain

TOS 7.0.1422: native app icons return 502 Bad Gateway (php-fpm.sock missing, no PHP installed)

Post by Pelusototal »

Hi all,

F4-425 Plus, TOS 7.0.1422 (latest available).

Since updating, the desktop icons of native apps (Navidrome, qBittorrent, Multimedia Server...) return "502 Bad Gateway". The apps work fine when opened directly through their own port.

What I found:
- /var/log/nginx/error.log: connect() to unix:/run/php/php-fpm.sock failed (2: No such file or directory), for every app icon.
- /run/php/ does not exist, no php process is running, and "dpkg -l | grep -i php" returns nothing.
- /etc/nginx/AppAccessControl/AppAccessControl-*.conf still use "fastcgi_pass unix_php_cgi_sock", pointing to that missing socket.

It looks like TOS 7 no longer ships PHP-FPM while the nginx config of already installed apps still depends on it. I have not installed or modified any packages or nginx files manually. (This is different from the OnlyOffice "bad gateway" thread.)

Is anyone else seeing this? And is there an official way to restore PHP-FPM or regenerate the app access config?

I have also emailed [email protected] and can provide the system report if needed.

Thanks!
User avatar
MikeZhang
TM Support
Posts: 449
Joined: 05 Sep 2023, 22:21

Re: TOS 7.0.1422: native app icons return 502 Bad Gateway (php-fpm.sock missing, no PHP installed)

Post by MikeZhang »

Pelusototal wrote: ↑Today, 04:28
Thanks for the details — we can reproduce this, and it's not that TOS 7 removed PHP-FPM.

In TOS 7, PHP 7.4 is an App Center dependency app (PHP74) that provides the shared socket /run/php/php-fpm.sock. It isn't a dpkg package, so dpkg -l | grep -i php being empty is normal. If that app isn't running, /run/php doesn't exist, the socket is missing, and every app icon that proxies through nginx returns 502 — while opening the app on its own port still works. Your nginx config is correct; nothing needs regenerating.

Fix: App Center → install (or disable/enable) PHP 7.4. Then reload the desktop — no nginx changes required.

Please don't apt install php-fpm; it conflicts with the app's PHP.
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)
Post Reply

Return to “Others”