Jump to content

Emby doesnt start anymore.


kuri

Recommended Posts

Hello, since my last update of emby (3.2.12-1 -> 3.2.25.0-1), emby refuses to start.

 

My last update issue was : https://emby.media/community/index.php?/topic/41309-archlinux-latest-update-broke-emby-crash-on-start/&do=findComment&comment=384878

 

This time, the problem is different. Neither setting PROGRAM_DATA in /etc/conf.d/emby nor redoing my link /home/media/emby -> /var/lib/emby solves the issue.

 

I attached latest server logs.

 

I wish i was able to understand those backtraces.

Link to comment
Share on other sites

Hi @@kuri, we're seeing some problems with the mono 5.0 runtime, but unfortunately only on select systems and it looks like yours appears to be one of them. Here's what I would try, in this order:

 

- Update to mono 5.0.1.1 and see if this resolves it. It has for some, but unfortunately not for others.

 

- If this doesn't resolve it, then try removing all plugin dll files from this folder:

/home/media/emby

If this still doesn't resolve it, then reverting to the mono runtime 4.8.1 will do the job. There was one other arch linux user that reported this, see here:

https://emby.media/community/index.php?/topic/13120-arch-linux/?p=464286

 

Thanks.

Link to comment
Share on other sites

In comment #3, i said i already removed all the plugins, and that the issue is solved :D

 

My last question is : Is it possible to make sure that a plugin doesnt make the whole emby server to stay down, after an emby-server update ?

 

As i update emby using the package manager, while plugins are updated within emby itself, it makes a desync, and this situation would need more control, imo

Link to comment
Share on other sites

We do have safeguards against plugin loading failures but that is a new one that we haven't seen before, and it's been difficult to isolate and trap. We will continue to work on refining it though.

 

Thanks for the feedback.

Link to comment
Share on other sites

Ah! a new problem arise!

 

I dont know when it happenned, but this morning, it was all fine.

This evening, all my medias disappeared from emby-server!

 

They still exists on disk.

One thing interesting is that i got ~ 200GB freed since then on my disk drive.

 

I am looking at emby-server logs to see if i can extract any relevant informations.

Link to comment
Share on other sites

Please just attach the complete log file rather than trying to extract snippets. thanks.

Link to comment
Share on other sites

2017-07-17 15:00:32.2145 Info TaskManager: Executing Scan media library
2017-07-17 15:00:32.2282 Info App: Validating media library
2017-07-17 15:00:32.4344 Info App: Deleting item, Type: Folder, Name: Emissions, Path: /home/media/Emissions, Id: a17754f1-52c8-d45f-39a2-6a230c9a3fbb
2017-07-17 15:01:09.5577 Info App: Deleting item, Type: Folder, Name: Films, Path: /home/media/Films, Id: 02149861-2f2f-59b1-49ca-eecdf0d629fd
2017-07-17 15:02:46.2480 Info App: Deleting item, Type: Folder, Name: Musique, Path: /home/media/Musique, Id: bb1d0901-f71e-f41f-0268-380c45616d86
2017-07-17 15:04:26.8486 Info HttpClient: HttpClientManager POST: https://connect.emby.media/service/Servers?id=b13e8da8d72e86e5a41a4bc3c95e3c00
2017-07-17 15:04:26.9875 Info HttpClient: HttpClientManager GET: https://connect.emby.media/service/ServerAuthorizations?serverId=b13e8da8d72e86e5a41a4bc3c95e3c00
2017-07-17 15:07:59.3162 Info App: Deleting item, Type: Folder, Name: Series, Path: /home/media/Series, Id: f446f06d-2aa8-cbbd-54fc-b4d52f10789f
2017-07-17 15:10:05.0543 Info App: Deleting item, Type: Folder, Name: Series.Animes, Path: /home/media/Series.Animes, Id: 409868d9-b12e-3e6b-a9c2-c694f86a5a09
2017-07-17 15:10:43.3101 Info App: Deleting item, Type: Folder, Name: Spectacles, Path: /home/media/Spectacles, Id: 4da58a65-bc41-437e-ad11-daa78565d83c
2017-07-17 15:10:43.7722 Info App: Deleting item, Type: Folder, Name: Animes, Path: /home/media/Animes, Id: cfc79a73-133c-799b-ba44-7bc14c043fea
2017-07-17 15:10:52.8682 Info App: Deleting item, Type: CollectionFolder, Name: Musique, Path: /var/lib/emby/root/default/Musique, Id: e77c8170-d950-ca81-7a74-599885434ee7
2017-07-17 15:10:54.9871 Info App: Deleting item, Type: CollectionFolder, Name: Films, Path: /var/lib/emby/root/default/Films, Id: 5a7b80b8-c092-9ebc-40ab-5992985d0b1a
2017-07-17 15:10:56.3016 Info App: Deleting item, Type: CollectionFolder, Name: Series Animes, Path: /var/lib/emby/root/default/Series Animes, Id: dbaf152a-836b-b2eb-0283-e3bfe12c77d5
2017-07-17 15:10:58.9502 Info App: Deleting item, Type: CollectionFolder, Name: Spectacles, Path: /var/lib/emby/root/default/Spectacles, Id: 1bd7bb82-afca-c5df-2344-8ae7aba644bc
2017-07-17 15:10:59.4706 Info App: Deleting item, Type: CollectionFolder, Name: Series, Path: /var/lib/emby/root/default/Series, Id: 8f243a97-7b16-ae6b-73de-82cfadee0bc5
2017-07-17 15:11:00.3610 Info App: Deleting item, Type: CollectionFolder, Name: Emissions, Path: /var/lib/emby/root/default/Emissions, Id: 15761fb6-2b30-71ef-e645-8ffda80ea405
2017-07-17 15:11:00.3625 Info App: Deleting item, Type: CollectionFolder, Name: Animes, Path: /var/lib/emby/root/default/Animes, Id: 0cdacfc3-046a-96dd-d2f2-071b640ff229

