Jump to content

Recommended Posts

hurricanehrndz
Posted

I'll address the issue soon

 

Sent from my ONEPLUS A3000 using Tapatalk

Posted

I'll address the issue soon

 

Sent from my ONEPLUS A3000 using Tapatalk

Great, thank you! 

Posted

Same problem here with this version and broken plugins, any ideas on when a version bump might happen? Thanks!

hurricanehrndz
Posted

Hopefully tonight. Sorry guys. I have a ton on my planet.

 

Sent from my ONEPLUS A3000 using Tapatalk

Posted

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.

hurricanehrndz
Posted

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

 

Sent from my ONEPLUS A3000 using Tapatalk

hurricanehrndz
Posted

I will try and see if there is a dependency missing.

 

Sent from my ONEPLUS A3000 using Tapatalk

Posted

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

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

hurricanehrndz
Posted

Can you also please post the log found in var log

 

Sent from my ONEPLUS A3000 using Tapatalk

Posted

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
 
 
Posted

I should also note that /var/log/emby-server.log does not get created when starting emby.

hurricanehrndz
Posted

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

Posted

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:~$ 
Posted

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.

hurricanehrndz
Posted

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

hurricanehrndz
Posted

Ps the service file is the systemd file

 

Sent from my ONEPLUS A3000 using Tapatalk

hurricanehrndz
Posted

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

hurricanehrndz
Posted

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

Posted (edited)

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

 

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. 

hurricanehrndz
Posted

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.

DJ Brankinho
Posted

My ubuntu is 15.04 and I am not getting update the emby, what should I do?

hurricanehrndz
Posted

15.04 is no longer officially supported by Ubuntu. Please update

 

Sent from my ONEPLUS A3000 using Tapatalk

Posted (edited)

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

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