Jump to content

Emby doesn't start after upgrade to 3.4.0.0


fbrassin

Recommended Posts

fbrassin

Hello,

this morning i upgraded my emby from 3.3.1 to 3.4.0, but now it won't start.

I also tried to reinstall 3.3.1 but it doesn't start.

I have ubuntu 16.04.

What can i try to do to make it work again?

I really don't know what to do.

 

Link to comment
Share on other sites

fbrassin

Maybe this can help.

 

If i give:

$ sudo service emby-server start
start: Job failed to start
$ ps -aux | grep emby
fabio     4489  0.0  0.0  11792   920 pts/0    S+   10:53   0:00 grep --colour=auto emby

Emby doesn't start

 

So i try:

$ /etc/init.d/emby-server start
 * Starting emby-server daemon  
/etc/init.d/emby-server: riga 48: /usr/bin/emby-server: File o directory non esistente     [fail]
$ ps -aux | grep emby
fabio     4553  0.0  0.0  11792   920 pts/0    S+   10:54   0:00 grep --colour=auto emby
$ whereis emby-server
emby-server: /etc/emby-server.conf /usr/lib/emby-server

It seems there is not emby-server bin.

 

Any idea?

Link to comment
Share on other sites

manf0001

Hello, Same thing happened to me when I upgraded to 3.4 from 3.3.1.

 

I'm running centOS7

 

when I goto /usr/bin and click on the emby-server link it tells me the following:

 

This link cannot be used because its target /usr/lib/emby-server/emby-server.sh doesn't exist.

 

So I navigate to /usr/lib/emby-server/  and there are only two folders.   etc which contains EmbyMagick-6 folder and an lib64 folder which has some lib files for Magick

Link to comment
Share on other sites

manf0001

Some new information, I did find an emby-server program here:   /opt/emby-server/bin/emby-server,  I ran it and my server started.

 

But it seems I have to manually start it, if I were ever to reboot my server.   I can no longer use systemctl start emby-server.   becuase when I run that command then do a systemctl status emby-server I get the following
 

 

I've also found that if I reboot emby via the web console, it will just stop then I have to go run /opt/emby-server/bin/emby-server again

systemctl status emby-server -l
● emby-server.service - Emby Server is a personal media server with apps on just about every device.
   Loaded: loaded (/usr/lib/systemd/system/emby-server.service; enabled; vendor preset: disabled)
   Active: failed (Result: core-dump) since Thu 2018-05-03 06:42:01 EDT; 1s ago
  Process: 4421 ExecStart=/opt/emby-server/bin/emby-server (code=dumped, signal=ABRT)
 Main PID: 4421 (code=dumped, signal=ABRT)

