FAQ  •  Register  •  Login

Cannot connect to Serviio server on Ubuntu 14.04

<<

dedo_uluk

Serviio newbie

Posts: 4

Joined: Tue Feb 10, 2015 9:17 pm

Post Tue Feb 10, 2015 9:56 pm

Cannot connect to Serviio server on Ubuntu 14.04

Hello,

I have Serviio installed for couple of weeks and it was working for me just fine, but since couple of days I cannot run it. I ge the error message "Cannot connect to Serviio server, it does not seem to be running. Exiting"

I read some previous posts on the topic here and it seems Java as the problem in some cases. Mine is up to date - version 8 update 31.

I tried to provide log details, but I seem to have 3 log files: serviio.log, serviio.log.1 and serviio.log.2, all three f them however contain data only from 28.01.2015.. so nothing to post, actually..

I will appreciate any help or advice. Thanks a lot!
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Feb 10, 2015 10:49 pm

Re: Cannot connect to Serviio server on Ubuntu 14.04

So the server doesn't start probably, not even to write anything to the log. Check how you're starting the server.
<<

dedo_uluk

Serviio newbie

Posts: 4

Joined: Tue Feb 10, 2015 9:17 pm

Post Wed Feb 11, 2015 8:10 am

Re: Cannot connect to Serviio server on Ubuntu 14.04

I start it manually, running the .sh files. Like I mentioned, it used to work without problems couple of weeks ago..
I tried also to run it in terminal, but there is no difference.

Is there another way of starting it? Something I can try?

Thanks!
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Feb 11, 2015 4:16 pm

Re: Cannot connect to Serviio server on Ubuntu 14.04

when you start it, do you see the java process running?

  Code:
ps aux | grep serviio
<<

thymon

Streaming enthusiast

Posts: 41

Joined: Wed Jan 21, 2015 4:30 pm

Location: Marseille (France)

Post Wed Feb 11, 2015 5:17 pm

Re: Cannot connect to Serviio server on Ubuntu 14.04

Hi,

can you explain this ? (i'm a beginner on Linux sorry)

Serviio run perfectly.
But :

How to launch serviio with SSH ?
Because i can run Serviio with local command line only.

In shh :
  Code:
screen -S "Serviio" ./serviio.sh
it's OK
  Code:
screen -S "Servio-console" ./serviio-console.sh
doesn't run (no display i supose ? )
<<

dedo_uluk

Serviio newbie

Posts: 4

Joined: Tue Feb 10, 2015 9:17 pm

Post Wed Feb 11, 2015 8:30 pm

Re: Cannot connect to Serviio server on Ubuntu 14.04

zip wrote:when you start it, do you see the java process running?

  Code:
ps aux | grep serviio


when I execute the above code, I get the following in the terminal:
  Code:
14681  0.0  0.0   4940   852 pts/0    S+   21:26   0:00 grep --color=auto serviio


And I do not see Java in the running proccesses.
<<

dedo_uluk

Serviio newbie

Posts: 4

Joined: Tue Feb 10, 2015 9:17 pm

Post Wed Feb 11, 2015 8:39 pm

Re: Cannot connect to Serviio server on Ubuntu 14.04

I tried to run in terminal
  Code:
bash serviio.sh


and I got the following result.

  Code:
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /home/sasho/serviio/log/serviio.log (Permission denied)
   at java.io.FileOutputStream.open(Native Method)
   at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
   at java.io.FileOutputStream.<init>(FileOutputStream.java:133)
   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:66)
   at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:277)
   at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:288)
   at org.serviio.MediaServer.<clinit>(MediaServer.java:75)
