This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

[HOWTO] Install serviio on NAS4Free

Jails with XigmaNAS
Forum rules
Set-Up GuideFAQsForum Rules
User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install serviio on NAS4Free

Post by raulfg3 »

are you sure to do dmesg -a?

this is the last line for me:

Code: Select all

Starting jails:.
Generating .htpasswd.
Starting lighttpd.
Setting hostuuid: a060001e-8c00-00af-181d-90e6ba3c9d4e.
Setting hostid: 0x74165e21.
mkdir /jail
mkdir: /jail: File exists
mount_nullfs /mnt/NAS-A/jail /jail
ln /jail/conf/rc.conf.local /etc
ln: /etc/rc.conf.local: File exists
/etc/rc.d/jail start
Configuring jails:.
Starting jails: serviio kissdx minidlna amule.
Starting background file system checks in 60 seconds.

Thu Feb  7 16:32:33 CET 2013
as you can see , mkdir /jail fails because /jail exist ( this is normal not a problem), and the same for ln /jail/conf/rc.conf.local /etc both lines aare included to work first time, and nex times, are not necesary, because directory exist.

I do not see this lines in your dmesg -a
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

Mizma
experienced User
experienced User
Posts: 79
Joined: 02 Feb 2013 15:53
Status: Offline

Re: [HOWTO] Install serviio on NAS4Free

Post by Mizma »

Removed -s in "ln /jail/conf/rc.conf.local /etc" and removed "rehash" without any improment exept it looks more like your jail setup.

Code: Select all

Configuring jails:.
Starting jails:.
/etc/rc.conf: security.jail.chflags_allowed=1: not found
Starting mdnsresponder.
Generating .htpasswd.
Starting lighttpd.
Setting hostuuid: 22409260-d7da-11dd-9299-50465d9f8cb8.
Setting hostid: 0x2839249c.
mkdir /jail
mount_nullfs /mnt/NoX/jail /jail
ln /jail/conf/rc.conf.local /etc
ln: /etc/rc.conf.local: Cross-device link
/etc/rc.d/jail start
/etc/rc.conf: security.jail.chflags_allowed=1: not found
Configuring jails:.
Starting jails:.
Starting background file system checks in 60 seconds.
But I have this

Code: Select all

/etc/rc.conf: security.jail.chflags_allowed=1: not found
twice!! I dont get it i have this parameter set in gui as seen in post above.

and now the jail does not start at all as seen.
Last edited by Mizma on 11 Feb 2013 20:19, edited 1 time in total.

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install serviio on NAS4Free

Post by raulfg3 »

Mizma wrote:mkdir /jail
mount_nullfs /mnt/NoX/jail /jail
ln /jail/conf/rc.conf.local /etc
ln: /etc/rc.conf.local: Cross-device link
perhaps error is here, I do not know what cross-device link meas, perhaps you need help from fsbruva or other BSD guru.

I google a bit about your error and if I find something interesting I update tis post.

Edit: Ok, is easy of understand : http://forums.devshed.com/unix-help-35/ ... 62686.html

http://www.ugrad.cs.ubc.ca/~cs219/Cours ... links.html

You can't link (ln) between diferent disk. try ln -s /jail/conf/rc.conf.local /etc

So you need to think what do whit NoX , No1 and No2
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

Mizma
experienced User
experienced User
Posts: 79
Joined: 02 Feb 2013 15:53
Status: Offline

Re: [HOWTO] Install serviio on NAS4Free

Post by Mizma »

I added this soft link (-s) had it before and now the jails start nut I still can not connect to serviio without firt stop and start it from shell.

Code: Select all

