Jump to content

Emby won't start after reboot..


Recommended Posts

Posted

Ok, I ran apt-get update then apt-get upgrade and there was a kernel update so I did it with apt-get dist-upgrade then rebooted and

now the emby init won't start the server:

 

root@ubuntu-dvr:/var/log# service emby-server status
● 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: enabled)
   Active: failed (Result: core-dump) since Sun 2018-01-21 20:46:07 CST; 5min ago
  Process: 1455 ExecStart=/opt/emby-server/bin/emby-server (code=dumped, signal=ABRT)
 Main PID: 1455 (code=dumped, signal=ABRT)

Jan 21 20:46:07 ubuntu-dvr emby-server[1455]:    at SQLitePCL.SQLite3Provider_sqlite3.NativeMethods.TryLoadFromArchDirectory(String baseDirectory)
Jan 21 20:46:07 ubuntu-dvr emby-server[1455]:    at SQLitePCL.SQLite3Provider_sqlite3.NativeMethods..cctor()
Jan 21 20:46:07 ubuntu-dvr emby-server[1455]:    --- End of inner exception stack trace ---
Jan 21 20:46:07 ubuntu-dvr emby-server[1455]:    at SQLitePCL.SQLite3Provider_sqlite3.NativeMethods.sqlite3_libversion_number()
Jan 21 20:46:07 ubuntu-dvr emby-server[1455]:    at SQLitePCL.SQLite3Provider_sqlite3.SQLitePCL.ISQLite3Provider.sqlite3_libversion_number()
Jan 21 20:46:07 ubuntu-dvr emby-server[1455]:    at SQLitePCL.raw.SetProvider(ISQLite3Provider imp)
Jan 21 20:46:07 ubuntu-dvr emby-server[1455]:    at EmbyServer.Program.Main(String[] args)
Jan 21 20:46:07 ubuntu-dvr systemd[1]: emby-server.service: Main process exited, code=dumped, status=6/ABRT
Jan 21 20:46:07 ubuntu-dvr systemd[1]: emby-server.service: Unit entered failed state.
Jan 21 20:46:07 ubuntu-dvr systemd[1]: emby-server.service: Failed with result 'core-dump'.

 

root@ubuntu-dvr:/var/log# uname -a
Linux ubuntu-dvr 4.4.0-103201712311231-generic #0+mediatree+hauppauge-Ubuntu SMP Sun Dec 31 21:15:04 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

 

Any ideas, I don't see any log in /var/log?
 

 

 

Posted

Ran the server directly and it's throwing an exception:

root@ubuntu-dvr:/opt/emby-server# /opt/emby-server/bin/emby-server

Unhandled Exception: System.TypeInitializationException: The type initializer for 'NativeMethods' threw an exception. ---> System.ArgumentOutOfRangeException: Version's parameters must be greater than or equal to zero.
Parameter name: revision
   at System.Version..ctor(Int32 major, Int32 minor, Int32 build, Int32 revision)
   at System.Environment.<>c.<.cctor>b__77_0()
   at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
   at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
   at System.Lazy`1.CreateValue()
   at SQLitePCL.SQLite3Provider_sqlite3.NativeMethods.TryLoadFromArchDirectory(String baseDirectory)
   at SQLitePCL.SQLite3Provider_sqlite3.NativeMethods..cctor()
   --- End of inner exception stack trace ---
   at SQLitePCL.SQLite3Provider_sqlite3.NativeMethods.sqlite3_libversion_number()
   at SQLitePCL.SQLite3Provider_sqlite3.SQLitePCL.ISQLite3Provider.sqlite3_libversion_number()
   at SQLitePCL.raw.SetProvider(ISQLite3Provider imp)
   at EmbyServer.Program.Main(String[] args)
Aborted (core dumped)
root@ubuntu-dvr:/opt/emby-server#
Posted

can you please capture the full and complete console output? thanks.

Posted

Luke, that was all the output.

Posted

I used the prior kernel and it works again.

I did a dist-upgrade as a new kernel was available with security updates likely for meltdown/spectre.

Posted

Thanks for the feedback.

Posted

Luke,

The problem was this:

http://www.hauppauge.com/site/support/linux.html

 

I have two hauppauge tuners in my Linux server so I installed according to the directions above.

it pulls down a slightly older kernel with the media tree stuff already installed.

 

Not sure why emby would have a problem with this kernel, could it have been trying to load the drivers?  I did not give the emby user rights to the drivers as it indicates to do for plex.      I know you guys added the hauggpauge support for windows, maybe it's related to that?

 

I just downgraded to the prior kernel and everything seems fine.

Posted

I'm really not sure, and no, the windows features wouldn't affect this. 

Posted

Depends on how that kernel is configured -

/usr/src/linux-<kver>/.config

To be honest you'd be better off building that module into the mainline Ubuntu kernel.

Posted

It is a main line kernel, just not one from the LTS stack.

When I ran the server from the command line

The output was minimal but it did raise an exception that I posted.

 

Prior to emby I ran Plex on that kernel and the drivers worked fine as did Plex.

 

I can't check anything else right now as that kernel is now gone from my server.

  • 4 months later...
Posted

I have this same issue.  Emby was working fine, bought a Happauge tuner, installed as per directions, now Emby won't start.  Getting the exact same exception.

nathaniel@nelknet:/opt/emby-server/bin$ sudo ./emby-server 

Unhandled Exception: System.TypeInitializationException: The type initializer for 'NativeMethods' threw an exception. ---> System.ArgumentOutOfRangeException: Version's parameters must be greater than or equal to zero.
Parameter name: revision
   at System.Version..ctor(Int32 major, Int32 minor, Int32 build, Int32 revision)
   at System.Environment.<>c.<.cctor>b__77_0()
   at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
   at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
   at System.Lazy`1.CreateValue()
   at SQLitePCL.SQLite3Provider_sqlite3.NativeMethods.TryLoadFromArchDirectory(String baseDirectory)
   at SQLitePCL.SQLite3Provider_sqlite3.NativeMethods..cctor()
   --- End of inner exception stack trace ---
   at SQLitePCL.SQLite3Provider_sqlite3.NativeMethods.sqlite3_libversion_number()
   at SQLitePCL.SQLite3Provider_sqlite3.SQLitePCL.ISQLite3Provider.sqlite3_libversion_number()
   at SQLitePCL.raw.SetProvider(ISQLite3Provider imp)
   at EmbyServer.Program.Main(String[] args)
Aborted
nathaniel@nelknet:/opt/emby-server/bin$ systemctl start emby-server
nathaniel@nelknet:/opt/emby-server/bin$ 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: enabled)
   Active: failed (Result: core-dump) since Sat 2018-06-02 18:39:03 EDT; 43s ago
  Process: 3953 ExecStart=/opt/emby-server/bin/emby-server (code=dumped, signal=ABRT)
 Main PID: 3953 (code=dumped, signal=ABRT)

Jun 02 18:39:03 nelknet emby-server[3953]:    at System.Lazy`1.CreateValue()
Jun 02 18:39:03 nelknet emby-server[3953]:    at SQLitePCL.SQLite3Provider_sqlite3.NativeMethods.TryLoadFromArchDirectory(String baseDirectory)
Jun 02 18:39:03 nelknet emby-server[3953]:    at SQLitePCL.SQLite3Provider_sqlite3.NativeMethods..cctor()
Jun 02 18:39:03 nelknet emby-server[3953]:    --- End of inner exception stack trace ---
Jun 02 18:39:03 nelknet emby-server[3953]:    at SQLitePCL.SQLite3Provider_sqlite3.NativeMethods.sqlite3_libversion_number()
Jun 02 18:39:03 nelknet emby-server[3953]:    at SQLitePCL.SQLite3Provider_sqlite3.SQLitePCL.ISQLite3Provider.sqlite3_libversion_number()
Jun 02 18:39:03 nelknet emby-server[3953]:    at SQLitePCL.raw.SetProvider(ISQLite3Provider imp)
Jun 02 18:39:03 nelknet emby-server[3953]:    at EmbyServer.Program.Main(String[] args)
Jun 02 18:39:03 nelknet systemd[1]: emby-server.service: Main process exited, code=dumped, status=6/ABRT
Jun 02 18:39:03 nelknet systemd[1]: emby-server.service: Failed with result 'core-dump'.
nathaniel@nelknet:/opt/emby-server/bin$ uname -a
Linux nelknet 4.15.0-20201805060708-generic #0+mediatree+hauppauge-Ubuntu SMP Sun May 6 18:04:09 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

It's not exactly clear to me what steps I need to take to resolve this issue.  How can I switch to a kernel that will play nicely with Emby?  And if I do so, will I lose the ability to use the Happauge tuner?

Posted

This is arch linux? do you have sqlite installed?

Posted

So it was starting before?

Posted

Yup. No issues prior to following the Happauge driver installation instructions.

Posted

Can you try installing the emby package again over the top? Thanks.

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