Jump to content
hurricanehrndz

New Emby Docker

561 posts in this topic Last Reply

Recommended Posts

15 hours ago, Plunky said:

Hi All, 

 

My emby docker keeps stopping itself, other docker are running OK.

 

Rebooted my Unraid server  but still happening. Lasts between 5 minutes to 15 minutes before it stops again.

 

I can start it up again manually but it will eventually top itself again.

 

Thanks in advance.

 

 

 

 

 

I started a post over on the Emby forums if anyone else has the same issue:

 

https://emby.media/community/index.php?/topic/61241-unraid-emby-server-issues/?p=603060

Share this post


Link to post

Same issue, disabling TheAudioDB supposedly solves this for now.

I just deleted my entire Music directory (I barely use it), and all is back to stable until they fix it (supposedly later today).

Share this post


Link to post
4 hours ago, Joseph said:

Does anyone know how to do this "vacuum" in unraid or the unraid console? It looks like you need sqlite3 but I have no idea where to get it much less how to install it on unraid. Thanks.

 

HOWTO: Periodically clean up and reindex Emby Library.db

https://emby.media/community/index.php?/topic/60715-howto-periodically-clean-up-and-reindex-emby-librarydb/

 

This would probably need to be built into the emby docker, not the unraid system.

Share this post


Link to post
5 hours ago, Joseph said:

Does anyone know how to do this "vacuum" in unraid or the unraid console? It looks like you need sqlite3 but I have no idea where to get it much less how to install it on unraid. Thanks.

 

HOWTO: Periodically clean up and reindex Emby Library.db

https://emby.media/community/index.php?/topic/60715-howto-periodically-clean-up-and-reindex-emby-librarydb/

 

 

Thanks! I just shrank my library.db file from 588MB to 477MB.  I constantly delete and re-add files, for various reasons, so Im sure the DB was quite a mess.

 

Download SQLlite3 (for windows) from here:  https://www.sqlite.org/2018/sqlite-tools-win32-x86-3240000.zip

 

Then run these commands from a Windows box (AFTER you have stopped Emby and backed up the library.db file):

c:\support\sqlite-tools-win32-x86-3240000\sqlite3.exe \\nas\cache\appdata\docker-embyserver\data\library.db "VACUUM"
c:\support\sqlite-tools-win32-x86-3240000\sqlite3.exe \\nas\cache\appdata\docker-embyserver\data\library.db "ANALYZE"
c:\support\sqlite-tools-win32-x86-3240000\sqlite3.exe \\nas\cache\appdata\docker-embyserver\data\library.db "REINDEX"

You will likely need to change the path.

 

The restart the Emby Docker.

 

 

Edited by StevenD

Share this post


Link to post

Thanks...don't see why you can't just download a sqlite package made for unraid, install it (if its not stand alone) and run the commands from the unraid terminal. But, I'll try what you said with a VM. Thanks.

Share this post


Link to post
On 9/6/2018 at 7:46 PM, StevenD said:

 

Download SQLlite3 (for windows) from here:  https://www.sqlite.org/2018/sqlite-tools-win32-x86-3240000.zip

 

Then run these commands from a Windows box (AFTER you have stopped Emby and backed up the library.db file):

Ok, so I tried this last night. Not only did I back up the library.db file, but I also copied it to another location, ran the commands (which shaved about 100M) and then copied the new file back in place. After doing that, Emby would no longer launch. So, I put the old library.db file back in place and Emby launched ok. Thoughts from anyone as to why Emby doesn't like the vacuumed library.db?

Share this post


Link to post
6 hours ago, Joseph said:

Ok, so I tried this last night. Not only did I back up the library.db file, but I also copied it to another location, ran the commands (which shaved about 100M) and then copied the new file back in place. After doing that, Emby would no longer launch. So, I put the old library.db file back in place and Emby launched ok. Thoughts from anyone as to why Emby doesn't like the vacuumed library.db?

 

I dont claim to know how sqllite3 works, nor do I know how the Emby DB works.  However, there are two more files....library.db-shm and library.db-wal.  They all have the same date on them, so I would assume they are related.

 

I would recommend backing up all three of those files, then running the command, pointing at the unraid appdata share.  I bet it failed because you were missing the other two files.

Share this post


Link to post
1 hour ago, StevenD said:

 

I dont claim to know how sqllite3 works, nor do I know how the Emby DB works.  However, there are two more files....library.db-shm and library.db-wal.  They all have the same date on them, so I would assume they are related.

 

