Jump to content

Arch Linux


Luke

Recommended Posts

thefirstofthe300

The Emby server package is now in the community repo so you can install with pacman. The beta package was renamed to emby-server-devel. The git package is the same.

 

Sent from my Nexus 7 using Tapatalk

  • Like 1
Link to post
Share on other sites

The Emby server package is now in the community repo so you can install with pacman. The beta package was renamed to emby-server-devel. The git package is the same.

 

Sent from my Nexus 7 using Tapatalk

 

Thank you.

Link to post
Share on other sites

I have a problem starting emby service:

systemctl status emby-server
● emby-server.service - Emby brings together your videos, music, photos, and live television.
   Loaded: loaded (/usr/lib/systemd/system/emby-server.service; disabled; vendor preset: disabled)
   Active: failed (Result: start-limit) since Wed 2015-09-23 09:53:51 CEST; 2s ago
  Process: 21515 ExecStart=/usr/bin/emby-server (code=exited, status=1/FAILURE)
 Main PID: 21515 (code=exited, status=1/FAILURE)

Sep 23 09:53:51 nanoBox systemd[1]: emby-server.service: Main process exited, code=exited, status=1/FAILURE
Sep 23 09:53:51 nanoBox systemd[1]: emby-server.service: Unit entered failed state.
Sep 23 09:53:51 nanoBox systemd[1]: emby-server.service: Failed with result 'exit-code'.
Sep 23 09:53:51 nanoBox systemd[1]: emby-server.service: Service hold-off time over, scheduling restart.
Sep 23 09:53:51 nanoBox systemd[1]: Stopped Emby brings together your videos, music, photos, and live television..
Sep 23 09:53:51 nanoBox systemd[1]: emby-server.service: Start request repeated too quickly.
Sep 23 09:53:51 nanoBox systemd[1]: Failed to start Emby brings together your videos, music, photos, and live television..
Sep 23 09:53:51 nanoBox systemd[1]: emby-server.service: Unit entered failed state.
Sep 23 09:53:51 nanoBox systemd[1]: emby-server.service: Failed with result 'start-limit'.