It seems that auto scan from 15:00 deleted everything

Link to comment
Share on other sites

If i launch another media scan :

2017-07-17 17:49:23.9475 Info App: Validating media library
2017-07-17 17:49:24.0241 Info HttpServer: HTTP GET http://video.friloux.me:8096/emby/ScheduledTasks?IsEnabled=true. UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
2017-07-17 17:49:24.0277 Info HttpServer: HTTP Response 200 to 77.147.234.178. Time: 4ms. http://video.friloux.me:8096/emby/ScheduledTasks?IsEnabled=true 
2017-07-17 17:49:24.7099 Info Auto Box Sets: Executing Automatic BoxSet creation.  Found 0 potential box sets.
2017-07-17 17:49:24.7099 Info Auto Box Sets: Automatic BoxSet creation completed.
2017-07-17 17:49:24.7589 Info TaskManager: Scan media library Completed after 0 minute(s) and 0 seconds
2017-07-17 17:49:24.7595 Info LibraryMonitor: Watching directory /var/lib/emby/root/default
2017-07-17 17:49:24.7595 Info ServerManager: Sending web socket message ScheduledTaskEnded
2017-07-17 17:49:24.7595 Info TaskManager: ExecuteQueuedTasks
2017-07-17 17:49:29.7790 Info HttpServer: HTTP GET http://video.friloux.me:8096/emby/Users/9dbd6413f99942d6b1017c3a2f04e04f/Items?Recursive=true&Limit=3&Filters=IsNotFolder&SortBy=DateCreated&SortOrder=Descending&Ids=ce1c6c7947c82c9df8ac6f2f369923c9%2C5ad1b8ac4d91c1d93c9236dfd4d7f34b%2Ccaa50db11afe9776630ef976bd0c742d%2C3240746ad552de50224113fd6a1739b1%2Cb143a3cef7ad495d47ea06dd39b94b6b%2Cd7c7240218188ba6c7529636e3c91a08%2Ca616fe4b8b67027867999969b87aa125&MediaTypes=Audio%2CVideo&EnableTotalRecordCount=false. UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
2017-07-17 17:49:29.7877 Info HttpServer: HTTP Response 200 to 77.147.234.178. Time: 9ms. http://video.friloux.me:8096/emby/Users/9dbd6413f99942d6b1017c3a2f04e04f/Items?Recursive=true&Limit=3&Filters=IsNotFolder&SortBy=DateCreated&SortOrder=Descending&Ids=ce1c6c7947c82c9df8ac6f2f369923c9%2C5ad1b8ac4d91c1d93c9236dfd4d7f34b%2Ccaa50db11afe9776630ef976bd0c742d%2C3240746ad552de50224113fd6a1739b1%2Cb143a3cef7ad495d47ea06dd39b94b6b%2Cd7c7240218188ba6c7529636e3c91a08%2Ca616fe4b8b67027867999969b87aa125&MediaTypes=Audio%2CVideo&EnableTotalRecordCount=false 
2017-07-17 17:49:29.8597 Info HttpServer: HTTP GET http://video.friloux.me:8096/web/bower_components/emby-webcomponents/notifications/notificationicon.png. UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
2017-07-17 17:49:29.8605 Info HttpServer: HTTP Response 304 to 77.147.234.178. Time: 1ms. http://video.friloux.me:8096/web/bower_components/emby-webcomponents/notifications/notificationicon.png 
2017-07-17 17:49:29.8637 Info HttpServer: HTTP GET http://video.friloux.me:8096/web/bower_components/emby-webcomponents/notifications/badge.png. UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
2017-07-17 17:49:29.8645 Info HttpServer: HTTP Response 304 to 77.147.234.178. Time: 1ms. http://video.friloux.me:8096/web/bower_components/emby-webcomponents/notifications/badge.png 
2017-07-17 17:49:29.9260 Info HttpServer: HTTP GET http://video.friloux.me:8096/web/bower_components/emby-webcomponents/notifications/notificationicon.png. UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
2017-07-17 17:49:29.9268 Info HttpServer: HTTP Response 304 to 77.147.234.178. Time: 1ms. http://video.friloux.me:8096/web/bower_components/emby-webcomponents/notifications/notificationicon.png 
2017-07-17 17:49:29.9311 Info HttpServer: HTTP GET http://video.friloux.me:8096/web/bower_components/emby-webcomponents/notifications/badge.png. UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
2017-07-17 17:49:29.9320 Info HttpServer: HTTP Response 304 to 77.147.234.178. Time: 1ms. http://video.friloux.me:8096/web/bower_components/emby-webcomponents/notifications/badge.png 
2017-07-17 17:49:29.9913 Info HttpServer: HTTP GET http://video.friloux.me:8096/web/bower_components/emby-webcomponents/notifications/notificationicon.png. UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
2017-07-17 17:49:29.9921 Info HttpServer: HTTP Response 304 to 77.147.234.178. Time: 1ms. http://video.friloux.me:8096/web/bower_components/emby-webcomponents/notifications/notificationicon.png 
2017-07-17 17:49:29.9969 Info HttpServer: HTTP GET http://video.friloux.me:8096/web/bower_components/emby-webcomponents/notifications/badge.png. UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
2017-07-17 17:49:29.9977 Info HttpServer: HTTP Response 304 to 77.147.234.178. Time: 1ms. http://video.friloux.me:8096/web/bower_components/emby-webcomponents/notifications/badge.png 

