Jump to content

Arch Linux


Luke

Recommended Posts

puithove

Yea, it "should" be as simple as moving the dir, and updating the .conf to point to the new location.  Doesn't seem to be that way unless I totally missed something (wouldn't be the first time).

Link to comment
Share on other sites

puithove

On a positive note, it seems to be healthy enough after finishing a full refresh.  I had t also fire off the "people" task from the scheduler to get it to fill in actor images again.

 

The down side is I wonder if it has left a bunch of unused .jpg and other files hanging around in there now, or if it would have used the same name and overwrote the existing ones.

  • Like 1
Link to comment
Share on other sites

thefirstofthe300

That is nice to hear. :)

 

I figure that for now, my plan is to just leave the old install intact in case people want to go your route. Otherwise, they can just rebuild their library from scratch. I assume that people who customize their nfo files are saving them to the media folders though. Probably not the best assumption. :(

Link to comment
Share on other sites

  • 2 weeks later...
letroll
Hello, I installed git version from aur , everything work like expected but... There is an "emby" user created and used to launch the server, which can't access to my media folder owned by a normal user. So I have change the user used to launch the server in the systemd Script. But when I do it nothing works.

 

Anyone have a solution?

Link to comment
Share on other sites

thefirstofthe300

That would probably be due to the fact that the emby user owns the default program data directory. I suppose that you have the option of chowning the data directory to be owned by the new user who is running the server. Your other option is to create another ProgramData directory and edit /etc/conf.d/emby-server.conf to point to that directory. The server will then use the newly defined directory and /etc/conf.d should remain the same during package updates. 

 

Please update to the latest git package though before making any changes. If you aren't updated, then any change you make before updating will get overwritten. I had to make some changes to the package to make /etc/conf.d/emby-server unchanging during an update or package change (from git to beta, beta to stable, etc).

 

You are editing the service file by placing a copy of it at /etc/systemd/system/emby-server.service and editing that one, right? I am just checking to make sure you don't have to change your service file on every update.

Edited by DaBungalow
  • Like 1
Link to comment
Share on other sites

Hi all, I have a problem accessing the emby server. What I did yesterday:

  • fresh arch linux installation on Raspberry PI (via Noobs)
  • pacman –Syu (have to fix after that a little bit)
  • pacman –Syy
  • pacman –S wget
  • pacman –S base-devel
  • pacman –S samba
  • download emby-server from tarball AUR
  • makepkg –s (sudo -u nobody makepkg -s)
  • makepkg –U emby-server-3.0.5572.0-2-armv6h.pkg.tar.xz
  • systemctl start emby-server.service
  • systemctl enable emby-server.service

when I run ‘ps –ef | grep emby’ I get:

 

avahi      174     1  0 19:07 ?        00:00:00 avahi-daemon: running [emby-server.local]

 

I think the installation looks fine Also when I restart the PI the service is running.  But when I try to access the emby server with

 

http://myembyserverIP:8096

 

the connection is refused. Did I miss something?

Link to comment
Share on other sites

thefirstofthe300

I am trying to figure out what Avahi is doing running the server...That process just doesn't look right to me.

 

I am thinking an active firewall could be causing the problem, although vanilla Arch as far as I know doesn't activate a firewall. Second most likely issue is that you are attempting to connect to the wrong IP address. Are you attempting to connect via LAN address or via a WAN address? If the answer is WAN address, have you opened the port on your router?

 

If you are 100% certain that the problem isn't firewall or IP address related, is Emby generating any logs at /var/lib/emby-server/logs? If so could you post the latest one.

 

Also, what does the environment file (/etc/conf.d/emby-server) and service file (/usr/lib/systemd/system/emby-server.service OR /etc/systemd/system/emby-server if you are using a custom file) look like. Could you post those too?

Link to comment
Share on other sites

puithove

It doesn't look like Avahi is running emby... that looks like the computer has been named "emby-server". "emby-server.local" is the hostname and that's just Avahi telling you what it is.  If that's the only occurrence of emby in the process list, then the service isn't running.

 

@@tipex - can you look at the output from:

sudo systemctl status emby-server.service

and

sudo journalctl -u emby-server.service

systemctl status will tell you the current status (running, failed, etc) along with the last few lines of console output and journalctl will give you all the console output from the unit going back into history - which should include any errors from the emby-server process.  It gets dumped into 'less' so you can page down/up through it

Edited by puithove
Link to comment
Share on other sites

thefirstofthe300

Oh...Ok. that makes sense.

 

I don't have any experience with Avahi so thanks for correcting me. :)

Link to comment
Share on other sites

puithove

My hostname is 'big1' - you can see that from my avahi daemon:

avahi     1481     1  0 13:10 ?        00:00:00 avahi-daemon: running [big1.local]

Whereas my emby (mediabrowser) processes are these:

emby      1752     1  0 13:10 ?        00:00:00 /bin/sh /usr/bin/emby-server
emby      1758  1752 11 13:10 ?        00:11:04 /usr/bin/mono /usr/lib/emby-server/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe

Link to comment
Share on other sites

OMG, my fault. hostname is emby-Server.

 

I tried now 'systemctl start emby-server.service'

 

Output of 'sudo systemctl status emby-server.service'

 

 

* emby-server.service - Media Browser Server is a home media server built 
using other popular open source technologies.   Loaded: loaded 
(/usr/lib/systemd/system/emby-server.service; enabled; vendor preset: 
disabled)   Active: failed (Result: start-limit) since Fri 
2015-04-10 21:05:44 CEST; 14s ago  Process: 352 
ExecStart=/usr/bin/emby-server (code=exited, status=2) Main PID: 352 
(code=exited, status=2)
Apr 10 21:05:44 emby-server systemd[1]: Unit emby-server.service entered 
failed state.Apr 10 21:05:44 emby-server systemd[1]: emby-server.service 
failed.Apr 10 21:05:44 emby-server systemd[1]: emby-server.service holdoff 
time over, scheduling restart.Apr 10 21:05:44 emby-server systemd[1]: 
Stopping Media Browser Server is a home media server built using other popular 
open source technologies....Apr 10 21:05:44 emby-server systemd[1]: Starting 
Media Browser Server is a home media server built using other popular open 
source technologies....Apr 10 21:05:44 emby-server systemd[1]: start request 
repeated too quickly for emby-server.serviceApr 10 21:05:44 emby-server 
systemd[1]: Failed to start Media Browser Server is a home media server built 
using other popular open source technologies..Apr 10 21:05:44 emby-server 
systemd[1]: Unit emby-server.service entered failed state.Apr 10 21:05:44 
emby-server systemd[1]: emby-server.service failed.
 

Output of 'sudo journalctl -u emby-server.service' is

 

 

-- Logs begin at Thu 1970-01-01 01:00:06 CET, end 
at Fri 2015-04-10 21:08:29 CEST. --Apr 10 19:05:52 emby-server systemd[1]: 
Starting Media Browser Server is a home media server built using other popular 
open source technologies....Apr 10 19:05:52 emby-server systemd[1]: Started 
Media Browser Server is a home media server built using other popular open 
source technologies..Apr 10 19:05:52 emby-server emby-server[1483]: Cannot 
open assembly '/usr/lib/emby-server/MediaBrowser.Server.Mono.exe': Permission 
denied.Apr 10 19:05:52 emby-server systemd[1]: emby-server.service: main 
process exited, code=exited, status=2/INVALIDARGUMENTApr 10 19:05:52 
emby-server systemd[1]: Unit emby-server.service entered failed state.Apr 10 
19:05:52 emby-server systemd[1]: emby-server.service failed.Apr 10 19:05:53 
emby-server systemd[1]: emby-server.service holdoff time over, scheduling 
restart.Apr 10 19:05:53 emby-server systemd[1]: Stopping Media Browser 
Server is a home media server built using other popular open source 
technologies....Apr 10 19:05:53 emby-server systemd[1]: Starting Media 
Browser Server is a home media server built using other popular open source 
technologies....Apr 10 19:05:53 emby-server systemd[1]: Started Media 
Browser Server is a home media server built using other popular open source 
technologies..Apr 10 19:05:53 emby-server emby-server[1488]: Cannot open 
assembly '/usr/lib/emby-server/MediaBrowser.Server.Mono.exe': Permission 
denied.Apr 10 19:05:53 emby-server systemd[1]: emby-server.service: main 
process exited, code=exited, status=2/INVALIDARGUMENTApr 10 19:05:53 
emby-server systemd[1]: Unit emby-server.service entered failed state.Apr 10 
19:05:53 emby-server systemd[1]: emby-server.service failed.Apr 10 19:05:53 
emby-server systemd[1]: emby-server.service holdoff time over, scheduling 
restart.Apr 10 19:05:53 emby-server systemd[1]: Stopping Media Browser 
Server is a home media server built using other popular open source 
technologies....Apr 10 19:05:53 emby-server systemd[1]: Starting Media 
Browser Server is a home media server built using other popular open source 
technologies....Apr 10 19:05:53 emby-server systemd[1]: Started Media 
Browser Server is a home media server built using other popular open source 
technologies..Apr 10 19:05:53 emby-server emby-server[1492]: Cannot open 
assembly '/usr/lib/emby-server/MediaBrowser.Server.Mono.exe': Permission 
denied.Apr 10 19:05:53 emby-server systemd[1]: emby-server.service: main 
process exited, code=exited, status=2/INVALIDARGUMENTApr 10 19:05:53 
emby-server systemd[1]: Unit emby-server.service entered failed state.Apr 10 
19:05:53 emby-server systemd[1]: emby-server.service failed.Apr 10 19:05:54 
emby-server systemd[1]: emby-server.service holdoff time over, scheduling 
restart.Apr 10 19:05:54 emby-server systemd[1]: Stopping Media Browser 
Server is a home media server built using other popular open source 
technologies....Apr 10 19:05:54 emby-server systemd[1]: Starting Media 
Browser Server is a home media server built using other popular open source 
technologies....Apr 10 19:05:54 emby-server systemd[1]: Started Media 
Browser Server is a home media server built using other popular open source 
technologies..Apr 10 19:05:54 emby-server emby-server[1496]: Cannot open 
assembly '/usr/lib/emby-server/MediaBrowser.Server.Mono.exe': Permission 
denied.Apr 10 19:05:54 emby-server systemd[1]: emby-server.service: main 
process exited, code=exited, status=2/INVALIDARGUMENTApr 10 19:05:54 
emby-server systemd[1]: Unit emby-server.service entered failed state.Apr 10 
19:05:54 emby-server systemd[1]: emby-server.service failed.Apr 10 19:05:54 
emby-server systemd[1]: emby-server.service holdoff time over, scheduling 
restart.Apr 10 19:05:54 emby-server systemd[1]: Stopping Media Browser 
Server is a home media server built using other popular open source 
technologies....Apr 10 19:05:54 emby-server systemd[1]: Starting Media 
Browser Server is a home media server built using other popular open source 
technologies....Apr 10 19:05:54 emby-server systemd[1]: Started Media 
Browser Server is a home media server built using other popular open source 
technologies..Apr 10 19:05:54 emby-server emby-server[1500]: Cannot open 
assembly '/usr/lib/emby-server/MediaBrowser.Server.Mono.exe': Permission 
denied.Apr 10 19:05:54 emby-server systemd[1]: emby-server.service: main 
process exited, code=exited, status=2/INVALIDARGUMENTApr 10 19:05:54 
emby-server systemd[1]: Unit emby-server.service entered failed state.Apr 10 
19:05:54 emby-server systemd[1]: emby-server.service failed.lines 
1-39

The directory  /var/lib/emby-server is empty.

 

 

emby-server.service

[Unit]
Description=Media Browser Server is a home media server built using 
other popular open source technologies.

[Service]
EnvironmentFile=/etc/conf.d/emby-server
WorkingDirectory=/usr/lib/emby-server
ExecStart=/usr/bin/emby-server
User=emby
Group=emby
Restart=on-failure

[Unit]
After=network.target

[Install]
WantedBy=multi-user.target

/etc/conf.d/emby-server

 

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

It looks like that the service will not start, but I have no idea what was my mistake???

 

The PI is connected via LAN and I can ping it from Windows command line.

 

Sorry for bothering you!

Edited by DaBungalow
Some formatting issues.
Link to comment
Share on other sites

thefirstofthe300

It looks like permission somehow got botched.

 

Do a sudo chown -R emby:emby /usr/lib/emby-server.

 

I am thinking that will fix the issue.

 

Ignore the above, you need to run sudo systemctl stop emby-server followed by sudo systemctl start emby-server, otherwise you don't have the proper privileges to actually start the emby-server service.

 

Also, may I ask why the service file has two unit sections?

Edited by DaBungalow
Link to comment
Share on other sites

after I run 'sudo chown -R emby:emby /usr/lib/emby-server' it works.

 

now I have the Welcome to Emby Screen

 

Thanks a lot!

  • Like 1
Link to comment
Share on other sites

letroll

That would probably be due to the fact that the emby user owns the default program data directory. I suppose that you have the option of chowning the data directory to be owned by the new user who is running the server. Your other option is to create another ProgramData directory and edit /etc/conf.d/emby-server.conf to point to that directory. The server will then use the newly defined directory and /etc/conf.d should remain the same during package updates. 

 

Please update to the latest git package though before making any changes. If you aren't updated, then any change you make before updating will get overwritten. I had to make some changes to the package to make /etc/conf.d/emby-server unchanging during an update or package change (from git to beta, beta to stable, etc).

 

You are editing the service file by placing a copy of it at /etc/systemd/system/emby-server.service and editing that one, right? I am just checking to make sure you don't have to change your service file on every update.

 

Thank you very much, it's work, you are my Hero  :)

  • Like 1
Link to comment
Share on other sites

  • 2 months later...

When trying to makepkg I am getting a bunch of 404 codes on dependencies.  I'm not sure that this is an emby issue itself, but I don't get that problem when trying top install other things.

==> Making package: emby-server 3.0.5621.4-1 (Mon Jun 15 20:50:18 MDT 2015)
==> Checking runtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
:: There are 2 providers available for libx264.so=144-32:
:: Repository extra
   1) libx264  2) libx264-10bit

