The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Thank you for your donation!


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


Solved: nginx Bad Gateway after idle
#1
-- edit --
as it turns pout, this was due to my usb drive, either not enough power or the drive starting to die
-- -- -- --

Hello,
It is I again, harbinger of weird issues ?.


I recently upgraded moode and ever since I have a peculiar issue I cannot wrap my head around. I play music all day, then eventually "stop" (which is pause, really?) the music. Next morning, I will be getting bad gateway, but can ssh into to rpi. After a reboot, all is well again, until the next day. all services are running as far as i can tell, service stop / start doesn’t "do the trick". Any ideas would be appreciated...


Code:
╭─   ~                                            ✘ 0|1 rpi@rpi  10:44:16 AM
╰─❯ moodeutl -l
20230809 100634 worker: --
20230809 100634 worker: -- Start moOde 8 series
20230809 100634 worker: --
20230809 100634 worker: Successfully daemonized
20230809 100634 worker: Waiting for Linux startup...
20230809 100647 worker: Linux startup complete
20230809 100647 worker: Boot config backed up
20230809 100649 worker: File check (OK)
20230809 100650 worker: Session vacuumed
20230809 100650 worker: Session loaded
20230809 100650 worker: Debug logging (OFF)
20230809 100650 worker: --
20230809 100650 worker: -- Audio debug
20230809 100650 worker: --
20230809 100650 worker: ALSA cards: (0:b1 | 1:Headphones | 2:empty | 3:empty
20230809 100650 worker: MPD config: (1:Pi Headphone jack | mixer:(PCM) | card:1)
20230809 100650 worker: ALSA mixer actual (PCM)
20230809 100650 worker: ALSA PCM volume set to (0%)
20230809 100650 worker: --
20230809 100650 worker: -- System
20230809 100650 worker: --
20230809 100651 worker: Host      (rpi)
20230809 100651 worker: Hardware  (Pi-4B 1.2 2GB)
20230809 100652 worker: moOde     (8.3.3 2023-06-08)
20230809 100652 worker: RaspiOS   (11.2)
20230809 100652 worker: Kernel    (6.1.21-v8+ #1642)
20230809 100652 worker: Procarch  (aarch64, 64-bit)
20230809 100652 worker: MPD ver   (0.23.12)
20230809 100652 worker: CPU gov   (ondemand)
20230809 100652 worker: Userid    (pi)
20230809 100652 worker: Homedir   (/home/pi)
20230809 100652 worker: Timezone  (Europe/Berlin)
20230809 100652 worker: Keyboard  (de)
20230809 100652 worker: USB boot  (enabled)
20230809 100652 worker: File sys  (expanded)
20230809 100652 worker: HDMI port (Off)
20230809 100652 worker: Sys LED0  (Off)
20230809 100652 worker: Sys LED1  (On)
20230809 100652 worker: --
20230809 100652 worker: -- Network
20230809 100652 worker: --
20230809 100652 worker: eth0 adapter exists
20230809 100652 worker: eth0 address check (Off)
20230809 100652 worker: eth0 address not assigned
20230809 100652 worker: wlan0 adapter exists
20230809 100652 worker: wlan0 country (DE)
20230809 100652 worker: wlan0 configured SSID (xxx)
20230809 100652 worker: wlan0 SSID alternates (None)
20230809 100652 worker: wlan0 router mode (Off)
20230809 100652 worker: wlan0 address check (up to 90 secs)
20230809 100652 worker: wlan0 connected to SSID (xxxx)
20230809 100652 worker: wlan0 power save (Disabled)
20230809 100652 worker: IP addr (192.168.0.123)
20230809 100652 worker: Netmask (255.255.255.0)
20230809 100652 worker: Gateway (192.168.0.1)
20230809 100652 worker: Pri DNS (192.168.0.21)
20230809 100652 worker: Domain  (lan)
20230809 100652 worker: --
20230809 100652 worker: -- Software update
20230809 100652 worker: --
20230809 100652 worker: Automatic check (Off)
20230809 100652 worker: --
20230809 100652 worker: -- Audio config
20230809 100652 worker: --
20230809 100653 worker: MPD conf updated
20230809 100653 worker: ALSA card number (1)
20230809 100653 worker: MPD audio output (Pi Headphone jack)
20230809 100653 worker: Audio formats (U8, S16_LE)
20230809 100653 worker: ALSA mixer name (PCM)
20230809 100653 worker: MPD mixer type (hardware)
20230809 100653 worker: Hdwr volume controller exists
20230809 100653 worker: Max ALSA volume (100%)
20230809 100653 worker: ALSA output mode (Default: plughw)
20230809 100653 worker: ALSA loopback (Off)
20230809 100653 worker: Reset renderer active flags
20230809 100653 worker: CamillaDSP configuration (off)
20230809 100653 worker: CamillaDSP volume sync   (Off)
20230809 100653 worker: CamillaDSP volume range  (60 dB)
20230809 100653 worker: --
20230809 100653 worker: -- File sharing
20230809 100653 worker: --
20230809 100653 worker: SMB file sharing (Off)
20230809 100653 worker: NFS file sharing (Off)
20230809 100653 worker: --
20230809 100653 worker: -- MPD startup
20230809 100653 worker: --
20230809 100654 worker: MPD started
20230809 100654 worker: MPD accepting connections
20230809 100654 worker: MPD output 1 ALSA Default (On)
20230809 100654 worker: MPD output 2 ALSA Bluetooth (Off)
20230809 100654 worker: MPD output 3 HTTP Server (Off)
20230809 100654 worker: MPD crossfade (off)
20230809 100654 worker: MPD ignore CUE files (yes)
20230809 100654 worker: --
20230809 100654 worker: -- Music sources
20230809 100654 worker: --
20230809 100654 worker: USB sources
20230809 100654 worker: EFI
20230809 100654 worker: scaldic_art
20230809 100654 worker: NAS sources
20230809 100654 worker: None configured
20230809 100654 worker: --
20230809 100654 worker: -- Feature availability
20230809 100654 worker: --
20230809 100654 worker: Input select (available)
20230809 100654 worker: Input (MPD)
20230809 100654 worker: Output (Pi Headphone jack)
20230809 100654 worker: Bluetooth (available)
20230809 100655 worker: AirPlay renderer (available)
20230809 100655 worker: Spotify renderer (available)
20230809 100655 worker: Squeezelite (available)
20230809 100655 worker: RoonBridge renderer (not installed)
20230809 100655 worker: Multiroom sender (available)
20230809 100655 worker: Multiroom receiver (available)
20230809 100655 worker: UPnP renderer (available)
20230809 100655 worker: DLNA server (available)
20230809 100655 worker: GPIO button handler (available)
20230809 100655 worker: Stream recorder (available: not installed)
20230809 100655 worker: HTTPS-Only mode (n/a)
20230809 100655 worker: --
20230809 100655 worker: -- Other
20230809 100655 worker: --
20230809 100655 worker: USB volume knob (Off)
20230809 100655 worker: USB auto-mounter (udisks-glue)
20230809 100655 worker: Saved MPD vol level (0)
20230809 100655 worker: Preamp volume level (0)
20230809 100655 worker: MPD volume level (35) restored
20230809 100655 worker: ALSA PCM volume (74%)
20230809 100655 worker: Auto-play (Off)
20230809 100655 worker: LocalUI (Off)
20230809 100655 worker: Automatic CoverView (Off)
20230809 100655 worker: On-screen keyboard (Off)
20230809 100655 worker: Library scope (all)
20230809 100655 worker: View reset to playback
20230809 100655 worker: Maintenance interval (360 minutes)
20230809 100655 worker: Screen saver activation (Never)
20230809 100655 worker: Session permissions (OK)
20230809 100655 worker: --
20230809 100655 worker: -- Startup complete
20230809 100655 worker: --
20230809 100655 worker: Mount monitor (off)
20230809 100655 worker: Watchdog monitor (started)
20230809 100655 worker: Ready

╭─   ~                                                  rpi@rpi  10:44:37 AM
╰─❯ systemctl status mpd
● mpd.service - Music Player Daemon
    Loaded: loaded (/lib/systemd/system/mpd.service; disabled; vendor preset: >
    Active: active (running) since Wed 2023-08-09 10:06:54 CEST; 24h ago
      Docs: man:mpd(1)
            man:mpd.conf(5)
            file:///usr/share/doc/mpd/html/user.html
  Main PID: 1341 (mpd)
     Tasks: 7 (limit: 2137)
       CPU: 7min 26.821s
    CGroup: /system.slice/mpd.service
            └─1341 /usr/bin/mpd --systemd /etc/mpd.conf

Aug 09 10:06:53 rpi systemd[1]: Starting Music Player Daemon...
Aug 09 10:06:53 rpi mpd[1341]: Ignoring the 'pid_file' setting in systemd mode
Aug 09 10:06:54 rpi systemd[1]: Started Music Player Daemon.


╭─   ~                                      ✘ INT  32s rpi@rpi  10:45:19 AM
╰─❯ systemctl status nginx
● nginx.service - A high performance web server and a reverse proxy server
    Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset:>
    Active: active (running) since Wed 2023-08-09 10:06:34 CEST; 24h ago
      Docs: man:nginx(8)
  Main PID: 543 (nginx)
     Tasks: 5 (limit: 2137)
       CPU: 46.243s
    CGroup: /system.slice/nginx.service
            ├─543 nginx: master process /usr/sbin/nginx -g daemon on; master_p>
            ├─544 nginx: worker process
            ├─545 nginx: worker process
            ├─546 nginx: worker process
            └─547 nginx: worker process

Aug 09 10:06:33 rpi systemd[1]: Starting A high performance web server and a re>
Aug 09 10:06:34 rpi systemd[1]: Started A high performance web server and a rev>


╭─   ~                                      ✘ INT  23s rpi@rpi  10:45:42 AM
╰─❯ 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 pr>
    Active: active (running) since Wed 2023-08-09 10:06:34 CEST; 24h ago
      Docs: man:php-fpm7.4(8)
  Main PID: 497 (php-fpm7.4)
    Status: "Processes active: 64, idle: 0, Requests: 1852, slow: 0, Traffic: >
     Tasks: 65 (limit: 2137)
       CPU: 4min 4.210s
    CGroup: /system.slice/php7.4-fpm.service
            ├─  423 php-fpm: pool www
            ├─  437 php-fpm: pool www
            ├─  497 php-fpm: master process (/etc/php/7.4/fpm/php-fpm.conf)
            ├─  568 php-fpm: pool www
            ├─  993 php-fpm: pool www
            ├─ 1153 php-fpm: pool www
            ├─ 1218 php-fpm: pool www
            ├─ 1467 php-fpm: pool www
            ├─ 1596 php-fpm: pool www
            ├─ 1715 php-fpm: pool www
            ├─ 1854 php-fpm: pool www
            ├─ 1990 php-fpm: pool www
            ├─ 2122 php-fpm: pool www
            ├─ 2254 php-fpm: pool www
            ├─ 2470 php-fpm: pool www
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 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: