Jump to content

database or disk is full exits sync thread without proper error message


WhiteHatTux

Recommended Posts

WhiteHatTux

Hi guys,

 

environment:

12:36:57.018 T:1945465408  NOTICE: Starting Kodi (17.6 Git:a9a7a20). Platform: Linux ARM 32-bit
12:36:57.018 T:1945465408  NOTICE: Using Release Kodi x32 build (version for Raspberry Pi)
12:36:57.018 T:1945465408  NOTICE: Kodi compiled Apr 13 2018 by GCC 6.2.0 for Linux ARM 32-bit version 4.9.80 (264528)
12:36:57.018 T:1945465408  NOTICE: Running on LibreELEC (official): 8.2.5, kernel: Linux ARM 32-bit version 4.9.80
12:36:57.019 T:1945465408  NOTICE: FFmpeg version/source: ffmpeg-3.1-kodi
12:37:02.977 T:1787818912  NOTICE: EMBY.service -> Delaying emby startup by: 0 sec...
12:37:03.154 T:1787818912  NOTICE: EMBY.service_entry -> ======== START EMBY ========
12:37:03.226 T:1787818912  NOTICE: EMBY.service_entry -> Python Version: 2.7.13 (default, Mar 24 2018, 16:37:30) 
12:37:03.553 T:1787818912  NOTICE: EMBY.service_entry -> Platform: Linux/RPi
12:37:03.562 T:1787818912  NOTICE: EMBY.service_entry -> KODI Version: 17.6 Git:a9a7a20
12:37:03.572 T:1787818912  NOTICE: EMBY.service_entry -> EMBY Version: 3.0.34
12:37:03.585 T:1787818912  NOTICE: EMBY.service_entry -> Using plugin paths: True
12:37:03.596 T:1787818912  NOTICE: EMBY.service_entry -> Log Level: 1

Problem:

 

Yesterday the emby addon for kodi started acting weird. It just showed me the message along the lines of "The library sync thread exited unexpectedly. Please report this in the forum".

I started digging around in the logs and this is the stacktrace, that is shown for kodi crash log:

2:37:20.897 T:1486168992  NOTICE: EMBY.artwork -> Updating Art url for thumb kodiId: 865 ({emby-server}/emby/Items/f51b0fde315524be0065bf9a19e97a3f/Images/Primary?MaxWidth=400&MaxHeight=400&Index=0&Tag=fa9b2ab8ac8b83d1e8169e1a5f11127d) -> ({emby-server}/emby/Items/f51b0fde315524be0065bf9a19e97a3f/Images/Primary?MaxWidth=400&MaxHeight=400&Index=0&Tag=88b0031d1d78fb62196e195e863b9e72)
12:37:20.907 T:1486168992  NOTICE: EMBY.database -> ERROR:: Type: <class 'sqlite3.OperationalError'> Value: database or disk is full
12:37:20.918 T:1486168992  NOTICE: EMBY.database -> number of rows updated: 8
12:37:20.927 T:1486168992  NOTICE: EMBY.database -> commit: /storage/.kodi/userdata/Database/MyVideos107.db
12:37:20.936 T:1486168992  NOTICE: EMBY.database -> closing: /storage/.kodi/userdata/Database/MyVideos107.db - 1559590480
12:37:20.948 T:1486168992  NOTICE: EMBY.database -> ERROR:: Type: <class 'sqlite3.OperationalError'> Value: database or disk is full
12:37:20.957 T:1486168992  NOTICE: EMBY.database -> number of rows updated: 3
12:37:21.912 T:1486168992  NOTICE: EMBY.database -> commit: /storage/.kodi/userdata/Database/emby.db
12:37:21.921 T:1486168992  NOTICE: EMBY.database -> closing: /storage/.kodi/userdata/Database/emby.db - 1560031408
12:37:22.117 T:1486168992  NOTICE: EMBY.librarysync -> ERROR:: database or disk is full
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/librarysync.py", line 674, in run
                                                self.run_internal()
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/librarysync.py", line 771, in run_internal
                                                librarySync = self.startSync()
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/librarysync.py", line 109, in startSync
                                                completed = ManualSync().sync()
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/librarysync.py", line 860, in sync
                                                return self.fullSync(manualrun=True)
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/librarysync.py", line 305, in fullSync
                                                completed = process[itemtype](cursor_emby, cursor_video, pDialog)
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/librarysync.py", line 863, in movies
                                                return Movies(embycursor, kodicursor, pdialog).compare_all()
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/objects/movies.py", line 80, in compare_all
                                                if not self.compare_movies(view):
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/objects/movies.py", line 100, in compare_movies
                                                return self.compare("Movie", emby_movies['Items'], movies, view)
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/objects/_common.py", line 183, in compare
                                                self.process_all(item_type, "update", emby_items, total, view)
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/objects/_common.py", line 136, in process_all
                                                process(item)
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/objects/_common.py", line 31, in wrapper
                                                return func(*args, **kwargs)
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/objects/movies.py", line 306, in add_update
                                                self.kodi_db.add_people(movieid, people, "movie")
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/objects/_kodi_common.py", line 233, in add_people
                                                add_thumbnail(person_id, person, type_)
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/objects/_kodi_common.py", line 190, in add_thumbnail
                                                self.artwork.add_update_art(thumbnail, person_id, art, "thumb", self.cursor)
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/artwork.py", line 428, in add_update_art
                                                cursor.execute(query, (image_url, kodi_id, media_type, image_type))
                                            OperationalError: database or disk is full

Well the message is pretty clear. I had configured my cache settings wrong and the disk just ran full. After deleting the junk files on the disk everything is working fine.

Maybe this exception can be caught and properly reported back to the user, so others won't have to dig in the logs to find the disk is full?

 

Best regards and thanks for creating this great software

Link to comment
Share on other sites

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