Jump to content

Another Library Sync Thread Exited Thread


NNate
Go to solution Solved by Angelblue05,

Recommended Posts

I'm able to sync my Movies, but every time it gets to TV Shows I get a failure "Library sync thread has exited! You should restart Kodi now."
 
I've uninstalled and reinstall the Kodi Emby plugin, but no luck. I've cleaned my library (via the plugin) and tried to resync, but I get a failure at the same point.
 
Kodi Emby Plugin 2.2.19
Emby Server: 3.0.6400.0
Kodi Version: LibreElec 7.0.2 (Jarvis 16.1)
Emby.Kosi Sync Queue: 1.2.6088.33065
 

11:43:53 T:140192476415744  NOTICE: EMBY.librarysync -> Media folders: [{'id': u'd4f1aeb3b8343a7c04f02bd596d038f3', 'name': u'TV Shows'}]
11:43:53 T:140192476415744  NOTICE: EMBY.itemtypes -> showid: 241018ae10b45c15978257fab2eec03b not found.
11:43:53 T:140192476415744  NOTICE: EMBY.itemtypes -> ADD tvshow itemid: 241018ae10b45c15978257fab2eec03b - Title: Angie Tribeca
11:43:54 T:140192476415744  NOTICE: EMBY.itemtypes -> episodeid: fb87daccb36fe4f83a1c19404421b434 not found.
11:43:54 T:140192476415744  NOTICE: EMBY.itemtypes -> ADD episode itemid: fb87daccb36fe4f83a1c19404421b434 - Title: Pilot
11:43:54 T:140192476415744  NOTICE: EMBY.itemtypes -> episodeid: 9a30290fc8201f465b8500b7f9f8e8e6 not found.
11:43:54 T:140192476415744  NOTICE: EMBY.itemtypes -> ADD episode itemid: 9a30290fc8201f465b8500b7f9f8e8e6 - Title: The Wedding Planner Did It
11:43:54 T:140192476415744  NOTICE: EMBY.itemtypes -> episodeid: 9bd70ca8a6c459caaed95d65f5941f74 not found.
11:43:54 T:140192476415744  NOTICE: EMBY.itemtypes -> ADD episode itemid: 9bd70ca8a6c459caaed95d65f5941f74 - Title: The Famous Ventriloquist Did It
11:43:54 T:140192476415744  NOTICE: EMBY.itemtypes -> episodeid: e644983f460590a1a4d40ebb829ae989 not found.
11:43:54 T:140192476415744  NOTICE: EMBY.itemtypes -> ADD episode itemid: e644983f460590a1a4d40ebb829ae989 - Title: The Thumb Affair
11:43:54 T:140192476415744  NOTICE: EMBY.itemtypes -> episodeid: 9e5903d2ca37ace94c65699befd123b1 not found.
11:43:54 T:140192476415744  NOTICE: EMBY.itemtypes -> ADD episode itemid: 9e5903d2ca37ace94c65699befd123b1 - Title: Commissioner Bigfish
11:43:54 T:140192476415744  NOTICE: EMBY.itemtypes -> episodeid: 0150c27fa00d07c9f7c0ce2d7428020c not found.
11:43:54 T:140192476415744  NOTICE: EMBY.itemtypes -> ADD episode itemid: 0150c27fa00d07c9f7c0ce2d7428020c - Title: Ferret Royale
11:43:54 T:140192476415744  NOTICE: EMBY.itemtypes -> episodeid: f515ce5e2650131bb4b8c82c88d2d4e6 not found.
11:43:54 T:140192476415744  NOTICE: EMBY.itemtypes -> ADD episode itemid: f515ce5e2650131bb4b8c82c88d2d4e6 - Title: Tribeca's Day Off
11:43:54 T:140192476415744  NOTICE: EMBY.itemtypes -> episodeid: b678e8f7037a1efbe079c0d62d5e0960 not found.
11:43:54 T:140192476415744  NOTICE: EMBY.itemtypes -> ADD episode itemid: b678e8f7037a1efbe079c0d62d5e0960 - Title: Murder in the First Class
11:43:54 T:140192476415744  NOTICE: EMBY.itemtypes -> episodeid: 3b299e78a0522ec73e7313418d3d2818 not found.
11:43:54 T:140192476415744  NOTICE: EMBY.itemtypes -> ADD episode itemid: 3b299e78a0522ec73e7313418d3d2818 - Title: Inside Man
11:43:54 T:140192476415744  NOTICE: EMBY.itemtypes -> episodeid: 654e4e492d82c5764aa99d7b6e15fb90 not found.
11:43:54 T:140192476415744  NOTICE: EMBY.itemtypes -> ADD episode itemid: 654e4e492d82c5764aa99d7b6e15fb90 - Title: The One with the Bomb
11:43:54 T:140192476415744  NOTICE: EMBY.itemtypes -> episodeid: d7997dbfd4b46f6aa8c2494c53f1e146 not found.
11:43:58 T:140192476415744  NOTICE: EMBY.librarysync -> ERROR:: list index out of range
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/librarysync.py", line 901, in run
                                                self.run_internal()
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/librarysync.py", line 972, in run_internal
                                                librarySync = self.startSync()
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/librarysync.py", line 98, in startSync
                                                completed = self.fullSync()
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/librarysync.py", line 257, in fullSync
                                                completed = process[itemtype](embycursor, kodicursor, pDialog)
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/librarysync.py", line 724, in tvshows
                                                tvshows.add_updateEpisode(episode)
                                              File "/storage/.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