# journalctl -u emby-server.service
-- Logs begin at Mon 2015-05-25 09:22:23 CEST, end at Wed 2015-09-23 09:54:02 CEST. --
Sep 22 23:22:18 nanoBox systemd[1]: Started Emby brings together your videos, music, photos, and live television..
Sep 22 23:22:19 nanoBox emby-server[3985]: Unhandled Exception:
Sep 22 23:22:19 nanoBox emby-server[3985]: System.UnauthorizedAccessException: Access to the path "/var/lib/emby/logs" is denied.
Sep 22 23:22:19 nanoBox emby-server[3985]: at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00000] in <filename unknown>:0
Sep 22 23:22:19 nanoBox emby-server[3985]: at System.IO.Directory.CreateDirectory (System.String path) [0x00000] in <filename unknown>:0
Sep 22 23:22:19 nanoBox emby-server[3985]: at MediaBrowser.Common.Implementations.Logging.NlogManager.ReloadLogger (LogSeverity level) [0x00000] in <filename unknown>:0
Sep 22 23:22:19 nanoBox systemd[1]: emby-server.service: Main process exited, code=exited, status=1/FAILURE
Sep 22 23:22:19 nanoBox systemd[1]: emby-server.service: Unit entered failed state.
Sep 22 23:22:19 nanoBox systemd[1]: emby-server.service: Failed with result 'exit-code'.
Sep 22 23:22:19 nanoBox systemd[1]: emby-server.service: Service hold-off time over, scheduling restart.
Sep 22 23:22:19 nanoBox systemd[1]: Stopped Emby brings together your videos, music, photos, and live television..
Sep 22 23:22:19 nanoBox systemd[1]: Started Emby brings together your videos, music, photos, and live television..
Sep 22 23:22:20 nanoBox emby-server[4000]: Unhandled Exception:
Sep 22 23:22:20 nanoBox emby-server[4000]: System.UnauthorizedAccessException: Access to the path "/var/lib/emby/logs" is denied.
Sep 22 23:22:20 nanoBox emby-server[4000]: at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00000] in <filename unknown>:0
Sep 22 23:22:20 nanoBox emby-server[4000]: at System.IO.Directory.CreateDirectory (System.String path) [0x00000] in <filename unknown>:0
Sep 22 23:22:20 nanoBox emby-server[4000]: at MediaBrowser.Common.Implementations.Logging.NlogManager.ReloadLogger (LogSeverity level) [0x00000] in <filename unknown>:0
Sep 22 23:22:20 nanoBox systemd[1]: emby-server.service: Main process exited, code=exited, status=1/FAILURE
Sep 22 23:22:20 nanoBox systemd[1]: emby-server.service: Unit entered failed state.
Sep 22 23:22:20 nanoBox systemd[1]: emby-server.service: Failed with result 'exit-code'.
Sep 22 23:22:20 nanoBox systemd[1]: emby-server.service: Service hold-off time over, scheduling restart.
Sep 22 23:22:20 nanoBox systemd[1]: Stopped Emby brings together your videos, music, photos, and live television..
Sep 22 23:22:20 nanoBox systemd[1]: Started Emby brings together your videos, music, photos, and live television..
Sep 22 23:22:21 nanoBox emby-server[4006]: Unhandled Exception:
Sep 22 23:22:21 nanoBox emby-server[4006]: System.UnauthorizedAccessException: Access to the path "/var/lib/emby/logs" is denied.
Sep 22 23:22:21 nanoBox emby-server[4006]: at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00000] in <filename unknown>:0
Sep 22 23:22:21 nanoBox emby-server[4006]: at System.IO.Directory.CreateDirectory (System.String path) [0x00000] in <filename unknown>:0
Sep 22 23:22:21 nanoBox systemd[1]: emby-server.service: Main process exited, code=exited, status=1/FAILURE
Sep 22 23:22:21 nanoBox systemd[1]: emby-server.service: Unit entered failed state.
Sep 22 23:22:21 nanoBox systemd[1]: emby-server.service: Failed with result 'exit-code'.
Sep 22 23:22:21 nanoBox systemd[1]: emby-server.service: Service hold-off time over, scheduling restart.
Sep 22 23:22:21 nanoBox systemd[1]: Stopped Emby brings together your videos, music, photos, and live television..
Sep 22 23:22:21 nanoBox systemd[1]: Started Emby brings together your videos, music, photos, and live television..
Sep 22 23:22:21 nanoBox emby-server[4017]: Unhandled Exception:
Sep 22 23:22:21 nanoBox emby-server[4017]: System.UnauthorizedAccessException: Access to the path "/var/lib/emby/logs" is denied.
Sep 22 23:22:21 nanoBox emby-server[4017]: at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00000] in <filename unknown>:0
Sep 22 23:22:21 nanoBox emby-server[4017]: at System.IO.Directory.CreateDirectory (System.String path) [0x00000] in <filename unknown>:0
Sep 22 23:22:21 nanoBox systemd[1]: emby-server.service: Main process exited, code=exited, status=1/FAILURE
Sep 22 23:22:21 nanoBox systemd[1]: emby-server.service: Unit entered failed state.
Sep 22 23:22:21 nanoBox systemd[1]: emby-server.service: Failed with result 'exit-code'.
Sep 22 23:22:22 nanoBox systemd[1]: emby-server.service: Service hold-off time over, scheduling restart.
Sep 22 23:22:22 nanoBox systemd[1]: Stopped Emby brings together your videos, music, photos, and live television..
Sep 22 23:22:22 nanoBox systemd[1]: Started Emby brings together your videos, music, photos, and live television..
Sep 22 23:22:22 nanoBox emby-server[4025]: Unhandled Exception:
Sep 22 23:22:22 nanoBox emby-server[4025]: System.UnauthorizedAccessException: Access to the path "/var/lib/emby/logs" is denied.
Sep 22 23:22:22 nanoBox emby-server[4025]: at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00000] in <filename unknown>:0
Sep 22 23:22:22 nanoBox emby-server[4025]: at System.IO.Directory.CreateDirectory (System.String path) [0x00000] in <filename unknown>:0
Sep 22 23:22:22 nanoBox emby-server[4025]: at MediaBrowser.Common.Implementations.Logging.NlogManager.ReloadLogger (LogSeverity level) [0x00000] in <filename unknown>:0
Sep 22 23:22:22 nanoBox systemd[1]: emby-server.service: Main process exited, code=exited, status=1/FAILURE
Sep 22 23:22:22 nanoBox systemd[1]: emby-server.service: Unit entered failed state.
Sep 22 23:22:22 nanoBox systemd[1]: emby-server.service: Failed with result 'exit-code'.
Sep 22 23:22:22 nanoBox systemd[1]: emby-server.service: Service hold-off time over, scheduling restart.
Sep 22 23:22:22 nanoBox systemd[1]: Stopped Emby brings together your videos, music, photos, and live television..
Sep 22 23:22:22 nanoBox systemd[1]: emby-server.service: Start request repeated too quickly.
Sep 22 23:22:22 nanoBox systemd[1]: Failed to start Emby brings together your videos, music, photos, and live television..
Sep 22 23:22:22 nanoBox systemd[1]: emby-server.service: Unit entered failed state.

This happens with both emby-server from [community] and emby-server-git from AUR.

Link to post
Share on other sites

