Jump to content


Photo

Arch Linux


  • Please log in to reply
200 replies to this topic

#101 alucryd OFFLINE  

alucryd

    Advanced Member

  • Members
  • 278 posts
  • Local time: 03:00 AM
  • LocationLille, France

Posted 01 November 2015 - 05:17 AM

Pacman should have offered to delete the file and retry, I assume you already tried several times. This package comes from OBS upon which I have no control, can you have a look at it guys? In any case, I just updated the package in [community], you can upgrade to that one instead.



#102 3psus OFFLINE  

3psus

    Advanced Member

  • Members
  • 48 posts
  • Local time: 09:00 PM
  • LocationQuebec, Canada

Posted 01 November 2015 - 10:57 AM

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.

 

Pacman should have offered to delete the file and retry, I assume you already tried several times. This package comes from OBS upon which I have no control, can you have a look at it guys? In any case, I just updated the package in [community], you can upgrade to that one instead.

 

 

Pacman did offer to delete and redownload, which didn't resolve the issue. I tried again this morning though, everything was clean and the update went through without any problem. Thank you :)

 

Edit: That was still through home_emby_Arch_Extra repository though. I will switch to the community repo for future updates.


Edited by 3psus, 01 November 2015 - 11:06 AM.


#103 Petersonb88 OFFLINE  

Petersonb88

    Newbie

  • Members
  • 1 posts

Posted 09 December 2015 - 05:51 AM

Everytime I try to restart emby-server, it crashing and will not load again.  The only fix I can find is to uninstall it via pacman and delete /var/lib/emby which wipes everything out.  Here is a pastebin link with the journalctl output.  Can anyone see what's going on here?

 

http://pastebin.com/0n5A3xLA



#104 zeug OFFLINE  

zeug

    Member

  • Members
  • 10 posts
  • Local time: 03:00 AM

Posted 12 December 2015 - 07:27 AM

I got Emby Server up and running on my Raspberry Pi B+ using Arch Linux. I can add libraries, add plugins, etc.. Only problem I have is that my media library on my NAS might be too big? I have some performance issues. Scanning my 2TB folder takes ages and shuts Emby Server down at around 50%. The Emby Webserver dashboards reacts very slow as well and crashes my Emby Server sometimes.

 

Next to Emby Server I am running a TVHeadend-Backend with a USB DVB-T-Stick on my Pi.

 

I overclocked my Pi using following settings:

##Turbo
arm_freq=1000
core_freq=500
sdram_freq=500
over_voltage=6

gpu_mem=256

Is anyone else here running Emby Server on his Raspberry Pi and experiencing similar problems? Or is the Pi just not strong enough for Emby Server?


Edited by zeug, 12 December 2015 - 09:40 AM.


#105 alucryd OFFLINE  

alucryd

    Advanced Member

  • Members
  • 278 posts
  • Local time: 03:00 AM
  • LocationLille, France

Posted 20 December 2015 - 01:55 PM

Everytime I try to restart emby-server, it crashing and will not load again.  The only fix I can find is to uninstall it via pacman and delete /var/lib/emby which wipes everything out.  Here is a pastebin link with the journalctl output.  Can anyone see what's going on here?

 

http://pastebin.com/0n5A3xLA

 

It would seem like a missing file is the cause, but I have no idea which one. Maybe @Luke will be able to pinpoint it. Have you tried deleting the emby user and group after uninstalling emby via pacman and deleting /var/lib/emby? Just to make sure you start from a vanilla state.

 

I got Emby Server up and running on my Raspberry Pi B+ using Arch Linux. I can add libraries, add plugins, etc.. Only problem I have is that my media library on my NAS might be too big? I have some performance issues. Scanning my 2TB folder takes ages and shuts Emby Server down at around 50%. The Emby Webserver dashboards reacts very slow as well and crashes my Emby Server sometimes.

 

Next to Emby Server I am running a TVHeadend-Backend with a USB DVB-T-Stick on my Pi.

 

I overclocked my Pi using following settings:

##Turbo
arm_freq=1000
core_freq=500
sdram_freq=500
over_voltage=6

gpu_mem=256

Is anyone else here running Emby Server on his Raspberry Pi and experiencing similar problems? Or is the Pi just not strong enough for Emby Server?

 

I've never tried it on a RPi, but since your model only has 512MB of memory I'm guessing you're running out of it quite fast. At startup emby takes about 300MB on my server, and I've seen it go past twice that number.



#106 3psus OFFLINE  

3psus

    Advanced Member

  • Members
  • 48 posts
  • Local time: 09:00 PM
  • LocationQuebec, Canada

Posted 04 January 2016 - 09:02 PM

When making the switch to the community repo, I remember that I had to change /var/lib/emby-server to /var/lib/emby. The shadow service is now complaining about not finding /var/lib/emby-server. How can I point it to the new and good directory?

 