Enter a number (default=1): 1
looking for conflicting packages...

Packages (69) alsa-lib-1.0.29-1  cairo-1.14.2-1  damageproto-1.2.1-3
              elfutils-0.161-3  enca-1.16-1  flac-1.3.1-1  fontconfig-2.11.1-1
              freetype2-2.5.5-1  fribidi-0.19.6-2  giflib-5.1.1-1
              graphite-1:1.2.4-1  gsm-1.0.13-8  harfbuzz-0.9.40-2
              json-c-0.12-2  lame-3.99.5-2  lcms2-2.7-1  libass-0.12.2-1
              libasyncns-0.8-5  libbluray-0.8.1-1  libdrm-2.4.61-1
              libexif-0.6.21-2  libgdiplus-3.12-1  libjpeg-turbo-1.4.0-1
              liblqr-0.4.2-1  libmms-0.6.4-1  libmodplug-0.8.8.5-1
              libogg-1.3.2-1  libomxil-bellagio-0.9.3-1  libpciaccess-0.13.4-1
              libpng-1.6.16-1  libpulse-6.0-2  libsndfile-1.0.25-2
              libssh-0.7.0-2  libtheora-1.1.1-3  libtiff-4.0.3-5
              libtxc_dxtn-1.0.1-6  libva-1.5.1-1  libvdpau-1.1-1
              libvorbis-1.3.5-1  libvpx-1.4.0-2  libx264-2:144.20150223-1
              libxdamage-1.1.4-2  libxshmfence-1.2-1  libxxf86vm-1.1.4-1
              libzen-0.4.31-1  llvm-libs-3.6.1-1  mesa-10.5.6-1
              mesa-libgl-10.5.6-1  opencore-amr-0.1.3-2  openjpeg-1.5.2-1
              opus-1.1-1.1  orc-0.4.23-1  pixman-0.32.6-1  python-3.4.3-2
              recode-3.6-8  schroedinger-1.0.11-2  sdl-1.2.15-7  speex-1.2rc2-1
              speexdsp-1.2rc3-1  v4l-utils-1.6.3-1  wayland-1.7.0-1  x265-1.6-1
              xf86vidmodeproto-2.3.1-3  xvidcore-1.3.3-1  ffmpeg-1:2.6.3-1
              imagemagick-6.9.1.2-1  libmediainfo-0.7.74-1  mono-4.0.1.28-1
              sqlite-3.8.10.2-1

