[HOWTO] Install Serviio in Freenas 8.0.x

Status
Not open for further replies.

alexzzz

Cadet
Joined
Dec 22, 2011
Messages
2
first thing first, I'm a noob at this.

anyway, so i install freenas 8. All is well on that end, i can ssh, ftp, and all. I started following the instructions on this thread particularly protosd's link. But I am at lost as to how to do this considering after I install freenas 8, I only have like 400MB of free space. Freenas 8 install only 1 partition on my 2GB drive which is a 1GB partition. I must be missing something here. Am I suppose to make another partition on the same usb drive (if so please show me how)? If not, is 400MB suppose to be enough to do all this? I can not download, extract, and install all in the same usb drive because of the limited partition space available.

I know nothing about linux/freebsd. It took me awhile just to figure out how to use the editor. Well any help is appreciated.
 

LAYGO

Explorer
Joined
Dec 21, 2011
Messages
85
The jail actually runs off your pool/tank/etc, not from your USB stick. I'm running FreeNAS 8 off a 2gb stick as well on my Proliant N40L. If you look at the paths, you're not putting files on the stick, but your pool. I initially had the same concern, but you're only editing existing files on the stick vs adding new ones.
 

alexzzz

Cadet
Joined
Dec 22, 2011
Messages
2
Maybe I should just stick to gui type server or better yet stay with the readynas I'm currently using. I have a lot to learn it seems. The pool/tank, does that mean volume? Will it reside on a separate drive? I'm trying to have the USB drive and 4 drive raid 5.
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
This is probably the ultimate noob question, but I can NOT get the chown command to work.

I think I just figured it out. Going to copy the logs to show that I'm trying different ways to get chown to work & I noticed the error while adding the admin.



(Off to look how to create/add the group 'admin')


LAYGO, thanks for the feedback. I'm not sure what's happening here/why it isn't working. I don't have time to dig into it right now to see why. You can edit the /etc/group file and manually add a group there, just pick an entry and copy it, change the ID to a unique #, and change the group name to admin. You had the right chown command, the R is capitalized (so chown -R admin:admin FOLDER).
 

LAYGO

Explorer
Joined
Dec 21, 2011
Messages
85
LAYGO, thanks for the feedback. I'm not sure what's happening here/why it isn't working. I don't have time to dig into it right now to see why. You can edit the /etc/group file and manually add a group there, just pick an entry and copy it, change the ID to a unique #, and change the group name to admin. You had the right chown command, the R is capitalized (so chown -R admin:admin FOLDER).

I'm not sure if admin:admin is REQUIRED to work or just to limit access to the /usr/local/serviio-0.6.0.1/bin to just the admin group vs wheel, but I worked around it via:
chown -R admin:wheel .

I will add the group manually & rerun chown w/admin:admin, but otherwise, it's working now, streaming some Big Bang Theory now. Getting Serviio running via the full tutorial was a great experience, then I had to get console running & media added to the library, THEN I could actually stream! ;)

Now, for the 2nd phase of this project: a torrent downloader. Transmission in a Jail tutorial, here I come.

Tangent time . . .

This box (Proliant N40L) has been an interesting project compared to my Synology NAS. I wanted a DLNA server I could leave running w/o having to have my desktop on all the time. I had bought the Synology, but never bought the drives for it. Just let it sit for months w/o even powering it on. Then I saw what people were doing with the N40L & got on board & almost sold the Synology. I decided to give the Synology to the woman for her place, so I got it up & running & used it as a backup for all my media on my desktop. Once it was running & how easy it was to configure, I was impressed. It was one of those "just works" solutions. Then I started trying to replicate some of the Synology functionality in my N40L. It's taken 20x longer! If there was a way to boot my N40L w/a Synology install, I'd do it, but like I said, it's been interesting/educating.
 

LAYGO

Explorer
Joined
Dec 21, 2011
Messages
85
And with all that, I forgot to say . . .

THANKS PROTO FOR THE TUTORIAL! I wouldn't have figured all that out on my own. I grok about 60-70% of it.
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
LAYGO,

Sorry I don't have time to go into the details, and I don't want to take this thread off the topic of Serviio, but you should be able to run Transmission in the same Jail as Serviio.

You'd need to add another entry in the fstab.serviio file outside the jail, create the folders inside and outside the jail to match the entry you just added to the fstab.serviio, and then pop into the jail and install Transmission. There might be a few other steps, but it shouldn't be all that difficult and it would save you from going thru the whole process again.
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
We must have been posting at the same time! You're welcome, thanks for the feedback, it helps make it better for everyone.
 

crpd

Cadet
Joined
Dec 20, 2011
Messages
4
Hi,
I just installed freenas latest 8.0.2. When trying to start the jail, putty and the GUI stop responding, at the freenas box I get this:
freenas sshd[3896]:fatal write failed invalid argument
freenas ntpd[1550]:sendto (67.18.187.111) (fd=22): invalid argument
freenas ntpd[1550]:sendto (198.60.22.240) (fd=22): invalid argument
freenas ntpd[1550]:sendto (208.53.158.34) (fd=22): invalid argument

I am complete noob at this, What would I look for?
Thx
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
It looks like you don't have any DNS servers setup in the GUI, Network Settings. There was a warning about checking this in the turtorial. You could use OpenDNS 208.67.222.222 or GoogleDNS 8.8.8.8. Then recheck the tutorial about copying resolv.conf....
 

crpd

Cadet
Joined
Dec 20, 2011
Messages
4
It looks like you don't have any DNS servers setup in the GUI, Network Settings. There was a warning about checking this in the turtorial. You could use OpenDNS 208.67.222.222 or GoogleDNS 8.8.8.8. Then recheck the tutorial about copying resolv.conf....

Thanks, I actually did put in the DNS, however typed it incorrectly:) so now that's fixed.
My problem now is that it seems that the jail starts but serviio server is not running. The serviio remote console on my window box says it's not running, windows media player cannot see it.
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
Thanks, I actually did put in the DNS, however typed it incorrectly:) so now that's fixed.
My problem now is that it seems that the jail starts but serviio server is not running. The serviio remote console on my window box says it's not running, windows media player cannot see it.

Glad to hear you found that problem. Don't test Serviio with Window Media Player, it doesn't work with Serviio. I fell for the same problem, there's some explanation but I forgot what it was (probably just M$ Windoz).

Try testing with XMBC which is really nice, or something else.
 

crpd

Cadet
Joined
Dec 20, 2011
Messages
4
Glad to hear you found that problem. Don't test Serviio with Window Media Player, it doesn't work with Serviio. I fell for the same problem, there's some explanation but I forgot what it was (probably just M$ Windoz).

Try testing with XMBC which is really nice, or something else.
Just tried XBMC and my sony dvd player, serviio does not show up. Also, I sure I mistyped something else somewhere but can't find it. In the GUI Network summary I show 2 pv4 addresses: 1. re0 192.168.1.50/24 initially set for the freenas machine, 2. re0 192.168.1.150/32 showed up after reboot. I can log with either one int the freenas box.

Update, I re did some of the edits and now the server is working. I my sony player can see the media folders, however it says: No playable files. I downloaded a few files of each type in there.
 

Spocksbeer

Cadet
Joined
Jun 6, 2011
Messages
6
Sigh...hair-tearing-outedness. Probably a long shot posting here, but I have an issue with Serviio and my Yamaha RXA-1000 receiver. Basically, I've followed the tutorial (How To Install on 8.0.x), have a running Serviio instance in a correctly functioning jail, and have it serving media to XBMC. The lack of support for symbolic links is a little annoying, but I can deal with that I suppose.

However, despite my receiver being detected by Serviio - and displayed with a correct IP and device name - the Yammy steadfastly refuses to see Serviio as a DLNA server. The receiver is quite happy using the Foobar DLNA plugin, so I'm at a dead end with what to do next.

Halp?
 

supremicus

Dabbler
Joined
Dec 27, 2011
Messages
18
I think i've done something wrong, everything appears to be running fine but i can't remote console or see serviio running on the ps3 but i'm getting no errors from jail. When freenas starts its giving me 2 ips to log into the webgui from aswell. In the guide am i supposed to set the ip so the same address in all the files including the inetd flag in /etc/rc.conf ? Any help would be greatly appreciated, have gone through so many installs trying to get this nas up and running and i keep hitting brick walls :/
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
When freenas starts its giving me 2 ips to log into the webgui from aswell.
This is completely normal


In the guide am i supposed to set the ip so the same address in all the files including the inetd flag in /etc/rc.conf ?

It would help if you would post examples or list "all the files" that you are asking about. I don't have the tutorial memorized and it's difficult to know what you are referring to. The IP address for the jail should be different than your FreeNAS system IP. I don't think this is where your problem is, but I can't begin to guess either.
 