May 03 06:42:00 localhost.localdomain emby-server[4421]: at System.IO.Directory.CreateDirectory(String path)
May 03 06:42:00 localhost.localdomain emby-server[4421]: at Emby.Server.Implementations.Logging.FileLogger..ctor(String path)
May 03 06:42:00 localhost.localdomain emby-server[4421]: at Emby.Server.Implementations.Logging.SimpleLogManager.<ReloadLogger>d__14.MoveNext()
May 03 06:42:00 localhost.localdomain emby-server[4421]: --- End of inner exception stack trace ---
May 03 06:42:00 localhost.localdomain emby-server[4421]: at System.ThrowHelper.ThrowAggregateException(List`1 exceptions)
May 03 06:42:00 localhost.localdomain emby-server[4421]: at System.Threading.Tasks.Task.WaitAll(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken)
May 03 06:42:00 localhost.localdomain emby-server[4421]: at EmbyServer.Program.Main(String[] args)
May 03 06:42:01 localhost.localdomain systemd[1]: emby-server.service: main process exited, code=dumped, status=6/ABRT
May 03 06:42:01 localhost.localdomain systemd[1]: Unit emby-server.service entered failed state.
May 03 06:42:01 localhost.localdomain systemd[1]: emby-server.service failed.

Edited by manf0001
Link to comment
Share on other sites

mastrmind11

 

Some new information, I did find an emby-server program here:   /opt/emby-server/bin/emby-server,  I ran it and my server started.

 

But it seems I have to manually start it, if I were ever to reboot my server.   I can no longer use systemctl start emby-server.   becuase when I run that command then do a systemctl status emby-server I get the following

 

 

I've also found that if I reboot emby via the web console, it will just stop then I have to go run /opt/emby-server/bin/emby-server again

systemctl status emby-server -l
● emby-server.service - Emby Server is a personal media server with apps on just about every device.
   Loaded: loaded (/usr/lib/systemd/system/emby-server.service; enabled; vendor preset: disabled)
   Active: failed (Result: core-dump) since Thu 2018-05-03 06:42:01 EDT; 1s ago
  Process: 4421 ExecStart=/opt/emby-server/bin/emby-server (code=dumped, signal=ABRT)
 Main PID: 4421 (code=dumped, signal=ABRT)

May 03 06:42:00 localhost.localdomain emby-server[4421]: at System.IO.Directory.CreateDirectory(String path)
May 03 06:42:00 localhost.localdomain emby-server[4421]: at Emby.Server.Implementations.Logging.FileLogger..ctor(String path)
May 03 06:42:00 localhost.localdomain emby-server[4421]: at Emby.Server.Implementations.Logging.SimpleLogManager.<ReloadLogger>d__14.MoveNext()
May 03 06:42:00 localhost.localdomain emby-server[4421]: --- End of inner exception stack trace ---
May 03 06:42:00 localhost.localdomain emby-server[4421]: at System.ThrowHelper.ThrowAggregateException(List`1 exceptions)
May 03 06:42:00 localhost.localdomain emby-server[4421]: at System.Threading.Tasks.Task.WaitAll(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken)
May 03 06:42:00 localhost.localdomain emby-server[4421]: at EmbyServer.Program.Main(String[] args)
May 03 06:42:01 localhost.localdomain systemd[1]: emby-server.service: main process exited, code=dumped, status=6/ABRT
May 03 06:42:01 localhost.localdomain systemd[1]: Unit emby-server.service entered failed state.
May 03 06:42:01 localhost.localdomain systemd[1]: emby-server.service failed.

So edit your systemd unit file for emby.

Link to comment
Share on other sites

fbrassin

 

Some new information, I did find an emby-server program here:   /opt/emby-server/bin/emby-server,  I ran it and my server started.

 

But it seems I have to manually start it, if I were ever to reboot my server.   I can no longer use systemctl start emby-server.   becuase when I run that command then do a systemctl status emby-server I get the following

 

 

I've also found that if I reboot emby via the web console, it will just stop then I have to go run /opt/emby-server/bin/emby-server again

systemctl status emby-server -l
● emby-server.service - Emby Server is a personal media server with apps on just about every device.
   Loaded: loaded (/usr/lib/systemd/system/emby-server.service; enabled; vendor preset: disabled)
   Active: failed (Result: core-dump) since Thu 2018-05-03 06:42:01 EDT; 1s ago
  Process: 4421 ExecStart=/opt/emby-server/bin/emby-server (code=dumped, signal=ABRT)
 Main PID: 4421 (code=dumped, signal=ABRT)

