Jump to content

[Debian] Emby won't start - Why?


ThermoDust
Go to solution Solved by hurricanehrndz,

Recommended Posts

ThermoDust

Emby: 3.1.2-12.1

Debian: 8 w/Openmediavault 3.0.59 (Erasmus) 

 

I do not know why it won't start. Only thing I can think is because I removed the test flash drives from the machine and it can't mount the drives.

root@tictac-pc:/var/lib/emby-server/logs# systemctl status emby-server.service
● emby-server.service - Emby Media Server
   Loaded: loaded (/lib/systemd/system/emby-server.service; enabled)
   Active: failed (Result: exit-code) since Mon 2017-01-16 10:25:11 CST; 10min ago
  Process: 16446 ExecStopPost=/usr/bin/emby-server clear (code=exited, status=0/SUCCESS)
  Process: 16398 ExecStart=/usr/bin/emby-server start (code=exited, status=3)
 Main PID: 16398 (code=exited, status=3)

Jan 16 10:25:05 tictac-pc systemd[1]: Starting Emby Media Server...
Jan 16 10:25:05 tictac-pc systemd[1]: Started Emby Media Server.
Jan 16 10:25:05 tictac-pc su[16398]: Successful su for emby by root
Jan 16 10:25:05 tictac-pc su[16398]: + ??? root:emby
Jan 16 10:25:05 tictac-pc su[16398]: pam_unix(su:session): session opened for user emby by (uid=0)
Jan 16 10:25:11 tictac-pc systemd[1]: emby-server.service: main process exited, code=exited, status=3/NOTIMPLEMENTED
Jan 16 10:25:11 tictac-pc systemd[1]: Unit emby-server.service entered failed state.

server-63620159105.txt

unhandled_335f2cec-34ff-487f-9b73-75d1fbea25e2.txt

Link to comment
Share on other sites

go to

/var/lib/emby-server/root/default

and remove the folders for libraries that are no longer valid.

Link to comment
Share on other sites

ThermoDust

Okay.

So, if a hard drive fails this can happen? Or is it because 100% of the mountable items are missing? 

Link to comment
Share on other sites

We have updated the server to better handle this for the next release but in the meantime you will need to do what i described above. Thanks.

Link to comment
Share on other sites

ThermoDust

Am I removing the entire directory Movies / TV  or just the mounts within the option.xml and Movies.mblink?

Link to comment
Share on other sites

if all mounts are no  longer valid then delete the entire folder, otherwise you can just remove the individual mounts.

Link to comment
Share on other sites

ThermoDust

Did as you said and removed the folders as those were only test mounts. Still won't start.

root@tictac-pc:/var/lib/emby-server/root/default# systemctl status emby-server.service
● emby-server.service - Emby Media Server
   Loaded: loaded (/lib/systemd/system/emby-server.service; enabled)
   Active: failed (Result: exit-code) since Mon 2017-01-16 14:00:44 CST; 19s ago
  Process: 21769 ExecStopPost=/usr/bin/emby-server clear (code=exited, status=0/SUCCESS)
  Process: 21721 ExecStart=/usr/bin/emby-server start (code=exited, status=3)
 Main PID: 21721 (code=exited, status=3)

Jan 16 14:00:37 tictac-pc systemd[1]: Started Emby Media Server.
Jan 16 14:00:38 tictac-pc su[21721]: Successful su for emby by root
Jan 16 14:00:38 tictac-pc su[21721]: + ??? root:emby
Jan 16 14:00:38 tictac-pc su[21721]: pam_unix(su:session): session opened for user emby by (uid=0)
Jan 16 14:00:44 tictac-pc systemd[1]: emby-server.service: main process exited, code=exited, status=3/NOTIMPLEMENTED
Jan 16 14:00:44 tictac-pc systemd[1]: Unit emby-server.service entered failed state.
root@tictac-pc:/var/lib/emby-server/root/default# ls
root@tictac-pc:/var/lib/emby-server/root/default#

I noticed in the log it is still looking to /media/8.. 

 

2017-01-16 14:00:43.1540 Error LibraryMonitor: Error watching path: /media/84d662a6-70b9-49ec-87d3-2a8cd870b134/TV Series
 
Even after I removed the directory. As seen above by the ls command.

server-63620172038.txt

unhandled_15b50381-b0d8-4a8e-914c-00497078b5a6.txt

Link to comment
Share on other sites

Yea it might be due to info stored in the database. Those folders will contain option.xml files. For all of them, open up those files and disable the realtime monitor by setting EnableRealtimeMonitor to false.

Link to comment
Share on other sites

ThermoDust

The files don't exist anymore. I deleted the folders that had options.xml and movies.mblink

Link to comment
Share on other sites

ThermoDust

There are no folders under root/default - Those were Movies and TV but I removed them both as the drives that it was using were removed.

Link to comment
Share on other sites

You have a few options:

  • Temporarily restore the dead paths so that the server can start and you can remove them
  • Update to the beta
  • Remove your library.db database file and start again. Please note, this now contains watch data so if you go this route, hopefully you've been using the backup plugin to backup user data on a regular basis.
Link to comment
Share on other sites

ThermoDust

 

root@Tictac-PC:/var/lib/emby-server/config# systemctl status emby-server.service

● emby-server.service - Emby Media Server
   Loaded: loaded (/lib/systemd/system/emby-server.service; enabled)
   Active: failed (Result: exit-code) since Sun 2017-01-22 02:39:50 CST; 44s ago
  Process: 2370 ExecStopPost=/usr/bin/emby-server clear (code=exited, status=0/SUCCESS)
  Process: 2346 ExecStart=/usr/bin/emby-server start (code=exited, status=126)
 Main PID: 2346 (code=exited, status=126)
 
Jan 22 02:39:50 Tictac-PC systemd[1]: Started Emby Media Server.
Jan 22 02:39:50 Tictac-PC su[2346]: Successful su for emby by root
Jan 22 02:39:50 Tictac-PC su[2346]: + ??? root:emby
Jan 22 02:39:50 Tictac-PC su[2346]: pam_unix(su:session): session opened for user emby by (uid=0)
Jan 22 02:39:50 Tictac-PC systemd[1]: emby-server.service: main process exited, code=exited, status=126/n/a
Jan 22 02:39:50 Tictac-PC systemd[1]: Unit emby-server.service entered failed state.
 

 

 

I know the logs work at one time as I cleared the log folder to make it easier for myself to read a clean one but now it doesn't seem to be producing any logs. I am looking in /var/lib/emby-server/logs/
 
FYI - I enabled SSL and report wan. Rebooted server after that and now that is where I sit.
 
 
Link to comment
Share on other sites

ThermoDust

In the advanced section.

 

Report https as external address

External domain

Custom certificate path:

Link to comment
Share on other sites

ThermoDust

 

root@Tictac-PC:/var/lib/emby-server/logs# /usr/bin/emby-server start

env: /usr/lib/emby-server/x86_64-linux-gnu: Permission denied
 

 

Should I be able to run this? 

 

(Talk to me like I am two year old on this matter as I am very new to linux)

Link to comment
Share on other sites

ThermoDust

 

root@Tictac-PC:/var/lib/emby-server/logs# ls -lh /usr/lib/emby-server/

total 20K
drwxr-xr-x 3 root root 4.0K Jan 21 19:42 bin
drwxr-xr-x 3 root root 4.0K Jan 21 19:41 etc
-rwxr-xr-x 1 root root  512 Dec 28 15:23 restart.sh
drwxr-xr-x 2 root root 4.0K Jan 22 02:34 ssl
drwxr-xr-x 4 root root 4.0K Jan 21 19:41 x86_64-linux-gnu
 

 

 

 

root@Tictac-PC:/var/lib/emby-server/logs# ls -lh /usr/lib/emby-server/x86_64-linux-gnu

total 4.0M
drwxr-xr-x 4 root root  4.0K Jan 21 19:41 EmbyMagick-6.9.6
lrwxrwxrwx 1 root root    31 Dec  7 10:48 libEmbyMagickCore-6.Q8.so -> libEmbyMagickCore-6.Q8.so.2.0.0
lrwxrwxrwx 1 root root    31 Dec  7 10:48 libEmbyMagickCore-6.Q8.so.2 -> libEmbyMagickCore-6.Q8.so.2.0.0
-rw-r--r-- 1 root root  2.0M Dec  7 10:48 libEmbyMagickCore-6.Q8.so.2.0.0
lrwxrwxrwx 1 root root    31 Dec  7 10:48 libEmbyMagickWand-6.Q8.so -> libEmbyMagickWand-6.Q8.so.2.0.0
lrwxrwxrwx 1 root root    31 Dec  7 10:48 libEmbyMagickWand-6.Q8.so.2 -> libEmbyMagickWand-6.Q8.so.2.0.0
-rw-r--r-- 1 root root 1009K Dec  7 10:48 libEmbyMagickWand-6.Q8.so.2.0.0
lrwxrwxrwx 1 root root    23 Jan  9 11:01 libembysqlite3.so -> libembysqlite3.so.0.8.6
lrwxrwxrwx 1 root root    23 Jan  9 11:01 libembysqlite3.so.0 -> libembysqlite3.so.0.8.6
-rw-r--r-- 1 root root  1.1M Jan  9 11:01 libembysqlite3.so.0.8.6
drwxr-xr-x 2 root root  4.0K Jan 21 19:41 pkgconfig
 
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...