Wed Feb 11 21:31:32 CET 2015 Thread[main,5,main] java.io.FileNotFoundException: /home/sasho/serviio/library/../log/derby.log (Permission denied)
----------------------------------------------------------------
Wed Feb 11 21:31:32 CET 2015:
Booting Derby (version The Apache Software Foundation - Apache Derby - 10.11.1.1 - (1616546)) instance a816c00e-014b-7a56-eceb-ffffd14fb201
on database directory /home/sasho/serviio/library/db in READ ONLY mode with class loader sun.misc.Launcher$AppClassLoader@ed5528.
Loaded from file:/home/sasho/serviio/lib/derby.jar.
java.vendor=Oracle Corporation
java.runtime.version=1.8.0_31-b13
user.dir=/home/sasho/serviio/bin
os.name=Linux
os.arch=i386
os.version=3.13.0-45-generic
derby.system.home=/home/sasho/serviio/library
derby.stream.error.file=../log/derby.log
Database Class Loader started - derby.database.classpath=''



To be honest, I am not sure what the above means - I am quite new to Linux.. But I hope it gives some information that could help solve my issue..

Thanks again for looking into this!
<<

stephendhill

Serviio lover

Posts: 72

Joined: Sat Jan 30, 2010 9:59 am

Location: UK

Post Sun Feb 15, 2015 8:06 am

Re: Cannot connect to Serviio server on Ubuntu 14.04

Looks like you have a file permission problem, as it's unable to access the derby.log file. Running as a different user maybe? Perform an "ls -al" in the log directory to see permissions.
Avid Serviio user
Pure Flow One | Samsung LE40B650 | Samsung UE40F6320 | Sony PS3 | Ubuntu 14.04
<<

rmorgenstern@iway.na

Serviio newbie

Posts: 2

Joined: Sun Feb 22, 2015 10:31 am

Post Sun Feb 22, 2015 11:20 am

Re: Cannot connect to Serviio server on Ubuntu 14.04

Hi,
I have the same problem with Serviio 1.4.1.2 on Ubuntu 12.04. It was working fine and suddenly (after an Ubuntu update??) it does not start anymore.
Any suggestion what I can do?
Thanks
Renate


Here is the error message appearing on the screen:
./serviio.sh
Exception in thread "Thread-13" java.lang.RuntimeException: Cannot instantiate search engine: Lock obtain timed out: NativeFSLock@/opt/serviio/library/search/write.lock: java.io.FileNotFoundException: /opt/serviio/library/search/write.lock (Permission denied)
at org.serviio.library.search.SearchManager.getInstance(SearchManager.java:59)
at org.serviio.MediaServer$ShutdownHook.run(MediaServer.java:337)
Caused by: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@/opt/serviio/library/search/write.lock: java.io.FileNotFoundException: /opt/serviio/library/search/write.lock (Permission denied)
at org.apache.lucene.store.Lock.obtain(Lock.java:84)
at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:672)
at org.serviio.library.search.SearchIndexer.startIndexWriter(SearchIndexer.java:193)
at org.serviio.library.search.SearchIndexer.<init>(SearchIndexer.java:79)
at org.serviio.library.search.SearchManager.<init>(SearchManager.java:49)
at org.serviio.library.search.SearchManager.getInstance(SearchManager.java:57)
... 1 more
Caused by: java.io.FileNotFoundException: /opt/serviio/library/search/write.lock (Permission denied)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:233)
at org.apache.lucene.store.NativeFSLock.obtain(NativeFSLockFactory.java:203)
at org.apache.lucene.store.Lock.obtain(Lock.java:95)
... 6 more
==============================

I have an old Serviio 1.4 installation on my laptop, and that one I can start successully.

Below is the message from the serviio.log file of serviio 1.4.1.2

