11-29-2020, 03:07 PM
Hi
For my application it is essential that moOde plays the last played item after powering-up / booting.
To test the correct funtionality I set up a test environment including two identiacl DUTs:
moOde release = 6.7.1 2020-07-22
Platform = Pi-Zero W 512MB v1.1
Audio device = HiFiBerry DAC+
Interface = I2S
Auto-shuffle = Off
Autoplay = On
The test environment includes a dedicated hardware and software (separate microcontroller), which periodically cycles the following sequence on both DUTs:
1) Power up DUT
2) Wait until moOde on DUT plays item (check play signal on HiFiBerry DAC+)
3) Initiate shutdown on DUT
4) Wait 30s
5) Power down DUT
6) Wait 10s
The testing runs for hours without any problem. However, several times the testing failed:
- Issue occured on both DUTs simultanously in the same test cyclus (!)
- The faulty test cyclus was the first one started in a day (!),
i.e. after the date changed while the testing runs
Below are the log files of a failed test cyclus.
/var/log/moode.log:
/var/log/mpd/log:
/var/log/syslog:
So, the issue seems to be caused by MPD connection refused. However, there seems to be some conjunction between this issue and the time of starting worker.php and / or last shutdown before starting worker.php. As mentioned, the issue occurred exclusively (several times) only when worker.php was started the first time of a new day.
Do you have any suggestion? Maybe some conjunction with the maintenance routine in moOde (truncated logs)?
Thanks!
For my application it is essential that moOde plays the last played item after powering-up / booting.
To test the correct funtionality I set up a test environment including two identiacl DUTs:
moOde release = 6.7.1 2020-07-22
Platform = Pi-Zero W 512MB v1.1
Audio device = HiFiBerry DAC+
Interface = I2S
Auto-shuffle = Off
Autoplay = On
The test environment includes a dedicated hardware and software (separate microcontroller), which periodically cycles the following sequence on both DUTs:
1) Power up DUT
2) Wait until moOde on DUT plays item (check play signal on HiFiBerry DAC+)
3) Initiate shutdown on DUT
4) Wait 30s
5) Power down DUT
6) Wait 10s
The testing runs for hours without any problem. However, several times the testing failed:
- Issue occured on both DUTs simultanously in the same test cyclus (!)
- The faulty test cyclus was the first one started in a day (!),
i.e. after the date changed while the testing runs
Below are the log files of a failed test cyclus.
/var/log/moode.log:
Code:
20201129 000016 worker: -- Start
20201129 000016 worker: Successfully daemonized
20201129 000019 worker: Integrity check (warning: worker.php)
20201129 000019 worker: Integrity check (passed with warnings)
20201129 000019 worker: Session loaded
20201129 000019 worker: Debug logging (off)
20201129 000019 worker: Device raw: (0:sndrpihifiberry|1:empty|2:empty|3:empty
20201129 000019 worker: Device i2s: (HiFiBerry DAC+)
20201129 000019 worker: Device mpd: (0:HiFiBerry DAC+)
20201129 000019 worker: Device ses: (0|HiFiBerry DAC+|Digital|0%)
20201129 000021 worker: ALSA Digital volume set to (0%)
20201129 000021 worker: -- System
20201129 000027 worker: Host (moode)
20201129 000028 worker: moOde (6.7.1 2020-07-22)
20201129 000028 worker: RaspiOS (10.4)
20201129 000028 worker: Kernel (5.4.51+ #1325)
20201129 000028 worker: Platform (Pi-Zero W 512MB v1.1)
20201129 000028 worker: ARM arch (armv6l, 32-bit kernel)
20201129 000028 worker: MPD ver (0.21.24)
20201129 000028 worker: CPU gov (ondemand)
20201129 000028 worker: USB boot not available
20201129 000058 worker: File system not expanded yet
20201129 000058 worker: HDMI port on
20201129 000102 worker: File check (OK)
20201129 000102 worker: -- Network
20201129 000103 worker: eth0 does not exist
20201129 000103 worker: eth0 address not assigned
20201129 000103 worker: wlan0 exists
20201129 000103 worker: wifi country (CH)
20201129 000103 worker: wlan0 trying SSID (ASUS_RT-AC68U_24)
20201129 000104 worker: IP addr (192.168.0.184)
20201129 000105 worker: Netmask (255.255.255.0)
20201129 000105 worker: Gateway (192.168.0.1)
20201129 000106 worker: Pri DNS (62.2.24.158)
20201129 000106 worker: Domain (home)
20201129 000107 worker: -- Audio
20201129 000110 worker: MPD conf updated
20201129 000112 worker: ALSA outputs unmuted
20201129 000112 worker: ALSA card number (0)
20201129 000112 worker: Audio output (HiFiBerry DAC+)
20201129 000114 worker: Audio formats (S16_LE, S24_LE, S32_LE)
20201129 000114 worker: ALSA mixer name (Digital)
20201129 000114 worker: MPD volume control (hardware)
20201129 000115 worker: Hdwr volume controller exists
20201129 000115 worker: Max ALSA volume (100%)
20201129 000115 worker: Reset renderer active flags
20201129 000115 worker: -- MPD
20201129 000116 worker: MPD started
20201129 000119 worker: MPD connection refused
20201129 000119 worker: Configure MPD outputs
20201129 000120 worker:
20201129 000120 worker:
20201129 000120 worker:
20201129 000120 worker:
20201129 000120 worker:
20201129 000120 worker:
20201129 000120 worker:
20201129 000120 worker: MPD crossfade (off)
20201129 000120 worker: -- Feature availability
20201129 000120 worker: Source select (available)
20201129 000120 worker: Source select (source: MPD)
20201129 000120 worker: Source select (output: HiFiBerry DAC+)
20201129 000120 worker: Bluetooth (available)
20201129 000120 worker: Airplay renderer (available)
20201129 000120 worker: Spotify renderer (available)
20201129 000120 worker: Squeezelite renderer (available)
20201129 000120 worker: UPnP renderer (available)
20201129 000120 worker: DLNA server (available)
20201129 000120 worker: UPnP browser (available)
20201129 000120 worker: Audio scrobbler (available)
20201129 000120 worker: GPIO button handler (available)
20201129 000120 worker: GPIO button handler (started)
20201129 000120 worker: -- Music sources
20201129 000121 worker: USB sources (none attached)
20201129 000121 worker: NAS and UPnP sources (none configured)
20201129 000121 worker: -- Miscellaneous
20201129 000122 worker: Rotary encoder on (100 2 10 23 24)
20201129 000122 worker: USB volume knob (Off)
20201129 000123 worker: Shellinabox SSH started
20201129 000123 worker: USB auto-mounter (udisks-glue)
20201129 000126 worker: LED0 (On)
20201129 000126 worker: LED1 (sysclass does not exist)
20201129 000126 worker: Saved MPD vol level (0)
20201129 000126 worker: Preamp volume level (0)
20201129 000126 worker: MPD volume level (60) restored
20201129 000127 worker: ALSA Digital volume (87%)
20201129 000127 worker: Auto-play (On)
20201129 000127 worker: Auto-playing id ()
20201129 000127 worker: Maintenance interval (3 hrs)
20201129 000127 worker: Screen saver activation (Never)
20201129 000127 worker: Session permissions (OK)
20201129 000129 worker: Watchdog started
20201129 000129 worker: Ready
/var/log/mpd/log:
Code:
Nov 26 19:48 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 26 19:55 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 26 20:00 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 26 20:01 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 26 20:04 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 26 20:05 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
(cut away entries to save space in this thread)
Nov 26 23:52 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 26 23:53 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 26 23:55 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 26 23:56 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 26 23:58 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 26 23:59 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 27 00:01 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 27 00:02 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 27 00:04 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 27 00:05 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 27 00:07 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 27 00:08 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
(cut away entries to save space in this thread)
Nov 27 23:45 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 27 23:47 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 27 23:48 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 27 23:50 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 27 23:51 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 27 23:53 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 27 23:54 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 27 23:56 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 27 23:57 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 27 23:59 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 28 00:00 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 28 00:02 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 28 00:03 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 28 00:05 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 28 00:06 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 28 00:08 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 28 00:09 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 28 00:11 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
(cut away entries to save space in this thread)
Nov 28 23:33 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 28 23:34 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 28 23:36 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 28 23:37 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 28 23:40 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 28 23:42 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 28 23:43 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 28 23:45 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 28 23:47 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 28 23:49 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 28 23:50 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 28 23:52 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 28 23:54 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 28 23:56 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 28 23:57 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
Nov 28 23:59 : player: played "SDCARD/Dr. Feelgood-Case History-10-Milk And Alcohol-Rock-192kbps.mp3"
/var/log/syslog:
Code:
Nov 29 00:01:31 moode rsyslogd: [origin software="rsyslogd" swVersion="8.1901.0" x-pid="289" x-info="https://www.rsyslog.com"] rsyslogd was HUPed
Nov 29 00:01:31 moode rsyslogd: [origin software="rsyslogd" swVersion="8.1901.0" x-pid="289" x-info="https://www.rsyslog.com"] rsyslogd was HUPed
Nov 29 00:01:32 moode nmbd[395]: [2020/11/29 00:01:32.499160, 0] ../source3/nmbd/nmbd_workgroupdb.c:276(dump_workgroups)
Nov 29 00:01:32 moode nmbd[395]: dump_workgroups()
Nov 29 00:01:32 moode nmbd[395]: dump workgroup on subnet 192.168.0.184: netmask= 255.255.255.0:
Nov 29 00:01:32 moode nmbd[395]: #011WORKGROUP(1) current master browser = UNKNOWN
Nov 29 00:01:32 moode nmbd[395]: #011#011MOODE 40809a03 (moOde SMB Server)
Nov 29 00:01:33 moode systemd[1]: logrotate.service: Succeeded.
Nov 29 00:01:33 moode systemd[1]: Started Rotate log files.
Nov 29 00:01:33 moode systemd[1]: Startup finished in 3.777s (kernel) + 1min 26.298s (userspace) = 1min 30.076s.
Nov 29 00:15:04 moode systemd[1]: Starting Cleanup of Temporary Directories...
Nov 29 00:15:04 moode systemd[1]: systemd-tmpfiles-clean.service: Succeeded.
Nov 29 00:15:04 moode systemd[1]: Started Cleanup of Temporary Directories.
Nov 29 00:23:13 moode systemd[1]: Created slice User Slice of UID 1000.
Nov 29 00:23:13 moode systemd[1]: Starting User Runtime Directory /run/user/1000...
Nov 29 00:23:13 moode systemd[1]: Started User Runtime Directory /run/user/1000.
Nov 29 00:23:13 moode systemd[1]: Starting User Manager for UID 1000...
Nov 29 00:23:14 moode systemd[5160]: Listening on GnuPG cryptographic agent and passphrase cache (access for web browsers).
Nov 29 00:23:14 moode systemd[5160]: Reached target Paths.
Nov 29 00:23:14 moode systemd[5160]: Listening on GnuPG cryptographic agent and passphrase cache.
Nov 29 00:23:14 moode systemd[5160]: Listening on GnuPG cryptographic agent and passphrase cache (restricted).
Nov 29 00:23:14 moode systemd[5160]: Reached target Timers.
Nov 29 00:23:14 moode systemd[5160]: Listening on GnuPG network certificate management daemon.
Nov 29 00:23:14 moode systemd[5160]: Listening on GnuPG cryptographic agent (ssh-agent emulation).
Nov 29 00:23:14 moode systemd[5160]: Starting D-Bus User Message Bus Socket.
Nov 29 00:23:14 moode systemd[5160]: Listening on D-Bus User Message Bus Socket.
Nov 29 00:23:14 moode systemd[5160]: Reached target Sockets.
Nov 29 00:23:14 moode systemd[5160]: Reached target Basic System.
Nov 29 00:23:14 moode systemd[1]: Started User Manager for UID 1000.
Nov 29 00:23:14 moode systemd[5160]: Reached target Default.
Nov 29 00:23:14 moode systemd[5160]: Startup finished in 753ms.
Nov 29 00:23:14 moode systemd[1]: Started Session c1 of user pi.
So, the issue seems to be caused by MPD connection refused. However, there seems to be some conjunction between this issue and the time of starting worker.php and / or last shutdown before starting worker.php. As mentioned, the issue occurred exclusively (several times) only when worker.php was started the first time of a new day.
Do you have any suggestion? Maybe some conjunction with the maintenance routine in moOde (truncated logs)?
Thanks!