RPi4 LE12 connects via WIFI and LAN but only via LAN it connects to shares

  • Hey Guys,

    I have a problem. I freshly installed LE12 on a RPi4.
    I setup everything but now I have some strange behaviour.

    On Startup the Pi connects via Wifi or LAN to the network. I can connect to it via SSH flawlessly.
    But only vial LAN it connects to the database and the connected shares.
    On Wifi the librarys are empty.
    Does anybody know whats my problem or has a hint for me?

  • I think you need to increase the "wait for network" timeout value in the LE settings add-on from the default 10s? to something like 30s. If the device is LAN connected this has no impact on startup time as the network is up before Kodi starts. If the device is WiFi connected then the kernel drivers load fairly quickly but some access points (routers) take longer to associate to, so Kodi needs to intentionally wait (longer) for the network to come up before trying to connect to MariaDB/shares. Kodi only tries to connect once at startup and if the network is not up the connect fails and Kodi defaults to local sqlite DB files (which are empty).

  • Aw man ... I had this in mind but thought ... hey 10 seconds are enough.
    Turned out it was not.

    Stepping up to 30 seconds on "wait for network" did the trick for me.
    Thank you chewitt