Configuring jails:.
Starting jails:.
/etc/rc.conf: security.jail.chflags_allowed=1: not found
Starting mdnsresponder.
Generating .htpasswd.
Starting lighttpd.
Setting hostuuid: 22409260-d7da-11dd-9299-50465d9f8cb8.
Setting hostid: 0x2839249c.
mkdir /jail
mount_nullfs /mnt/NoX/jail /jail
ln -s /jail/conf/rc.conf.local /etc
/etc/rc.d/jail start
/etc/rc.conf: security.jail.chflags_allowed=1: not found
/etc/rc.conf.local: security.jail.chflags_allowed=1: not found <= tryed to add this in rc.conf.local aswell without success
Configuring jails:.
Starting jails: proto.domain.local serviio.domain.local.
Starting background file system checks in 60 seconds.

Tue Feb 12 17:38:29 CET 2013
nas4free:/#
do I have to modify this aswell?

Code: Select all

ln /usr/local/etc/rc.d/serviio /etc/rc.d/serviio
Last edited by Mizma on 12 Feb 2013 20:14, edited 1 time in total.

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install serviio on NAS4Free

Post by raulfg3 »

Sorry I surrender, at least you can use serviio, acces to console is not necessary until you need to change or add more paths to serviio. and you know a bypass for the problem.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

Deus_Ex
NewUser
NewUser
Posts: 6
Joined: 18 Feb 2013 16:30
Status: Offline

Re: [HOWTO] Install serviio on NAS4Free

Post by Deus_Ex »

nemo82x4 wrote:hi guy

I'm new for this forum
i instal the serviio on the jail but when I type / root @ serviio :/ etc # / etc / rc.d / serviio start

I get this error

root@serviio:/etc # /etc/rc.d/serviio start
/etc/rc.d/serviio: WARNING: $serviio_enable is not set properly - see rc.conf(5).
Cannot 'start' serviio. Set serviio_enable to YES in /etc/rc.conf or use 'onestart' instead of 'start'.

if i log with serviio and i go in /etc the file rc.conf not appear
but if i log with root and i go in /etc the file is