@lockheed: Sounds like you upgraded from an earlier version and didn't read the upgrade notes during installation. The emby user is now created with UID:GID 422:422, but existing emby users are left untouched, it appears you merged the conf changes so /var/lib/emby doesn't have the right permissions.

 

If you don't care about your existing library, either

chown emby:emby -R /var/lib/emby

or delete the emby user and group and reinstall any of the emby packages.

 

Or if you already have a library, either follow the instructions from the install message or point emby to your old programdata folder, /var/lib/emby-server.

Link to post
Share on other sites

I never installed emby before. All I did was follow a guide which comprised of two steps:

  1. sudo useradd -r -s /bin/false emby
  2. pacman -S emby-server
Edited by lockheed
Link to post
Share on other sites

Well, don't follow shady guides, delete that user and reinstall emby. The official guide says nothing about creating the emby user yourself, every package on arch takes care of creating its user(s) anyway, there's never been a need for manual creation.

Link to post
Share on other sites

Please excuse my ignorance... I'm new here.

 

emby-server installed fine. Ran "systemctl start emby-server" with no errors returned. Attempting to reach http://localhost:8096 fails in the browser with "Unable to Connect."

 

Am I missing something?

 

Here's some relevant output:

[reed@KerrDesktop ~]$ systemctl status emby-server
● emby-server.service - Emby brings together your videos, music, photos, and live television.
   Loaded: loaded (/usr/lib/systemd/system/emby-server.service; enabled; vendor preset: disabled)
   Active: failed (Result: start-limit) since Sun 2015-09-27 00:56:03 EDT; 1min 7s ago
  Process: 400 ExecStart=/usr/bin/emby-server (code=exited, status=1/FAILURE)
 Main PID: 400 (code=exited, status=1/FAILURE)

Sep 27 00:56:03 KerrDesktop systemd[1]: emby-server.service: Unit entered failed state.
Sep 27 00:56:03 KerrDesktop systemd[1]: emby-server.service: Failed with result 'exit-code'.
Sep 27 00:56:03 KerrDesktop systemd[1]: emby-server.service: Service hold-off time over, scheduling restart.
Sep 27 00:56:03 KerrDesktop systemd[1]: Stopped Emby brings together your videos, music, photos, and live television..
Sep 27 00:56:03 KerrDesktop systemd[1]: emby-server.service: Start request repeated too quickly.
Sep 27 00:56:03 KerrDesktop systemd[1]: Failed to start Emby brings together your videos, music, photos, and live television..
Sep 27 00:56:03 KerrDesktop systemd[1]: emby-server.service: Unit entered failed state.
Sep 27 00:56:03 KerrDesktop systemd[1]: emby-server.service: Failed with result 'start-limit'.

Edited by wrkerr
Link to post
Share on other sites
I have registered more changes, than just what was stated after the installation. I set up Emby after the name change from Mediabrowser with the AUR-Package a few months ago.

 

After the last update, emby-server wouldn't start. What happened was, that there are two files in /etc/conf.d/

 



/etc/conf.d/emby-server
/etc/conf.d/emby-server.conf


 

The first file came with the update… and only the changes there, will let you keep your old database!

 

$ cat /etc/conf.d/emby-server



MONO=/usr/bin/mono
FFMPEG=/usr/bin/ffmpeg
FFPROBE=/usr/bin/ffprobe
PROGRAM_DATA=/var/lib/emby-server


 

With that I got emby running again. But the migration-script doesn't work for me. When I run

 



sudo emby-migrate-database /var/lib/emby-server /var/lib/emby


 

I get

 



Usage: emby-migrate-database {-u user} {-g group} old_path_full new_path_full
Default user: emby
Default group: emby


 

and nothing is copied. Adding emby as user and group in the line gets the same result. Maybe the first part of the post helps some users, who also ran into trouble with the update.

Edited by _010101_
Link to post
Share on other sites

Apologies, I forgot to pass the paths as argument inside the script. I just fixed the community package, AUR packages will be updated later on.

  • Like 1
Link to post
Share on other sites

Apologies, I forgot to pass the paths as argument inside the script. I just fixed the community package, AUR packages will be updated later on.

Will this fix my issue too, where I can't get emby-server to properly start after a fresh install?

Link to post
Share on other sites

Will this fix my issue too, where I can't get emby-server to properly start after a fresh install?

No, the problem was with an optional script. A fresh install should work in all cases, provided you followed the official instructions. I'm assuming you did not, then you can run the server manually as emby to get some terminal output, it should tell you what you did wrong.

Link to post
Share on other sites

Official instructions are just the three steps at https://emby.media/downloads/linux-server/ , correct?

 

# pacman -S emby-server

# systemctl start emby-server

Visit http://localhost:8096

 

