Jump to content

Initial Sync fails if storage is a network share?


Recommended Posts

darkside40
Posted (edited)

Hi there,

got a minor problem with emby for Kodi.

I simply cant complete the initial sync.

 

My clients boot Librelec via PXE, also the storage is located on this Server using a NFS share.

For standard Kodi with MySQL this works perfect, but not when using Emby. When is try to do the initial sync after quite some time it stops with a Disk I/O failure (althought i know the disk is fine).

This is what i find in the log after it:

23:50:37.598 T:140083577485056  NOTICE: EMBY.librarysync -> SyncDatabase (finished tvshows in: 1:46:51)
23:50:37.598 T:140083577485056  NOTICE: EMBY.database -> number of rows updated: 876850
23:50:39.463 T:140083185288960   ERROR: SQL: [Textures13.db] Some kind of disk I/O error occurred
                                            Query: INSERT INTO sizes (idtexture, size, usecount, lastusetime, width, height) VALUES(8103, 1, 1, CURRENT_TIMESTAMP, 400, 578)
23:50:39.463 T:140083185288960   ERROR: AddCachedTexture failed on url 'http://192.168.2.106:8096/emby/Items/b3bbc6f796d409271b03814f5a59ed06/Images/Primary/0?MaxWidth=10000&MaxHeight=10000&Format=original&Tag=840119594f31968ca8fb9cbc821c3c04'
23:50:39.942 T:140083577485056  NOTICE: EMBY.database -> ERROR:: Type: <class 'sqlite3.OperationalError'> Value: disk I/O error
23:50:39.942 T:140083577485056  NOTICE: EMBY.database -> number of rows updated: 26220
23:50:41.229 T:140083218859776   ERROR: SQL: [Textures13.db] Some kind of disk I/O error occurred
                                            Query: INSERT INTO texture (id, url, cachedurl, imagehash, lasthashcheck) VALUES(NULL, 'http://192.168.2.106:8096/emby/Items/0985df18bdd72130682deada3e6e1280/Images/Primary/0?MaxWidth=10000&MaxHeight=10000&Format=original&Tag=3319d1c526da127e614082af0ed301d2', 'd/d06cf4cf.jpg', 'd1439913969s95039', '')
23:50:41.229 T:140083218859776   ERROR: AddCachedTexture failed on url 'http://192.168.2.106:8096/emby/Items/0985df18bdd72130682deada3e6e1280/Images/Primary/0?MaxWidth=10000&MaxHeight=10000&Format=original&Tag=3319d1c526da127e614082af0ed301d2'
23:50:42.763 T:140083577485056  NOTICE: EMBY.librarysync -> ERROR:: disk I/O error
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/librarysync.py", line 619, in run
                                                self.run_internal()
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/librarysync.py", line 710, in run_internal
                                                librarySync = self.startSync()
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/librarysync.py", line 112, in startSync
                                                completed = self.fullSync()
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/librarysync.py", line 312, in fullSync
                                                % (itemtype, str(elapsedTime).split('.')[0]))
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/database.py", line 130, in __exit__
                                                self.conn.commit()
                                            OperationalError: disk I/O error

Any idea how to solve this. Maybe some sort of timing problem?

Edited by darkside40
darkside40
Posted (edited)

As a work around i used an old SSD as local storage in my clients. Now it works.

Pitty no one has an idea. 

 

I can only imagine it is a timing problem, but i have no way to trace it down.

Edited by darkside40
marcelveldt
Posted

The local database must be stored locally

 

 

Verzonden vanaf mijn iPhone met Tapatalk

darkside40
Posted

Any reason why?

I mean i dont want to share it between multiple clients because that is always a bad idea with sqlite, but it shouldnt make a difference if it is store locally or on a locally mounted nfs share.

Posted

What OS are you running Emby on?

 

Do you have mapped drives?

 

Have you reset your Kodi database on the client?

darkside40
Posted

What OS are you running Emby on?

- Libreelec 8.0.1


Do you have mapped drives?

- System boots via PXE and mounts the a NFS share as Storage

Have you reset your Kodi database on the client?

- Multiple times, also tried a second client

  • 2 weeks later...
kjp4756
Posted

What are your nfs mount options for the mounted system?  Maybe changing from sync to async may help (or vice versa).  It's been a while since I've used nfs but I figured I'd just throw it out there as an idea.

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