can you help me please
nemo82x4 wrote:thank you for your reply
when i try /etc/rc.d/serviio onestart
i get thi error root@serviio:/ # [: 1666.94: bad number
[: 1666.94: bad number
I'm in the same boat as nemo82x4.
When I try /etc/rc.d/serviio start and /etc/rc.d/serviio onestart
i get the errors too but mine are

Code: Select all

root@serviio:/ # /etc/rc.d/serviio start
/etc/rc.d/serviio: WARNING: $serviio_enable is not set properly - see rc.conf(5).
Cannot 'start' serviio. Set serviio_enable to YES in /etc/rc.conf or use 'onestart' instead of 'start'.

root@serviio:/ # /etc/rc.d/serviio onestart
Starting serviio.
root@serviio:/ # [: 1023.69: bad number
[: 1023.69: bad number
I have gone over all the steps and nothing seems amiss. I am about to give up if I can't find a solution. So can anyone help please?

By the way I also cannot autostart on boot, serviio or minidlna even with it enabled in rc.conf. Minidlna at least worked first time I tried it, though I also had to use onestart instead of just start. Why is that?

The reason I wanted to try serviio was because it auto updates database and might autostart, but it seems its harder to install and longer as well. Can this be done with packages and work without problems first time? I'm sure everybody who wants to try serviio wants a quicker and working solution first time. Debugging is a pita.

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install serviio on NAS4Free

Post by raulfg3 »

please log inside your jail and do

Code: Select all

cat /etc/rc.conf
to be sure you write properly serviio_enable="YES"

I actually not use serviio and use minidlna instead, but see my step:

Code: Select all

rnas:~# jls
   JID  IP Address      Hostname                      Path
     1  192.168.1.202   kissdx                        /jail/kissdx
     2  192.168.1.203   minidlna                      /jail/minidlna
     3  192.168.1.205   amule                         /jail/amule
rnas:~#

Code: Select all

rnas:~# jexec 2 csh
You have mail.
root@minidlna:/ # cat /etc/rc.conf
minidlna_enable="YES"
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
root@minidlna:/ #
you can see minidlna_enable="YES" to autostart minidlna when reboot in /etc/rc.conf


do the same for serviio
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

Deus_Ex
NewUser
NewUser
Posts: 6
Joined: 18 Feb 2013 16:30
Status: Offline

Re: [HOWTO] Install serviio on NAS4Free

Post by Deus_Ex »

Hi, Raul

Thanks for your suggestions. I added serviio_enable="YES" to /etc/rc.conf in the nas4free root. I will try adding it in the jail's /etc/conf. I'm still not sure if that will fix the error i got when running it manually.

Interestingly I looked in the serviio log and found a couple of errors which maybe the cause

Code: Select all

WARN  [FFMPEGWrapper] FFmpeg is not compiled with librtmp support, RTMP streaming will not work.
ERROR [ProcessExecutor] Fatal error in process starting: Cannot run program "dcraw": java.io.IOException: error=2, No such file or directory
WARN  [MediaServer] DCRAW not found. Support for raw image files will be missing
I did follow the commands to make ffmpeg so I'm not sure why librtmp was not compliled. Has it been updated? Maybe it downloaded the wrong source.

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install serviio on NAS4Free

Post by raulfg3 »

Deus_Ex wrote: I added serviio_enable="YES" to /etc/rc.conf in the nas4free root.
I never say in root , I say inside your jail, see my example Y have it inside the jail name minidlna.


If ffmpeg is not compiled as expected, repeat step to properly compile it.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

comrie19
NewUser
NewUser
Posts: 1
Joined: 12 Feb 2013 06:57
Status: Offline

Re: [HOWTO] Install serviio on NAS4Free

Post by comrie19 »

I am having trouble getting the WebUI to run at startup.

Currently the only way to run it is to go into the jail and run the command manually.

Code: Select all

/usr/local/etc/serviio-1.1/bin/serviio-webui.sh start
Then once I leave the jail the WebUI stops working.

Any idea what I am missing?

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install serviio on NAS4Free

Post by raulfg3 »

weird69 wrote:Hi guys, thanks for the guide. When I do every step, serviio seems to work normally. Problem comes when I restart the N4F server computer, then it runs the jail, serviio seems to keep working because i still can stream videos on my devices, but I'm unable to acces the serviio webui console anymore, which is annoying. Before restarting the computer i could access it with Internet Explorer. Now i can't, it says internet explorer couldn't find the web. The address im using is http://Serviioip:8123/serviio/console

Any ideas?

Im using a 32 bit system
comrie19 wrote:I am having trouble getting the WebUI to run at startup.

Currently the only way to run it is to go into the jail and run the command manually.

Code: Select all

/usr/local/etc/serviio-1.1/bin/serviio-webui.sh start
Then once I leave the jail the WebUI stops working.

Any idea what I am missing?


Same problem in a recent brother install, if I meet the problem, I update this howto or post howto resolve, actually I have no idea why works first time and do not works after restart ( webgui), main serviio works fine and I can stream videos, but same as you describe I can't access webGUI.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

himbrr
Advanced User
Advanced User
Posts: 153
Joined: 21 Oct 2012 21:16
Location: Germany
Status: Offline

Re: [HOWTO] Install serviio on NAS4Free

Post by himbrr »

Hi,

after installing serviio on my x64 build, I tried to start it via /etc/rc.d/serviio.
But I'm getting the following error:

Code: Select all

root@proto:/ # /etc/rc.d/serviio start
Starting serviio.
root@proto:/ # /usr/local/sbin/serviiod: ======================================================================: not found
/usr/local/sbin/serviiod: ======================================================================: not found
I have choosen the latest build of serviio -> 1.2.
Starting serviio via the bin/serviio.sh worked well.

Checked again...
The serviio service started serviio, but I still getting the error message.

Is this a bug in the script? (just edited the path from serviio-1.1 to serviio-1.2)
Nas4Free 9.2.0.1.972, ASUS P8H77-I, 8GB RAM, Intel Celeron CPU G530 @ 2.40GHz, 5x 2TB WD Red, 1x 60GB OCZ Vertex 2

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install serviio on NAS4Free

Post by raulfg3 »

not still tested, I still use serviio 1.1, I'll try to do a new fresh install to test in a few days.

But probably some type of bug in script due some changes in serviio.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

lucozade
NewUser
NewUser
Posts: 2
Joined: 20 Mar 2013 09:31
Status: Offline

Re: [HOWTO] Install serviio on NAS4Free

Post by lucozade »

FIRST THINGS FIRST: THANKS FOR THE GREAT HOWTO AT THE START OF THIS POST.

Got sick of leaving my laptop switched on with Serviio running to serve my 2 Samsung TVs (UE32ES5500 and UE37ES5500).

So I started the long task of installation yesterday on my NAS4FREE embedded setup. I'm running 636 build.

I got the jail working without problem and then moved onto the installation of all the codecs. That went fine but took ages! (6 hours)

When I got to the instructions regarding Serviio installation (on the first post) I replaced Serviio-1.1 with Serviio-1.2.

Installation went well and I was soon able to restart my NAS4FREE box and Serviio was available on my TVs.

However, the web interface via http://ipaddress:8123/serviio/console starts up in Internet Explorer but I'm left with buttons that don't do anything.

So using my Windows installation on my laptop I reconfigured the Serviio Console to point at the Jailed version of Serviio.

Now I'm able to configure my installation. I setup my libraries.

Speed hasn't been a problem and the Samsung UE37ES5500 is able to see Serviio and stream the content, including 10Gb 1080p movies.

I checked on the UE32ES5500 TV and it took a very long time to find Serviio. When it finally found it I attempted to stream content but the TV keeps giving the error "format not supported".

Both TVs are the same model type and I'm streaming the same files to them.

My questions to the community:

1. The instructions are based on Serviio 1.1. Do I need to do anything else to the installation if I've gone straight to Serviio 1.2? I was a bit concerned that I've not installed the correct codecs or maybe I should be installing later versions.
2. Is there anything else I need to do to the Jail in order to speed up the advertising of the service?
3. What have I missed ! ?


NAS4Free Embedded - 636
HP MICROSERVER N36L - 8Gb RAM
Networking: 1Gb networking flood wired throughout the house

marcvd
NewUser
NewUser
Posts: 2
Joined: 08 Dec 2012 00:30
Status: Offline

Re: [HOWTO] Install serviio on NAS4Free

Post by marcvd »

Thanks for your instructions.
The Jail setup works but I'm trying to build ffmpeg1. I followed you instructions:
make config
make install clean
selected all the default options

I'm getting the following errors see below.
Is something changed ??? with what you describe, or I'm just too new to nas4free.....:)

Linking C static library libcmlibarchive.a
[ 56%] Built target cmlibarchive
Scanning dependencies of target CMakeLib
[ 56%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmStandardIncludes.cxx.o
[ 56%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmArchiveWrite.cxx.o
[ 56%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmBootstrapCommands.cxx.o
[ 56%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmCacheManager.cxx.o
[ 57%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmCommands.cxx.o
[ 57%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmCommandArgumentLexer.cxx.o
[ 57%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmCommandArgumentParser.cxx.o
c++: Internal error: Killed: 9 (program cc1plus)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
*** [Source/CMakeFiles/CMakeLib.dir/cmBootstrapCommands.cxx.o] Error code 1
1 error
*** [Source/CMakeFiles/CMakeLib.dir/all] Error code 2
1 error
*** [all] Error code 2
1 error
*** [do-build] Error code 1

Stop in /usr/ports/devel/cmake.
*** [build-depends] Error code 1

Stop in /usr/ports/graphics/png.
*** [install] Error code 1

Stop in /usr/ports/graphics/png.
*** [lib-depends] Error code 1

Stop in /usr/ports/multimedia/gpac-libgpac.
*** [install] Error code 1

Stop in /usr/ports/multimedia/gpac-libgpac.
*** [build-depends] Error code 1

Stop in /usr/ports/multimedia/x264.
*** [install] Error code 1

Stop in /usr/ports/multimedia/x264.
*** [lib-depends] Error code 1

Stop in /usr/ports/multimedia/ffmpeg1.
*** [install] Error code 1

My configuration:
Version 9.1.0.1 - Sandstorm (revision 636)
Build date Tue Feb 5 01:22:23 CET 2013
Platform OS FreeBSD 9.1-RELEASE (reldate 901000)
Platform x64-embedded on Intel(R) Atom(TM) CPU D510 @ 1.66GHz
System ASUSTeK Computer INC. AT5NM10-I
Memory: 34% of 770MiB ??? (I'v 1Gb installed)

sweed15
NewUser
NewUser
Posts: 1
Joined: 26 Mar 2013 05:54
Status: Offline

Re: [HOWTO] Install serviio on NAS4Free

Post by sweed15 »

comrie19 wrote:I am having trouble getting the WebUI to run at startup.

Currently the only way to run it is to go into the jail and run the command manually.

Code: Select all

/usr/local/etc/serviio-1.1/bin/serviio-webui.sh start
Then once I leave the jail the WebUI stops working.

Any idea what I am missing?
I'm having this exact same problem except I'm running Serviio 1.2.1.

Deus_Ex
NewUser
NewUser
Posts: 6
Joined: 18 Feb 2013 16:30
Status: Offline

Re: [HOWTO] Install serviio on NAS4Free

Post by Deus_Ex »

I could not get the WebUi to work on Firefox, IE or Chrome after a reboot, so its not a browser problem that I know of. Its probably a buggy script or a permission not set. I haven't bothered to find out whats wrong though.

Fortunately there is another better way to set your serviio settings if you have a android mobile. The app is ServiiDroid by Will Lunniss. It works perfectly and you can force refresh your library when you add new files with the touch of a button. All the settings that where on the WebUi are in the app. It even alerts you when there is a server update.

The only problem I have found with Serviio is that I can't see my videos appear in Windows media player or my Galaxy S3 mobile. I think its because there are no profiles for Windows 7 or my mobile. There is a Windows 8/RT profile strangely but no Windows 7 ? Has anybody using Serviio have this problem?

marcvd - did you log into your jail before making ffmpeg1? i.e. 'jexec 1 csh'
lucozade - Have you set the Samsung TV profile?
himbrr - Edit the serviiod file. You probably forgot to add 'SERVIIO_HOME=/usr/local/etc/serviio-1.2'

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install serviio on NAS4Free

Post by raulfg3 »

Deus_Ex wrote:I could not get the WebUi to work on Firefox, IE or Chrome after a reboot, so its not a browser problem that I know of. Its probably a buggy script or a permission not set. I haven't bothered to find out whats wrong though.
I agree, but I'm not a programmer, only a user, so if someone have interest, perhaps can post a new start script that solves the problem, I have no problem to edit my first post to reflect changes.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

marcvd
NewUser
NewUser
Posts: 2
Joined: 08 Dec 2012 00:30
Status: Offline

Re: [HOWTO] Install serviio on NAS4Free

Post by marcvd »

marcvd wrote:Thanks for your instructions.
The Jail setup works but I'm trying to build ffmpeg1. I followed you instructions:
make config
make install clean
selected all the default options

I'm getting the following errors see below.
Is something changed ??? with what you describe, or I'm just too new to nas4free.....:)

Linking C static library libcmlibarchive.a
[ 56%] Built target cmlibarchive
Scanning dependencies of target CMakeLib
[ 56%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmStandardIncludes.cxx.o
[ 56%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmArchiveWrite.cxx.o
[ 56%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmBootstrapCommands.cxx.o
[ 56%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmCacheManager.cxx.o
[ 57%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmCommands.cxx.o
[ 57%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmCommandArgumentLexer.cxx.o
[ 57%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmCommandArgumentParser.cxx.o
c++: Internal error: Killed: 9 (program cc1plus)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
*** [Source/CMakeFiles/CMakeLib.dir/cmBootstrapCommands.cxx.o] Error code 1
1 error
*** [Source/CMakeFiles/CMakeLib.dir/all] Error code 2
1 error
*** [all] Error code 2
1 error
*** [do-build] Error code 1

Stop in /usr/ports/devel/cmake.
*** [build-depends] Error code 1

Stop in /usr/ports/graphics/png.
*** [install] Error code 1

Stop in /usr/ports/graphics/png.
*** [lib-depends] Error code 1

Stop in /usr/ports/multimedia/gpac-libgpac.
*** [install] Error code 1

Stop in /usr/ports/multimedia/gpac-libgpac.
*** [build-depends] Error code 1

Stop in /usr/ports/multimedia/x264.
*** [install] Error code 1

Stop in /usr/ports/multimedia/x264.
*** [lib-depends] Error code 1

Stop in /usr/ports/multimedia/ffmpeg1.
*** [install] Error code 1

My configuration:
Version 9.1.0.1 - Sandstorm (revision 636)
Build date Tue Feb 5 01:22:23 CET 2013
Platform OS FreeBSD 9.1-RELEASE (reldate 901000)
Platform x64-embedded on Intel(R) Atom(TM) CPU D510 @ 1.66GHz
System ASUSTeK Computer INC. AT5NM10-I
Memory: 34% of 770MiB ??? (I'v 1Gb installed)
A total of 770MiB of memory during compilation of ffmpeg1 is not enough, after enabling swap space, the compilation is OK, :oops:
(Total of 2 Gb should be OK)

dboy
Starter
Starter
Posts: 29
Joined: 25 Oct 2012 22:32
Status: Offline

Re: [HOWTO] Install serviio on NAS4Free

Post by dboy »

I am just starting the process of installing a jail for serviio, serviio itself and have some initial questions:
I have a full install on a separate system disk and data on a 4*2TB zfs Raidz5.

My first thought was to install the jail for serviio on the system disk to have it separated from the data and minimize the risk that my data is corrupted during the installation, since I don't even need to have the zfs raidz5 connected during the installation phase.

After thinking/reading a bit it seems the smart way may instead be to install the jail on the zfs disks, so that if my system disk fails, I only need to replace the system disk, install Nas4free, restore the (backuped) configuration and create links to the jail on the ZFS system and then all should be up and running. That should be much faster than having to go through the routine of installing the jail and serviio on top of it.

Is this correct and a smart way to do it? Is it as simple as this after the jail and serviio is installed, or is there some connections between the jail and the host system I should know of?

Deus_Ex
NewUser
NewUser
Posts: 6
Joined: 18 Feb 2013 16:30
Status: Offline

Re: [HOWTO] Install serviio on NAS4Free

Post by Deus_Ex »

Hi dboy,
Yes I personally think its a good idea to install the jail to the data drives as like you said it would be easier to restore if something goes wrong with your system disk.
I am using a embedded nas4free so I have no choice. Jails take up a fair amount of space and I have 2 jails and it comes to nearly 5GB. So unless you've got a decent sized system disk I would install the jail to the data disk. Installing a jail on solid state memory would not be a good idea as the freebsd base contains lots and lots of files. It would slow it down terribly I would think.

By the way the guide is a little out of date. I installed the java using 'pkg_add -r openjdk7'. It saves a ton of install time believe me. The ffmpeg is out of date on the ports too. Version 1.0.5 I believe. Serviio requires 1.1.1 for the latest version serviio-1.2.1. Version 1.0.5 still works but rtmp and libass is not compiling with it. We need a new port of ffmpeg. Hopefuly somebody will make a new ffmpeg port or I figure it out myself.

The Webui is also out of date but it still works adequately. I am using serviidroid instead as its frequently updated and more convenient when your on the sofa. :)

As you might have read alot of people have had problems with the Webui disappearing after a reboot, me included. I have now found out why it was not loading after a reboot. According to the serviio logs the Webui was trying to start itself twice causing the Webui to not load or open the 8123 port after booting.
To fix this, the line you should NOT enter when installing serviio is 'make a link to /etc/rc.d'

Code: Select all

ln /usr/local/etc/rc.d/serviio /etc/rc.d/serviio
This line caused the webui to startup twice causing the problem. The line is not needed other than to let you manually start serviio without typing out the whole directory path to serviio's startup script.

A new updated serviio thread is needed unless the op returns. I might write a new quick guide if necessary.

Just to add, you can also remove the link to get the Webui back if you have installed Serviio already by entering inside the jail.

Code: Select all

rm /etc/rc.d/serviio

dboy
Starter
Starter
Posts: 29
Joined: 25 Oct 2012 22:32
Status: Offline

Re: [HOWTO] Install serviio on NAS4Free

Post by dboy »

Deus_ex
Thanks. It would be great if you had the time to write or update the instructions.

Even better if you could look through the "setting up a jail for serviio" instruction as well to make sure it is ok...although I am quite happy to follow instruction and hack away, I feel I don't know enough to get myself out of trouble if the instructions are incorrect.

User avatar
bgalakazam
NewUser
NewUser
Posts: 7
Joined: 18 Apr 2013 02:44
Status: Offline

Re: [HOWTO] Install serviio on NAS4Free

Post by bgalakazam »

Just followed the instructions. I installed with openjdk6 with

Code: Select all

make -DBATCH install clean
to not configure the default packages. I don't know about ffmpeg, it's listed as 1.0.5 in head. I had no difficulties at any point, even the log file is working in the webinterface. Instructions are up to date in my opinion.

mrjrussell
Starter
Starter
Posts: 48
Joined: 26 Jun 2012 04:31
Status: Offline

Re: [HOWTO] Install serviio on NAS4Free

Post by mrjrussell »

Ok so i have it installed now on my jail thanks to the brig, but I dont understand the folder mounting so I can share me data to the jail.

Can anyone help ?
Last edited by mrjrussell on 04 Jun 2013 17:52, edited 1 time in total.
SGI Rackable NM46X, x64 Dual Processor - embedded on Dual-Core AMD Opteron(tm) Processor 8216 HE 16GB Ram -9.2.0.1 - Shigawire (rev 925)
My setup posting.php?mode=edit&f=63&t=179&p=363

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install serviio on NAS4Free

Post by raulfg3 »

mrjrussell wrote:why the folder mounting so i can share me data to the jail.

If you have in your NAS a folder for Videos in your /mnt/yourpool/Video , you need to mount ( in read only mode) inside your jail so serviio can read it, and share.

You need to create a folder in the /mnt inside your serviio jail and configure TheBrig to mount , like described here (fstab box):
viewtopic.php?f=79&t=3894#p20142
viewtopic.php?f=79&t=3894#p20139
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

mrjrussell
Starter
Starter
Posts: 48
Joined: 26 Jun 2012 04:31
Status: Offline

Re: [HOWTO] Install serviio on NAS4Free

Post by mrjrussell »

Hey that as to simple. Thanks Raulfg3

content is sharing and for the most part everything is working I have a fe videos that dont have audio

and I have a issue were some large Hiquality video wont play becuase the DIRECTV receiver gives a error that the bitrate is to high .

I did allow for use of all 4 cpus and unchecked the " Produce the best video quality "
SGI Rackable NM46X, x64 Dual Processor - embedded on Dual-Core AMD Opteron(tm) Processor 8216 HE 16GB Ram -9.2.0.1 - Shigawire (rev 925)
My setup posting.php?mode=edit&f=63&t=179&p=363

mrjrussell
Starter
Starter
Posts: 48
Joined: 26 Jun 2012 04:31
Status: Offline

Re: [HOWTO] Install serviio on NAS4Free

Post by mrjrussell »

I wanted to add in Ubuntu I also cant use firefox on the serviio configuration page.
Chromium or Chrome work fine.
SGI Rackable NM46X, x64 Dual Processor - embedded on Dual-Core AMD Opteron(tm) Processor 8216 HE 16GB Ram -9.2.0.1 - Shigawire (rev 925)
My setup posting.php?mode=edit&f=63&t=179&p=363

pompelogpilt
Starter
Starter
Posts: 21
Joined: 01 Sep 2012 13:39
Status: Offline

Re: [HOWTO] Install serviio on NAS4Free

Post by pompelogpilt »

Im having issues making this work, i get an error about java during make clean command, exits with error. What might be causing this? I am guessing this error is what causing serviio not to run?

Code: Select all

warning: package com.sun.java.swing.plaf does not exist
Using boot class path = [/usr/ports/java/openjdk6/work/build/bsd-amd64/tmp/rt-orig.jar, /usr/ports/java/openjdk6/work/build/bsd-amd64/langtools/dist/bootstrap/lib/javac.jar, /usr/local/bootstrap-openjdk/jre/lib/resources.jar, /usr/local/bootstrap-openjdk/jre/lib/sunrsasign.jar, /usr/local/bootstrap-openjdk/jre/lib/jsse.jar, /usr/local/bootstrap-openjdk/jre/lib/jce.jar, /usr/local/bootstrap-openjdk/jre/lib/charsets.jar, /usr/local/bootstrap-openjdk/jre/lib/modules/jdk.boot.jar, /usr/local/bootstrap-openjdk/jre/classes, /usr/local/bootstrap-openjdk/jre/lib/ext/dnsns.jar, /usr/local/bootstrap-openjdk/jre/lib/ext/localedata.jar, /usr/local/bootstrap-openjdk/jre/lib/ext/sunpkcs11.jar, /usr/local/bootstrap-openjdk/jre/lib/ext/sunjce_provider.jar]
Ignoring (other) javax.xml.ws.wsaddressing.package-info : <any>
   ClassSymbol <any>
error: java.awt.VKCollection: class file for java.awt.VKCollection not found
error: class file for java.awt.VKCollection not found
1 error
gmake[2]: *** [initial-image-jdk] Error 1
gmake[2]: Leaving directory `/usr/ports/java/openjdk6/work/jdk/make'
gmake[1]: *** [jdk-build] Error 2
gmake[1]: Leaving directory `/usr/ports/java/openjdk6/work'
gmake: *** [build_product_image] Error 2
*** [do-build] Error code 1

Stop in /usr/ports/java/openjdk6.
*** [install] Error code 1

Stop in /usr/ports/java/openjdk6.
Furhter, it seems that the created user within the jail gets deleted upon reboot?

regards
Kim

DanAddz
Starter
Starter
Posts: 63
Joined: 23 Dec 2012 06:32
Status: Offline

Re: [HOWTO] Install serviio on NAS4Free

Post by DanAddz »

Hi Guys,

I have my Serviio working perfectly following your instruction and love how it works.

I am currently doing a bit of organisation and would like to know how i could change some things without effecting serviio to much.

When i set up the serviio to make sure that the jail looked at the correct files i set it up like this

Code: Select all

/mnt/data/Video /jail/proto/mnt/Videos nullfs ro 0 0
This is fine but i would like to know how i could change it so that the serviio folders are in a different location. So that it looks like this if i set it up from scratch.

Code: Select all

/mnt/data/serviio/Videos /jail/proto/mnt/Videos nullfs ro 0 0
if anyone could help me change the location of the serviio files without stuffing up the installation that would be Great!

Regards,

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: [HOWTO] Install serviio on NAS4Free

Post by raulfg3 »

Because you do not change the relative path inside the serviio jail, you only need to stop serviio, change mount-point to new location and restart serviio.

because info provided, I suppose you have a manually-made jail (wiki jail), if yes, please consider to migrate to TheBring in the future, is better and easy to manage jails in general: viewtopic.php?f=79&t=3894
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

Locked

Return to “Jails”