11:43:58 T:140192476415744   ERROR: Exception in thread Thread-10:
                                            Traceback (most recent call last):
                                              File "/home/chewitt/LibreELEC.70-official/build.LibreELEC-Generic.x86_64-7.0.2/Python-2.7.11/.install_pkg/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/librarysync.py", line 901, in run
                                                self.run_internal()
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/librarysync.py", line 972, in run_internal
                                                librarySync = self.startSync()
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/librarysync.py", line 98, in startSync
                                                completed = self.fullSync()
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/librarysync.py", line 257, in fullSync
                                                completed = process[itemtype](embycursor, kodicursor, pDialog)
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/librarysync.py", line 724, in tvshows
                                                tvshows.add_updateEpisode(episode)
                                              File "/storage/.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

 

Link to comment
Share on other sites

Angelblue05

Looks like you have an episode that has no paths? Not sure how this is happening. I will provide you with a custom build that will have additional logging so we can see why it's failing.

 

 

Sent from my iPhone using Tapatalk

Link to comment
Share on other sites

Looks like you have an episode that has no paths? Not sure how this is happening. I will provide you with a custom build that will have additional logging so we can see why it's failing.

 

 

Sent from my iPhone using Tapatalk

Perhaps.  The popup with the sync status is listing an episode I don't have - it's season 2, episode 1, but I don't have any season 2 info. No folder, no episodes, etc. Maybe coincidence or maybe not.

  • Like 1
Link to comment
Share on other sites

Angelblue05

Interesting, yes...

 

In the emby metadata manager, do you see said episode 1 from season 2 that does not exists? Maybe try to refresh the show itself in the metadata manager so it updates the episode entries and hopefully corrects this ghost episode. I will check on our side to handle this more elegantly than a hard crash.

 

 

Sent from my iPhone using Tapatalk

Link to comment
Share on other sites

Interesting, yes...

 

In the emby metadata manager, do you see said episode 1 from season 2 that does not exists? Maybe try to refresh the show itself in the metadata manager so it updates the episode entries and hopefully corrects this ghost episode. I will check on our side to handle this more elegantly than a hard crash.

 

 

Sent from my iPhone using Tapatalk

No, I don't see it in the metadata manager. I refreshed the series and still no luck, unfortunately.

 

I even ran the "Clean database" and "Scan media library" tasks on the server. No change.

  • Like 1
Link to comment
Share on other sites

  • Solution
Angelblue05

@@NNate

 

Please install this build over your current one. In Kodi settings > add-ons > install from zip.

 

I added additional logging to see what is wrong with this specific episode for future reference. Once it's done syncing, open your Kodi.log file and find the episode by searching by Id and paste the lines that come right after the exception here please, thanks. It will look like a big block of text. The id associated to the item is: d7997dbfd4b46f6aa8c2494c53f1e146

 

Thanks

plugin.video.emby-2.2.22~alpha.zip

Edited by Angelblue05
  • Like 1
Link to comment
Share on other sites

Hopefully this is what you're looking for - timestamp looks about right. There are a lot of instances of that ID today.

 

I'm seeing many other such instances of this error. It looks like it's complaining about all of Season 2 for this series, but it happens throughout the log for other series as well.
 
