FAQ  •  Register  •  Login

[Solved] Fedora 17, serviio and permissions

<<

pgaiger

Serviio newbie

Posts: 9

Joined: Sat Sep 22, 2012 5:05 pm

Post Sat Sep 22, 2012 5:10 pm

[Solved] Fedora 17, serviio and permissions

Serviio is unable to read my library. Even when I run the serviio-console as root, I still get the following error:

2012-09-22 10:04:13,110 WARN [LibraryAdditionsCheckerThread] Folder '/home/pgaiger/Videos' is either not an existing directory or cannot be read due to access rights

I have tried changing ownership, etc and still receive the same error. Running Fedora 17 with the following:

ffmpeg version 0.10.4 Copyright (c) 2000-2012 the FFmpeg developers
built on Jul 20 2012 22:00:57 with gcc 4.7.0 20120507 (Red Hat 4.7.0-5)
configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-gnutls --enable-libass --enable-libcdio --enable-libcelt --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
libavutil 51. 35.100 / 51. 35.100
libavcodec 53. 61.100 / 53. 61.100
libavformat 53. 32.100 / 53. 32.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 61.100 / 2. 61.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100

Linux mako.gaigernet 3.5.3-1.fc17.x86_64 #1 SMP Wed Aug 29 18:46:34 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

Despite many hours of searching for the results to this problem, I have been unsuccessful.

Thanks.

Pete
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Sat Sep 22, 2012 5:48 pm

Re: Fedora 17, serviio and permissions

Make sure the user that you run serviio.sh as has access (the console just connects to a local RESTful web server)
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

pgaiger

Serviio newbie

Posts: 9

Joined: Sat Sep 22, 2012 5:05 pm

Post Sat Sep 22, 2012 6:05 pm

Re: Fedora 17, serviio and permissions

Thanks for the quick reply. Serviio.sh is being run as root. I have tried to add serviio user to wheel, as well as the group belonging to the username of the file owners. It has me stumped.
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Sun Sep 23, 2012 6:54 am

Re: Fedora 17, serviio and permissions

Can you post a detail log please (see sig).
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

pgaiger

Serviio newbie

Posts: 9

Joined: Sat Sep 22, 2012 5:05 pm

Post Sun Sep 23, 2012 4:24 pm

Re: Fedora 17, serviio and permissions

Here is the log (attached) as requested. Thanks.

Pete
Attachments
serviio.log
serviio.log
(75.99 KiB) Downloaded 193 times
<<

pgaiger

Serviio newbie

Posts: 9

Joined: Sat Sep 22, 2012 5:05 pm

Post Sat Sep 29, 2012 4:46 pm

Re: Fedora 17, serviio and permissions

*Bump*

Anyone?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17213

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Sep 30, 2012 12:10 pm

Re: Fedora 17, serviio and permissions

What Will said.... can you su to the serviio user (assuming it's what you're using according to the user dir: /opt/serviio) and see if you can read files from the shared dirs?
<<

pgaiger

Serviio newbie

Posts: 9

Joined: Sat Sep 22, 2012 5:05 pm

Post Sun Sep 30, 2012 4:48 pm

Re: Fedora 17, serviio and permissions

Exactly the same. Ran it as root as mentioned before, now ran it as user serviio. Same error. Folder cannot be read. Makes no sense.

I ensured that the directory mentioned in the log had the correct permissions (no restrictions) and that there was not a typo:

pgaiger@mako Music$ pwd
/home/pgaiger/Music
<<

Elwell

Streaming enthusiast

Posts: 20

Joined: Thu May 27, 2010 5:55 pm

Post Sun Sep 30, 2012 9:07 pm

Re: Fedora 17, serviio and permissions

OK, I'm running serviio on Fed 17 without any permissions issues -- what do you have selinux configured as though
$ getenforce
should tell you -- I tend to run in Permissive rather than enforcing on my NAS (as I have other apps I've not done selinux configs for yet)

if you want to (temporarily) disable selinux, 'setenforce permissive' will do, then you can check the logs
# less /var/log/audit/audit.log

for related warnings
<<

pgaiger

Serviio newbie

Posts: 9

Joined: Sat Sep 22, 2012 5:05 pm

Post Sun Sep 30, 2012 11:09 pm

Re: Fedora 17, serviio and permissions

Elwell,

Thanks. I have been running in permissive the whole time. :(
<<

abubin

Serviio lover

Posts: 80

Joined: Tue Jul 26, 2011 3:54 pm

Post Wed Oct 03, 2012 3:12 pm

Re: Fedora 17, serviio and permissions

whenever I install RedHat based linux, the first thing I always do after installing is disable selinux. This thing is more trouble than it's worth. Especially in a home environment where we don't need that kind of security.
<<

pgaiger

Serviio newbie

Posts: 9

Joined: Sat Sep 22, 2012 5:05 pm

Post Sun Oct 07, 2012 6:47 pm

Re: Fedora 17, serviio and permissions

So here is what I have found:

I followed the directions here: http://wiki.serviio.org/doku.php?id=how ... all:fedora

When I run the service that I created, there is insufficient rights to read the directory in the user "pgaiger"'s home. If I kill the service and run /opt/serviio/bin/serviio.sh as root from a terminal, it works fine. I have added the user "serviio" to wheel, the the pgaiger group and even added it to root. Still, it doesn't work when run as the service. Sadly, I am very close to abandon. Any more suggestions based on this info? Any help is greatly appreciated. Thanks.

P.
<<

av1982

Serviio newbie

Posts: 7

Joined: Mon Nov 26, 2012 11:18 pm

Post Fri Dec 07, 2012 3:01 am

Re: Fedora 17, serviio and permissions

I too have the same problem. I can't seem to be able to stream via mediabrowser unless i run serviio as root. All the videos give me a 200 error saying it can't find the stream when I let the system launch it. Anyone figure this out yet?
<<

pgaiger

Serviio newbie

Posts: 9

Joined: Sat Sep 22, 2012 5:05 pm

Post Fri Dec 07, 2012 4:12 am

Re: Fedora 17, serviio and permissions

This is unbelievable. I have still not got this to work properly based on the instructions here: http://wiki.serviio.org/doku.php?id=how ... all:fedora

I have been starting the server as root every time I want serviio to run. Tragic. I have tried everything that I know, researched like mad, requested help on irc, etc.

Do I just abandon?
<<

pgaiger

Serviio newbie

Posts: 9

Joined: Sat Sep 22, 2012 5:05 pm

Post Sun Dec 16, 2012 6:39 pm

Re: Fedora 17, serviio and permissions

Please flag as solved and consider updating the incomplete instructions on the wiki.

Change permissions in media directory as following example:

chmod 750 /home/username/Videos/ (or whatever the path to your media is)

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 28 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.