I would recommend backing up all three of those files, then running the command, pointing at the unraid appdata share.  I bet it failed because you were missing the other two files.

I'll give that a shot.... I should probably just backup the entire appdata folder as its been awhile since I've done that.

Share this post


Link to post

Cleaning up some space on my cache drive and lowering the setting for Min Free Space resolved the Emby Docker stopping problem for me.

Share this post


Link to post
1 minute ago, dougnliz said:

Cleaning up some space on my cache drive and lowering the setting for Min Free Space resolved the Emby Docker stopping problem for me.

Where do you do that @dougnliz?

Share this post


Link to post
6 minutes ago, Joseph said:

Where do you do that @dougnliz?

Settings -> Global Share Settings under Cache Settings.  You'll need to stop the array to change it.

Share this post


Link to post
13 hours ago, dougnliz said:

Settings -> Global Share Settings under Cache Settings.  You'll need to stop the array to change it.

Thanks... mine says 2000000000, which is 2GB; so I don't think mine needs to be changed.

Share this post


Link to post
On 9/8/2018 at 4:26 PM, StevenD said:

 

I would recommend backing up all three of those files, then running the command, pointing at the unraid appdata share.  I bet it failed because you were missing the other two files.

I'll give that a shot.... I should probably just backup the entire appdata folder as its been awhile since I've done that.

 

UPDATE: Took way too long to copy the 50GB appdata folder to an SSD. Also, I found a page on the EMBY site as to why Emby was crashing on search. Turns out, according to Luke the EMBY admin, the two choices to fix the crashing are:


* Remove your music library, run a library scan, then add the music library back
* Use a database editing tool to remove or update the saved audiodb urls

 

I was unable to run the VACCUM cleaner successfully until I performed one of the two above (I used the first method.) If you want to use the 2nd one, you can follow the instructions from evil_beast666 found here in this discussion:

https://emby.media/community/index.php?/topic/61373-emby-server-crashes-when-using-search/

 

After removing the music library and adding it back, I still had to copy the library.db folder to another directory to get the VACCUM commands to work. [I think I have permission issues in my appdata folder and I'm not sure what to do... if anything at all.] However, this time when I put the file back in the appdata folder EMBY launched ok with the smaller library file. I ran a library scan just to make sure. No crashes as of yet, and everything seems to be "working", but sadly, I don't think I'm seeing any performance improvements... in fact search seems to take longer for some reason.

 

 

Edited by Joseph

Share this post


Link to post

My Emby container keeps crashing. I've reported the issue over on the Emby forums — but I have autostart set to ON for that container. Should it not restart itself automatically after a crash? 

 

(If that's not what the autostart switch does — is there a way to configure a container to always be running in unRAID?)

Share this post


Link to post

Autostart means it starts automatically when the array is started.

Edited by CHBMB

Share this post


Link to post

Auto start is exactly what it says - the docker will auto start on array start.

What you want is to add 

--restart unless-stopped

to the Extra Parameters option

Edited by ken-ji

Share this post


Link to post
1 minute ago, ken-ji said:

Auto start is exactly what it says - the docker will auto start on array start.

What you want is to add 


--restart unless-stopped

to the Extra Parameters option

 

Just what I needed — thanks!

Share this post


Link to post
1 hour ago, ElectricBadger said:

My Emby container keeps crashing. I've reported the issue over on the Emby forums — but I have autostart set to ON for that container. Should it not restart itself automatically after a crash? 

 

(If that's not what the autostart switch does — is there a way to configure a container to always be running in unRAID?)

 

Are you sure its up to date?  Mine was crashing daily a couple of updates ago.  Its been rock solid for a while now. 

Share this post


Link to post
19 hours ago, StevenD said:

 

Are you sure its up to date?  Mine was crashing daily a couple of updates ago.  Its been rock solid for a while now. 

Yup, I force updated it.

 

It's not the music library issue that everybody was happening as I never configured it for music in the first place. It seems to be crashing when trying to process a particular .ogm file.

Share this post


Link to post

hey ya - i am just new to unraid. i wanna install my emby docker and i dont know if i should go for uid 2 and gid 2 as the docker suggests or i should go for uid 99, gid 100 as the binhex emby container suggests?

 

furthermore i havent found a tutorial how i can use my iGPU from the i7700 for hardware transcoding? and should i leave the standard docker settings (folder) for transcoding or should i go for a dedicated folder?

 

thank u in advance

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.