On the plus side, the sync completed :)
15:53:21 T:140585914574592  NOTICE: EMBY.itemtypes -> episodeid: d7997dbfd4b46f6aa8c2494c53f1e146 not found.
15:53:21 T:140585914574592  NOTICE: EMBY.itemtypes -> ERROR:: list index out of range
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/itemtypes.py", line 1313, in add_updateEpisode
                                                filename = playurl.rsplit("/", 1)[1]
                                            IndexError: list index out of range
15:53:21 T:140585914574592  NOTICE: EMBY.itemtypes -> {u'Genres': [], u'MediaStreams': [], u'LocationType': u'Virtual', u'LocalTrailerCount': 0, u'ParentLogoItemId': u'241018ae10b45c15978257fab2eec03b', u'SeasonName': u'Season 2', u'Etag': u'36fdf41442778c754b37e27a0ee1e6fb', u'RemoteTrailers': [], u'ParentBackdropImageTags': [u'd53eb945f09e1d791a1fbbef5020ba2c', u'35b6350d7747cb577d5ec88bc554db8a'], u'ServerId': u'c28d0a9a6546cc71cfe0d24f8a4182ae', u'Type': u'Episode', u'ParentIndexNumber': 2, u'SortName': u"002 - 0001 - Fleas Don't Kill Me", u'SeriesId': u'241018ae10b45c15978257fab2eec03b', u'ParentBackdropItemId': u'241018ae10b45c15978257fab2eec03b', u'PlayAccess': u'Full', u'Tags': [], u'ProductionLocations': [], u'IsFolder': False, u'ParentLogoImageTag': u'd039fd92563046b091549dded0d85da4', u'ProviderIds': {u'Tvdb': u'5451921', u'Imdb': u'tt5179222'}, u'PremiereDate': u'2016-06-06T05:00:00.0000000Z', u'ProductionYear': 2016, u'VideoType': u'VideoFile', u'BackdropImageTags': [], u'IsPlaceHolder': False, u'Name': u"Fleas Don't Kill Me", u'MediaType': u'Video', u'SeriesName': u'Angie Tribeca', u'Taglines': [], u'ParentId': u'7c9957bfc30df9261151f7ccc986ac61', u'MediaSources': [{u'VideoType': u'VideoFile', u'SupportsDirectStream': True, u'Protocol': u'File', u'Name': u'', u'RequiresClosing': False, u'PlayableStreamFileNames': [], u'MediaStreams': [], u'ReadAtNativeFramerate': False, u'RequiredHttpHeaders': {}, u'SupportsTranscoding': True, u'SupportsDirectPlay': True, u'ETag': u'b8251b25dc75049a85dd83c263516355', u'Formats': [], u'RequiresOpening': False, u'Type': u'Default', u'Id': u'd7997dbfd4b46f6aa8c2494c53f1e146'}], u'CommunityRating': 7, u'SeasonId': u'7c9957bfc30df9261151f7ccc986ac61', u'UserData': {u'PlayCount': 0, u'Key': u'281614002001', u'PlaybackPositionTicks': 0, u'IsFavorite': False, u'Played': False}, u'Studios': [], u'IndexNumber': 1, u'People': [], u'Overview': u"A man is found dead in a dog park, and Lieutenant Atkins doesn't think Tribeca is ready for the case because she hates dogs and just woke up from a coma.", u'ParentThumbImageTag': u'a374f7e7086e35d96d7bf8b05c44c54e', u'SeriesPrimaryImageTag': u'9075fccd054f2a1effc08136a5e7c587', u'DateCreated': u'2016-03-30T05:11:19.6918257Z', u'VoteCount': 2, u'ImageTags': {}, u'ParentThumbItemId': u'241018ae10b45c15978257fab2eec03b', u'Id': u'd7997dbfd4b46f6aa8c2494c53f1e146'}

  • Like 1
Link to comment
Share on other sites

Angelblue05

Perfect, thanks for this. I will look to see what can be done to prevent such issue in the future. With the current build, I just set it to ignore any errors, that's why it worked. However, it's not great way of doing things. For some reason, the episodes are virtual, and are not filtered out of the list.

Edited by Angelblue05
Link to comment
Share on other sites

Angelblue05

The issue should be resolved with the next beta version 2.2.22. Since you are using stable, just keep using the build I provided until a new stable update is released (unless you want to switch to beta, that is). :)

  • Like 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...