FAQ  •  Register  •  Login

Serviio with Freenas

<<

dboy

Serviio lover

Posts: 51

Joined: Sat Nov 13, 2010 11:20 pm

Post Fri Jun 03, 2011 7:40 pm

Re: Serviio with Freenas

this sounds as a config error on the freenas side...
Try to set all directory and file access to rwxrwxrwx
<<

Mart360

Serviio lover

Posts: 96

Joined: Wed Apr 27, 2011 2:40 pm

Post Fri Jun 03, 2011 8:55 pm

Re: Serviio with Freenas

And there youve lost me ...

how? exactly ...

all ive done is run 7.2, configured the lan, and set up (best guess the drive in the freenas GUI)

SSh & root acces enabled


and thats about it..


all the other files are installed apart from diable, which i cant get onto the NAS

mart
<<

dboy

Serviio lover

Posts: 51

Joined: Sat Nov 13, 2010 11:20 pm

Post Sat Jun 04, 2011 9:06 am

Re: Serviio with Freenas

Mart,

I think your doing things in the wrong order.
First you need to get your FreeNAS server set up correctly. If you cant get the basic functionality up on it there is little hope you will get your TV/mediaplayer-DLNA client to connect to it even if you manage to install Serviio on it.

So,
First make sure you have a working FreeNAS server, then worry about installing Serviio.
The best place to get support on FreeNAS is in that community/forum at www.freenas.org

I am no freenas expert so won't be able to help on your specific install, but:
You need to start the service cifs/smb
Then define a share point and path (always save)
Then you need to create the file system points that is shared (create the directories you pointed at in your shares)
You can do this using the web based tools.
(Advanced/File Manager) in the freenas webtool.
You have to be sure to spell and do this correctly, remember that unix is case sensitive, also make sure to set the correct access (this is what I referred to earlier with the rwxrwxrwx line. As long as your server is not exposed to the internet this should be ok, it gives all users on the server full access to all the files in the folders you created.

Hope this is some help, if not I think you should probably get an account in the freenas forum and start reading there (and asking questions after reading....)
<<

Mart360

Serviio lover

Posts: 96

Joined: Wed Apr 27, 2011 2:40 pm

Post Sat Jun 04, 2011 12:54 pm

Re: Serviio with Freenas

I have the Nas set up, and on occasion can see it....

i thought last night / this morning i'd cracked it, manged to ftp diable to it, then it said its run out of disk space ffs


re freenas org, there pushing v8 now, so the V7 help stuff isnt there


Mart
<<

Mart360

Serviio lover

Posts: 96

Joined: Wed Apr 27, 2011 2:40 pm

Post Sat Jun 04, 2011 3:09 pm

Re: Serviio with Freenas

Took my time....

Freenas is now installed, and i can FTP to it...

i have transferred diablo to the nas.... but it still dosent want to play ball.....


will keep going..... i'll get there eventually

Mart
<<

pilothaz

Streaming enthusiast

Posts: 28

Joined: Thu Jun 02, 2011 6:47 pm

Post Tue Jun 07, 2011 3:09 pm

Re: Serviio with Freenas

Mart360 wrote:Took my time....
Freenas is now installed, and i can FTP to it...
i have transferred diablo to the nas.... but it still dosent want to play ball.....
will keep going..... i'll get there eventually

Mart


One thing you might need to do is set your pkg_tmpdir... while it is running out of space.

First off go into your ftp client and create a /tmp directory somewhere on the mounted harddrive (mine would be: /mnt/thedrive/tmp) - Note make sure it is set to 777 file permissions as were indicated earlier (if using winscp right click on the folder and go to properties)
Image

Then before you try and do another pkg_add you will want to run this command: Note - Changing the location to your own

  Code:
setenv PKG_TMPDIR /mnt/thedrive/tmp

pkg_add -v diablo....


The informatoin can be found here as well : https://sourceforge.net/apps/phpbb/freenas/viewtopic.php?f=15&t=1120&sid=97575d2e0a62b4822f5d6d2bdb0cc6d3#p4773
Hopefully that works for you. I know it has with my setup.
<<

Mart360

Serviio lover

Posts: 96

Joined: Wed Apr 27, 2011 2:40 pm

Post Sat Jun 18, 2011 12:17 pm

Re: Serviio with Freenas

Had a two week break and started afresh...

The NAS is on the system, seen by some pc's not others.

I have called the serviio .sh file & the serviio-console.sh file thy have both executed.

Not sure if the the console file is happy though, as it came back with loads of data :):(

I added these call commands into freenas to see if that plays ball ....still cant see the NAS/serviio from my BD player


Did a port scan and it would appear that certain ports arnt open on the NAS... some are, but not the correct ones

How do i open / configure these ports on the NAS


regs
Mart
<<

pilothaz

Streaming enthusiast

Posts: 28

Joined: Thu Jun 02, 2011 6:47 pm

Post Tue Jun 21, 2011 8:20 pm

Re: Serviio with Freenas

Update: I have fixed my issue. There was an issue in the serviio.sh so I edited the one that is default.

I have read through this forum for FreeNAS and have setup CouchPotato as well as SickBeard successfully. Now my big test is getting serviio working correctly.

I have used a amd64 embedded version of FreeNAS which has mounts for unionfs for /usr/local and /var

Once I installed serviio and the pkg_add's this is the message I am getting now for some reason when trying to run it.

  Code:
freenas:/mnt/thedrive/extensions/serviio-0.5.2/bin# ./serviio.sh
======================================================================: not found
======================================================================: not found
Usage: java [-options] class [args...]
           (to execute a class)
   or  java [-options] -jar jarfile [args...]
           (to execute a jar file)

where options include:
    -d32          use a 32-bit data model if available

    -d64          use a 64-bit data model if available
    -server       to select the "server" VM
                  The default VM is server.

    -cp <class search path of directories and zip/jar files>
    -classpath <class search path of directories and zip/jar files>
                  A : separated list of directories, JAR archives,
                  and ZIP archives to search for class files.
    -D<name>=<value>
                  set a system property
    -verbose[:class|gc|jni]
                  enable verbose output
    -version      print product version and exit
    -version:<value>
                  require the specified version to run
    -showversion  print product version and continue
    -jre-restrict-search | -jre-no-restrict-search
                  include/exclude user private JREs in the version search
    -? -help      print this help message
    -X            print help on non-standard options
    -ea[:<packagename>...|:<classname>]
    -enableassertions[:<packagename>...|:<classname>]
                  enable assertions
    -da[:<packagename>...|:<classname>]
    -disableassertions[:<packagename>...|:<classname>]
                  disable assertions
    -esa | -enablesystemassertions
                  enable system assertions
    -dsa | -disablesystemassertions
                  disable system assertions
    -agentlib:<libname>[=<options>]
                  load native agent library <libname>, e.g. -agentlib:hprof
                    see also, -agentlib:jdwp=help and -agentlib:hprof=help
    -agentpath:<pathname>[=<options>]
                  load native agent library by full pathname
    -javaagent:<jarpath>[=<options>]
                  load Java programming language agent, see java.lang.instrument
    -splash:<imagepath>
                  show splash screen with specified image
org.serviio.MediaServer: not found
freenas:/mnt/thedrive/extensions/serviio-0.5.2/bin#


Can anyone help please?
My serviio.sh file is as follows with my FreeNAS server IP being 192.168.1.2:

  Code:
#!/bin/sh
###
======================================================================
###
## ##
## Serviio start Script ##
## ##
###
======================================================================
###

DIRNAME=`dirname $0`
PROGNAME=`basename $0`

# OS specific support (must be 'true' or 'false').
cygwin=false;
darwin=false;
linux=false;
case "`uname`" in

linux=false;
case "`uname`" in
CYGWIN*)
cygwin=true
;;

FreeBSD)
linux=true
;;

Linux)
linux=true
;;
esac

# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin ; then
[ -n "$SERVIIO_HOME" ] &&
SERVIIO_HOME=`cygpath --unix "$SERVIIO_HOME"`
[ -n "$SERVIIO_HOME" ] &&
SERVIIO_HOME=`cygpath --unix "$SERVIIO_HOME"`
[ -n "$JAVA_HOME" ] &&
JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
fi

# Setup SERVIIO_HOME
if [ "x$SERVIIO_HOME" = "x" ]; then
# get the full path (without any relative bits)
SERVIIO_HOME=`cd $DIRNAME/..; pwd`
fi
export SERVIIO_HOME

# Setup the JVM
if [ "x$JAVA" = "x" ]; then
if [ "x$JAVA_HOME" != "x" ]; then
JAVA="$JAVA_HOME/bin/java"
else
JAVA="java"

else
JAVA="java"
fi
fi

# Setup the classpath
SERVIIO_CLASS_PATH="$SERVIIO_HOME/lib/serviio.jar:$SERVIIO_HOME/lib/derby.jar:$$

# Setup Serviio specific properties
JAVA_OPTS="-Djava.net.preferIPv4Stack=true
-Dderby.system.home=$SERVIIO_HOME/library -Dserviio.home=$SERVIIO_HOME
-Dffmpeg.location=/usr/local/bin/ffmpeg
-Dserviio.remoteHost=192.168.1.2"

# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
SERVIIO_HOME=`cygpath --path --windows "$SERVIIO_HOME"`
JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
SERVIIO_CLASS_PATH=`cygpath --path --windows "$SERVIIO_CLASS_PATH"`
JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
SERVIIO_CLASS_PATH=`cygpath --path --windows "$SERVIIO_CLASS_PATH"`
fi

# Execute the JVM in the foreground
"$JAVA" -Xmx384M $JAVA_OPTS -classpath "$SERVIIO_CLASS_PATH"
org.serviio.MediaServer "$@"


this is also the second time I have setup serviio. Please look at the excel file for the previous pkgs I had:
Attachments
-mnt-thedrive-opt-var_old-db-pkg installed.xls
(28 KiB) Downloaded 385 times
<<

Mart360

Serviio lover

Posts: 96

Joined: Wed Apr 27, 2011 2:40 pm

Post Mon Jun 27, 2011 9:18 pm

Re: Serviio with Freenas

Ok, ive had a break for a few weeks, ready to carry on:)

Everything appears to be unpacked and installed on the NAS,

Freenas is running, I have modded the serviio sh file, and started serviio (i think)

It still isnt seen by any of the media stuff i have including the Bluray, or the other pc's

question:-

How do i tell / confirm serviio has started, and why isnt it being seen by the other equipment

Mart
<<

dboy

Serviio lover

Posts: 51

Joined: Sat Nov 13, 2010 11:20 pm

Post Mon Jun 27, 2011 11:13 pm

Re: Serviio with Freenas

I think
%ps -aux|grep serviio
should show whether it is up and running
<<

Mart360

Serviio lover

Posts: 96

Joined: Wed Apr 27, 2011 2:40 pm

Post Wed Jun 29, 2011 8:18 pm

Re: Serviio with Freenas

dboy wrote:I think
%ps -aux|grep serviio
should show whether it is up and running


What is this symbol?, and how do you get it?

>|< grep serviio

Mart
<<

pilothaz

Streaming enthusiast

Posts: 28

Joined: Thu Jun 02, 2011 6:47 pm

Post Wed Jun 29, 2011 8:20 pm

Re: Serviio with Freenas

Mart360 wrote:
dboy wrote:I think
%ps -aux|grep serviio
should show whether it is up and running


What is this symbol?, and how do you get it?

>|< grep serviio

Mart


Hold Shift and select \

It is shown on the keyboard as a broken vertical line.
<<

Mart360

Serviio lover

Posts: 96

Joined: Wed Apr 27, 2011 2:40 pm

Post Wed Jun 29, 2011 8:23 pm

Re: Serviio with Freenas

because i cant replicate the I smybol in the putty window, all i get is too many arguments
<<

dboy

Serviio lover

Posts: 51

Joined: Sat Nov 13, 2010 11:20 pm

Post Sat Jul 02, 2011 8:57 am

Re: Serviio with Freenas

First, it should probably be
%ps -ax
not sure why there should be no "u" in FreeBSD/FreeNAS...

Then, yea, this symbol is located on different keys depending on your localization. There are many different keyboard designs.

I usually just use a trial and error to find it.
First press all keys, one at a turn.
the press all
SHIFT+keys
Alt+ keys
then Alt Gr + keys
Alt Gr+SHIFT+keys

I have yet seen a keyboard layout without this the pipe symbol. It is admittedly a nuisance, but not one that takes more than a minute to overcome with a little persistence.

It is called pipe since what you are trying to do is
%ps -ax
which will list all processes running on your pc, a long list.
You then use the | symbol to send the list to the "grep" command, it will take a text as its argument and filter out all occurrences of, for example, "serviio" and only present these.
%ps -ax|grep serviio

You could also just use ps -ax and then go through the list as it is. You should see "serviio" somewhere in the list

Good Luck!
<<

Steph1391

Serviio newbie

Posts: 10

Joined: Wed Jul 06, 2011 1:56 am

Post Wed Jul 06, 2011 2:12 am

Re: Serviio with Freenas

Hi all,

I'm trying to install Serviio on FreeNas (0.7.2 Sabanda (revision 6694)). I installed the different packages as written in the first pages of this thread. Everything seems to have installed normally. Also I unpacked serviio 5.2 file and used Dboy serviio.sh file instead of the original one (and change my IP address with VI).

But when I start serviio, I have this error message:

freenas:~/serviio-0.5.2# ./serviio.sh
Exception in thread "main" java.lang.NoClassDefFoundError: org/serviio/MediaServer
Caused by: java.lang.ClassNotFoundException: org.serviio.MediaServer
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

I searched elsewhere in the forum and some people had this problem with installations on different unix OS. One supposed solution was to change OPTS properties to include "Djava.awt.headless=true"

so now that part of the file looks like this:

# Setup Serviio specific properties
JAVA_OPTS="-Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -Dderby.system.home=
$SERVIIO_HOME/library -Dserviio.home=$SERVIIO_HOME -Dserviio.remoteHost=192.168.0.196 "




but it still not functions

Java seems installed correctly. I have:

freenas:~/serviio-0.5.2# java -version
java version "1.6.0_07"
Diablo Java(TM) SE Runtime Environment (build 1.6.0_07-b02)
Diablo Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode)

Somebody have an idea ? It can be sincerly a stupid thing because I'm really not an expert in linux / unix systems

thanks
<<

Jakeyp87

Serviio newbie

Posts: 1

Joined: Wed Jul 13, 2011 4:00 pm

Post Wed Jul 13, 2011 5:20 pm

Re: Serviio with Freenas

I have exactly the same problem with my setup, i allready have all of the packages and transfered over the serviio files to Freenas but i keep getting the same error as steph.

any help with this would be greatly appreciated.
<<

Mart360

Serviio lover

Posts: 96

Joined: Wed Apr 27, 2011 2:40 pm

Post Sun Jul 17, 2011 8:35 am

Re: Serviio with Freenas

Disaster :(

Went to have another go yesterday, as i have a long free weekend...

The NAs wont boot. it's encountered a kernel error :(

Long and short ive had to reformat the drive, and start all over again...


On the - side, what a ball ache:( more late nights

on the + side, i'll prolly get to grips with freeBSD lol


mart
<<

Steph1391

Serviio newbie

Posts: 10

Joined: Wed Jul 06, 2011 1:56 am

Post Wed Jul 27, 2011 12:53 am

Re: Serviio with Freenas

Ok, I finally found a way to make it works.

I don't know if it is normal, but I had Serviio installed in many directories on my Freenas server. I found that when using the serviio.sh file found in /home/serviio-0.5.2/bin/ (once changed with DBoy one), the java error I had disappeared. After that I had some other problems (like the .com domain name problem) but now everything works...

So Jakeyp87, I don't know if now your setup works, but maybe you could try to use the serviio file found in the Home path.
<<

LLoyd

Streaming enthusiast

Posts: 24

Joined: Mon Jul 18, 2011 4:23 pm

Post Wed Jul 27, 2011 4:55 pm

Re: Serviio with Freenas

This thread mentions placing a FreeNAS "PostInit" script with the following command: "sh /serviio-0.5.2/bin/serviio.sh".

The command (above) is great for starting up the Serviio server (automatically).

Here is my question:

Should we also add a FreeNAS "Shutdown" script with the following command: "sh /serviio-0.5.2/bin/serviio.sh -stop" ...to properly shutdown the Serviio server or will FreeNaS properly shutdown the Serviio server when the user selects "Reboot" or "Shutdown" from the FreeNAS "System" menu?

How would I know if FreeNAS shutdown the Serviio server properly? What log should I be looking at and what entries would tell me if the Serviio server shutdown "correctly"?

Thanks, Lloyd
<<

raichu

Serviio newbie

Posts: 1

Joined: Wed Nov 16, 2011 6:47 pm

Post Wed Nov 16, 2011 7:03 pm

Re: Serviio with Freenas

in this problem
viewtopic.php?f=14&t=2060&hilit=java.net.InetAddress&start=20#p11784

not need ".com" in domain field at system general page. But need add hostname and ip address same as FreeNAS host (where serviio installed) at network hosts page
Previous

Return to NAS installation

Who is online

Users browsing this forum: No registered users and 7 guests

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