Page 1 of 1

[Solved] Fedora 17, serviio and permissions

PostPosted: Sat Sep 22, 2012 5:10 pm
by pgaiger
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

Re: Fedora 17, serviio and permissions

PostPosted: Sat Sep 22, 2012 5:48 pm
by will
Make sure the user that you run serviio.sh as has access (the console just connects to a local RESTful web server)

Re: Fedora 17, serviio and permissions

PostPosted: Sat Sep 22, 2012 6:05 pm
by pgaiger
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.

Re: Fedora 17, serviio and permissions

PostPosted: Sun Sep 23, 2012 6:54 am
by will
Can you post a detail log please (see sig).

Re: Fedora 17, serviio and permissions

PostPosted: Sun Sep 23, 2012 4:24 pm
by pgaiger
Here is the log (attached) as requested. Thanks.

Pete

Re: Fedora 17, serviio and permissions

PostPosted: Sat Sep 29, 2012 4:46 pm
by pgaiger
*Bump*

Anyone?

Re: Fedora 17, serviio and permissions

PostPosted: Sun Sep 30, 2012 12:10 pm
by zip
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?

Re: Fedora 17, serviio and permissions

PostPosted: Sun Sep 30, 2012 4:48 pm
by pgaiger
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

Re: Fedora 17, serviio and permissions

PostPosted: Sun Sep 30, 2012 9:07 pm
by Elwell
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

Re: Fedora 17, serviio and permissions

PostPosted: Sun Sep 30, 2012 11:09 pm
by pgaiger
Elwell,

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

Re: Fedora 17, serviio and permissions

PostPosted: Wed Oct 03, 2012 3:12 pm
by abubin
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.

Re: Fedora 17, serviio and permissions

PostPosted: Sun Oct 07, 2012 6:47 pm
by pgaiger
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.

Re: Fedora 17, serviio and permissions

PostPosted: Fri Dec 07, 2012 3:01 am
by av1982
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?

Re: Fedora 17, serviio and permissions

PostPosted: Fri Dec 07, 2012 4:12 am
by pgaiger
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?

Re: Fedora 17, serviio and permissions

PostPosted: Sun Dec 16, 2012 6:39 pm
by pgaiger
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)