Uploaded image for project: ' AGL Development'
  1. AGL Development
  2. SPEC-2869

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

XMLWordPrintable

    • Raspberry Pi 3, Raspberry Pi 4, Renesas H3+KF

      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 mranostay 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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            leonanavi Leon Anavi
            leonanavi Leon Anavi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: