Jump to content

Ubuntu


Luke

Recommended Posts

Seems like there is a dependency problem of some kind now, apt says I can autoremove a ton of mono packages, which obviously broke emby. Reinstalling mono-devel manually seems to have fixed it.

Link to comment
Share on other sites

hurricanehrndz

Yes some of the repos became corrupt. They had to be completely purged and rebuilt.

 

Sent from my ONEPLUS A3000 using Tapatalk

Link to comment
Share on other sites

I changed my repo to http://download.opensuse.org/repositories/home:/emby/xUbuntu_16.10/ and upgrade emby-server.  After upgrading a lot of new mono packages, emby will no longer start.  I get nothing in the logs.  

 

# service emby-server status
● emby-server.service - Emby Media Server
   Loaded: loaded (/lib/systemd/system/emby-server.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Tue 2016-11-15 20:21:13 CST; 2min 31s ago
  Process: 17683 ExecStopPost=/usr/bin/emby-server clear (code=exited, status=0/SUCCESS)
  Process: 17674 ExecStart=/usr/bin/emby-server start (code=exited, status=0/SUCCESS)
 Main PID: 17674 (code=exited, status=0/SUCCESS)
 
Nov 15 20:21:13 dantastic.org systemd[1]: Started Emby Media Server.
 
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.10
Release: 16.10
Codename: yakkety
 
 
Any ideas how to fix this?
 
Thanks!
 
Link to comment
Share on other sites

hurricanehrndz

I changed my repo to http://download.opensuse.org/repositories/home:/emby/xUbuntu_16.10/ and upgrade emby-server. After upgrading a lot of new mono packages, emby will no longer start. I get nothing in the logs.

 

# service emby-server status

● emby-server.service - Emby Media Server

Loaded: loaded (/lib/systemd/system/emby-server.service; enabled; vendor preset: enabled)

Active: inactive (dead) since Tue 2016-11-15 20:21:13 CST; 2min 31s ago

Process: 17683 ExecStopPost=/usr/bin/emby-server clear (code=exited, status=0/SUCCESS)

Process: 17674 ExecStart=/usr/bin/emby-server start (code=exited, status=0/SUCCESS)

Main PID: 17674 (code=exited, status=0/SUCCESS)

 

Nov 15 20:21:13 dantastic.org systemd[1]: Started Emby Media Server.

 

 

# lsb_release -a

No LSB modules are available.

Distributor ID: Ubuntu

Description: Ubuntu 16.10

Release: 16.10

Codename: yakkety

 

 

Any ideas how to fix this?

 

Thanks!

Are you actually running 16.10? You might need to remove and install.

 

Sent from my ONEPLUS A3000 using Tapatalk

Link to comment
Share on other sites

Are you actually running 16.10? You might need to remove and install.

 

Sent from my ONEPLUS A3000 using Tapatalk

 

Yes, I'm on 16.10.  I posted the output of lsb_release.

 

I already have mono-devel installed.

 

mono-devel is already the newest version (4.6.1.5-0xamarin1).
 
I have tried to remove mono-runtime and reinstall mono-runtime but same result.
 
I have nothing in the emby log directory:
 
# ls -l /var/lib/emby-server/logs
total 0
 
 
Link to comment
Share on other sites

hurricanehrndz

Can you please run your service stops and start as sudo and use systemctl instead since you're on a systemd system

 

Sent from my ONEPLUS A3000 using Tapatalk

Link to comment
Share on other sites

Can you please run your service stops and start as sudo and use systemctl instead since you're on a systemd system

 

Sent from my ONEPLUS A3000 using Tapatalk

 

Not sure why that would make any difference, but I tried it and get the same results.

 

dan@hostname:~$ sudo systemctl start emby-server
dan@hostname:~$ sudo systemctl status emby-server
● emby-server.service - Emby Media Server
   Loaded: loaded (/lib/systemd/system/emby-server.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Tue 2016-11-15 21:07:10 CST; 1s ago
  Process: 25646 ExecStopPost=/usr/bin/emby-server clear (code=exited, status=0/SUCCESS)
  Process: 25637 ExecStart=/usr/bin/emby-server start (code=exited, status=0/SUCCESS)
 Main PID: 25637 (code=exited, status=0/SUCCESS)
 
Nov 15 21:07:10 hostname.org systemd[1]: Started Emby Media Server.
dan@hostname:~$ 
Link to comment
Share on other sites

I got emby to start by running it straight from the command line:

 

sudo -u emby /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server

 

All my config is there and everything seems to work as it did before the upgrade.

 

So my guess is there's an issue in the /etc/init.d/emby-server or /usr/bin/emby-server scripts.  I'll try and dig through them if I get some time.

Link to comment
Share on other sites

hurricanehrndz

I don't think there is an issue within the scripts since they have not changed and have been the same for over a year. I don't see any errors whatsoever in the status output. Please post the contents of the service file.

 

Sent from my ONEPLUS A3000 using Tapatalk

Link to comment
Share on other sites

hurricanehrndz

You keep trying to run the your services as if you were on sysv init system. You're no longer on sysv init system, Ubuntu uses systemd so please use the systemd tools. I need some sort of usable log so that I can tell you what is going on. So far I haven't seen any errors in anything you have posted.

 

Sent from my ONEPLUS A3000 using Tapatalk

Link to comment
Share on other sites

hurricanehrndz

Try running the start command without any modifications. /usr/bin/emb-server start . It is a foreground process with out being directed yo var log. Please execute it as sudo.

 

Sent from my ONEPLUS A3000 using Tapatalk

Link to comment
Share on other sites

Well, for whatever reason there is an error in the /usr/bin/emby-server script.  The code:

 

# Exit if the mono-sgen not installed
[[ -x $MONO_EXEC ]] || exit 0
 
Should be:
 
# Exit if the mono-sgen not installed
[[ ! -x $MONO_EXEC ]] || exit 0
 
Notice the exclamation mark.  No clue how it got that way, but once I added it, emby starts right up.
 
Lastly, I would think it would be up to the package scripts to configure startup under systemd, not have to do it manually.
 
I appreciate your help in trying to figure this out!
Edited by vicodan
Link to comment
Share on other sites

hurricanehrndz

 

Well, for whatever reason there is an error in the /usr/bin/emby-server script.  The code:

 

# Exit if the mono-sgen not installed
[[ -x $MONO_EXEC ]] || exit 0
 
Should be:
 
# Exit if the mono-sgen not installed
[[ ! -x $MONO_EXEC ]] || exit 0
 
Notice the exclamation mark.  No clue how it got that way, but once I added it, emby starts right up.
 
Lastly, I would think it would be up to the package scripts to configure startup under systemd, not have to do it manually.
 
I appreciate your help in trying to figure this out!

 

 

Thank you for the feedback. You must have mono-sgen on your system. Most new mono installs do not come equip with mono-sgen. /etc/default/emby-server by default is populated with mono-sgen. It seems at one point or another I or one of the other developers took the easy fix instead of the proper fix. I will get it addressed in future releases. PS Yes the package scripts do configure startup under systemd. 

Link to comment
Share on other sites

hurricanehrndz

Dam, too tired. 

 

I read through the code again and it is right.

 

It reads as follows:

 

 

mono_exec is executable or exit

 

You changed it to

 

mono_exec is not executable or exit

 

Simple test:

[[ -x /bin/bash ]] || echo "Hi"

You should see nothing, because bash is always executable.

Link to comment
Share on other sites

Hi, 

 

Emby has stopped working as of the latest update. Error logs show this: 

Unhandled Exception:
System.IO.FileNotFoundException: Could not load file or assembly or one of its dependencies.
File name: 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
 
I've tried this with the repo on 16.04 and 16.10 
 
I assume it is mono related, but can't see the cause. 
 
EDIT: 
I just tried installing mono-complete and now I'm getting this: 
Unhandled Exception:
System.IO.FileNotFoundException: Could not load file or assembly or one of its dependencies.
File name: 'SQLitePCLRaw.provider.sqlite3, Version=1.0.0.0, Culture=neutral, PublicKeyToken=62684c7b4f184e3f'
 
Edited by dekekun
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...