lightmediascanner doesn't start on first boot on Raspberry Pi 3 and 4

Fixed

Description

Hi,

During other routine testing, I have noticed that lightmediascanner fails to start on first boot:

● lightmediascanner.service - Lightmediascanner (LMS) Loaded: loaded (/lib/systemd/system/lightmediascanner.service; enabled; vendor preset: enabled) Active: failed (Result: timeout) since Wed 2019-10-09 11:17:22 UTC; 15s ago Process: 358 ExecStart=/usr/bin/lightmediascannerd --startup-scan --db-path=/var/volatile/tmp/lightmediascannerd> Main PID: 358 (code=exited, status=0/SUCCESS) Oct 01 05:49:32 raspberrypi4 systemd[1]: Starting Lightmediascanner (LMS)... Oct 09 11:17:22 raspberrypi4 systemd[1]: lightmediascanner.service: Start operation timed out. Terminating. Oct 09 11:17:22 raspberrypi4 systemd[1]: lightmediascanner.service: Failed with result 'timeout'. Oct 09 11:17:22 raspberrypi4 systemd[1]: Failed to start Lightmediascanner (LMS).

After rebooting the systemd services starts successfully:

● lightmediascanner.service - Lightmediascanner (LMS) Loaded: loaded (/lib/systemd/system/lightmediascanner.service; enabled; vendor preset: enabled) Active: active (running) since Tue 2019-10-01 05:49:26 UTC; 1 weeks 1 days ago Main PID: 275 (lightmediascann) Tasks: 3 (limit: 4915) Memory: 8.3M CGroup: /system.slice/lightmediascanner.service └─275 /usr/bin/lightmediascannerd --startup-scan --db-path=/var/volatile/tmp/lightmediascannerd.db --di> Oct 01 05:49:25 raspberrypi4 systemd[1]: Starting Lightmediascanner (LMS)... Oct 01 05:49:25 raspberrypi4 lightmediascann[275]: Couldn't open '/var/volatile/tmp/lightmediascannerd.db': unable> Oct 01 05:49:26 raspberrypi4 systemd[1]: Started Lightmediascanner (LMS). raspberrypi4:~# ls -l /var/volatile/tmp/lightmediascannerd.db -rw-r--r--. 1 root root 151552 Oct 1 05:49 /var/volatile/tmp/lightmediascannerd.db

I've chatted with regarding this issue. He suggested it might be caused by a race condition between /var/volatile/tmp being created. I will investigate further.

Best regards,
Leon

Environment

AGL master for Raspberry Pi 3 and 4

Activity

Show:

Walt Miner 
November 19, 2019 at 4:20 PM

Close for HH 8.0.3 release

Leon Anavi 
October 11, 2019 at 4:18 PM

Hi,

The fix has been merged in master. I have tested the fix on Raspberry Pi 3B+ and 4. I will mark the issue as resolved.

Best regards,
Leon

Jan-Simon Moeller 
October 9, 2019 at 6:52 PM

confirmed on H3+KF as well

Details

Assignee

Reporter

Labels

Contract ID

Hardware Platform(s) Affected

Raspberry Pi 3
Raspberry Pi 4
Renesas H3+KF

Priority

Created October 9, 2019 at 1:26 PM
Updated November 19, 2019 at 4:20 PM
Resolved October 11, 2019 at 4:18 PM