[GUIDE] Install serviio DLNA Server v1.2.1

As always, I’m not responsible if you brick your device

Having said that, I have tested this on 02.11.09-053 and 02.42.02-012 without issue

 

Please do note that your drive will no longer sleep due to Java so if this is an issue for you, please stop now!

 

Help protect yourself from bricking your drive if you mess up

http://community.wdc.com/t5/My-Book-Live/GUIDE-Restore-Downgrade-firmware-via-the-reset-button/td-p/481588

 

For more information on serviio

http://www.serviio.org/

 

Now on with the guide!

 

1st disable the WD or Twonky DLNA server in the dashboard

Of course your gonna need to have PuTTY or Terminal ready to go

SSH into your drive

 

Run this command to remove the claims the MBL puts on some system files

rm -f /var/lib/dpkg/info/wd-nas.*

Now we want to rename our sources.list and create a new one

mv /etc/apt/sources.list /etc/apt/sources.list.bak
nano /etc/apt/sources.list

Now copy and paste the following sources into the blank PuTTY/Terminal window (Right click mouse button)

deb http://ftp.us.debian.org/debian/ wheezy main
deb http://www.deb-multimedia.org wheezy main non-free

Hit control and o

Hit enter

Hit control and x

This will save the file

Now we need to change permissions on the file

chmod 755 /etc/apt/sources.list

Now lets update our sources and install ffmpeg (Type y to install without verification if asked and also type y if asked to continue)

apt-get update
apt-get install deb-multimedia-keyring
apt-get update
apt-get install ffmpeg

Now let’s install PHP5 and some other dependencies for the webui

Type y when asked to continue and again when asked to install without verification

When asked what to do with /etc/cron.d/php5 type N and hit enter (Keep your-currently installed version)

When asked what would you like to do about php.ini, select keep_current and hit enter

Again when asked what would you like to do about php.ini, select keep_current and hit enter

apt-get install php5 php5-gd php-xml-parser php5-intl zlib1g dcraw

Now let’s install Java (Type y when asked to continue and again when asked to install without verification)

apt-get install openjdk-6-jdk

Now we need to set our paths to Java

export JAVA_HOME=/usr/lib/jvm/java-6-openjdk-powerpc/jre
export PATH=$PATH:/usr/lib/jvm/java-6-openjdk-powerpc/jre

Now we need to add user serviio and set any password

useradd serviio
passwd serviio

 Now we need to add serviio to the root group

usermod -a -G root serviio

 Now we are gonna make a dir for serviio and download and extract serviio

mkdir /usr/local/serviio/
cd /usr/local/serviio/
wget http://download.serviio.org/releases/serviio-1.2.1-linux.tar.gz
tar -xf serviio-1.2.1-linux.tar.gzrm -f serviio-1.2.1-linux.tar.gz

Now let’s see if serviio will start…The terminal window should show just a green solid cursor on the bottom left after running these commands… This is good and serviio in running

cd serviio-1.2.1/bin
./serviio.sh

 Wait a minute to let the server create some files and hit control and c to stop the server

 Now let’s create the daemon script

nano /etc/default/serviiod

 Now copy and paste the following text into the blank PuTTY/Terminal window (Right click mouse button)

#########################################################
#- Daemon Script Configuration for Serviio Media Server
#- By Ian Laird
#- /etc/default/serviiod
#########################################################

NAME="Serviio Media Server"
DAEMON="/usr/local/serviio/serviio-1.2.1/bin/serviio.sh" ## Update this to point at serviio_root/bin/serviio.sh
SERVICE_ACCOUNT="serviio" ## DON'T RUN UNDER ROOT!

Hit control and o

Hit enter

Hit control and x

This will save the file

Now let’s create the startup script

nano /etc/init.d/serviio

 Now copy and paste the following text into the blank PuTTY/Terminal window (Right click mouse button)

