mythman 5 Posted September 29, 2016 Share Posted September 29, 2016 (edited) Hi guys. Something sudden broke with my Emby Syncing. Movies, Music and Music Videos all sync ok but as soon as it starts syncing TV it crashes. The versions are as follows. Python Version: 2.7.9 (default, Aug 13 2016, 18:15:29)GCC 4.9.2Platform: Linux/RPiKODI Version: 16.1EMBY Version: 2.2.37 Emby server Version 3.0.7200.0 I've attached a debug log. Odd that is just for TV shows but hmmm only started a few days ago. Any help is appreciated. Thanks. kodi.emby-crash-tv.log Edited September 29, 2016 by mythman Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted September 29, 2016 Share Posted September 29, 2016 Will look into this. Thanks for reporting. Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted September 29, 2016 Share Posted September 29, 2016 (edited) @@mythman I added some logging, because the error doesn't really make sense. Can you please install this build over your current one? Kodi settings > add-ons > install from zip. Edited September 30, 2016 by Angelblue05 Link to comment Share on other sites More sharing options...
mythman 5 Posted September 30, 2016 Author Share Posted September 30, 2016 (edited) @@mythman I added some logging, because the error doesn't really make sense. Can you please install this build over your current one? Kodi settings > add-ons > install from zip. Sure.. though I just noticed that my other Kodi box is also failing with Version: 2.2.19 of the plugin. So I don't think the problem is with the plugin it must be with the server? Anyway I will attach the new debug log if it helps. Thanks. EDIT: I added the last few lines of the server log which match the time stamps off the kodi log. Perhaps that help reveal something? I can see some odd errors but they always seem to be a few usually about not finding a metadata server or something. Thanks. kodi.emby-crash-tv-2.log emby-server-v3.0.7200.0.tv.log Edited September 30, 2016 by mythman 1 Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted September 30, 2016 Share Posted September 30, 2016 @@mythman I've just uploaded version 2.2.38. Please give it a try once available and let me know if your issue is resolved. I'm not sure why it would be failing on 2.2.19, the error must be unrelated. Provide your Kodi log if the error persists, thanks. Link to comment Share on other sites More sharing options...
mythman 5 Posted October 1, 2016 Author Share Posted October 1, 2016 (edited) @@mythman I've just uploaded version 2.2.38. Please give it a try once available and let me know if your issue is resolved. I'm not sure why it would be failing on 2.2.19, the error must be unrelated. Provide your Kodi log if the error persists, thanks. Ok I downloaded and installed 2.2.38 and now it does not crash on start up of scanning TV shows. But it does crash with a DB locked error. 12:38:34 2811.773438 T:1309668336 NOTICE: EMBY.librarysync -> ERROR:: database is locked I have disable all services that might even touch the Video DB but still it crashes when trying to commit to the DB According to lsof kodi is the only process accessing it lsof /home/osmc/.kodi/userdata/Database/MyVideos99.db COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME kodi.bin 17600 osmc 26uw REG 179,2 34070528 1315233 /home/osmc/.kodi/userdata/Database/MyVideos99.db kodi.bin 17600 osmc 59uw REG 179,2 34070528 1315233 /home/osmc/.kodi/userdata/Database/MyVideos99.db kodi.bin 17600 osmc 60uw REG 179,2 34070528 1315233 /home/osmc/.kodi/userdata/Database/MyVideos99.db kodi.bin 17600 osmc 62uw REG 179,2 34070528 1315233 /home/osmc/.kodi/userdata/Database/MyVideos99.db kodi.bin 17600 osmc 65uw REG 179,2 34070528 1315233 /home/osmc/.kodi/userdata/Database/MyVideos99.db kodi.bin 17600 osmc 68uw REG 179,2 34070528 1315233 /home/osmc/.kodi/userdata/Database/MyVideos99.db kodi.bin 17600 osmc 71uw REG 179,2 34070528 1315233 /home/osmc/.kodi/userdata/Database/MyVideos99.db kodi.bin 17600 osmc 77uw REG 179,2 34070528 1315233 /home/osmc/.kodi/userdata/Database/MyVideos99.db Now I watched the MyVideos99.db file from start up and until emby plugin fired up there was only one FD open but during scanning emby must fork and in the end there are 8 threads running that persist. Perhaps they are trampling on each other? So what is going on here? It only seems to happen with TV Shows, Movies Music and Music Videos are fine. Thanks. Edited October 1, 2016 by mythman Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted October 1, 2016 Share Posted October 1, 2016 (edited) Can you post your complete Kodi log? Thanks. Otherwise, it's impossible to start looking anywhere for the issue. Edited October 1, 2016 by Angelblue05 Link to comment Share on other sites More sharing options...
mythman 5 Posted October 2, 2016 Author Share Posted October 2, 2016 Can you post your complete Kodi log? Thanks. Otherwise, it's impossible to start looking anywhere for the issue. No need. I decided to just reset the emby DB and let it rescan again 02:37:29 53147.066406 T:1372902384 NOTICE: EMBY.librarysync -> Commit successful. 02:37:35 53152.347656 T:1372902384 NOTICE: EMBY.librarysync -> SyncDatabase (finished tvshows in: 0:41:19) 02:37:35 53153.203125 T:1372902384 NOTICE: EMBY.librarysync -> New sync time: client time -2 min: 2016-10-02T01:35:35Z 02:37:35 53153.246094 T:1372902384 NOTICE: EMBY.utils -> Toggling screensaver: {"id":0,"jsonrpc":"2.0","result":true} 02:37:36 53153.355469 T:1372902384 NOTICE: EMBY.librarysync -> SyncDatabase (finished in: 0:48:17) True Seems to work now. Was the DB schema changed at all? Maybe it was not a locked DB at all but some sort of corrupt schema which crashed sqlitelib Anyway. Happy it seems to be working again. Thanks. 1 Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted October 2, 2016 Share Posted October 2, 2016 Odd. Well keep me posted if you see any issues. Thanks for reporting back The only database structure change as been for series pooling. But it wouldn't cause a database locked. Having the full log allows me to see what could potentially cause this, so always post the entire log for your future posts. How to report a problem: https://emby.media/community/index.php?/topic/17599-how-to-report-a-problem/ Link to comment Share on other sites More sharing options...
emko 6 Posted October 7, 2016 Share Posted October 7, 2016 i am getting the same thing just updated Emby server and the sync plugin and now Tv shows sync cause a "Library sync thread has exited, have been using Emby addon for months without issues. Movies sync fine its just Tv shows/Anime I will check with latest beta and create some logs Link to comment Share on other sites More sharing options...
emko 6 Posted October 7, 2016 Share Posted October 7, 2016 19:49:56 T:9124 NOTICE: EMBY.itemtypes -> episodeid: 14311fbed571a80929bfe97ed99c88b6 not found. 19:50:02 T:9124 NOTICE: EMBY.librarysync -> ERROR:: list index out of range Traceback (most recent call last): File "C:\Users\EMKO\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 901, in run self.run_internal() File "C:\Users\EMKO\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 972, in run_internal librarySync = self.startSync() File "C:\Users\EMKO\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 98, in startSync completed = self.fullSync() File "C:\Users\EMKO\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 257, in fullSync completed = process[itemtype](embycursor, kodicursor, pDialog) File "C:\Users\EMKO\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 724, in tvshows tvshows.add_updateEpisode(episode) File "C:\Users\EMKO\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\itemtypes.py", line 1312, in add_updateEpisode filename = playurl.rsplit("/", 1)[1] IndexError: list index out of range 19:50:02 T:9124 ERROR: Exception in thread Thread-10: Traceback (most recent call last): File "C:\Program Files (x86)\Kodi\system\python\Lib\threading.py", line 810, in __bootstrap_inner self.run() File "C:\Users\EMKO\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 901, in run self.run_internal() File "C:\Users\EMKO\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 972, in run_internal librarySync = self.startSync() File "C:\Users\EMKO\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 98, in startSync completed = self.fullSync() File "C:\Users\EMKO\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 257, in fullSync completed = process[itemtype](embycursor, kodicursor, pDialog) File "C:\Users\EMKO\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 724, in tvshows tvshows.add_updateEpisode(episode) File "C:\Users\EMKO\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\itemtypes.py", line 1312, in add_updateEpisode filename = playurl.rsplit("/", 1)[1] IndexError: list index out of range 19:50:02 T:13104 NOTICE: Storing total System Uptime 19:50:02 T:13104 NOTICE: Saving settings 19:50:02 T:13104 NOTICE: stop all 19:50:02 T:13104 NOTICE: stop player 19:50:02 T:13104 NOTICE: ES: Stopping event server 19:50:02 T:13104 NOTICE: stopping upnp 19:50:02 T:12948 NOTICE: EMBY.kodimonitor -> Method: System.OnQuit Data: {"exitcode":0} 19:50:03 T:13104 NOTICE: WebServer: Stopped the webserver tried beta version of the emby sync plugin, i will try the emby kodi beta plugin now Link to comment Share on other sites More sharing options...
emko 6 Posted October 7, 2016 Share Posted October 7, 2016 (edited) well 2.2.39 beta Emby add on works perfect, stable does not work with latest Emby server version for me Edited October 7, 2016 by emko Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted October 7, 2016 Share Posted October 7, 2016 Ok thanks for letting me know. The issue started because the server started returning virtual episodes. Link to comment Share on other sites More sharing options...
Recommended Posts