tomimc 13 Posted December 15, 2015 Posted December 15, 2015 i just update to beta 3.0.5781.6 and now emby is not starting. Any help? syslog: Dec 15 21:17:48 aion systemd[1]: Started Emby Media Server. Dec 15 21:17:48 aion systemd[1]: emby-server.service: main process exited, code=exited, status=126/n/a Dec 15 21:17:48 aion systemd[1]: Unit emby-server.service entered failed state. root@aion:/var/lib/emby-server/config# root@aion:/var/lib/emby-server/config# cat /var/log/emby-server.log env: /usr/lib/emby-server/.config: Permission denied root@aion:/var/lib/emby-server/config# root@aion:/var/lib/emby-server/config# ls -la /usr/lib/emby-server/ total 44 drwxr-xr-x 6 emby emby 12288 Dec 15 20:02 . drwxr-xr-x 57 root root 4096 Nov 28 13:05 .. drwxr-xr-x 3 emby emby 4096 Oct 20 22:33 .config drwx------ 3 emby emby 4096 Oct 20 21:51 .gnome2 drwx------ 2 emby emby 4096 Oct 20 21:51 .gnome2_private drwxrwxrwx 5 emby emby 12288 Dec 15 20:02 bin -rwxr-xr-x 1 emby emby 778 Dec 15 03:53 restart.sh root@aion:/var/lib/emby-server/config# ls -la /usr/lib/emby-server/.config/ total 20 drwxr-xr-x 3 emby emby 4096 Oct 20 22:33 . drwxr-xr-x 6 emby emby 12288 Dec 15 20:02 .. drwxr-xr-x 3 emby emby 4096 Oct 20 22:33 .mono
hurricanehrndz 149 Posted December 16, 2015 Posted December 16, 2015 Please print out /etc/default/emby-server and /etc/emby-server.conf
tomimc 13 Posted December 16, 2015 Author Posted December 16, 2015 (edited) Please print out /etc/default/emby-server and /etc/emby-server.conf root@aion:/home/tomi# cat /etc/default/emby-server # Defaults for emby initscript # sourced by /etc/init.d/emby-server and /usr/lib/emby-server/emby-server.sh # installed at /etc/default/emby-server by the maintainer scripts # # This is a POSIX shell fragment # ## Don't edit this file ## Edit user configuration in /etc/emby-server.conf to change ## ## EMBY_USER= #$EMBY_USER, username to run Emby under, the default is emby ## EMBY_GROUP= #$EMBY_GROUP, Emby server group where Emby user belongs ## EMBY_DIR= #$EMBY_DIR, the location of Emby program files the default is /usr/lib/emby-server ## EMBY_BIN= #$EMBY_BIN, full path of MediaBrowser.Server.Mono.exe the default is /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe ## EMBY_DATA= #$EMBY_DATA, the location of Emby data, cache, logs, the default is /var/lib/emby-server ## EMBY_PIDFILE= #$EMBY_PIDFILE, the location of emby.pid, the default is /var/run/emby/emby-server.pid ## EMBY_ADD_OPTS= #$EMBY_ADD_OPTS, additional options to pass to the Emby server executable, beyond ffmpeg, ffprobe and restart ## MONO_BIN= #$MONO_BIN, full path of mono binary, the default is /usr/bin/mono-sgen ## MONO_OPTS= #$MONO_OPTS, list of additional options to pass to mono binary ## MONO_ENV= #$MONO_ENV, list of environment variables for running mono binary ## ## EXAMPLE if want to run as different user ## add EMBY_USER=username to /etc/emby-server.conf ## otherwise default emby is used EMBY_USER="emby" EMBY_GROUP="emby" EMBY_DIR="/usr/lib/emby-server" EMBY_BIN="/usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe" EMBY_DATA="/var/lib/emby-server" EMBY_PIDFILE="/var/run/emby-server.pid" EMBY_ADD_OPTS="" MONO_BIN="/usr/bin/mono-sgen" MONO_OPTS="--optimize=all" MONO_ENV="MONO_THREADS_PER_CPU=250 MONO_GC_PARAMS=nursery-size=128m" root@aion:/home/tomi# root@aion:/home/tomi# cat /etc/emby-server.conf # Override defaults for emby initscript # sourced by /etc/init.d/emby-server and /usr/bin/emby-server # installed at /etc/emby-server.conf by the maintainer scripts # # This is a POSIX shell fragment # ## To change the defaults add any of the following settings below the comments ## ## EMBY_USER=root #$EMBY_USER, username to run Emby under, the default is emby ## EMBY_GROUP=root #$EMBY_GROUP, Emby server group where Emby user belongs ## EMBY_DIR= #$EMBY_DIR, the location of Emby program files the default is /usr/lib/emby-server ## EMBY_BIN= #$EMBY_BIN, full path of MediaBrowser.Server.Mono.exe the default is /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe ## EMBY_DATA= #$EMBY_DATA, the location of Emby data, cache, logs, the default is /var/lib/emby-server ## EMBY_PIDFILE= #$EMBY_PIDFILE, the location of emby.pid, the default is /var/run/emby/emby-server.pid ## EMBY_ADD_OPTS= #$EMBY_ADD_OPTS, additional options to pass to the Emby server executable, beyond ffmpeg, ffprobe and restart ## MONO_BIN= #$MONO_BIN, full path of mono binary, the default is /usr/bin/mono-sgen ## MONO_OPTS= #$MONO_OPTS, list of additional options to pass to mono binary ## MONO_ENV= #$MONO_ENV, list of environment variables for running mono binary ## ## EXAMPLE if want to run as different user ## add EMBY_USER=username ## otherwise default emby is used auth.log Dec 16 15:11:51 aion su[7533]: Successful su for emby by root Dec 16 15:11:51 aion su[7533]: + ??? root:emby Dec 16 15:11:51 aion su[7533]: pam_unix(su:session): session opened for user emby by (uid=0) Dec 16 15:11:51 aion su[7533]: pam_unix(su:session): session closed for user emby root@aion:/usr/lib/emby-server# ls -l /etc/sudoers -rw-r----- 1 root root 692 Dec 15 21:17 /etc/sudoers root@aion:/usr/lib/emby-server# ls -l /etc/sudoers.d/emby -rw-r----- 1 root root 1541 Dec 16 04:11 /etc/sudoers.d/emby root@aion:/usr/lib/emby-server# groups root root : root emby root@aion:/usr/lib/emby-server# groups emby emby : emby root@aion:/usr/lib/emby-server# invoke-rc.d emby-server status * emby-server.service - Emby Media Server Loaded: loaded (/lib/systemd/system/emby-server.service; enabled) Active: failed (Result: exit-code) since Wed 2015-12-16 15:30:24 CET; 1min 12s ago Process: 8207 ExecStopPost=/usr/bin/emby-server clear (code=exited, status=0/SUCCESS) Process: 8192 ExecStart=/usr/bin/emby-server start (code=exited, status=126) Main PID: 8192 (code=exited, status=126) Dec 16 15:30:24 aion systemd[1]: Started Emby Media Server. Dec 16 15:30:24 aion su[8192]: Successful su for emby by root Dec 16 15:30:24 aion su[8192]: + ??? root:emby Dec 16 15:30:24 aion su[8192]: pam_unix(su:session): session opened for user emby by (uid=0) Dec 16 15:30:24 aion su[8192]: pam_unix(su:session): session closed for user emby Dec 16 15:30:24 aion systemd[1]: emby-server.service: main process exited, code=exited, status=126/n/a Dec 16 15:30:24 aion systemd[1]: Unit emby-server.service entered failed state. invoke-rc.d: initscript emby-server, action "status" failed. root@aion:/usr/lib/emby-server# Edited December 16, 2015 by tomimc
tomimc 13 Posted December 16, 2015 Author Posted December 16, 2015 (edited) i just modified /usr/bin/emby-server to check command line: root@aion:/usr/bin# ./emby-server start MONO_THREADS_PER_CPU=250 MONO_GC_PARAMS=nursery-size=128m LD_LIBRARY_PATH=/usr/lib/emby-server/.gnome2_private /usr/lib/emby-server/.config /usr/lib/emby-server/.gnome2 /usr/bin/mono-sgen --optimize=all /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -restartpath /usr/lib/emby-server/restart.sh root@aion:/usr/bin# root@aion:/usr/bin# root@aion:/usr/bin# MONO_THREADS_PER_CPU=250 MONO_GC_PARAMS=nursery-size=128m LD_LIBRARY_PATH=/usr/lib/emby-server/.gnome2_private /usr/lib/emby-server/.config /usr/lib/emby-server/.gnome2 /usr/bin/mono-sgen --optimize=all /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -restartpath /usr/lib/emby-server/restart.sh bash: /usr/lib/emby-server/.config: Is a directory root@aion:/usr/bin# Issue in LD_LIBRARY_PATH=/usr/lib/emby-server/.gnome2_private /usr/lib/emby-server/.config /usr/lib/emby-server/.gnome2 Must be: LD_LIBRARY_PATH=/usr/lib/emby-server/.gnome2_private:/usr/lib/emby-server/.config:/usr/lib/emby-server/.gnome2 So i setted the path manually Edited December 16, 2015 by tomimc
hurricanehrndz 149 Posted December 17, 2015 Posted December 17, 2015 Thank you! I will make sure it gets addressed.
hurricanehrndz 149 Posted January 21, 2016 Posted January 21, 2016 Issue resolved: https://github.com/MediaBrowser/Emby/issues/1419
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now