acrylic 0 Posted February 27, 2017 Posted February 27, 2017 Hi guys, Having some trouble, I previously had it installed, but it never worked so I uninstalled. The service runs for a moment then fails with the following: # systemctl status emby-server ● emby-server.service - Emby Media Server Loaded: loaded (/usr/lib/systemd/system/emby-server.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since Tue 2017-02-28 00:43:09 CET; 385ms ago Process: 2397 ExecStopPost=/usr/lib/emby-server/emby-server.sh clear (code=exited, status=0/SUCCESS) Process: 2341 ExecStart=/usr/lib/emby-server/emby-server.sh start (code=exited, status=1/FAILURE) Main PID: 2341 (code=exited, status=1/FAILURE) There is nothing for "emby" in /var/logs - apologies if it should be elsewhere, I will provide upon request. Configs below: # 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=500 MONO_GC_PARAMS=nursery-size=128m" # 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= #$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 ## otherwise default emby is used
acrylic 0 Posted February 28, 2017 Author Posted February 28, 2017 (edited) Hi, I am now seeing this (wasn't before) User "emby" is on the sudoers list. Feb 28 09:55:36 acrylnx systemd[1]: Started Emby Media Server. Feb 28 09:55:36 acrylnx systemd[1]: Starting Emby Media Server... Feb 28 09:55:38 acrylnx emby-server.sh[29317]: find: ‘./run/user/1000/gvfs’: Permission denied Feb 28 09:55:41 acrylnx emby-server.sh[29317]: find: ‘./run/user/1000/gvfs’: Permission denied Feb 28 09:55:42 acrylnx su[29317]: (to emby) root on none Feb 28 09:55:42 acrylnx systemd[1]: emby-server.service: main process exited, code=exited, status=1/FAILURE Feb 28 09:55:43 acrylnx emby-server.sh[29376]: find: ‘./run/user/1000/gvfs’: Permission denied When running it manually as Root: # /usr/lib/emby-server/emby-server.sh start find: ‘./run/user/1000/gvfs’: Permission denied find: ‘./run/user/1000/gvfs’: Permission denied Unhandled Exception: System.DllNotFoundException: libembysqlite3.so.0 at (wrapper managed-to-native) SQLitePCL.SQLite3Provider_sqlite3+NativeMethods:sqlite3_libversion_number () at SQLitePCL.SQLite3Provider_sqlite3.SQLitePCL.ISQLite3Provider.sqlite3_libversion_number () [0x00000] in <3645201b7f984858ba98d4cda8f068bd>:0 at SQLitePCL.raw.SetProvider (SQLitePCL.ISQLite3Provider imp) [0x00008] in <1087f93847e244b6a7258d70cb1cb617>:0 at MediaBrowser.Server.Mono.MainClass.SetSqliteProvider () [0x00005] in <eb589c6780444d5b8605d057f74b1382>:0 at MediaBrowser.Server.Mono.MainClass.Main (System.String[] args) [0x00018] in <eb589c6780444d5b8605d057f74b1382>:0 [ERROR] FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: libembysqlite3.so.0 at (wrapper managed-to-native) SQLitePCL.SQLite3Provider_sqlite3+NativeMethods:sqlite3_libversion_number () at SQLitePCL.SQLite3Provider_sqlite3.SQLitePCL.ISQLite3Provider.sqlite3_libversion_number () [0x00000] in <3645201b7f984858ba98d4cda8f068bd>:0 at SQLitePCL.raw.SetProvider (SQLitePCL.ISQLite3Provider imp) [0x00008] in <1087f93847e244b6a7258d70cb1cb617>:0 at MediaBrowser.Server.Mono.MainClass.SetSqliteProvider () [0x00005] in <eb589c6780444d5b8605d057f74b1382>:0 at MediaBrowser.Server.Mono.MainClass.Main (System.String[] args) [0x00018] in <eb589c6780444d5b8605d057f74b1382>:0 Edited February 28, 2017 by acrylic
Luke 42077 Posted February 28, 2017 Posted February 28, 2017 Hi @@acrylic, did you follow the installation instructions on the website?
acrylic 0 Posted February 28, 2017 Author Posted February 28, 2017 Hi @@acrylic, did you follow the installation instructions on the website? I did yes, multiple times to the letter
dcrdev 255 Posted March 1, 2017 Posted March 1, 2017 I'm guessing might be selinux - if you can run the process as root. Try following my instructions here: https://emby.media/community/index.php?/topic/44406-emby-service-wont-start-fedora-25/
zabas.net 1 Posted March 3, 2017 Posted March 3, 2017 Hi. I am a linux certified and I am using it in CentOS 7 64 bits. Your problem is that you created the user emby (uid=1000) manually before the install process (uid=933). I recommend you to install a new one (try it first in a VM if you want) The installation procedure is very simple:- Install CentOS (disable firewall and selinux) - Install ffmpeg - Install emby-server Use the EMBY repository for CentOS to install via yum.
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