Tolotos 61 Posted February 28, 2016 Posted February 28, 2016 Hi, I got an error during the incremental scan with the message to post here. 19:45:01 T:4228 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\RGU\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 873, in run self.run_internal() File "C:\Users\RGU\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 956, in run_internal self.incrementalSync() File "C:\Users\RGU\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 816, in incrementalSync doupdate = items_process.itemsbyId(sorted_items, "added", pDialog) File "C:\Users\RGU\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\itemtypes.py", line 186, in itemsbyId actions[process](itemlist, pdialog) File "C:\Users\RGU\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\itemtypes.py", line 1700, in added self.added_album(all_albums['Items'], pdialog) File "C:\Users\RGU\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\itemtypes.py", line 1716, in added_album self.added_song(all_songs['Items'], pdialog) File "C:\Users\RGU\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\itemtypes.py", line 1729, in added_song self.add_updateSong(song) File "C:\Users\RGU\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\itemtypes.py", line 2252, in add_updateSong artwork.addArtwork(allart, songid, "song", kodicursor) File "C:\Users\RGU\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\artwork.py", line 369, in addArtwork cursor=cursor) File "C:\Users\RGU\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\artwork.py", line 418, in addOrUpdateArt self.deleteCachedArtwork(url) File "C:\Users\RGU\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\artwork.py", line 461, in deleteCachedArtwork cursor.execute("SELECT cachedurl FROM texture WHERE url = ?", (url,)) OperationalError: database is locked19:45:06 T:8584 NOTICE: Thread FileCache start, auto delete: false I'm using the latest stable Emby sync plugin and the latest stable Kodi plugin. -- Tolotos
Angelblue05 4132 Posted February 28, 2016 Posted February 28, 2016 If you restart kodi, do you still face this error? Sent from my iPhone using Tapatalk
Tolotos 61 Posted February 29, 2016 Author Posted February 29, 2016 Yes, the error repeats. But it looks like the sync goes forward at every step. I didn't change my emby library but it looks like a complete update.
Angelblue05 4132 Posted February 29, 2016 Posted February 29, 2016 Ok, I have a build for you to test. It should help with this. For some reason, when trying to read your textures13.db , it's locked. We don't have control over this, the best I can do is ensure when it happens, that it doesn't crash the add-on. Give me a few. Sent from my iPhone using Tapatalk
Angelblue05 4132 Posted March 2, 2016 Posted March 2, 2016 Let me know if the beta version 2.2.5 resolves this issue. Thanks.
Tolotos 61 Posted March 2, 2016 Author Posted March 2, 2016 I updated to the latest beta repo (http://kodi.emby.media/repository.beta.emby.kodi-1.0.5.zip) and did a full reset of the database. Now the error is immediately after the start of Kodi: 19:43:01 T:11140 NOTICE: EMBY Service -> ======== START EMBY ========19:43:01 T:11140 NOTICE: EMBY Service -> Platform: Windows19:43:01 T:11140 NOTICE: EMBY Service -> KODI Version: 15.2 Git:20151019-02e701319:43:01 T:11140 NOTICE: EMBY Service -> EMBY Version: 2.2.519:43:01 T:11140 NOTICE: EMBY Service -> Using plugin paths: True19:43:01 T:11140 NOTICE: EMBY Service -> Log Level: 019:43:01 T:11240 NOTICE: Thread LanguageInvoker start, auto delete: false19:43:01 T:11236 NOTICE: EMBY UserClient -> ----===## Starting UserClient ##===----19:43:01 T:9988 NOTICE: Thread PVRGUIInfo start, auto delete: false19:43:01 T:11240 NOTICE: -->Python Interpreter Initialized<--19:43:01 T:10860 NOTICE: metahandler: Initializing MetaHandlers version: 2.9.019:43:01 T:10860 NOTICE: metahandler: Loading sqlite3 as DB engine version: 3.8.619:43:02 T:9540 NOTICE: EMBY WebSocket_Client -> ----===## Starting WebSocketClient ##===----19:43:02 T:7960 NOTICE: EMBY LibrarySync -> ---===### Starting LibrarySync ###===---19:43:02 T:7960 NOTICE: EMBY LibrarySync -> Database version: 2.2.419:43:05 T:5156 NOTICE: EPG::CEpgContainer::Start - EPG thread started19:43:05 T:11024 NOTICE: Thread EPGUpdater start, auto delete: false19:43:13 T:7960 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\RGU\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 925, in run self.run_internal() File "C:\Users\RGU\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 1000, in run_internal librarySync = self.startSync() File "C:\Users\RGU\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 99, in startSync completed = self.fullSync() File "C:\Users\RGU\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 268, in fullSync self.maintainViews(embycursor, kodicursor) File "C:\Users\RGU\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 457, in maintainViews vnodes.viewNode(sorted_views.index(foldername), foldername, mediatype, ValueError: u'YouTube' is not in list19:43:18 T:10576 NOTICE: Storing total System Uptime19:43:18 T:10576 NOTICE: Saving settings -- Tolotos
Angelblue05 4132 Posted March 2, 2016 Posted March 2, 2016 Gah. I'll fix this asap. Sent from my iPhone using Tapatalk
Tolotos 61 Posted March 2, 2016 Author Posted March 2, 2016 After deleting the settings as I found in another thread I get: 19:57:20 T:8956 ERROR: Exception in thread Thread-9: 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\RGU\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\userclient.py", line 457, in run self.authenticate() File "C:\Users\RGU\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\userclient.py", line 352, in authenticate heading="%s %s" % (lang(33008), username), UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)19:57:21 T:10792 NOTICE: EMBY Service -> Not authenticated yet. There are non ASCII characters in my user name. This error comes over and over again!!!!! 1
Angelblue05 4132 Posted March 2, 2016 Posted March 2, 2016 @@Tolotos Can I ask what media type Youtube is?
Angelblue05 4132 Posted March 2, 2016 Posted March 2, 2016 (edited) @@Tolotos Install this build over. It should correct the ascii error (we are in transition of getting strings translated). This is why it's beta. Still need to fix the view error caused by this youtube library entry. I've added additional logging for this, please enable info logging in the add-on settings and post your complete log. Thanks. Edited March 2, 2016 by Angelblue05
Angelblue05 4132 Posted March 2, 2016 Posted March 2, 2016 (edited) Sorry something went wrong when attaching the build to my previous post (it said it was 1byte). It should be fine now. Edited March 2, 2016 by Angelblue05
Tolotos 61 Posted March 2, 2016 Author Posted March 2, 2016 (edited) YouTube is a library containing videos I recorded from Youtube. 20:22:07 T:8492 NOTICE: EMBY DownloadUtils -> logMsg : === ENTER downloadUrl ===20:22:07 T:8492 NOTICE: EMBY DownloadUtils -> logMsg : http://192.168.178.20:8096/emby/Sessions?DeviceId=1C8CD168577C46338E380A13EE0039E6&format=json20:22:07 T:8492 NOTICE: EMBY DownloadUtils -> logMsg : ====== 200 Success ======20:22:07 T:8492 NOTICE: EMBY DownloadUtils -> logMsg : Response: [{u'UserName': u'R\xfcdiger', u'DeviceName': u'Kodi-NB395', u'LastActivityDate': u'2016-03-02T19:21:56.0438763Z', u'ApplicationVersion': u'2.2.5', u'QueueableMediaTypes': [], u'UserPrimaryImageTag': u'816365284b994029a3dbcefc8f4b839d', u'UserId': u'a8cb22e8bf16556402a1b9bd7ddab4c5', u'SupportsRemoteControl': True, u'Client': u'Kodi', u'SupportedCommands': [u'MoveUp', u'MoveDown', u'MoveLeft', u'MoveRight', u'Select', u'Back', u'ToggleContextMenu', u'ToggleFullscreen', u'ToggleOsdMenu', u'GoHome', u'PageUp', u'NextLetter', u'GoToSearch', u'GoToSettings', u'PageDown', u'PreviousLetter', u'TakeScreenshot', u'VolumeUp', u'VolumeDown', u'ToggleMute', u'SendString', u'DisplayMessage', u'SetAudioStreamIndex', u'SetSubtitleStreamIndex', u'Mute', u'Unmute', u'SetVolume', u'Play', u'Playstate', u'PlayNext'], u'AdditionalUsers': [], u'PlayableMediaTypes': [u'Audio', u'Video'], u'PlayState': {u'CanSeek': False, u'IsMuted': False, u'RepeatMode': u'RepeatNone', u'IsPaused': False}, u'Id': u'68e82979fb4a3454685ebffbcb8c62d1', u'DeviceId': u'1C8CD168577C46338E380A13EE0039E6'}]20:22:07 T:8492 NOTICE: EMBY DownloadUtils -> logMsg : Session: [{u'UserName': u'R\xfcdiger', u'DeviceName': u'Kodi-NB395', u'LastActivityDate': u'2016-03-02T19:21:56.0438763Z', u'ApplicationVersion': u'2.2.5', u'QueueableMediaTypes': [], u'UserPrimaryImageTag': u'816365284b994029a3dbcefc8f4b839d', u'UserId': u'a8cb22e8bf16556402a1b9bd7ddab4c5', u'SupportsRemoteControl': True, u'Client': u'Kodi', u'SupportedCommands': [u'MoveUp', u'MoveDown', u'MoveLeft', u'MoveRight', u'Select', u'Back', u'ToggleContextMenu', u'ToggleFullscreen', u'ToggleOsdMenu', u'GoHome', u'PageUp', u'NextLetter', u'GoToSearch', u'GoToSettings', u'PageDown', u'PreviousLetter', u'TakeScreenshot', u'VolumeUp', u'VolumeDown', u'ToggleMute', u'SendString', u'DisplayMessage', u'SetAudioStreamIndex', u'SetSubtitleStreamIndex', u'Mute', u'Unmute', u'SetVolume', u'Play', u'Playstate', u'PlayNext'], u'AdditionalUsers': [], u'PlayableMediaTypes': [u'Audio', u'Video'], u'PlayState': {u'CanSeek': False, u'IsMuted': False, u'RepeatMode': u'RepeatNone', u'IsPaused': False}, u'Id': u'68e82979fb4a3454685ebffbcb8c62d1', u'DeviceId': u'1C8CD168577C46338E380A13EE0039E6'}]20:22:07 T:8492 NOTICE: EMBY DownloadUtils -> logMsg : SessionId: 68e82979fb4a3454685ebffbcb8c62d120:22:08 T:11728 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\RGU\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 926, in run self.run_internal() File "C:\Users\RGU\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 1001, in run_internal librarySync = self.startSync() File "C:\Users\RGU\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 99, in startSync completed = self.fullSync() File "C:\Users\RGU\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 268, in fullSync self.maintainViews(embycursor, kodicursor) File "C:\Users\RGU\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\librarysync.py", line 458, in maintainViews vnodes.viewNode(sorted_views.index(foldername), foldername, mediatype, ValueError: u'YouTube' is not in list20:22:11 T:10508 NOTICE: Storing total System Uptime20:22:11 T:10508 NOTICE: Saving settings EDIT: Sorry I copied the wrong data Edited March 2, 2016 by Tolotos
Angelblue05 4132 Posted March 2, 2016 Posted March 2, 2016 (edited) @@Tolotos Make sure you installed the build I posted. Your log does not show the fixes for the username, but they are in the zip I provided. Line 352 looks like: heading="%s %s" % (lang(33008), username.decode('utf-8')), Edited March 2, 2016 by Angelblue05
Angelblue05 4132 Posted March 2, 2016 Posted March 2, 2016 (edited) @@Tolotos Post the full log. I'm missing the additional logging lines in your edited post. Edited March 2, 2016 by Angelblue05
Angelblue05 4132 Posted March 2, 2016 Posted March 2, 2016 (edited) Thanks looking into it right now. Edit: You have folders in the youtube view right? I found the issue, working on a fix right now. Edited March 2, 2016 by Angelblue05
Angelblue05 4132 Posted March 2, 2016 Posted March 2, 2016 (edited) @@Tolotos Let me know if this build fixes it. Edited March 2, 2016 by Angelblue05
Angelblue05 4132 Posted March 2, 2016 Posted March 2, 2016 @@Tolotos Thanks for this. I think I got this right this time. 1
Tolotos 61 Posted March 2, 2016 Author Posted March 2, 2016 (edited) Thanks, the initial scan is now running - 15TB to scan (incl. >10000 songs) - 2-3h time to drink some beer. EDIT: What the hell is this? 10min and it's finish! Congratulation guys - but just keep in mind: every string (for the non programmers: not the peace some ladys wear) can contain non ASCII ;-) Edited March 2, 2016 by Tolotos 1
Angelblue05 4132 Posted March 2, 2016 Posted March 2, 2016 Thanks, the initial scan is now running - 15TB to scan (incl. >10000 songs) - 2-3h time to drink some beer. EDIT: What the hell is this? 10min and it's finish! Congratulation guys - but just keep in mind: every string (for the non programmers: not the peace some ladys wear) can contain non ASCII ;-) Haha, that makes more sense... I worked really hard to speed up the syncing process. I will pay close attention whilst I finish adding our strings for translation. Thanks again. Let me know if you face the database locked issue, otherwise I will consider this thread "complete". 1
Tolotos 61 Posted March 2, 2016 Author Posted March 2, 2016 Haha, that makes more sense... I worked really hard to speed up the syncing process. I will pay close attention whilst I finish adding our strings for translation. Thanks again. Let me know if you face the database locked issue, otherwise I will consider this thread "complete". Will the fix added to the stable version? I won't set my "production" systems to the beta versions. The last time I swiched to the beta my family was very angry as the movie box was not working for some days.
Angelblue05 4132 Posted March 2, 2016 Posted March 2, 2016 (edited) I'll have a new stable out by Monday- if not sooner, to fix newly found issues. Edited March 2, 2016 by Angelblue05 1
Tolotos 61 Posted March 2, 2016 Author Posted March 2, 2016 It looks like there is a problem with profile support. I logged in as a "No Masteruser" and I was asked to rebuild the database for this new plgunin version. I said yes to all questions (delete database, delete thumbs, delete settings) and restarted Kodi. Now the "ValueError: u'Sport' is not in list" apeared in the log. kodi.log The "Masteruser" is working but my children profiles still shows this error. -- Tolotos
Angelblue05 4132 Posted March 2, 2016 Posted March 2, 2016 Hmm, that's weird. They have access to Sport, but it's not part of their view library? Is it also a grouped folder (under user preferences)? Let me know.
Recommended Posts