#!/bin/sh
    #
    #########################################################
    #- Daemon script for Serviio media server
    #- By Ian Laird; converted for Debian by Jacob Lundberg
    #- /etc/init.d/serviio
    #########################################################
    #
    ### BEGIN INIT INFO
    # Provides: serviio
    # Required-Start: $local_fs $remote_fs $network $syslog
    # Required-Stop: $local_fs $remote_fs $network $syslog
    # Default-Start: 2 3 4 5
    # Default-Stop: 0 1 6
    # X-Interactive: true
    # Short-Description: Start/stop serviio media server
    # Description: The Serviio media server makes your media available to
    # all kinds of networked devices.
    ### END INIT INFO


    . /lib/lsb/init-functions

    if [-f /etc/default/rcS]; then
            . /etc/default/rcS
    fi


    DAEMON_STOP=" -stop"
    NAME="$(basename $0)"
    PIDFILE="/var/run/serviiod.pid"
    TIMEOUT=10

    if [-f /etc/default/serviiod]; then
            . /etc/default/serviiod
    fi

    [-x "$DAEMON"] || exit 0


    running() {
            if ["x$1" == "x"]; then
                    echo 0
                    return 1
            fi

            PS=$(ps h -p $(echo $1 | sed -r 's/[\t \n]+/ -p /') | wc -l)
            echo $PS

            if [$PS -gt 0]; then
                    return 0
            else
                    return 1
            fi
    }


    start() {
       # Set up correct LANG
          if [-r /etc/default/locale]; then
             . /etc/default/locale
             export LANG LANGUAGE LC_MESSAGES LC_ALL LC_CTYPE
          fi

            log_daemon_msg "Starting Serviio media server daemon" "$NAME"
            start-stop-daemon --start -q -b -p "$PIDFILE" -m -c "${SERVICE_ACCOUNT}" -x "${DAEMON}"
            log_end_msg $?
    }

    stop() {
            log_daemon_msg "Stopping Serviio media server daemon" "$NAME"
            if [-r "$PIDFILE"]; then
                    PIDS=$(pstree -p $(<"$PIDFILE") | awk -F'[\(\)]' '/^[A-Za-z0-9]/ { print $2" "$4; }')
                    if running "$PIDS" > /dev/null; then
                            "${DAEMON}" "${DAEMON_STOP}"
                            for PID in $PIDS; do
                                    if running $PID > /dev/null; then
                                            kill -TERM $PID
                                    fi
                            done
                    fi
                    COUNTDOWN=$TIMEOUT
                    while let COUNTDOWN--; do
                            if ! running "$PIDS" > /dev/null; then
                                    break
                            fi
                            if [$COUNTDOWN -eq 0]; then
                                    for PID in $PIDS; do
                                            if running $PID > /dev/null; then
                                                    kill -KILL $PID
                                            fi
                                    done
                            else
                                    echo -n .
                                    sleep 1
                            fi
                    done
            fi

            if running "$PIDS" > /dev/null; then
                    log_end_msg 1
            else
                    rm -f "$PIDFILE"
                    log_end_msg $?
            fi
    }

    status() {
            echo -n "$NAME should be"
            if [-r "$PIDFILE"]; then
                    echo -n " up with primary PID $(<"$PIDFILE")"
                    PIDS=$(pstree -p $(<"$PIDFILE") | awk -F'[\(\)]' '/^[A-Za-z0-9]/ { print $2" "$4; }')
                    RUNNING=$(running "$PIDS")
                    if [[$RUNNING && $RUNNING -gt 0]]; then
                            echo -n " and $RUNNING processes are running."
                    else
                            echo -n " but it is not running."
                    fi
            else
                    echo -n " stopped."
            fi
            echo
    }


    case "${1:-}" in
            start)
                    start
            ;;
            stop)
                    stop
            ;;
            restart)
                    stop
                    start
            ;;
            status)
                    status
            ;;
            *)
                    log_success_msg "Usage: /etc/init.d/$NAME {start|stop|restart|status}"
                    exit 1
            ;;
    esac

    exit 0

 Ok now we need to set some permissions and update the startup and check the status of the server

