@Smurphy
I don’t think I can explain properly what the problem is.
I use KODI on a media player in the living room (for about 5 years or so) and on a Synology NAS in the study (unfortunately connected via DLAN because there is no other option structurally) are the films/series and the DB that Kodi accesses with an advancedsettings.xml. The database was set up correctly years ago and has been updated over the years through a DB migration. The user that is required has all the rights, including “GRANT”.
So far everything was fine.
Now I have a cron job running that restarts the media player/Kodi every morning at 5:00 a.m. so that it doesn’t “run through” for too long and all connections are “fresh” again. All that is done is a restart.
During all this time I haven’t changed any settings “myself” and about 6 weeks ago (I’ve been looking for a solution for that long) the system was restarted at 5:00 a.m. and after that no more films/series were displayed in the KODI interface.
When I then tried to access it “manually” via the file manager, I got the “SAD smiley” and I think the system even rebooted.
I had noticed that I had a “MyVideos121” and a “MyVideos131” in the DB. After some research and questions, I deleted the “MyVideos131” and restarted Kodi. The DB migration display came up again and when the system was restarted, films/series were displayed again.
When I then accessed a film/series, the content was played correctly. As soon as I waited a bit (no idea if it was 5, 10 or 15 minutes) and then tried to click on the Movies menu item again, I got the message “Server needs to be woken up…” (or something similar) followed by “Server needs to be woken up for a longer period of time”. Unfortunately, to no avail. I did get the films displayed as covers with a synopsis, but when I then wanted to play a film I got the “SAD smiley” again.
When I then restarted, there were no more covers or anything like that to be seen. As if the DB was empty or not accessible.
In the DB I then had “MyVideos121” and “MyVideos131” again.
In the Kodi debug log you could then see that the SQLD went into sleep mode. But I didn’t set the MySQL DB to sleep (or the hard drives to sleep) nor do I know where I could set a sleep mode in the MySQL DB.
Then I ran “Flush hosts” on the SQL DB because I suspected that my client had been rejected due to too many unsuccessful requests. That was also unsuccessful. Then I deactivated the SQL DB and tried to create the DB locally. That was also unsuccessful. It seems to me that the connection to the NAS is being prevented/disrupted by something, which means that neither films nor the DB can be accessed temporarily.
I hope I’ve been able to get it across correctly now.