Jip 0 Posted December 19, 2015 Posted December 19, 2015 Hello, I have a little problem with my Emby-Server since the last update at Ubuntu Server 14.04. The problem is that the server does not start because of a lot of errors. My guess is that all the errors are the result of an wrong configuration file: # Defaults for emby initscript # sourced by /etc/init.d/emby-server # installed at /etc/default/emby-server by the maintainer scripts # # This is a POSIX shell fragment # # Additional options that are passed to the Daemon. ## EB_USER="emby" ## EB_HOME= #$APP_PATH, the location of MediaBrowser.Server.Mono.exe, the default is /opt/emby ## EB_DATA="/var/lib/emby-server" ## EB_PIDFILE= #$PID_FILE, the location of emby.pid, the default is /var/run/emby/emby.pid ## EB_EXEC= #$EB_EXEC, the name of the Emby Server exectuable, the default is MediaBrowser.Server.Mono.exe ## EB_OPTS= #$EB_OPTS, options passed to the EmbyServer executable, the default is -programdata $EB_DATA, make $ ## MONO_BIN= #$MONO_BIN, the location oth mono binary, the default is /usr/bin/mono ## ## EXAMPLE if want to run as different user ## add EB_USER="emby" ## otherwise default emby is used EB_USER="emby" EB_HOME="/opt/emby-server" EB_DATA="/var/lib/emby-server" ## Test EMBY_PIDFILE="/var/run/emby/emby.pid" It seems that the variables in /usr/bin/emby-server (emby-server.txt) for the PIDFILE and for the GROUP were not set. With the last line in the configuration file I've try to fix the problem but it doesn't work, because the pid file does not exist at these location. Also i don't understand why the variables in the config file called EB_XXXX and in the emby-server file called EMBY_XXXX. Here's the current error message: root@[member="Server"] ~ # /etc/init.d/emby-server start * Starting emby-server daemon chown: fehlender Operand „chown --help“ liefert weitere Informationen. /usr/bin/emby-server: 82: /usr/bin/emby-server: cannot create /var/run/emby/emby.pid: Directory nonexistent [fail] 1 root@[member="Server"] ~ # Without my notes in the config file: root@[member="Server"] ~ # /etc/init.d/emby-server start * Starting emby-server daemon dirname: fehlender Operand „dirname --help“ liefert weitere Informationen. chown: fehlender Operand nach »:“ „chown --help“ liefert weitere Informationen. /usr/bin/emby-server: 82: /usr/bin/emby-server: cannot create : Directory nonexistent [fail] 1 root@[member="Server"] ~ # Regards Jip *Sorry for the bad englisch
chali 11 Posted December 20, 2015 Posted December 20, 2015 Hi Just haft to ask, is it the latest beta you are using? my server wouldn't start after installing the latest beta ( 3.0.5781.6) on my server running ubuntu x64 14.04. after rolling back to 3.0.5781.5 its no problem. /Regards
hurricanehrndz 149 Posted December 21, 2015 Posted December 21, 2015 (edited) Hello, I have a little problem with my Emby-Server since the last update at Ubuntu Server 14.04. The problem is that the server does not start because of a lot of errors. My guess is that all the errors are the result of an wrong configuration file: # Defaults for emby initscript # sourced by /etc/init.d/emby-server # installed at /etc/default/emby-server by the maintainer scripts # # This is a POSIX shell fragment # # Additional options that are passed to the Daemon. ## EB_USER="emby" ## EB_HOME= #$APP_PATH, the location of MediaBrowser.Server.Mono.exe, the default is /opt/emby ## EB_DATA="/var/lib/emby-server" ## EB_PIDFILE= #$PID_FILE, the location of emby.pid, the default is /var/run/emby/emby.pid ## EB_EXEC= #$EB_EXEC, the name of the Emby Server exectuable, the default is MediaBrowser.Server.Mono.exe ## EB_OPTS= #$EB_OPTS, options passed to the EmbyServer executable, the default is -programdata $EB_DATA, make $ ## MONO_BIN= #$MONO_BIN, the location oth mono binary, the default is /usr/bin/mono ## ## EXAMPLE if want to run as different user ## add EB_USER="emby" ## otherwise default emby is used EB_USER="emby" EB_HOME="/opt/emby-server" EB_DATA="/var/lib/emby-server" ## Test EMBY_PIDFILE="/var/run/emby/emby.pid" It seems that the variables in /usr/bin/emby-server (emby-server.txt) for the PIDFILE and for the GROUP were not set. With the last line in the configuration file I've try to fix the problem but it doesn't work, because the pid file does not exist at these location. Also i don't understand why the variables in the config file called EB_XXXX and in the emby-server file called EMBY_XXXX. Here's the current error message: root@[member="Server"] ~ # /etc/init.d/emby-server start * Starting emby-server daemon chown: fehlender Operand „chown --help“ liefert weitere Informationen. /usr/bin/emby-server: 82: /usr/bin/emby-server: cannot create /var/run/emby/emby.pid: Directory nonexistent [fail] 1 root@[member="Server"] ~ # Without my notes in the config file: root@[member="Server"] ~ # /etc/init.d/emby-server start * Starting emby-server daemon dirname: fehlender Operand „dirname --help“ liefert weitere Informationen. chown: fehlender Operand nach »:“ „chown --help“ liefert weitere Informationen. /usr/bin/emby-server: 82: /usr/bin/emby-server: cannot create : Directory nonexistent [fail] 1 root@[member="Server"] ~ # Regards Jip *Sorry for the bad englisch Are you sure your emby_home should not be /opt/emby-server, default is /usr/lib/emby-server . The script is trying to create the data directory, which likely means that your library files and settings are not found in /var/lib/emby-server. In terms of the settings they don't need to be set because the default file contains all the default settings. The default settings are in /etc/default/emby-server, users should not touch this file if modifications are needed you need to edit /etc/emby-server.conf. I will check over the script soon and line 82. Thank you for reporting the issue. Your default settings file should look like this: https://github.com/MediaBrowser/Emby.Build/blob/new_docker/builders/emby-server/debfiles/emby-server.default Anyhow seems to me like when you updated you decided to keep your configuration file rather than replace them with the ones provided by the package. The old configuration file are not compatible with the new package. Edited December 21, 2015 by hurricanehrndz
nague 5 Posted December 21, 2015 Posted December 21, 2015 (edited) Same problem here, I'm not able to upgrade my emby-server from 3.0.5781.4 to next releases: 3.0.5781.5 or 3.0.5781.8 Errors were encountered while processing: /var/cache/apt/archives/libembymagickcore-6.q8-2_8%3a6.9.2-8_amd64.deb /var/cache/apt/archives/libembymagickwand-6.q8-2_8%3a6.9.2-8_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) Then : root@:~# service emby-server startroot@:~# service emby-server status● emby-server.service - Emby Media Server Loaded: loaded (/lib/systemd/system/emby-server.service; disabled; vendor preset: enabled) Active: failed (Result: exit-code) since Tue 2015-12-15 13:27:57 CET; 1s ago Process: 1208 ExecStopPost=/usr/bin/emby-server clear (code=exited, status=2) Process: 1206 ExecStart=/usr/bin/emby-server start (code=exited, status=2) Main PID: 1206 (code=exited, status=2) Dec 15 13:27:57 emby systemd[1]: Started Emby Media Server.Dec 15 13:27:57 emby systemd[1]: Starting Emby Media Server...Dec 15 13:27:57 emby emby-server[1206]: /usr/bin/emby-server: 14: .: Can't open /etc/default/emby-serverDec 15 13:27:57 emby systemd[1]: emby-server.service: main process exited, code=exited, status=2/INVALIDARGUMENTDec 15 13:27:57 emby emby-server[1208]: /usr/bin/emby-server: 14: .: Can't open /etc/default/emby-serverDec 15 13:27:57 emby systemd[1]: emby-server.service: control process exited, code=exited status=2Dec 15 13:27:57 emby systemd[1]: Unit emby-server.service entered failed state.Dec 15 13:27:57 emby systemd[1]: emby-server.service failed. Installing 3.0.5781.8 from scratch is still working, but I loose configuration Edited December 21, 2015 by nague
hurricanehrndz 149 Posted December 21, 2015 Posted December 21, 2015 (edited) If you need to edit the configurations and tell emby where your library files are please see /etc/emby-server.conf Your data might be in /var/lib/mediabrowser or /var/lib/emby. Edited December 21, 2015 by hurricanehrndz
nague 5 Posted December 21, 2015 Posted December 21, 2015 (edited) @hurricanehrndz : thanks for your help, I don't think this the cause, my emby data files directory is correctly configure in /etc/emby-server.conf. ("/var/lib/emby-server") Edited December 21, 2015 by nague
hurricanehrndz 149 Posted December 21, 2015 Posted December 21, 2015 It is starting now though, right? Did you move the files at all! Sent from my D6603 using Tapatalk
nague 5 Posted December 23, 2015 Posted December 23, 2015 No it's not starting : my emby data are located in "/var/lib/emby-server", and the path is correct in /etc/emby-server.conf. Can someone confirm that is possible to upgrade from release prior to 3.0.5781.4 without loosing configuration ?
hurricanehrndz 149 Posted January 9, 2016 Posted January 9, 2016 Yes it should be possible. We're you able to successfully upgrade? Sent from my D6603 using Tapatalk
nague 5 Posted January 12, 2016 Posted January 12, 2016 @hurricanehrndz: no, I wasn't able to successfully upgrade. I did a fresh install in 3.0.5781.5 and a configration restore with the Server Configuration Backup plugin. However, I was able to upgrade from 3.0.5781.5 to 3.0.5785.0.
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