FAQ  •  Register  •  Login

Can't start Serviio on Ubuntu 12.04 server

<<

AliBrown

Serviio newbie

Posts: 11

Joined: Mon Jan 28, 2013 12:18 pm

Post Mon Feb 04, 2013 10:11 am

Can't start Serviio on Ubuntu 12.04 server

Hi,
I am really struggling to get Serviio to work on my Ubuntu 12.04 server.

I installed all the pre-dependencies for ffmpeg from https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide and then downloaded and installed the latest Serviio install from the Serviio site.

The problem is, I just can't get it to start.

When I type
  Code:
sudo start serviio

I get
  Code:
serviio start/running, process 3183

, or something similar.

But when I check the status a couple of seconds later with
  Code:
sudo status serviio

It gives me
  Code:
serviio stop/waiting

This is really frustrating as I have had it working on 12.04 in the past before my old server died.

I can't post a log file, since the server doesn't start at all and therefore doesn't generate a log.

Here are the versions that I am running:

  Code:
ali@MainServer:~/Serviio/serviio-1.1$ java -version
java version "1.7.0_09"
OpenJDK Runtime Environment (IcedTea7 2.3.4) (7u9-2.3.4-0ubuntu1.12.04.1)
OpenJDK Client VM (build 23.2-b09, mixed mode, sharing)


  Code:
ali@MainServer:~/Serviio/serviio-1.1$ ffmpeg
ffmpeg version 0.8.5-4:0.8.5-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
  built on Jan 24 2013 18:03:14 with gcc 4.6.3
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'


Any help?
<<

i-matrixx

Serviio newbie

Posts: 3

Joined: Fri Jan 11, 2013 8:04 am

Post Mon Feb 04, 2013 1:27 pm

Re: Can't start Serviio on Ubuntu 12.04 server

Hi,

this isn´t much information you have provided.

One thing I have noticed is that the output you have posted from ffmpeg is definitively not from your own compiled ffmpeg. This is the output from ffmpeg shipped from the official Ubuntu repositories. But that doesn´t explain why the server isn´t starting up at all.

Have you tried starting the provided serviio.sh?

Regards,

Ingo
<<

AliBrown

Serviio newbie

Posts: 11

Joined: Mon Jan 28, 2013 12:18 pm

Post Mon Feb 04, 2013 3:17 pm

Re: Can't start Serviio on Ubuntu 12.04 server

Here is what I get running ./serviio.sh in the bin folder....

  Code:
ali@MainServer:~/Serviio/serviio-1.1/bin$ ./serviio.sh
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /home/ali/Serviio/serviio-1.1/log/serviio.log (No such file or directory)
   at java.io.FileOutputStream.open(Native Method)
   at java.io.FileOutputStream.<init>(FileOutputStream.java:212)
   at java.io.FileOutputStream.<init>(FileOutputStream.java:136)
   at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
   at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:207)
   at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
   at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
   at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:295)
   at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:176)
   at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:191)
   at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:523)
   at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:492)
   at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:1001)
   at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:867)
   at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:773)
   at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:483)
   at org.apache.log4j.LogManager.<clinit>(LogManager.java:127)
   at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)
   at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)
   at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254)
   at org.serviio.MediaServer.<clinit>(MediaServer.java:66)