Total Download Size:    35.96 MiB
Total Installed Size:  324.35 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages ...
error: failed retrieving file 'libjpeg-turbo-1.4.0-1-arm.pkg.tar.xz' from mirror.archlinuxarm.org : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed retrieving file 'wayland-1.7.0-1-arm.pkg.tar.xz' from mirror.archlinuxarm.org : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed retrieving file 'mesa-10.5.6-1-arm.pkg.tar.xz' from mirror.archlinuxarm.org : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed retrieving file 'mesa-libgl-10.5.6-1-arm.pkg.tar.xz' from mirror.archlinuxarm.org : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed retrieving file 'mono-4.0.1.28-1-arm.pkg.tar.xz' from mirror.archlinuxarm.org : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed retrieving file 'x265-1.6-1-arm.pkg.tar.xz' from mirror.archlinuxarm.org : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed retrieving file 'ffmpeg-1:2.6.3-1-arm.pkg.tar.xz' from mirror.archlinuxarm.org : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.
==> ERROR: 'pacman' failed to install missing dependencies.

Any guidance you could provide? Thanks.

 

EDIT:  I figured it out I think and it was a silly mistake.  I needed to update the system using

pacman -Syyu
Edited by manok
Link to comment
Share on other sites

  • 3 weeks later...
