Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: nginx Bad Gateway after idle
#12
I know, necromancing is not en vogue - but the issue is back.

Exactly the same as before, including the startup user "pi" and the local user "rpi" and multiple threads for php...ssh works as usual, but the gui gives the "502 Bad Gateway" :/

Code:
hp7.4-fpm.service - The PHP 7.4 FastCGI Process Manager
    Loaded: loaded (/lib/systemd/system/php7.4-fpm.service; enabled; vendor preset: enabled)
    Active: active (running) since Tue 2023-11-21 12:58:56 CET; 1 day 20h ago
      Docs: man:php-fpm7.4(8)
  Main PID: 496 (php-fpm7.4)
    Status: "Processes active: 64, idle: 0, Requests: 3792, slow: 0, Traffic: 0req/sec"
     Tasks: 65 (limit: 2137)
       CPU: 3min 42.744s
    CGroup: /system.slice/php7.4-fpm.service
            ├─   496 php-fpm: master process (/etc/php/7.4/fpm/php-fpm.conf)
            ├─137203 php-fpm: pool www
            ├─192733 php-fpm: pool www
            ├─193315 php-fpm: pool www
            ├─194517 php-fpm: pool www
            ├─194691 php-fpm: pool www
            ├─194809 php-fpm: pool www
            ├─194835 php-fpm: pool www
            ├─195097 php-fpm: pool www
            ├─195127 php-fpm: pool www
            ├─195256 php-fpm: pool www
            ├─195328 php-fpm: pool www
            ├─195449 php-fpm: pool www
            ├─195458 php-fpm: pool www
            ├─195572 php-fpm: pool www
Code:
20231121 125913 worker: Host      (rpi)
20231121 125913 worker: Hardware  (Pi-4B 1.2 2GB)
20231121 125913 worker: moOde     (8.3.6 2023-09-05)
20231121 125913 worker: RaspiOS   (11.7)
20231121 125913 worker: Kernel    (6.1.21-v8+ #1642)
20231121 125913 worker: Procarch  (aarch64, 64-bit)
20231121 125913 worker: MPD ver   (0.23.12)
20231121 125913 worker: CPU gov   (ondemand)
20231121 125913 worker: Userid    (pi)
20231121 125913 worker: Homedir   (/home/pi)

The "weird" thing with php is that before the reboot systemctl gets "stuck", after the reboot I get

Code:
❯ systemctl status php7.4-fpm
● php7.4-fpm.service - The PHP 7.4 FastCGI Process Manager
    Loaded: loaded (/lib/systemd/system/php7.4-fpm.service; enabled; vendor preset: enabled)
    Active: active (running) since Thu 2023-11-23 09:38:06 CET; 12min ago
      Docs: man:php-fpm7.4(8)
  Main PID: 485 (php-fpm7.4)
    Status: "Processes active: 7, idle: 1, Requests: 65, slow: 0, Traffic: 0req/sec"
     Tasks: 9 (limit: 2137)
       CPU: 2.186s
    CGroup: /system.slice/php7.4-fpm.service
            ├─ 485 php-fpm: master process (/etc/php/7.4/fpm/php-fpm.conf)
            ├─ 556 php-fpm: pool www
            ├─ 557 php-fpm: pool www
            ├─1474 php-fpm: pool www
            ├─1499 php-fpm: pool www
            ├─1504 php-fpm: pool www
            ├─1687 php-fpm: pool www
            ├─1747 php-fpm: pool www
            └─1752 php-fpm: pool www

Nov 23 09:38:05 rpi systemd[1]: Starting The PHP 7.4 FastCGI Process Manager...
Nov 23 09:38:06 rpi systemd[1]: Started The PHP 7.4 FastCGI Process Manager.

This is a bog standard install, only changed the hostname via gui and set a static IP. I have 38379 tracks, so moode should be able to handle the e collection based on what I read here in the forum.The external disk does pass smartctl, so there's no problem there I believe.

Maybe I have to replace the SD Card?
Reply


Messages In This Thread
nginx Bad Gateway after idle - by demian.smith - 08-10-2023, 08:53 AM
RE: nginx Bad Gateway after idle - by Tim Curtis - 08-10-2023, 12:55 PM
RE: nginx Bad Gateway after idle - by Tim Curtis - 08-16-2023, 10:42 AM
RE: nginx Bad Gateway after idle - by the_bertrum - 08-16-2023, 03:52 PM
RE: nginx Bad Gateway after idle - by DRONE7 - 08-16-2023, 08:55 PM
RE: nginx Bad Gateway after idle - by the_bertrum - 08-23-2023, 01:24 PM
RE: nginx Bad Gateway after idle - by demian.smith - 11-23-2023, 08:52 AM
RE: nginx Bad Gateway after idle - by Nutul - 11-23-2023, 10:05 AM
RE: nginx Bad Gateway after idle - by Nutul - 11-23-2023, 06:12 PM
RE: nginx Bad Gateway after idle - by the_bertrum - 11-24-2023, 10:45 AM
RE: nginx Bad Gateway after idle - by fdealexa - 11-25-2023, 12:04 AM
ginx Bad Gateway after idle - by demian.smith - 12-07-2023, 12:32 PM

Forum Jump: