FAQ  •  Register  •  Login

NAS4Free installation problems on jail (FreeBSD)

<<

himbrr

Serviio newbie

Posts: 9

Joined: Sun Nov 04, 2012 5:15 pm

Post Sun Nov 04, 2012 5:24 pm

NAS4Free installation problems on jail (FreeBSD)

Hello,

NAS4Free is based on FreeNAS 7.
So I tried to follow the installation instructions for FreeNAS8.
The Java jdk/jre diablo is not supported anymore by the ports. I had to install openJDK.

I have edited the IP in the custom serviio.sh script from Steph1391.
But serviio is not starting up.
Crashes with the following message:
  Code:
Exception in thread "main" java.lang.NoClassDefFoundError: org/restlet/ext/gson/GsonConverter
        at org.serviio.restlet.RestletServer.runServer(RestletServer.java:68)
        at org.serviio.MediaServer.main(MediaServer.java:105)
Caused by: java.lang.ClassNotFoundException: org.restlet.ext.gson.GsonConverter
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
        ... 2 more


Can you help me installing serviio correctly?

regards,
himbrr
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Nov 06, 2012 1:17 pm

Re: NAS4Free installation problems on jail (FreeBSD)

It can't find the .jar files in the lib folder. Either it's user access problem or the JDK doesn't support the classpath * function to match all jar files in the directory. You'd have to list all .jar files instead in your serviio.sh where classpath is defined.
<<

dboy

Serviio lover

Posts: 51

Joined: Sat Nov 13, 2010 11:20 pm

Post Tue Nov 20, 2012 9:13 pm

Re: NAS4Free installation problems on jail (FreeBSD)

himbrr, I think you might be wrong...

Freenas 0.7.xxxx was based on FreeBSD8
The project went in to new hands that rewrote it based on NanoBSD with a new design, new web front end and many changes and released it as Freenas 8.x

Some people liked it better the way it used to be and continued to develop the "old" FreeNAS 0.7.xxxx
Eventually the confusion hit and they decided to grab a new name, Nas4Free.

They have since released a new version, Nas4Free 9.x based on FreeBSD 9.x
The naming is more consequent.

I have tried to figure out which to use but it is not easy to find good comparative information.

I think FreeNAS 8.x as a project might have a better economy by beeing commercially supported. So, maybe it live longer ...
It uses something called "Jail" which in theory should make it easier to support add-ons, but as far as I understand the people that has tried has had large problems getting Serviio to run on it ... (have not followed this lately so might be wrong)

I believe that there are still more features in Nas4Free and more supported built in functionality.
I believe it should be possible to follow the procedure for serviio under FreeNas 0.7.xxxx.

The downside of Nas4Free is that it comes with no compilers or development tools, so the only way to install add-ons your self is to compile on a separate FreeBSD system and create a port, then copy the port to the Nas4Free system and install it. This is not really straight forward.
The practical problem is that it is quite hard to upgrade ffpmeg to newer versions as they arrive, and most people will remain stuck with the built in version.

Maybe some knowledgeable person can comment on this?
<<

harani

Serviio newbie

Posts: 4

Joined: Mon Dec 10, 2012 10:37 pm

Post Tue Dec 11, 2012 7:42 pm

Re: NAS4Free installation problems on jail (FreeBSD)

dboy wrote:himbrr, I think you might be wrong...

Freenas 0.7.xxxx was based on FreeBSD8
The project went in to new hands that rewrote it based on NanoBSD with a new design, new web front end and many changes and released it as Freenas 8.x



FreeNAS 0.7.2 is based on FreeBSD 7.3-RELEASE-p6 (revision 199506) according to the version i'm running

i'm having exactly the same issue as the OP BTW

same error message

cheers

Glen
<<

harani

Serviio newbie

Posts: 4

Joined: Mon Dec 10, 2012 10:37 pm

Post Tue Dec 11, 2012 10:32 pm

Re: NAS4Free installation problems on jail (FreeBSD)

sorted this,

replaced all the .jar files mentioned in the SERVIIO_CLASS_PATH with a single /lib/*

it now fires up ok :-)
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Dec 12, 2012 12:11 am

Re: NAS4Free installation problems on jail (FreeBSD)

harani wrote:sorted this,

replaced all the .jar files mentioned in the SERVIIO_CLASS_PATH with a single /lib/*

it now fires up ok :-)

I think from 0.6.x onwards it should not list the files (at least in the distributed serviio.sh) and it uses the asterisk notation.
<<

raulfg3

Serviio newbie

Posts: 11

Joined: Sun Nov 25, 2012 7:49 am

Post Sun Jan 20, 2013 10:29 am

Re: NAS4Free installation problems on jail (FreeBSD)


Return to Serviio Support & Help

Who is online

Users browsing this forum: Google [Bot] and 73 guests

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