Mon Feb 04 16:16:48 CET 2013 Thread[main,5,main] java.io.FileNotFoundException: /home/ali/Serviio/serviio-1.1/library/../log/derby.log (No such file or directory)
Mon Feb 04 16:16:49 CET 2013 Thread[main,5,main] Cleanup action starting
ERROR XBM0H: Directory /home/ali/Serviio/serviio-1.1/library/db cannot be created.
   at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
   at org.apache.derby.impl.services.monitor.StorageFactoryService$9.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.apache.derby.impl.services.monitor.StorageFactoryService.createServiceRoot(Unknown Source)
   at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(Unknown Source)
   at org.apache.derby.impl.services.monitor.BaseMonitor.createPersistentService(Unknown Source)
   at org.apache.derby.iapi.services.monitor.Monitor.createPersistentService(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.createDatabase(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection40.<init>(Unknown Source)
   at org.apache.derby.jdbc.Driver40.getNewEmbedConnection(Unknown Source)
   at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
   at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source)
   at java.sql.DriverManager.getConnection(DriverManager.java:579)
   at java.sql.DriverManager.getConnection(DriverManager.java:243)
   at org.serviio.db.DBConnectionPool.newConnection(DBConnetionPool.java:186)
   at org.serviio.db.DBConnectionPool.getConnection(DBConnetionPool.java:123)
   at org.serviio.db.DBConnectionPool.getConnection(DBConnetionPool.java:149)
   at org.serviio.db.DatabaseManager.getConnection(DatabaseManager.java:66)
   at org.serviio.db.DatabaseManager.getConnection(DatabaseManager.java:59)
   at org.serviio.update.dao.DBLogDAOImpl.isScriptPresent(DBLogDAOImpl.java:49)
   at org.serviio.update.DBSchemaUpdateExecutor.updateDBSchema(DBSchemaUpdateExecutor.java:57)
   at org.serviio.MediaServer.main(MediaServer.java:110)
Cleanup action completed
Mon Feb 04 16:16:49 CET 2013 Thread[main,5,main] Cleanup action starting
java.sql.SQLException: Failed to create database 'db', see the next exception for details.
   at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
   at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
   at org.apache.derby.impl.jdbc.Util.seeNextException(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.createDatabase(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection40.<init>(Unknown Source)
   at org.apache.derby.jdbc.Driver40.getNewEmbedConnection(Unknown Source)
   at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
   at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source)
   at java.sql.DriverManager.getConnection(DriverManager.java:579)
   at java.sql.DriverManager.getConnection(DriverManager.java:243)
   at org.serviio.db.DBConnectionPool.newConnection(DBConnetionPool.java:186)
   at org.serviio.db.DBConnectionPool.getConnection(DBConnetionPool.java:123)
   at org.serviio.db.DBConnectionPool.getConnection(DBConnetionPool.java:149)
   at org.serviio.db.DatabaseManager.getConnection(DatabaseManager.java:66)
   at org.serviio.db.DatabaseManager.getConnection(DatabaseManager.java:59)
   at org.serviio.update.dao.DBLogDAOImpl.isScriptPresent(DBLogDAOImpl.java:49)
   at org.serviio.update.DBSchemaUpdateExecutor.updateDBSchema(DBSchemaUpdateExecutor.java:57)
   at org.serviio.MediaServer.main(MediaServer.java:110)
Caused by: java.sql.SQLException: Failed to create database 'db', see the next exception for details.
   at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
   at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
   ... 20 more
Caused by: java.sql.SQLException: Directory /home/ali/Serviio/serviio-1.1/library/db cannot be created.
   at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
   at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
   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)
   ... 17 more
Caused by: ERROR XBM0H: Directory /home/ali/Serviio/serviio-1.1/library/db cannot be created.
   at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
   at org.apache.derby.impl.services.monitor.StorageFactoryService$9.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.apache.derby.impl.services.monitor.StorageFactoryService.createServiceRoot(Unknown Source)
   at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(Unknown Source)
   at org.apache.derby.impl.services.monitor.BaseMonitor.createPersistentService(Unknown Source)
   at org.apache.derby.iapi.services.monitor.Monitor.createPersistentService(Unknown Source)
   ... 17 more
============= begin nested exception, level (1) ===========
java.sql.SQLException: Directory /home/ali/Serviio/serviio-1.1/library/db cannot be created.
   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.EmbedConnection.createDatabase(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection40.<init>(Unknown Source)
   at org.apache.derby.jdbc.Driver40.getNewEmbedConnection(Unknown Source)
   at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
   at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source)
   at java.sql.DriverManager.getConnection(DriverManager.java:579)
   at java.sql.DriverManager.getConnection(DriverManager.java:243)
   at org.serviio.db.DBConnectionPool.newConnection(DBConnetionPool.java:186)
   at org.serviio.db.DBConnectionPool.getConnection(DBConnetionPool.java:123)
   at org.serviio.db.DBConnectionPool.getConnection(DBConnetionPool.java:149)
   at org.serviio.db.DatabaseManager.getConnection(DatabaseManager.java:66)
   at org.serviio.db.DatabaseManager.getConnection(DatabaseManager.java:59)
   at org.serviio.update.dao.DBLogDAOImpl.isScriptPresent(DBLogDAOImpl.java:49)
   at org.serviio.update.DBSchemaUpdateExecutor.updateDBSchema(DBSchemaUpdateExecutor.java:57)
   at org.serviio.MediaServer.main(MediaServer.java:110)
Caused by: java.sql.SQLException: Directory /home/ali/Serviio/serviio-1.1/library/db cannot be created.
   at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
   at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
   ... 22 more
Caused by: ERROR XBM0H: Directory /home/ali/Serviio/serviio-1.1/library/db cannot be created.
   at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
   at org.apache.derby.impl.services.monitor.StorageFactoryService$9.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.apache.derby.impl.services.monitor.StorageFactoryService.createServiceRoot(Unknown Source)
   at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(Unknown Source)
   at org.apache.derby.impl.services.monitor.BaseMonitor.createPersistentService(Unknown Source)
   at org.apache.derby.iapi.services.monitor.Monitor.createPersistentService(Unknown Source)
   ... 17 more
============= end nested exception, level (1) ===========
============= begin nested exception, level (2) ===========
java.sql.SQLException: Directory /home/ali/Serviio/serviio-1.1/library/db cannot be created.
   at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
   at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
   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.EmbedConnection.createDatabase(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection40.<init>(Unknown Source)
   at org.apache.derby.jdbc.Driver40.getNewEmbedConnection(Unknown Source)
   at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
   at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source)
   at java.sql.DriverManager.getConnection(DriverManager.java:579)
   at java.sql.DriverManager.getConnection(DriverManager.java:243)
   at org.serviio.db.DBConnectionPool.newConnection(DBConnetionPool.java:186)
   at org.serviio.db.DBConnectionPool.getConnection(DBConnetionPool.java:123)
   at org.serviio.db.DBConnectionPool.getConnection(DBConnetionPool.java:149)
   at org.serviio.db.DatabaseManager.getConnection(DatabaseManager.java:66)
   at org.serviio.db.DatabaseManager.getConnection(DatabaseManager.java:59)
   at org.serviio.update.dao.DBLogDAOImpl.isScriptPresent(DBLogDAOImpl.java:49)
   at org.serviio.update.DBSchemaUpdateExecutor.updateDBSchema(DBSchemaUpdateExecutor.java:57)
   at org.serviio.MediaServer.main(MediaServer.java:110)
Caused by: ERROR XBM0H: Directory /home/ali/Serviio/serviio-1.1/library/db cannot be created.
   at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
   at org.apache.derby.impl.services.monitor.StorageFactoryService$9.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.apache.derby.impl.services.monitor.StorageFactoryService.createServiceRoot(Unknown Source)
   at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(Unknown Source)
   at org.apache.derby.impl.services.monitor.BaseMonitor.createPersistentService(Unknown Source)
   at org.apache.derby.iapi.services.monitor.Monitor.createPersistentService(Unknown Source)
   ... 17 more
============= end nested exception, level (2) ===========
============= begin nested exception, level (3) ===========
ERROR XBM0H: Directory /home/ali/Serviio/serviio-1.1/library/db cannot be created.
   at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
   at org.apache.derby.impl.services.monitor.StorageFactoryService$9.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.apache.derby.impl.services.monitor.StorageFactoryService.createServiceRoot(Unknown Source)
   at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(Unknown Source)
   at org.apache.derby.impl.services.monitor.BaseMonitor.createPersistentService(Unknown Source)
   at org.apache.derby.iapi.services.monitor.Monitor.createPersistentService(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.createDatabase(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection40.<init>(Unknown Source)
   at org.apache.derby.jdbc.Driver40.getNewEmbedConnection(Unknown Source)
   at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
   at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source)
   at java.sql.DriverManager.getConnection(DriverManager.java:579)
   at java.sql.DriverManager.getConnection(DriverManager.java:243)
   at org.serviio.db.DBConnectionPool.newConnection(DBConnetionPool.java:186)
   at org.serviio.db.DBConnectionPool.getConnection(DBConnetionPool.java:123)
   at org.serviio.db.DBConnectionPool.getConnection(DBConnetionPool.java:149)
   at org.serviio.db.DatabaseManager.getConnection(DatabaseManager.java:66)
   at org.serviio.db.DatabaseManager.getConnection(DatabaseManager.java:59)
   at org.serviio.update.dao.DBLogDAOImpl.isScriptPresent(DBLogDAOImpl.java:49)
   at org.serviio.update.DBSchemaUpdateExecutor.updateDBSchema(DBSchemaUpdateExecutor.java:57)
   at org.serviio.MediaServer.main(MediaServer.java:110)
============= end nested exception, level (3) ===========
Cleanup action completed
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Feb 04, 2013 4:58 pm

Re: Can't start Serviio on Ubuntu 12.04 server

is your serviio folder writable?
<<

AliBrown

Serviio newbie

Posts: 11

Joined: Mon Jan 28, 2013 12:18 pm

Post Mon Feb 04, 2013 4:59 pm

Re: Can't start Serviio on Ubuntu 12.04 server

Yes, owned by root, but with 775 rights.
<<

khurram23

Serviio lover

Posts: 76

Joined: Sun Jun 24, 2012 10:25 pm

Post Tue Feb 05, 2013 1:58 am

Re: Can't start Serviio on Ubuntu 12.04 server

Post the output of following commands.

in /home/ali

  Code:
ls -al | grep Serviio
and
  Code:
 ls -al Serviio


Seems like you are trying to run serviio.sh as user "ali" when the dir is owned by root.

Confirm the above, then try :

  Code:
chown -hR ali Serviio
Dropbox - Get 500MB bonus space.

My pre-compiled FFMPEG, X264 packages for Linux/Ubuntu - Dropbox
<<

AliBrown

Serviio newbie

Posts: 11

Joined: Mon Jan 28, 2013 12:18 pm

Post Tue Feb 05, 2013 7:13 am

Re: Can't start Serviio on Ubuntu 12.04 server

Here is the current state...
  Code:
ali@MainServer:~$ ls -al | grep Serviio
drwxrwxrwx  8 root root  4096 Jan 28 11:20 Serviio
ali@MainServer:~$ ls -al  Serviio
total 32
drwxrwxrwx  8 root root 4096 Jan 28 11:20 .
drwxr-xr-x 30 ali  ali  4096 Jan 29 15:30 ..
drwxrwxr-x 14 root root 4096 Jan 28 11:15 fdk-aac
drwxrwxr-x 17 root root 4096 Jan 28 10:44 ffmpeg
drwxrwxr-x 16 root root 4096 Jan 28 09:57 libvpx
drwxrwxr-x  8 root root 4096 Dec 19 17:05 serviio-1.1
drwxrwxr-x 11 root root 4096 Jan 28 08:50 x264
drwxrwxr-x 11 root root 4096 Jan 28 08:41 yasm-1.2.0


So I changed the owner to me....
  Code:
ali@MainServer:~$ sudo chown -hR ali:ali Serviio
ali@MainServer:~$ ls -al  Serviio
total 32
drwxrwxrwx  8 ali ali 4096 Jan 28 11:20 .
drwxr-xr-x 30 ali ali 4096 Jan 29 15:30 ..
drwxrwxr-x 14 ali ali 4096 Jan 28 11:15 fdk-aac
drwxrwxr-x 17 ali ali 4096 Jan 28 10:44 ffmpeg
drwxrwxr-x 16 ali ali 4096 Jan 28 09:57 libvpx
drwxrwxr-x  8 ali ali 4096 Dec 19 17:05 serviio-1.1
drwxrwxr-x 11 ali ali 4096 Jan 28 08:50 x264
drwxrwxr-x 11 ali ali 4096 Jan 28 08:41 yasm-1.2.0


Then I tried again...
  Code:
ali@MainServer:~$ sudo start serviio
serviio start/running, process 25504
ali@MainServer:~$ sudo status serviio
serviio start/running, process 25504
ali@MainServer:~$ sudo status serviio
serviio stop/waiting


Still doesn't start properly. Hmmmm. :?
<<

AliBrown

Serviio newbie

Posts: 11

Joined: Mon Jan 28, 2013 12:18 pm

Post Tue Feb 05, 2013 9:49 am

Re: Can't start Serviio on Ubuntu 12.04 server

Right, I just removed all the packages (ffmpeg, x264, etc) and Serviio. I did a clean install of all the packages using http://wiki.serviio.org/doku.php?id=build_ffmpeg_linux and then downloaded and installed the serviio package again.

Yet I still get the same problem!

  Code:
ali@MainServer:~/Serviio/serviio-1.1$ sudo start serviio
serviio start/running, process 2558


...wait 2-3 seconds...
  Code:
ali@MainServer:~/Serviio/serviio-1.1$ sudo status serviio
serviio stop/waiting


So still no success, but at least now I can generate a log file....
  Code:
2013-02-05 10:37:19,005 INFO  [MediaServer] ------------------------------------------------------------------------
2013-02-05 10:37:19,009 INFO  [MediaServer] Serviio DLNA media streaming server v 1.1 (rev. 6ba0dd933a8e+)
2013-02-05 10:37:19,009 INFO  [MediaServer] Petr Nejedly 2009-2012
2013-02-05 10:37:19,009 INFO  [MediaServer] http://www.serviio.org
2013-02-05 10:37:19,009 INFO  [MediaServer]
2013-02-05 10:37:19,009 INFO  [MediaServer] Java 1.7.0_09-Oracle Corporation
2013-02-05 10:37:19,009 INFO  [MediaServer] OS Linux i386 3.2.0-37-generic-pae
2013-02-05 10:37:19,010 INFO  [MediaServer] File encoding: UTF-8
2013-02-05 10:37:19,012 INFO  [MediaServer] Headless mode enabled: true
2013-02-05 10:37:19,012 INFO  [MediaServer] User: ali
2013-02-05 10:37:19,012 INFO  [MediaServer] User home dir: /home/ali
2013-02-05 10:37:19,012 INFO  [MediaServer] Temp dir: /tmp
2013-02-05 10:37:19,012 INFO  [MediaServer] ------------------------------------------------------------------------
2013-02-05 10:37:19,499 INFO  [WebServer] Socket buffer set to 65535 bytes
2013-02-05 10:37:19,506 INFO  [RestletServer] Starting Restlet server (/rest) exposed on port 23423
2013-02-05 10:37:19,628 INFO  [RestletServer] Starting Restlet server (/cds) exposed on port 23424
2013-02-05 10:37:19,629 INFO  [RestletServer] Starting Restlet server (/mediabrowser) exposed on port 23424
2013-02-05 10:37:19,686 INFO  [DBSchemaUpdateExecutor] Checking if DB schema needs to be updated
2013-02-05 10:37:30,590 INFO  [DBSchemaUpdateExecutor] Updating DB schema
2013-02-05 10:37:51,371 INFO  [DBSchemaUpdateExecutor] Cleaning persistent cache
2013-02-05 10:37:51,805 INFO  [Device] Created UPnP Device with UUID: c7f54680-913f-3be8-b5d4-96fd42c5998e, bound address: 192.168.5.10
2013-02-05 10:37:51,839 WARN  [IndexedDiskCache] Region [online_technical_metadata] Reseting cache
2013-02-05 10:37:52,073 INFO  [prefs] Created user preferences directory.
2013-02-05 10:37:52,310 INFO  [MediaServer] ------------------------------------------------------------------------
2013-02-05 10:37:52,310 INFO  [MediaServer] License: PRO (EVALUATION, id: 11111111-1111-1111-1111-111111111113)
2013-02-05 10:37:52,310 INFO  [MediaServer] ------------------------------------------------------------------------
2013-02-05 10:37:53,031 INFO  [ProfilesDefinitionParser] Parsing Profiles definition
2013-02-05 10:37:55,035 INFO  [ProfilesDefinitionParser] Added profile 'Generic DLNA profile' (id=1)
2013-02-05 10:37:56,479 INFO  [ProfilesDefinitionParser] Added profile 'Samsung TV (B-series)' (id=2)
2013-02-05 10:37:57,273 INFO  [ProfilesDefinitionParser] Added profile 'Xbox 360' (id=3)
2013-02-05 10:37:58,491 INFO  [ProfilesDefinitionParser] Added profile 'Playstation 3' (id=4)
2013-02-05 10:37:59,245 INFO  [ProfilesDefinitionParser] Added profile 'Samsung TV (A-series)' (id=5)
2013-02-05 10:37:59,797 INFO  [ProfilesDefinitionParser] Added profile 'DirecTV HD-DVR' (id=6)
2013-02-05 10:38:01,612 INFO  [ProfilesDefinitionParser] Added profile 'Samsung TV / player (C/D/E-series)' (id=7)
2013-02-05 10:38:01,720 INFO  [ProfilesDefinitionParser] Added profile 'LG TV / player' (id=8)
2013-02-05 10:38:04,405 INFO  [ProfilesDefinitionParser] Added profile 'Sony Bravia TV (2012)' (id=sony2012)
2013-02-05 10:38:07,286 INFO  [ProfilesDefinitionParser] Added profile 'Sony BD Player / SMP' (id=10)
2013-02-05 10:38:08,506 INFO  [ProfilesDefinitionParser] Added profile 'Toshiba REGZA' (id=13)
2013-02-05 10:38:09,207 INFO  [ProfilesDefinitionParser] Added profile 'WDTV Live' (id=14)
2013-02-05 10:38:09,331 INFO  [ProfilesDefinitionParser] Added profile 'LaCie LaCinema Media Player' (id=15)
2013-02-05 10:38:09,907 INFO  [ProfilesDefinitionParser] Added profile 'Manta WIFI Centre' (id=16)
2013-02-05 10:38:10,127 INFO  [ProfilesDefinitionParser] Added profile 'Pure Flow' (id=17)
2013-02-05 10:38:11,189 INFO  [ProfilesDefinitionParser] Added profile 'Sharp Aquos' (id=18)
2013-02-05 10:38:11,825 INFO  [ProfilesDefinitionParser] Added profile 'Sony Bravia TV (2011)' (id=sony2011)
2013-02-05 10:38:12,885 INFO  [ProfilesDefinitionParser] Added profile 'Sony Bravia TV (2010)' (id=sony2010)
2013-02-05 10:38:14,106 INFO  [ProfilesDefinitionParser] Added profile 'Philips' (id=20)
2013-02-05 10:38:14,576 INFO  [ProfilesDefinitionParser] Added profile 'Sony Bravia TV (2009)' (id=sony2009)
2013-02-05 10:38:14,799 INFO  [ProfilesDefinitionParser] Added profile 'Denon AVR' (id=22)
2013-02-05 10:38:16,929 INFO  [ProfilesDefinitionParser] Added profile 'Panasonic Viera G/GT/DT/UT/VT (2011/2012)' (id=viera2011a)
2013-02-05 10:38:17,246 INFO  [ProfilesDefinitionParser] Added profile 'Panasonic Viera E/S/ST/VT (2011)' (id=viera2011)
2013-02-05 10:38:17,546 INFO  [ProfilesDefinitionParser] Added profile 'Panasonic Viera (2010)' (id=viera2010)
2013-02-05 10:38:17,979 INFO  [ProfilesDefinitionParser] Added profile 'Sony Bravia TV (2012) - US' (id=sony2012us)
2013-02-05 10:38:18,622 INFO  [ProfilesDefinitionParser] Added profile 'Sony Bravia TV (2011) - US' (id=sony2011us)
2013-02-05 10:38:19,264 INFO  [ProfilesDefinitionParser] Added profile 'Sony AVReceiver STR' (id=SonySTR)
2013-02-05 10:38:19,617 INFO  [ProfilesDefinitionParser] Added profile 'Sony Audio CMT' (id=SonyCMT)
2013-02-05 10:38:19,678 INFO  [ProfilesDefinitionParser] Parsing Profiles definition
2013-02-05 10:38:20,606 INFO  [ProfilesDefinitionParser] Added profile 'Flash player' (id=flv_player)
2013-02-05 10:38:21,235 INFO  [ProfilesDefinitionParser] Added profile 'ServiiGo' (id=serviigo)
2013-02-05 10:38:21,716 INFO  [ProfilesDefinitionParser] Added profile 'Windows Phone 8' (id=wp8)
2013-02-05 10:38:21,755 INFO  [PluginCompilerThread] Looking for plugins at /home/ali/Serviio/serviio-1.1/plugins
2013-02-05 10:38:21,756 INFO  [PluginCompilerThread] Started looking for plugins
2013-02-05 10:38:21,760 INFO  [UpdateChecker] Checking if a new version is available
2013-02-05 10:38:22,416 ERROR [ProcessExecutor] Fatal error in process starting: Cannot run program "dcraw": error=2, No such file or directory
2013-02-05 10:38:22,416 WARN  [MediaServer] DCRAW not found. Support for raw image files will be missing.
2013-02-05 10:38:22,445 INFO  [AbstractTranscodingDeliveryEngine] Cleaning transcode engine and its data
2013-02-05 10:38:22,546 INFO  [WebServer] WebServer starting on port 8895
2013-02-05 10:38:22,572 INFO  [EventSubscriptionExpirationChecker] Starting EventSubscriptionExpirationChecker
2013-02-05 10:38:22,573 INFO  [EventDispatcher] Starting EventDispatcher
2013-02-05 10:38:22,574 INFO  [DiscoveryAdvertisementNotifier] Starting DiscoveryAdvertisementNotifier
2013-02-05 10:38:22,582 INFO  [DiscoverySSDPMessageListener] Starting DiscoverySSDPMessageListener using interface eth0 (eth0) and address 192.168.5.10, timeout = 0
2013-02-05 10:38:22,588 INFO  [RendererExpirationChecker] Starting RendererExpirationChecker
2013-02-05 10:38:22,589 INFO  [RendererSearchSender] Searching for Renderer devices, will multicast on 1 NICs
2013-02-05 10:38:22,758 INFO  [RendererManager] Stored a new renderer: uuid='cc5b7c5a-43ab-4afc-9dfd-63c1559c6556', name = 'Unrecognized device', ipAddress='192.168.5.10', profile = '1'
2013-02-05 10:38:23,011 INFO  [RendererManager] Stored a new renderer: uuid='1d704d06-6c13-4264-b979-8060746c9675', name = 'Unrecognized device', ipAddress='192.168.5.12', profile = '1'
2013-02-05 10:38:48,667 INFO  [FeedUpdaterThread] Started looking for information about online resources
2013-02-05 10:38:48,681 INFO  [LibraryAdditionsCheckerThread] Started looking for newly added files
2013-02-05 10:38:48,714 INFO  [LibraryUpdatesCheckerThread] Started looking for updates to currently shared files
2013-02-05 10:38:48,718 INFO  [PlaylistMaintainerThread] Started looking playlist changes
2013-02-05 10:39:52,002 WARN  [IndexedDiskCache] Region [thumbnails] Disk cache not shutdown properly, shutting down now.
2013-02-05 10:39:52,002 INFO  [LibraryAdditionsCheckerThread] Finished looking for newly added files
2013-02-05 10:39:52,002 WARN  [IndexedDiskCache] Region [online_technical_metadata] Disk cache not shutdown properly, shutting down now.
2013-02-05 10:39:52,101 INFO  [LibraryUpdatesCheckerThread] Finished looking for updates to currently shared files
2013-02-05 10:39:52,201 INFO  [FeedUpdaterThread] Finished looking for online resources information
2013-02-05 10:39:52,302 INFO  [PluginCompilerThread] Finished looking for plugins
2013-02-05 10:39:52,406 INFO  [WebServer] WebServer shutting down
2013-02-05 10:39:52,406 INFO  [DiscoveryAdvertisementNotifier] Leaving DiscoveryAdvertisementNotifier
2013-02-05 10:39:52,407 INFO  [EventSubscriptionExpirationChecker] Leaving EventSubscriptionExpirationChecker, removing all event subscriptions
2013-02-05 10:39:52,407 INFO  [EventDispatcher] Leaving EventDispatcher
2013-02-05 10:39:52,408 INFO  [DiscoverySSDPMessageListener] Leaving DiscoverySSDPMessageListener
2013-02-05 10:39:52,461 INFO  [DatabaseManager] Shutting down database
2013-02-05 10:39:52,592 INFO  [RendererExpirationChecker] Leaving RendererExpirationChecker
2013-02-05 10:39:54,901 INFO  [AbstractTranscodingDeliveryEngine] Cleaning transcode engine and its data


Seems like a problem with DCRAW???
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Feb 05, 2013 10:36 am

Re: Can't start Serviio on Ubuntu 12.04 server

you don't need dcraw, it'll run without it

it looks like the server starts, but then stops after 1 minute

  Code:
2013-02-05 10:38:48,718 INFO  [PlaylistMaintainerThread] Started looking playlist changes
2013-02-05 10:39:52,002 WARN  [IndexedDiskCache] Region [thumbnails] Disk cache not shutdown properly, shutting down now.


I've seen this before, but don't remember what the solution was, possibly a different Java version.

Could you enable detailed log ? It might help further analyse it.
<<

AliBrown

Serviio newbie

Posts: 11

Joined: Mon Jan 28, 2013 12:18 pm

Post Tue Feb 05, 2013 11:28 am

Re: Can't start Serviio on Ubuntu 12.04 server

I can get it running now with
  Code:
./serviio.sh
but not with
  Code:
sudo start serviio


Not ideal, since this seems to lock up my terminal (i.e. I can't close it without killing the serviio process).

Ideally I want to be able to use the start/stop/status commands, but mainly just have it start on boot. Any suggestions?
<<

AliBrown

Serviio newbie

Posts: 11

Joined: Mon Jan 28, 2013 12:18 pm

Post Tue Feb 05, 2013 1:13 pm

Re: Can't start Serviio on Ubuntu 12.04 server

Fixed! (so far...).

I updated my serviio.conf file to include the line
  Code:
expect daemon
(thanks to another thread)

It now reads
  Code:
start on (started networking
       or started network-manager
       or started network-interface)

expect daemon

script
  /usr/local/bin/serviio-1.1/bin/serviio.sh
end script


and all works fine!
<<

AliBrown

Serviio newbie

Posts: 11

Joined: Mon Jan 28, 2013 12:18 pm

Post Tue Feb 05, 2013 1:45 pm

Re: Can't start Serviio on Ubuntu 12.04 server

Spoke to soon! I just did a reboot of my server...

I couldn't see the Serviio server on any DLNA receivers, so I checked the status.
  Code:
ali@MainServer:~/Serviio/serviio-1.1/bin$ sudo status serviio
serviio start/running, process 586


But when I tried to open a console I got the: "Cannot connect to Serviio server, it does not seem to be running. Exiting..." message.

When I try to stop the server with
  Code:
sudo stop serviio

it just hangs.

Still puzzled! :?
<<

khurram23

Serviio lover

Posts: 76

Joined: Sun Jun 24, 2012 10:25 pm

Post Tue Feb 05, 2013 8:40 pm

Re: Can't start Serviio on Ubuntu 12.04 server

Seems like permissions issue.

Review your syslog. Look in your /var/log folder

can you start the server up using
  Code:
./serviio.sh &


Don't terminate your shell, it'll probably kill the server. leave the shell open (it'll be free'd up when you use &), just don't exit.
Dropbox - Get 500MB bonus space.

My pre-compiled FFMPEG, X264 packages for Linux/Ubuntu - Dropbox
<<

Rex

Serviio newbie

Posts: 8

Joined: Fri Mar 29, 2013 4:03 pm

Post Fri Mar 29, 2013 4:22 pm

Re: Can't start Serviio on Ubuntu 12.04 server

Hi
Hope you don't mind my posting but I am suffering the same peoblem. When I type ./serviio.sh & in term it comes back with "No such file or directory"

I followed the install instructions as per Serviio Ubuntu 12.04 Installation Guide and added both Serviilo and Serviio Console in the Startup programmes. I've even installed ver 1.2.1 but still no success.

I also tried to terminate the programme but again it sad no such program exists but they are there in
/home/kXXX/servio-1.2.1/bin/serviio.sh

Any help I would be extremely grateful.

Rex

PS Go gently I'm an "Old" Newbie
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Mar 29, 2013 4:28 pm

Re: Can't start Serviio on Ubuntu 12.04 server

is serviio.sh executable? (ie does it have the 'x' flag when you do ls -al in the bin folder?)
<<

Rex

Serviio newbie

Posts: 8

Joined: Fri Mar 29, 2013 4:03 pm

Post Fri Mar 29, 2013 5:09 pm

Re: Can't start Serviio on Ubuntu 12.04 server

Hi
If I right click on the file - serviio.sh - properties - permissions - There is a box which is labelled Execute: "Allow excuting file as program" and the box is ticked.

Is that the same thing?
<<

Rex

Serviio newbie

Posts: 8

Joined: Fri Mar 29, 2013 4:03 pm

Post Sat Mar 30, 2013 9:51 am

Re: Can't start Serviio on Ubuntu 12.04 server

I have just tried this and it would seem it's java causing the problem.

kitty@kitty-Inspiron-1000:~$ cd /home/kitty/serviio-1.2.1/bin
kitty@kitty-Inspiron-1000:~/serviio-1.2.1/bin$ chmod +x serviio.sh
kitty@kitty-Inspiron-1000:~/serviio-1.2.1/bin$ ./serviio.sh
./serviio.sh: 67: ./serviio.sh: java: not found
kitty@kitty-Inspiron-1000:~/serviio-1.2.1/bin$

Any ideas?

Rex

(It's my wifes laptop i'm installing it on!!)
<<

Rex

Serviio newbie

Posts: 8

Joined: Fri Mar 29, 2013 4:03 pm

Post Sat Mar 30, 2013 10:36 am

Re: Can't start Serviio on Ubuntu 12.04 server

Cracked it!!

Didn't have java installed!!

Rex

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 41 guests

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