Here is some output from systemctl:

[epsus@arch etc]$ sudo systemctl status shadow -l
● shadow.service - Verify integrity of password and group files
   Loaded: loaded (/usr/lib/systemd/system/shadow.service; static; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2016-01-04 19:43:59 EST; 17min ago
  Process: 30813 ExecStart=/usr/bin/pwck -r (code=exited, status=2)
 Main PID: 30813 (code=exited, status=2)

Jan 04 19:43:59 Arch systemd[1]: Starting Verify integrity of password and group files...
Jan 04 19:43:59 Arch pwck[30813]: user 'emby': directory '/var/lib/emby-server' does not exist

 



#107 thefirstofthe300 OFFLINE  

thefirstofthe300

    Linux Geek

  • Members
  • 1323 posts
  • Local time: 07:00 PM
  • LocationEastern Oregon

Posted 05 January 2016 - 03:42 AM

 

When making the switch to the community repo, I remember that I had to change /var/lib/emby-server to /var/lib/emby. The shadow service is now complaining about not finding /var/lib/emby-server. How can I point it to the new and good directory?

 

Here is some output from systemctl:

[epsus@[member="arch"] etc]$ sudo systemctl status shadow -l
● shadow.service - Verify integrity of password and group files
   Loaded: loaded (/usr/lib/systemd/system/shadow.service; static; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2016-01-04 19:43:59 EST; 17min ago
  Process: 30813 ExecStart=/usr/bin/pwck -r (code=exited, status=2)
 Main PID: 30813 (code=exited, status=2)

Jan 04 19:43:59 Arch systemd[1]: Starting Verify integrity of password and group files...
Jan 04 19:43:59 Arch pwck[30813]: user 'emby': directory '/var/lib/emby-server' does not exist

 

That error is caused because the home directory of the user "emby" no longer exists.  If you stop Emby, delete the user, reinstall the emby-server package, and start Emby again, that error should go away.  To test if it is gone, just run a "pwck".



#108 alucryd OFFLINE  

alucryd

    Advanced Member

  • Members
  • 278 posts
  • Local time: 03:00 AM
  • LocationLille, France

Posted 05 January 2016 - 05:21 AM

 

When making the switch to the community repo, I remember that I had to change /var/lib/emby-server to /var/lib/emby. The shadow service is now complaining about not finding /var/lib/emby-server. How can I point it to the new and good directory?

 

Here is some output from systemctl:

[epsus@[member="arch"] etc]$ sudo systemctl status shadow -l
● shadow.service - Verify integrity of password and group files
   Loaded: loaded (/usr/lib/systemd/system/shadow.service; static; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2016-01-04 19:43:59 EST; 17min ago
  Process: 30813 ExecStart=/usr/bin/pwck -r (code=exited, status=2)
 Main PID: 30813 (code=exited, status=2)

Jan 04 19:43:59 Arch systemd[1]: Starting Verify integrity of password and group files...
Jan 04 19:43:59 Arch pwck[30813]: user 'emby': directory '/var/lib/emby-server' does not exist

 

As thefirstofthe300 said, but it still won't work because the database still points to the wrong directory.

 

The proper migration steps are:

  • Stop and uninstall emby-server
  • Delete the emby user and group
  • Install emby-server from [community]
  • Use the provided emby-migrate-database script, in your case:
sudo emby-migrate-database /var/lib/emby-server /var/lib/emby
  • Delete your old database in /var/lib/emby-server
  • Start emby-server

BTW, make sure you manually move /var/lib/emby back to /var/lib/emby-server before you do all this.


Edited by alucryd, 05 January 2016 - 05:23 AM.

  • 3psus likes this

#109 3psus OFFLINE  

3psus

    Advanced Member

  • Members
  • 48 posts
  • Local time: 09:00 PM
  • LocationQuebec, Canada

Posted 05 January 2016 - 12:07 PM

Thanks for this detailed explanation. I knew I could just create /var/lib/emby-server and shadow would stop complaining, but this is obviously not the way to handle the situation. I'll follow your instructions and report after, thanks a lot :)



#110 GeniusLoci OFFLINE  

GeniusLoci

    Newbie

  • Members
  • 7 posts
  • Local time: 03:00 AM

Posted 05 January 2016 - 05:43 PM

Hello, guys, Emby does not see the folders on my Arch (external HDD and internal folders). Please, help.



#111 3psus OFFLINE  

3psus

    Advanced Member

  • Members
  • 48 posts
  • Local time: 09:00 PM
  • LocationQuebec, Canada

Posted 05 January 2016 - 06:22 PM

Hello, guys, Emby does not see the folders on my Arch (external HDD and internal folders). Please, help.

 

Have you made sure permissions were sufficient?



#112 GeniusLoci OFFLINE  

GeniusLoci

    Newbie

  • Members
  • 7 posts
  • Local time: 03:00 AM

Posted 06 January 2016 - 08:29 AM

Have you made sure permissions were sufficient?

I tried but it does not help. Maybe I was wrong to do so. Some advice (about permission)?



#113 3psus OFFLINE  

3psus

    Advanced Member

  • Members
  • 48 posts
  • Local time: 09:00 PM
  • LocationQuebec, Canada

Posted 06 January 2016 - 12:36 PM

Well, the user "emby" certainly needs to have read access to the folders containing your media. For this, emby could be the owner of the folder or be part of the group that has access. You might appreciate this wiki page: https://wiki.archlin...sers_and_groups

 

When you say that emby does not see your folders, what do you mean exactly? When you add your media folders, is it that you cannot add them or that you really don't see them at all? What happens if you enter the path manually?



#114 GeniusLoci OFFLINE  

GeniusLoci

    Newbie

  • Members
  • 7 posts
  • Local time: 03:00 AM

Posted 06 January 2016 - 12:55 PM

Well, the user "emby" certainly needs to have read access to the folders containing your media. For this, emby could be the owner of the folder or be part of the group that has access. You might appreciate this wiki page: https://wiki.archlin...sers_and_groups

 

When you say that emby does not see your folders, what do you mean exactly? When you add your media folders, is it that you cannot add them or that you really don't see them at all? What happens if you enter the path manually?

Thanks for the reply. This is my folder "Home" - up here everything well. The same thing with external HDD. If I enter the path manually changes nothing.568d4674c9b8c_Screenshot20160106_1366x76



#115 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 108335 posts
  • Local time: 09:00 PM

Posted 06 January 2016 - 01:02 PM

Can you grab the server log? 

 

http://emby.media/co...port-a-problem/

 

I think it is probably going to show an access failure, just want to confirm. Thanks.



#116 GeniusLoci OFFLINE  

GeniusLoci

    Newbie

  • Members
  • 7 posts
  • Local time: 03:00 AM

Posted 06 January 2016 - 01:39 PM

2016-01-06 18:22:25.4223 Error HttpServer: Error processing request for /emby/Environment/DirectoryContents?includeDirectories=true&path=%2Frun%2Fmedia%2Fuser%2FHDD
    *** Error Report ***
    Version: 3.0.5783.0
    Command line: /usr/lib/emby-server/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe
    Operating system: Unix 4.3.3.2
    Processor count: 4
    64-Bit OS: True
    64-Bit Process: True
    Program data path: /var/lib/emby
    Mono: 4.2.2 (Stable 4.2.2.10/7b87787 Mon Dec 21 19:36:52 UTC 2015)
    Application Path: /usr/lib/emby-server/MediaBrowser.Server.Mono.exe
    Access to the path "/run/media/user/HDD" is denied.
    ServiceStack.HttpError
    No Stack Trace Available



#117 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 108335 posts
  • Local time: 09:00 PM

Posted 06 January 2016 - 01:40 PM

Yea there it is. So we need to figure out how to grant the emby user access to that path

Access to the path "/run/media/user/HDD" is denied.


#118 3psus OFFLINE  

3psus

    Advanced Member

  • Members
  • 48 posts
  • Local time: 09:00 PM
  • LocationQuebec, Canada

Posted 06 January 2016 - 04:06 PM

What is the output of

ls -l /run/media/user | grep HDD


#119 GeniusLoci OFFLINE  

GeniusLoci

    Newbie

  • Members
  • 7 posts
  • Local time: 03:00 AM

Posted 07 January 2016 - 04:56 AM

 

What is the output of

ls -l /run/media/user | grep HDD

drwxrwxrwx 1 user users 12288 Dec 26 19:49 HDD

 

 

 

Yea there it is. So we need to figure out how to grant the emby user access to that path

Access to the path "/run/media/user/HDD" is denied.

How ? I cannot exit from this hell with the permissions.



#120 alucryd OFFLINE  

alucryd

    Advanced Member

  • Members
  • 278 posts
  • Local time: 03:00 AM
  • LocationLille, France

Posted 07 January 2016 - 05:18 AM

No offense but if you can't figure a basic permission issue by yourself you probably shouldn't be using Arch Linux in the first place. @3psus gave you a link to start with, and I'm sensing you need to document yourself on file permissions too.

 

Anyway, there are many ways to deal with this, each with their pros and cons: make the emby user the owner of that dir, add emby to the group owning that dir, or make it 776 or 777, but enough with the easy dirty not so good ideas. Create a new group, add your own user and emby to it, and make that group owner of the directory then add setgid recursively, that should give you read and access permissions to the share and any new file or dir created inside of it, you can play with the mod to add write permission as well if you want to store your metadata locally.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users