=======================
2015-02-22 13:03:38,388 ERROR [ApplicationInstanceManager] .: .: unknown error
java.net.UnknownHostException: .: .: unknown error
at java.net.InetAddress.getLocalHost(InetAddress.java:1484)
at org.serviio.ApplicationInstanceManager.registerInstance(ApplicationInstanceManager.java:68)
at org.serviio.MediaServer.checkForRunningInstances(MediaServer.java:283)
at org.serviio.MediaServer.main(MediaServer.java:106)
Caused by: java.net.UnknownHostException: .: unknown error
at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:907)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1302)
at java.net.InetAddress.getLocalHost(InetAddress.java:1479)
... 3 more
2015-02-22 13:03:38,404 INFO [MediaServer] ------------------------------------------------------------------------
2015-02-22 13:03:38,404 INFO [MediaServer] Serviio DLNA media streaming server v 1.4.1.2 (rev. 3753eff81a2f+)
2015-02-22 13:03:38,404 INFO [MediaServer] Petr Nejedly 2009-2014
2015-02-22 13:03:38,404 INFO [MediaServer] http://www.serviio.org
2015-02-22 13:03:38,404 INFO [MediaServer]
2015-02-22 13:03:38,404 INFO [MediaServer] Java 1.8.0_31-Oracle Corporation
2015-02-22 13:03:38,405 INFO [MediaServer] OS Linux i386 3.2.0-77-generic-pae
2015-02-22 13:03:38,405 INFO [MediaServer] File encoding: UTF-8
2015-02-22 13:03:38,405 INFO [MediaServer] Headless mode enabled: true
2015-02-22 13:03:38,405 INFO [MediaServer] User: root
2015-02-22 13:03:38,405 INFO [MediaServer] User home dir: /root
2015-02-22 13:03:38,405 INFO [MediaServer] Temp dir: /tmp
2015-02-22 13:03:38,405 INFO [MediaServer] ------------------------------------------------------------------------
2015-02-22 13:03:38,541 INFO [WebServer] Socket buffer set to 65535 bytes
2015-02-22 13:03:38,543 INFO [RestletServer] Starting Restlet server (/rest) exposed on port 23423
2015-02-22 13:03:38,586 INFO [RestletServer] Starting Restlet server (/cds) exposed on port 23424
2015-02-22 13:03:38,587 INFO [RestletServer] Starting Restlet server (/mediabrowser) exposed on port 23424
2015-02-22 13:03:38,599 INFO [DBSchemaUpdateExecutor] Checking if DB schema needs to be updated
2015-02-22 13:03:38,620 INFO [DatabaseManager] Using DERBY database language
2015-02-22 13:03:39,849 INFO [MediaServer] ------------------------------------------------------------------------
2015-02-22 13:03:39,849 INFO [MediaServer] License: FREE
2015-02-22 13:03:39,849 INFO [MediaServer] ------------------------------------------------------------------------
2015-02-22 13:03:39,859 INFO [Device] Created UPnP Device with UUID: 684ff902-938e-3ee5-a1eb-dff5394e3317, bound address: 192.168.178.27
2015-02-22 13:03:39,977 WARN [ProfilesDefinitionParser] Cannot get name of the local computer: .: .: unknown error
2015-02-22 13:03:40,273 INFO [ProfilesDefinitionParser] Parsing Profiles definition
2015-02-22 13:03:40,319 ERROR [MediaServer] An unexpected error occured. Ending the application. Message: replacement
java.lang.NullPointerException: replacement
at java.util.regex.Matcher.replaceFirst(Matcher.java:999)
at java.lang.String.replaceFirst(String.java:2165)
at org.serviio.profile.ProfilesDefinitionParser.getDeviceDescription(ProfilesDefinitionParser.java:378)
at org.serviio.profile.ProfilesDefinitionParser.processProfileNode(ProfilesDefinitionParser.java:229)
at org.serviio.profile.ProfilesDefinitionParser.parseDefinition(ProfilesDefinitionParser.java:164)
at org.serviio.profile.ProfileManager.parseProfilesFromFile(ProfileManager.java:181)
at org.serviio.profile.ProfileManager.loadProfiles(ProfileManager.java:156)
at org.serviio.MediaServer.main(MediaServer.java:122)
2015-02-22 13:03:40,321 WARN [IndexedDiskCache] Region [online_technical_metadata] Disk cache not shutdown properly, shutting down now.
2015-02-22 13:03:40,324 WARN [IndexedDiskCache] Region [thumbnails] Disk cache not shutdown properly, shutting down now.
2015-02-22 13:03:40,335 WARN [IndexedDiskCache] Region [tokens] Disk cache not shutdown properly, shutting down now.

Return to Serviio Support & Help

Who is online

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

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