SchapplM / xbmc-addon-service-watchedlist

Addon for Kodi Media Center to organize "watched"-status of media.
http://kodi.wiki/view/Add-on:WatchedList
GNU General Public License v3.0
32 stars 13 forks source link

No backup copies using database file on smb win10 share #48

Open deepbeat opened 4 years ago

deepbeat commented 4 years ago

Using the latest official stable releases and using database file on smb win10 share, no backup copies are created anymore. This happens regardless of the keep backup versions setting (-1 to 5). This bug first occured when I updated Kodi from Krypton v17.6 to v18.8 Leia.

SchapplM commented 4 years ago

Can you please provide a log file with debug setting activated? (both in Kodi and in WatchedList settings)

deepbeat commented 4 years ago

Thanks for your quick response. Please verify that I posted the requested files as I did not find any specific watchedlist debug settings or watchedlist settings file.

kodi.log

SchapplM commented 4 years ago

2020-08-30 17:46:25.875 T:6607 NOTICE: service.watchedlist: Notification. WatchedList: Fehler: Beim Sichern der Datenbank (Invalid argument) 2020-08-30 17:46:25.879 T:6607 ERROR: service.watchedlist: database_backup: Error creating database backup /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/addon_data/service.watchedlist/dbcopy/20200830_174625-watchedlist.db.zip: (22) Invalid argument

Can you check for write permission and file dates? This already was an issue in the forum. I am not sure, however, if it really was solved there.

deepbeat commented 4 years ago

Yesterday I finally had some time to follow up your hint and unfortunately I have to disappoint you: everything seems ok with write permission and file dates of the updated watchedlist.db on the smb win10 share.

I even renamed the destination folder and recreated it empty. The watchedlist.db file is created as expected. Changing some watched states and executing WL again updates the watchedlist.db file but does not create any backup zip file.

By the way, at the very beginning of every watched list run, kodi gives a warning note "WatchedList: Fehler - Beim Sichern der Datenbank (invalid argument)". Translated it means "WatchedList: Error - When backing up the database (invalid argument)". Perhaps the copy job or zip creation is called with depricated arguments? Just guessing...