jamesdm

Guys im trying to install in a clean arch. Im getting error when is cheking the tarball.

How I can change the md5 checksum to get the installed?

Thanks in advance.

Link to comment
Share on other sites

thefirstofthe300

Just run updpkgsums in the folder that is extracted from the tarball. That is the easy way.

 

The hard way is manually updating the md5sums in the order the sources are listed in the PKGBUILD.

 

I will take a look when I get back to my server on Sunday.

 

Sent from my Nexus 7 using Tapatalk

Edited by DaBungalow
Link to comment
Share on other sites

jamesdm

DaBungalow thanks for the reply. In both cases do the updpkgsums and updating manually the md5sums in PKGBUILD im getting this error.

 

sed: can not read /home/hmelero/tmp/emby-server/src/MediaBrowser-3.0.5641.4/MediaBrowser.Server.Mono/ImageMagickSharp.dll.config: There is no such file or directory

 

EDIT: I was able to get it installed entering in the folder src and reming from Emby-3.0.5641.4 to MediaBrowser-3.0.5641.4

The only problem that i see for now is I can't change the language from english to spanish.

Edited by jamesdm
Link to comment
Share on other sites

thefirstofthe300

I am updating the packages now. Apparently, Luke changed the repo name on me. :)

Link to comment
Share on other sites

thefirstofthe300

So the packages are now updated. Let me know if anything else is off.

  • Like 1
Link to comment
Share on other sites

  • 1 month later...

I tried to makepkg on my raspberry pi 2 (armv7), I added 'armv7h' to arch, but I got a segmentation fault at xbuild:

PKGBUILD: line 28:   195 Segmentation fault      (core dumped) xbuild /p:Configuration="Release Mono" /p:Platform="Any CPU" /p:OutputPath="${srcdir}/usr/lib/emby-server" /t:build MediaBrowser.Mono.sln

I also tried to add ARCH=arm to xbuild, but that didn't change anything. Is there a way to compile for my raspberry pi 2?

Edited by Semi
Link to comment
Share on other sites

Doonga

This is out of date on the AUR. There's also a few edits that need to be made once it is brought up to date. (Currently 5675.1)

 

On lines: 25, 29 and 31:

 

Change: MediaBrowser-${pkgver}

To: Emby-${pkgver}

 

 

 

Link to comment
Share on other sites

Thanks for the response, although my problem was something different. It turned out to be caused by grsecurity/pax. Running pax with softmode solved the problem - I have a highly specific system so its basically my own fault ;)

Link to comment
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...