supremicus

Dabbler
Joined
Dec 27, 2011
Messages
18
Ok in /usr/local/serviio-0.6.0.1/bin/serviio.sh -Dserviio.remoteHost=192.168.1.250
/etc/rc.conf inetd_flags="-wW -a 192.168.1.250"
/etc/hosts 192.168.1.250 serviio serviio.freenas.local
/conf/base/etc/rc.conf jail_serviio_ip="192.168.1.250"
 

supremicus

Dabbler
Joined
Dec 27, 2011
Messages
18
Found one problem i had a typo in the serviio.sh, found my serviio log and this is what's happening seems it can't get the name of the pc and stops.

Code:
2011-12-27 14:36:02,772 INFO  [MediaServer] ------------------------------------------------------------------------
2011-12-27 14:36:02,772 INFO  [MediaServer] Serviio DLNA media streaming server v 0.6.0.1 (rev. 8e4ee98bff12)
2011-12-27 14:36:02,772 INFO  [MediaServer] Petr Nejedly 2009-2011
2011-12-27 14:36:02,772 INFO  [MediaServer] http://www.serviio.org
2011-12-27 14:36:02,772 INFO  [MediaServer]
2011-12-27 14:36:02,772 INFO  [MediaServer] Java 1.6.0_07-The FreeBSD Foundation
2011-12-27 14:36:02,772 INFO  [MediaServer] OS FreeBSD amd64 8.2-RELEASE-p3
2011-12-27 14:36:02,772 INFO  [MediaServer] File encoding: ISO-8859-1
2011-12-27 14:36:02,773 INFO  [MediaServer] Headless mode enabled: true
2011-12-27 14:36:02,773 INFO  [MediaServer] User home dir: /root
2011-12-27 14:36:02,773 INFO  [MediaServer] Temp dir: /var/tmp/
2011-12-27 14:36:02,773 INFO  [MediaServer] ------------------------------------------------------------------------
2011-12-27 14:36:02,856 INFO  [RestletServer] Starting Restlet server exposed on 192.168.1.250:23423
2011-12-27 14:36:02,893 INFO  [DBSchemaUpdateExecutor] Checking if DB schema needs to be updated
2011-12-27 14:36:02,898 DEBUG [DBLogDAOImpl] Checking if script 'script-0.1.sql' has been run
2011-12-27 14:36:03,578 DEBUG [DBLogDAOImpl] Checking if script 'script-0.1.1.sql' has been run
2011-12-27 14:36:03,579 DEBUG [DBLogDAOImpl] Checking if script 'script-0.2.sql' has been run
2011-12-27 14:36:03,579 DEBUG [DBLogDAOImpl] Checking if script 'script-0.3.1.sql' has been run
2011-12-27 14:36:03,580 DEBUG [DBLogDAOImpl] Checking if script 'script-0.4.sql' has been run
2011-12-27 14:36:03,580 DEBUG [DBLogDAOImpl] Checking if script 'script-0.4.1.sql' has been run
2011-12-27 14:36:03,581 DEBUG [DBLogDAOImpl] Checking if script 'script-0.4.2.sql' has been run
2011-12-27 14:36:03,581 DEBUG [DBLogDAOImpl] Checking if script 'script-0.5.sql' has been run
2011-12-27 14:36:03,582 DEBUG [DBLogDAOImpl] Checking if script 'script-0.5.1.sql' has been run
2011-12-27 14:36:03,582 DEBUG [DBLogDAOImpl] Checking if script 'script-0.6.sql' has been run
2011-12-27 14:36:03,738 WARN  [ProfilesDefinitionParser] Cannot get name of the local computer: freenas: freenas
2011-12-27 14:36:03,884 INFO  [ProfilesDefinitionParser] Parsing Profiles definition
2011-12-27 14:36:03,916 DEBUG [ProfilesDefinitionParser] Parsing profile definition for profile 1
2011-12-27 14:36:03,994 ERROR [MediaServer] An unexpected error occured. Ending the application. Message: replacement
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
That's just a 'warning' about the name, the real error was about "parsing the profile definition". I have no idea what it's referring to, but again, the Serviio forums are the proper place to look/ask. http://serviio.org/forums

The other stuff you posted with the IP addresses looks fine. Maybe there's another typo somewhere?
 
Status
Not open for further replies.
Top