Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SOLVED] 3.0.5816 unable to start emby-server (status126) #1419

Closed
eggithub opened this issue Jan 21, 2016 · 32 comments
Closed

[SOLVED] 3.0.5816 unable to start emby-server (status126) #1419

eggithub opened this issue Jan 21, 2016 · 32 comments

Comments

@eggithub
Copy link

Just upgraded emby-server to 3.0.5816. Couldn't start last stable emby-server either.

Status:
service emby-server status
● emby-server.service - Emby Media Server
Loaded: loaded (/lib/systemd/system/emby-server.service; disabled)
Active: failed (Result: exit-code) since Thu 2016-01-21 20:41:04 CET; 16min ago
Process: 3727 ExecStopPost=/usr/bin/emby-server clear (code=exited, status=0/SUCCESS)
Process: 3704 ExecStart=/usr/bin/emby-server start (code=exited, status=126)
Main PID: 3704 (code=exited, status=126)

Jan 21 21:06:18 su[3941]: Successful su for emby by root
Jan 21 21:06:18 su[3941]: + ??? root:emby
Jan 21 21:06:18 su[3941]: pam_unix(su:session): session opened for user emby by (uid=0)
Jan 21 21:06:18 systemd[1]: emby-server.service: main process exited, code=exited, status=126/n/a
Jan 21 21:06:18 systemd[1]: Unit emby-server.service entered failed state.

Log:
cat /var/log/emby-server.log
env: /usr/lib/emby-server/.w3m: Permission denied

Any ideas?

Cheers!

@eggithub
Copy link
Author

Ok, think I've found it:

changed the /usr/bin/emby-server line:

MONO_EXEC_ENV="$MONO_ENV LD_LIBRARY_PATH=${MAGICK_LIBRARY_PATH}${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"

MONO_EXEC_ENV="$MONO_ENV LD_LIBRARY_PATH=${MAGICK_LIBRARY_PATH:+:}${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"

Appears to be the same prob as in post:

http://emby.media/community/index.php?/topic/28617-issue-with-beta-3057816/?p=276658

@eggithub eggithub changed the title unabke to start emby-server (status126) [SOLVED] unabke to start emby-server (status126) Jan 21, 2016
@eggithub eggithub changed the title [SOLVED] unabke to start emby-server (status126) [SOLVED] unable to start emby-server (status126) Jan 21, 2016
@eggithub eggithub changed the title [SOLVED] unable to start emby-server (status126) [SOLVED] 3.0.5816 unable to start emby-server (status126) Jan 21, 2016
@hurricanehrndz
Copy link
Contributor

Issue has been resolved. It was on line 1. #/bin/sh to #/bin/bash -- it was missed because of trying to keep all the wrapper scripts align across distros.

@hurricanehrndz
Copy link
Contributor

@hurricanehrndz
Copy link
Contributor

@eggithub
Copy link
Author

I think you still need to update your PATH settings in the script, like I stated above... I reverted and only changed the first line but that brought me back to the original prob. status126...

line 56 you need to add the :+: to you know where...

@hurricanehrndz
Copy link
Contributor

One sec, I will write a test script for you and will like the results back.

@eggithub
Copy link
Author

Sure, but I'm merely noob+ on these kinda things ;)

@hurricanehrndz
Copy link
Contributor

can you please run this

#!/bin/bash
MAGICK_LIBRARY_PATH=$(find /usr/lib/emby-server/ -maxdepth 1 -mindepth 1 -type d| grep -v bin)
MONO_EXEC_ENV="$MONO_ENV LD_LIBRARY_PATH=${MAGICK_LIBRARY_PATH}${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"

echo "$MONO_EXEC_ENV"

@eggithub
Copy link
Author

I get this back from shell:

LD_LIBRARY_PATH=/usr/lib/emby-server/.config
/usr/lib/emby-server/.w3m

@hurricanehrndz
Copy link
Contributor

Okay, I see the issue, for some reason in your configuration you have folders in /usr/lib/emby-server which are not suppose to be there.

@eggithub
Copy link
Author

started using emby about 2 months ago and started of with this page for debian 8

https://software.opensuse.org/download.html?project=home%3Aemby&package=emby-server

didnt edit anything in the project up to tonight.

Strange thing was I couldnt connect to emby server all of a sudden this afternoom. So I ugraded to 5816 version, although the prob seemed to appear in
emby-server_3.0.5786_all as well.