So it doesnt seem to be able to find anything, while i do have all the files on disk, with correct permissions (nothing changed on disk)

Link to comment
Share on other sites

Ok, so.

 

I had :

[root@friloux ~]# cat /etc/conf.d/emby-server 
MONO=/usr/bin/mono
FFMPEG=/usr/bin/ffmpeg
FFPROBE=/usr/bin/ffprobe
PROGRAM_DATA=/home/media/emby

When starting media scan, all logs are talking about /var/lib/emby.

And autoscan only lasts 1 second.

 

I modified the file to :

MONO=/usr/bin/mono
FFMPEG=/usr/bin/ffmpeg
FFPROBE=/usr/bin/ffprobe
PROGRAM_DATA=/var/lib/emby

Its scanning everything again. getting movies added one per one.

Starting from scratch, now, i guess its going to take a loooooooooong time to get all fixed

Link to comment
Share on other sites

Thanks for the feedback. So it sounds like this only occurred due to customization of that file. Thanks.

Link to comment
Share on other sites

Thanks for the feedback. So it sounds like this only occurred due to customization of that file. Thanks.

 

Yes, as it is the "best way" to store emby's data to another location (my / partition isnt over 200GB, as its only 20GB).

 

There is 2 possibilities :

1/ Remove /var/lib/emby and do ln -s /path/your/emby/data /var/lib/emby

    The problem that arise with that, is that EVERY package update will erase your symbolic link to create an empty directory.

    So this will lead to making emby-server unable to start until you make your symlink again.

2/ Edit this configuration file that sets env variables to define the PROGRAM_DATA var to /path/your/emby/data.

    This will survive updates, until one function in emby doesnt handle all this very well :)

 

If there is a third option, im interested.

Edited by kuri
Link to comment
Share on other sites

The other option would be to just not allow customizing it and use the Emby UI to customize paths just like the rest of the users on other platforms do.

Link to comment
Share on other sites

There is an option to override path of /var/lib/emby/metadata from the web UI ?

I can see for /var/lib/emby/cache, not metadata.

Edited by kuri
Link to comment
Share on other sites

There is an option to override path of /var/lib/emby/metadata from the web UI ?

I can see for /var/lib/emby/cache, not metadata.

 

Yes, there is.

Link to comment
Share on other sites

Oh, ok i finally found it, its just not where i was looking for.

Thx for the information ! going to test it.

Link to comment
Share on other sites

well, added this line to my fstab :

/home/media/emby	/var/lib/emby	none		defaults,bind 0 0

This should solve all my actuals problems :

- emby-server package would not delete anything.

- emby-server would not get a bug due to PROGRAM_DATA being set to a different value than default.

- I can save disk space on /, having cache/metadata/data on another partition.

Link to comment
Share on other sites

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...