Jump to content

[Solved] SQLiteException during library scan


Recommended Posts

Posted (edited)
If you update to "FreeNAS-Corral-MASTER-201704112014" or any update after 04/11/2017 it should be fixed!

 

OS: FreeNAS-Corral-RELEASE

Running Boot2Docker 1.12.3 - 4 CPU - 12GB Ram /w alot of free disk space running docker container "emby/embyserver" Created At 2017-03-18 15:07:12


mnt on /media type 9p (rw,relatime,dirsync,version=9p2000.L,trans=virtio,cache=mmap,msize=512000)


 

I've tried both the freenas/emby and emby/embyserver docker containers, and they both run into the same sql issue. I created a VM and passed through the same configs and media it works just fine.

 

Once the error is thrown at around like 900 the media libraries will no longer be listed on the sidebar, and the home page is blank until emby has been restarted. It processed about 404 shows out of 2k and the "Scan media library Failed after" has ranged from 4min to 46 minutes and was never fully scanned in 1 go, and If you re-scan it will throw a "Scan media library Failed" after a few seconds and it will fail until you restart.

 

Edit:

 

Here is a freenas thread with the same error "Protocol: locking protocol" https://forums.freenas.org/index.php?threads/emby-container-keeps-crashing.49593/ (unlike the thread my container/host is not crashing)

 

zS7ov5X.png

server-63625739986.txt

Edited by UU3
Happy2Play
Posted

First time seeing this "Protocol: locking protocol" error.  What is your folder structure?

Posted

First time seeing this "Protocol: locking protocol" error.  What is your folder structure?

 

what kind of folder structure are we talking about?

Happy2Play
Posted

You show you mount as folder called /media, how is the media structured in that folder?

 

example

/media/movie x/movie x.ext

/media/show/season/episode s01e01.ext

Posted (edited)

You show you mount as folder called /media, how is the media structured in that folder?

 

example

/media/movie x/movie x.ext

/media/show/season/episode s01e01.ext

 

 

/media/Series Name/Season #/series_name - S##E## - Title.ext

/media/Series Name/Season #/series_name - S##E##.ext

/media/Series Name/Season #/series_name - S##E## - Title [release group][hash].ext

(With or without S##)

Edited by UU3
Posted

I haven't seen that error before either. Here is the what the Sqlite documentation says about it:

SQLITE_PROTOCOL

This value is returned if some other process is messing with file locks and has violated the file locking protocol that SQLite uses on its rollback journal files.
Posted (edited)

 

I haven't seen that error before either. Here is the what the Sqlite documentation says about it:

SQLITE_PROTOCOL

This value is returned if some other process is messing with file locks and has violated the file locking protocol that SQLite uses on its rollback journal files.

 

Understood, I will make a bug report with FreeNAS.

 

Do you know what is the problem file? library.db?

Edited by UU3
Posted (edited)

Luke here was one fix implemented Issue fix in one software. Could this be used to fix the issue, by checking for SQLITE_BUSY or SQLITE_PROTOCOL ?

Edited by UU3
Posted (edited)

Update: Working on the issue on FreeNAS 10 Volumes with Chris Torek Updating to 10.0.2 partially fixed the issue (It would run longer I believe) but it is a SQLite or file locking issue via 9p volumes. I will mark this as solved and update main post when fixed.

You can find the progress "Bug #22601: Emby VM & Docker SQLite error when using volumes" there.

Edited by UU3
Posted

Thanks for the info !

  • 4 weeks later...
Posted

If you update to "FreeNAS-Corral-MASTER-201704112014" or any update after 04/11/2017 it should be fixed!

Posted

Thanks for the info !

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...