Is there any info I can help you out with?

@hurricanehrndz
Copy link
Contributor

Yes, its a recent change we made in order to ensure that our version of imgaemagick doesn't conflict with the one distributed by default with each distro. Some users complained of not being able to run gimp and other apps that depended on imagemagick.

@eggithub
Copy link
Author

I can remember having issues with those libraries on first install. Had to start from scratch a couple of time cause of dependancy issues.

@hurricanehrndz
Copy link
Contributor

Exactly so we made our version of imagemagick that was a shared library not system installed one. Because of differing arch we needed to be able to find lib directories in '/usr/lib/emby-server' hence we added those two lines that are giving you trouble. Unfortunately during our testing we never had an example where there were other folders other than lib, lib64 and bin.

@hurricanehrndz
Copy link
Contributor

Please test this:

#!/bin/bash
MAGICK_LIBRARY_PATH=$(find /usr/lib/emby-server/ -maxdepth 1 -mindepth 1 -type d| grep -v bin | grep -v -e "/usr/lib/emby-server/\.")
MONO_EXEC_ENV="$MONO_ENV LD_LIBRARY_PATH=${MAGICK_LIBRARY_PATH}${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"

echo "$MONO_EXEC_ENV"

@eggithub
Copy link
Author

shell gives me:

LD_LIBRARY_PATH=

@hurricanehrndz
Copy link
Contributor

Okay. PS I don't think you have libembymagick installed, which is fine, but it does increase performance over the WAN.
Please give me the output of:
ls /usr/lib/emby-server
dpkg -l | grep emby

@eggithub
Copy link
Author

~$ ls /usr/lib/emby-server
bin restart.sh
~$ dpkg -l | grep emby
ii emby-server 3.0.5816 all Emby Server is a home media server.

@hurricanehrndz
Copy link
Contributor

Yup you don't have our embymagick packages, again this is another scenario which we didn't think about I guess. Any reason why you don't have them?

@hurricanehrndz
Copy link
Contributor

#!/bin/bash
MAGICK_LIBRARY_PATH=$(find /usr/lib/emby-server/ -maxdepth 1 -mindepth 1 -type d| grep -v bin | grep -v -e "/usr/lib/emby-server/\.")
MONO_EXEC_ENV="$MONO_ENV ${LD_LIBRARY_PATH:+"LD_LIBRARY_PATH="}${MAGICK_LIBRARY_PATH}${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"

echo "$MONO_EXEC_ENV"

This should give you nothing which is probably what you want.

@eggithub
Copy link
Author

As I said, I installed to test emby, got dependancy problems so I fooled around a little trying to solve this not really knowing what I was doing. Finally got it to work and didn't bather abou that specific package from then on

@eggithub
Copy link
Author

yep, shell output is empty...

@hurricanehrndz
Copy link
Contributor

That package libembymagick is brand new. You don't need to have and if you feel comfortable without it then that's cool. I though I would just let you know that images being transmitted over the wan will be slow because you have no access to imagemagick.

@hurricanehrndz
Copy link
Contributor

PS libembymagick does not conflict or interfere with imagemagick

@hurricanehrndz
Copy link
Contributor

Okay thank you. I will be updating the script with the fixes now.

@eggithub
Copy link
Author

what does it do? compress stuff or something? and why didnt you use the system package?

@eggithub
Copy link
Author

Ok np and good luck.

@hurricanehrndz
Copy link
Contributor

lol, I have answer this question 100 times but okay. One yes it does compress.
Two. imagemagick across all the distributions are all compiled differently. Debian and Ubuntu do not seem to include webp which is the default compression we use. Additionally, imagemagick in the distros is compiled to do threading on each image, which is good when processing large image files. But in our case we are trying to process reasonably sized files but lots of them so its better if we thread the process ourselves. Also, we use a better compression algorithm q8 rather than q16 for better performance.

@hurricanehrndz
Copy link
Contributor

Without the libembymagick there is no compression on the images.

@hurricanehrndz
Copy link
Contributor

There should be a new build in 1 hour addressing your issue.

@eggithub
Copy link
Author

ok, I understand now... You might want to make a template from that previous piece of text for future questions ;-)

good luck with the project and keep up the god work!

Cheers

Ok, i'll try it tomorrow...

@hurricanehrndz
Copy link
Contributor

Ha ha. Good call, maybe I'll add it to the wiki

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants