Jump to content

[Debian] Emby won't start - Why?


Go to solution Solved by hurricanehrndz,

Recommended Posts

ThermoDust
Posted

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

Posted

go to

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

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

ThermoDust
Posted

Okay.

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

Posted

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.

ThermoDust
Posted

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

Posted

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

ThermoDust
Posted

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

Posted

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.

ThermoDust
Posted

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

Posted

Try going through all of the options.xml files under the root/default folder.

ThermoDust
Posted

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.

ThermoDust
Posted

Or files under root/default

ThermoDust
Posted

Anything more we can do?

Posted

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

How can I update to the beta? It won't start.

Posted

Install it over the top.

ThermoDust
Posted

Where can I download the beta?

Posted

Just follow the debian install instructions on the website.

ThermoDust
Posted

Wow - I am blind. Thought I checked that area. Trying now thanks.

ThermoDust
Posted

 

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

In the advanced section.

 

Report https as external address

External domain

Custom certificate path:

ThermoDust
Posted

 

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)

ThermoDust
Posted

 

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
 
hurricanehrndz
Posted

What was the port for SSL?

 

Sent from my ONEPLUS A3000 using Tapatalk

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