May 03 06:42:00 localhost.localdomain emby-server[4421]: at System.IO.Directory.CreateDirectory(String path)
May 03 06:42:00 localhost.localdomain emby-server[4421]: at Emby.Server.Implementations.Logging.FileLogger..ctor(String path)
May 03 06:42:00 localhost.localdomain emby-server[4421]: at Emby.Server.Implementations.Logging.SimpleLogManager.<ReloadLogger>d__14.MoveNext()
May 03 06:42:00 localhost.localdomain emby-server[4421]: --- End of inner exception stack trace ---
May 03 06:42:00 localhost.localdomain emby-server[4421]: at System.ThrowHelper.ThrowAggregateException(List`1 exceptions)
May 03 06:42:00 localhost.localdomain emby-server[4421]: at System.Threading.Tasks.Task.WaitAll(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken)
May 03 06:42:00 localhost.localdomain emby-server[4421]: at EmbyServer.Program.Main(String[] args)
May 03 06:42:01 localhost.localdomain systemd[1]: emby-server.service: main process exited, code=dumped, status=6/ABRT
May 03 06:42:01 localhost.localdomain systemd[1]: Unit emby-server.service entered failed state.
May 03 06:42:01 localhost.localdomain systemd[1]: emby-server.service failed.

 

How did you manually start emby?

Link to comment
Share on other sites

manf0001

So edit your systemd unit file for emby.

 

Thanks for the suggestion.. however the file /usr/lib/systemd/system/emby-server.service looked fine.  

 

[unit]

Description=Emby Server is a personal media server with apps on just about ever$

After=network.target

 

[service]

EnvironmentFile=/etc/emby-server.conf

WorkingDirectory=/opt/emby-server

ExecStart=/opt/emby-server/bin/emby-server

RestartForceExitStatus=3

User=emby

 

[install]

WantedBy=multi-user.target

 

So from here I checked the file /etc/emby-server.conf  and the output of that file showed:

EMBY_DATA=/var/lib/emby

 

Navigated to var/lib and there was no emby folder  only an emby-server folder, so I edited the above line saved it, and it is now working properly.

 

 

So in short the problem was in the emby-server.conf file,  but thank you for your guidence to the systemd file.   

Link to comment
Share on other sites

manf0001

How did you manually start emby?

 

 

by running /opt/emby-server/bin/emby-server

 

I did find a permanent solution that I've just posted.. hopefully it will work for you as well

Link to comment
Share on other sites

fbrassin

If i try manullay start it i have:

 
 $ sudo /opt/emby-server/system/EmbyServer
Info Main: Application path: /opt/emby-server/system/EmbyServer.dll
Info Main: Emby
        Command line: /opt/emby-server/system/EmbyServer.dll
        Operating system: Unix 3.13.0.143
        64-Bit OS: True
        64-Bit Process: True
        User Interactive: True
        Processor count: 4
        Program data path: /opt/emby-server/programdata
        Application directory: /opt/emby-server/system
Error Main: UnhandledException
        System.IO.IOException: The system cannot open the device or file specified.

           at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
           at System.Threading.Mutex.MutexTryCodeHelper.MutexTryCode(Object userData)
           at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
           at System.Threading.Mutex.CreateMutexWithGuaranteedCleanup(Boolean initiallyOwned, String name, Boolean& createdNew, SECURITY_ATTRIBUTES secAttrs)
           at EmbyServer.Program.Main(String[] args)
        System.IO.IOException
           at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
           at System.Threading.Mutex.MutexTryCodeHelper.MutexTryCode(Object userData)
           at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
           at System.Threading.Mutex.CreateMutexWithGuaranteedCleanup(Boolean initiallyOwned, String name, Boolean& createdNew, SECURITY_ATTRIBUTES secAttrs)
           at EmbyServer.Program.Main(String[] args)


Unhandled Exception: System.IO.IOException: The system cannot open the device or file specified.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.Threading.Mutex.MutexTryCodeHelper.MutexTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.Mutex.CreateMutexWithGuaranteedCleanup(Boolean initiallyOwned, String name, Boolean& createdNew, SECURITY_ATTRIBUTES secAttrs)
   at EmbyServer.Program.Main(String[] args)

Link to comment
Share on other sites

fbrassin

Rebbot done, but nothing changed.

Tried to remove emby and reinstall but nothing.

 

Do you think it has something to do with mysql?

I think mysql installation has got something wrong.

Link to comment
Share on other sites

fbrassin

Maybe the solution could be to uninstall everything about emby and reinstall, but how?

 

I tried but i think something still remain in the system of the previous installation.

 

Please can someone help me?

Link to comment
Share on other sites

fbrassin

There is something strange.

I remaned folder /var/lib/emby-server to /var/lib/emby-server.old and deleted file  /etc/emby-server.conf but when i try to instaal from new it seems emby sees a db installed.

But where it is.

Here is what i have, i'm doing all from root user:

 

 

dpkg -i emby-server-deb_3.4.0.0_amd64.deb

Selezionato il pacchetto emby-server non precedentemente selezionato.
(Lettura del database... 241300 file e directory attualmente installati.)
Preparativi per estrarre emby-server-deb_3.4.0.0_amd64.deb...
Estrazione di emby-server (3.4.0.0)...
Configurazione di emby-server (3.4.0.0)...
usermod: nessuna modifica
chmod: impossibile accedere a "/var/lib/emby": File o directory non esistente
dpkg: errore nell'elaborare il pacchetto emby-server (--install):
 il sottoprocesso installato script di post-installation ha restituito lo stato di errore 1
Elaborazione dei trigger per libc-bin (2.19-0ubuntu6.14)...
Elaborazione dei trigger per ureadahead (0.100.0-16)...
Si sono verificati degli errori nell'elaborazione:
 emby-server
 
Link to comment
Share on other sites

Ok, it looks like you tried to switch from our legacy install package to our newer one, instead of updating in the same way that you had in the past. The two installations are different and are not compatible. 

 

Switching to our newer installation requires uninstalling and purging your current install. Then you can install the new one fresh.

Link to comment
Share on other sites

fbrassin

I tried all suggestions.

I think i deleted all, but after reinstall with dpkg -i it doesn't want to start.

 

Any other hint?

 

 

Ok, it looks like you tried to switch from our legacy install package to our newer one, instead of updating in the same way that you had in the past. The two installations are different and are not compatible. 

 

Switching to our newer installation requires uninstalling and purging your current install. Then you can install the new one fresh.

About this i always use the same way to update.

I download .deb pakage and give command:

dpkg -i XXX.deb

 

What did i do wrong?

Link to comment
Share on other sites

fbrassin

Here is message i have when i try to manually run:

$ sudo /opt/emby-server/system/EmbyServer
Info Main: Application path: /opt/emby-server/system/EmbyServer.dll
Info Main: Emby
        Command line: /opt/emby-server/system/EmbyServer.dll
        Operating system: Unix 3.13.0.143
        64-Bit OS: True
        64-Bit Process: True
        User Interactive: True
        Processor count: 4
        Program data path: /opt/emby-server/programdata
        Application directory: /opt/emby-server/system
Error Main: UnhandledException
        System.IO.IOException: The system cannot open the device or file specified.

           at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
           at System.Threading.Mutex.MutexTryCodeHelper.MutexTryCode(Object userData)
           at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
           at System.Threading.Mutex.CreateMutexWithGuaranteedCleanup(Boolean initiallyOwned, String name, Boolean& createdNew, SECURITY_ATTRIBUTES secAttrs)
           at EmbyServer.Program.Main(String[] args)
        System.IO.IOException
           at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
           at System.Threading.Mutex.MutexTryCodeHelper.MutexTryCode(Object userData)
           at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
           at System.Threading.Mutex.CreateMutexWithGuaranteedCleanup(Boolean initiallyOwned, String name, Boolean& createdNew, SECURITY_ATTRIBUTES secAttrs)
           at EmbyServer.Program.Main(String[] args)


Unhandled Exception: System.IO.IOException: The system cannot open the device or file specified.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.Threading.Mutex.MutexTryCodeHelper.MutexTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.Mutex.CreateMutexWithGuaranteedCleanup(Boolean initiallyOwned, String name, Boolean& createdNew, SECURITY_ATTRIBUTES secAttrs)
   at EmbyServer.Program.Main(String[] args)
Link to comment
Share on other sites

What ubuntu system user are you running under?

 

I think what's happening is the server is not getting write access to the system /tmp folder.

Link to comment
Share on other sites

fbrassin

Sorry, i just realize on this server i have linux mint 17 (based on ubuntu 14.04)

 

User is fabio, but run emby with sudo.

 

And /tmp is:

 

drwxrwxr-x   8 fabio fabio  16K mag  5 18:23 tmp

Link to comment
Share on other sites

I'm going to put a hack in the beta channel to try and workaround this, although i have a feeling that if the server cant' write to /tmp then there are going to be other problems.

 

Anyway it will be in the beta by tomorrow. Thanks.

Link to comment
Share on other sites

fbrassin

Why server shouldn't be able to write to /tmp dir?

Looking at this drwxrwxr-x anyone should be able to write di /tmp dir.

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