Starting the server with systemctl seems to be failing (per the output I posted above). I'll try running the server manually tonight when I get home. I'm assuming you mean just run  # emby-server ?

Link to post
Share on other sites

Official instructions are just the three steps at https://emby.media/downloads/linux-server/ , correct?

 

# pacman -S emby-server

# systemctl start emby-server

Visit http://localhost:8096

 

Yup, not much can go wrong with those on a fresh install, so you probably had some remnants of another install, or messed with the emby user or group beforehand.

 

Starting the server with systemctl seems to be failing (per the output I posted above). I'll try running the server manually tonight when I get home. I'm assuming you mean just run  # emby-server ?

 

Not exactly, you're supposed to replicate what the systemd unit is doing. Arch users should be able to figure this out, but here's how anyway:

sudo -u emby bash
source /etc/conf.d/emby-server
emby-server
Edited by alucryd
Link to post
Share on other sites

Thanks for the help. Like I said, I'm new at this... new to Emby and Arch Linux.

 

Regardless, here's the output of the above:

[reed@KerrDesktop ~]$ sudo -u emby bash
[sudo] password for reed: 
[emby@KerrDesktop reed]$ source /etc/conf.d/emby-server 
[emby@KerrDesktop reed]$ emby-server

Unhandled Exception:
System.UnauthorizedAccessException: Access to the path "/home/reed/-ffmpeg" is denied.
  at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00000] in <filename unknown>:0 
  at System.IO.Directory.CreateDirectory (System.String path) [0x00000] in <filename unknown>:0 
  at System.IO.DirectoryInfo.Create () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo:Create ()
  at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00000] in <filename unknown>:0 
  at System.IO.Directory.CreateDirectory (System.String path) [0x00000] in <filename unknown>:0 
  at MediaBrowser.Common.Implementations.Logging.NlogManager.ReloadLogger (LogSeverity level) [0x00000] in <filename unknown>:0 
  at MediaBrowser.Server.Mono.MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.UnauthorizedAccessException: Access to the path "/home/reed/-ffmpeg" is denied.
  at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00000] in <filename unknown>:0 
  at System.IO.Directory.CreateDirectory (System.String path) [0x00000] in <filename unknown>:0 
  at System.IO.DirectoryInfo.Create () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo:Create ()
  at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00000] in <filename unknown>:0 
  at System.IO.Directory.CreateDirectory (System.String path) [0x00000] in <filename unknown>:0 
  at MediaBrowser.Common.Implementations.Logging.NlogManager.ReloadLogger (LogSeverity level) [0x00000] in <filename unknown>:0 
  at MediaBrowser.Server.Mono.MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0 
[emby@KerrDesktop reed]$ 

Oddly enough, running $ sudo emby-server sucessfully started the server in the console, and I was able to access the wizard, though obviously that's not an abiding solution. If I want to start over with fresh permissions, could I just uninstall emby-server, remove the emby user and group, then reinstall?

Edited by wrkerr
  • Like 1
Link to post
Share on other sites

@wrkerr: Did you modify the FFMPEG variable in /etc/conf.d/emby-server?

 

Here's my /etc/conf.d/emby-server:

MONO=/usr/bin/mono
FFMPEG=/usr/bin/ffmpeg
FFPROBE=/usr/bin/ffprobe
PROGRAM_DATA=/var/lib/emby

**Edit: SOLVED - Not sure what was going on, but I decided to start over... removed emby-server, emby group, emby user, then reinstalled and everything works fine now. Time to ditch Plex!**

Edited by wrkerr
Link to post
Share on other sites

Here's my /etc/conf.d/emby-server:

MONO=/usr/bin/mono
FFMPEG=/usr/bin/ffmpeg
FFPROBE=/usr/bin/ffprobe
PROGRAM_DATA=/var/lib/emby

**Edit: SOLVED - Not sure what was going on, but I decided to start over... removed emby-server, emby group, emby user, then reinstalled and everything works fine now. Time to ditch Plex!**

 

Not sure either, glad you got it to work.

Link to post
Share on other sites
  • 4 weeks later...

Following yesterday's update, I have not been able to download it without an integrity error from the package manager. Is this a known issue?

 

Pacman gives me this:

File /var/cache/pacman/pkg/emby-server-3.0.5781.0-0-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (checksum)).
 
Link to post
Share on other sites
thefirstofthe300

 

Following yesterday's update, I have not been able to download it without an integrity error from the package manager. Is this a known issue?

 

Pacman gives me this:

File /var/cache/pacman/pkg/emby-server-3.0.5781.0-0-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (checksum)).

 

 

Just a thought, have you tried deleting that file and running the upgrade again?  The file might have just not downloaded correctly.  If that doesn't work, let us know and I am sure alucryd will fix it.

Link to post
Share on other sites

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