chown serviio -R /usr/local/serviio
chmod 755 /etc/init.d/serviio
update-rc.d serviio defaults
/etc/init.d/serviio status

 Ok now we need to modify the interface

nano /etc/network/interfaces

After the line that reads " iface eth0 inet dhcp" we need to hit enter and add this line

up route add -net 240.0.0.0 netmask 240.0.0.0 dev eth0

Hit control and o

Hit enter

Hit control and x

This will save the file

Ok now we need to install the web admin page for serviio

cd /root
wget http://goo.gl/VFNgf
cd /var/www
unzip /root/WebUI\ v1.4beta.zip
mv /var/www/serviioweb-1.4beta /var/www/serviioweb
chmod -R 0755 serviiowebrm -f /root/WebUI\ v1.4beta.zip

Restore your sources.list

rm -f /etc/apt/sources.listmv /etc/apt/sources.list.bak /etc/apt/sources.list

Ok let’s start the server!

/etc/init.d/apache2 restart/etc/init.d/serviio start

 In your web browser go to

http://your mybooklive network name or IP/serviioweb

 Now it’s just a matter of setting up serviio

If you plan on doing any transcoding, make sure you go to Delivery/Transcoding/Transcoded files location:

You need to get that off the root partition or you will run the OS partition on your drive out of space and possibly brick your drive

I would suggest changing it to /shares/Public

Don’t forget to hit the save button

 

Transcoding is on by default so be sure to turn it off under the delivery tab if you just want a straight up DLNA server

 

Transcoding is hit and miss, the Sony BDP/SMP profiles work good on a WDTV and are able to transcode a 720p MKV video quick enough for stutter free playback. The MyBookLive seems to be underpowered when using some of the other profiles to transcode. Serviio is probably best used as a general DLNA server

 

Any comments are welcome and please share any custom transcoding profiles you might make

Until the next guide, this is nfodiz…out

3 Likes

Hello,

Thanks for sharing your knowledge with the users.

Hi many thanks… great guide… I have had so many problems with this but thanks to your guide it seems to be installed…

Although I can’t seem to do much… the Web console does not seem to acccept my saved changes (the fields just return to blank).  I’ve also tried uploading a license file and the web console stated the file was not valid.

I’ve just managed to connect via ServiiDroid and seem to be able to configure shared folders and upload the license file though.

Ignore me… all seems good now… the server must just be slow to start… thanks!! much kudos!!

Yeah it takes a minute to get chuggin but once it gets going it runs pretty smooth. I think it has to do with the resource hungry Java. Let me know how it works for you as a general DLNA server.

1 Like

Hello,

I followed the guide to intall “Serviio” everything went correctly, but I am having problems on the console.

In fact, when I try to start or stop the service,a message “parsererror” appears.
The same problem occurs when I want to add a folder to the library and click on the save.

can U help me please, I don’t know what to do, my level in linux is very very poor.

when I scan my network with serviidroid, no server is found.

Don’t use the console to start or stop the server, I get that error too. Try simply restarting the server from PuTTY or Terminal

/etc/init.d/serviio restart

Give the MBL a minute or two to get the server all started, then try adding a folder again from the web console

1 Like

same problem,

In the console, all the fields are blank, no indications of the service status.

The only thing I can change is the language.

Did I forgot a step during installation…?

Seems like there no link between console and server… :confounded:

in putty when i check status i’ve got in outpout :

“Serviio Media Server should be up with primary PID 3580 but it is not running”

You must have missed a step… Go through the guide again, it won’t hurt anything

1 Like

Nice, I’ve reinstall all seems to work fine.

Thx :smiley:

After lots of success I seem to be hitting problems…

Firstly I can’t it seems delete shares in the Webgui and I use ServiiDroid it just disconnects…

Scanning the library has been very slow… now it seems to have stop almost completely.  Whilst scanning it is almost impossible to view any media (which is to be expected I suppose) but the constant disconnects are concerning me…

Here is my latest log file…

2013-05-29 12:24:19,762 INFO [LibraryAdditionsCheckerThread] Added file ‘09 - Primal Scream - Sad And Blue.mp3’ (title: Sad And Blue) to Library
2013-05-29 12:24:50,838 INFO [LibraryAdditionsCheckerThread] Added file ‘08 - Primal Scream - Struttin’.mp3’ (title: Struttin’) to Library
2013-05-29 12:25:03,962 INFO [LibraryAdditionsCheckerThread] Added file ‘02 - Primal Scream - Rocks.mp3’ (title: Rocks) to Library
2013-05-29 12:25:23,242 INFO [LibraryAdditionsCheckerThread] Added file ‘03 - Primal Scream - (I’m Gonna) Cry Myself Blind.mp3’ (title: (I’m Gonna) Cry Myself Blind) to Library
2013-05-29 12:25:41,779 WARN [LibraryAdditionsCheckerThread] Cannot add file 11 - Primal Scream - I’ll Be There For You.mp3 because of an unexpected error. Message: Cannot find MusicAlbum (title = Give Out But Don’t Give Up, artist=Primal Scream)
org.serviio.db.dao.PersistenceException: Cannot find MusicAlbum (title = Give Out But Don’t Give Up, artist=Primal Scream)
at org.serviio.library.dao.MusicAlbumDAOImpl.findAlbum(MusicAlbumDAOImpl.java:90)
at org.serviio.library.local.service.AudioService.findOrCreateAlbum(AudioService.java:485)
at org.serviio.library.local.service.AudioService.addMusicTrackToLibrary(AudioService.java:63)
at org.serviio.library.local.metadata.LibraryAdditionsCheckerThread.addNewMediaFile(LibraryAdditionsCheckerThread.java:185)
at org.serviio.library.local.metadata.LibraryAdditionsCheckerThread.searchForNewFiles(LibraryAdditionsCheckerThread.java:145)
at org.serviio.library.local.metadata.LibraryAdditionsCheckerThread.searchForNewFiles(LibraryAdditionsCheckerThread.java:134)
at org.serviio.library.local.metadata.LibraryAdditionsCheckerThread.searchForNewFiles(LibraryAdditionsCheckerThread.java:134)
at org.serviio.library.local.metadata.LibraryAdditionsCheckerThread.run(LibraryAdditionsCheckerThread.java:83)
Caused by: java.sql.SQLNonTransientConnectionException: Connection closed by unknown interrupt.
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeQuery(Unknown Source)
at org.serviio.library.dao.MusicAlbumDAOImpl.findAlbum(MusicAlbumDAOImpl.java:87)
… 7 more
Caused by: java.sql.SQLException: Connection closed by unknown interrupt.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
… 17 more
Caused by: ERROR 08000: Connection closed by unknown interrupt.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.iapi.util.InterruptStatus.setInterrupted(Unknown Source)
at org.apache.derby.iapi.util.InterruptStatus.throwIf(Unknown Source)
at org.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl.checkCancellationFlag(Unknown Source)
at org.apache.derby.impl.sql.execute.BulkTableScanResultSet.getNextRowCore(Unknown Source)
at org.apache.derby.impl.sql.execute.ProjectRestrictResultSet.getNextRowCore(Unknown Source)
at org.apache.derby.impl.sql.execute.JoinResultSet.openCore(Unknown Source)
at org.apache.derby.impl.sql.execute.JoinResultSet.openCore(Unknown Source)
at org.apache.derby.impl.sql.execute.ProjectRestrictResultSet.openCore(Unknown Source)
at org.apache.derby.impl.sql.execute.SortResultSet.openCore(Unknown Source)
at org.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl.open(Unknown Source)
at org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(Unknown Source)
at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source)
… 11 more
2013-05-29 12:25:42,511 WARN [LibraryAdditionsCheckerThread] An error occured while scanning for item to be added, will continue
org.serviio.db.dao.PersistenceException: Cannot mark Repository with id 3 as scanned
at org.serviio.library.dao.RepositoryDAOImpl.markRepositoryAsScanned(RepositoryDAOImpl.java:173)
at org.serviio.library.local.service.RepositoryService.markRepositoryAsScanned(RepositoryService.java:112)
at org.serviio.library.local.metadata.LibraryAdditionsCheckerThread.run(LibraryAdditionsCheckerThread.java:84)
Caused by: java.sql.SQLNonTransientConnectionException: Connection closed by unknown interrupt.
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeUpdate(Unknown Source)
at org.serviio.library.dao.RepositoryDAOImpl.markRepositoryAsScanned(RepositoryDAOImpl.java:171)
… 2 more
Caused by: java.sql.SQLException: Connection closed by unknown interrupt.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
… 12 more
Caused by: ERROR 08000: Connection closed by unknown interrupt.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.iapi.util.InterruptStatus.setInterrupted(Unknown Source)
at org.apache.derby.iapi.util.InterruptStatus.throwIf(Unknown Source)
at org.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl.checkCancellationFlag(Unknown Source)
at org.apache.derby.impl.sql.execute.TableScanResultSet.getNextRowCore(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexRowToBaseRowResultSet.getNextRowCore(Unknown Source)
at org.apache.derby.impl.sql.execute.ProjectRestrictResultSet.getNextRowCore(Unknown Source)
at org.apache.derby.impl.sql.execute.NormalizeResultSet.getNextRowCore(Unknown Source)
at org.apache.derby.impl.sql.execute.DMLWriteResultSet.getNextRowCore(Unknown Source)
at org.apache.derby.impl.sql.execute.UpdateResultSet.collectAffectedRows(Unknown Source)
at org.apache.derby.impl.sql.execute.UpdateResultSet.open(Unknown Source)
at org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(Unknown Source)
at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source)
… 6 more
2013-05-29 12:25:42,580 INFO [LibraryAdditionsCheckerThread] Finished looking for newly added files
2013-05-29 12:25:42,807 WARN [LibraryUpdatesCheckerThread] An error occured while scanning for items to be removed or updated, will continue
org.serviio.db.dao.PersistenceException: Cannot read MediaItems for Repository with id = 3
at org.serviio.library.dao.MediaItemDAOImpl.getMediaItemsInRepository(MediaItemDAOImpl.java:164)
at org.serviio.library.local.service.MediaService.getMediaItemsInRepository(MediaService.java:73)
at org.serviio.library.local.metadata.LibraryUpdatesCheckerThread.searchForRemovedAndUpdatedFiles(LibraryUpdatesCheckerThread.java:157)
at org.serviio.library.local.metadata.LibraryUpdatesCheckerThread.run(LibraryUpdatesCheckerThread.java:99)
Caused by: java.sql.SQLNonTransientConnectionException: Connection closed by unknown interrupt.
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedResultSet.closeOnTransactionError(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedResultSet.movePosition(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedResultSet.next(Unknown Source)
at org.serviio.library.dao.MediaItemDAOImpl.mapResultSet(MediaItemDAOImpl.java:348)
at org.serviio.library.dao.MediaItemDAOImpl.getMediaItemsInRepository(MediaItemDAOImpl.java:162)
… 3 more
Caused by: java.sql.SQLException: Connection closed by unknown interrupt.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
… 14 more
Caused by: ERROR 08000: Connection closed by unknown interrupt.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.iapi.util.InterruptStatus.setInterrupted(Unknown Source)
at org.apache.derby.iapi.util.InterruptStatus.throwIf(Unknown Source)
at org.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl.checkCancellationFlag(Unknown Source)
at org.apache.derby.impl.sql.execute.BulkTableScanResultSet.getNextRowCore(Unknown Source)
at org.apache.derby.impl.sql.execute.IndexRowToBaseRowResultSet.getNextRowCore(Unknown Source)
at org.apache.derby.impl.sql.execute.ProjectRestrictResultSet.getNextRowCore(Unknown Source)
at org.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl.getNextRow(Unknown Source)
… 7 more
2013-05-29 12:25:42,877 INFO [LibraryUpdatesCheckerThread] Finished looking for updates to currently shared files
2013-05-29 12:25:43,072 INFO [PlaylistMaintainerThread] Finished looking for playlist changes
2013-05-29 12:28:11,687 INFO [LibraryAdditionsCheckerThread] Started looking for newly added files
2013-05-29 12:28:11,710 INFO [PlaylistMaintainerThread] Started looking playlist changes
2013-05-29 12:28:11,709 WARN [ServiioStatusService] NullPointerException occured. Returning error code 500 to the REST layer. Message:
2013-05-29 12:28:11,703 INFO [LibraryUpdatesCheckerThread] Started looking for updates to currently shared files
2013-05-29 12:28:12,297 WARN [ServiioStatusService] NullPointerException occured. Returning error code 500 to the REST layer. Message:

 

My server is adding music files only again, but at a rate of 1 track per second… and I have about 12000 or so :confused:

I’m not sure if this is correct… and just the speed at it runs, on my PC it is much faster (but obviously there is a lot of difference in processing power).Also because I can’t still connect and view my available library it’s difficult to work out what has and hasn’t been added to the media library.

In all honesty I only added very little media to it when I was testing it. The program requires JAVA to run which also eats up lots of CPU cycles so it all probably boils down to the poor little single core 800Mhz CPU in the MBL

Be nice to get it up and running Ok though… I dont have a problem with it taking ages to build the library… I just want to feel confident that it is working ok.

I think there is a problem with the library… I decided to rename the library folder and restart the MBL… it recreated the Library, the server appeared to start but neaither the Web console or ServiiDroid seemed to connect.  I thought that some dependencies (or something???) might have been lost so I renamed the whole serviio folder and reinstalled just servii again, set the permissions etc… restarted the MBL…

Again the same thing Serviio is running it seems but I can’t connect to it.

The log is full of these warnings… any idea’s please?

2013-05-30 14:51:35,027 WARN [ServiioStatusService] NoClassDefFoundError occured. Returning error code 500 to the REST layer. Message: Could not initialize class org.serviio.config.Configuration
2013-05-30 14:51:35,228 WARN [ServiioStatusService] NoClassDefFoundError occured. Returning error code 500 to the REST layer. Message: Could not initialize class org.serviio.config.Configuration
2013-05-30 14:51:35,630 WARN [ServiioStatusService] NoClassDefFoundError occured. Returning error code 500 to the REST layer. Message: Could not initialize class org.serviio.config.Configuration

I see you are asking on the serviio forums as well. That was gonna be my next suggestion. How much media are you trying to add to the server at once?

From a quick google it looks like a permissions issue… I found this

“i finally resolve the problem it seems that the Serviio binary folder and web files was CHMOD 755, i CHMOD it 777, all run fine now”

I don’t have serviio installed atm but this might be worth a shot

/etc/init.d/serviio stop
chmod -R 777 /var/www/serviioweb
chmod -R 777 /usr/local/serviio/serviio-1.2.1
/etc/init.d/serviio start

Report back your findings

I see what your saying now. I installed it back and something keeps crashing the server. I keep having to restart the server with

/etc/init.d/serviio start

 You can see if the server has crashed with

/etc/init.d/serviio status

 Gonna try something

Thanks for the reply…

Yeah I thought permissions too and searched around a bit but nothing so far…

The log continues to show only those “Could not initialize class org.serviio.config.Configuration” warnings

I had tried to add the whole of my media… obviously once I get it running again I’ll add to the library in stages… main thing is my video media and photo’s.

I tried your commands and got…

Serviio Media Server should be up with primary PID 21254 but it is not running.

Yeah something is crashing the serviio server

You need to start it again with the other command

I’m gonna try installing jre out of squeeze and see if it makes a difference

EDIT 1: Actually it’s even worse, but I’m not sure if it’s conflicting with some of my other installed software. Gonna do a clean install of the OS

EDIT 2: Other programs were conflicting with serviio on my install so I installed a clean OS and so far so good