FAQ  •  Register  •  Login

Server 1.5.2 doesn't work on my Mac

<<

jjardoino

Serviio newbie

Posts: 6

Joined: Sun Jan 03, 2016 8:10 pm

Post Sun Jan 03, 2016 8:38 pm

Server 1.5.2 doesn't work on my Mac

I used Servo 1.3.1 on my Mac Pro (2006) because this version works and I had some difficulties with a newer version (I couldn't add a profile in profiles.xml because the file was included in server app and modification prevented the app to run.
Now I use an iMac under 10.10.5 and I copied the two apps (1.3.1) and it works. But I wanted to try an update, so I downloaded and installed the last version (1.5.2). But this version doesn't work for me. What is new is that there is no more app for the server. The files are in /Library/Application Support and it is theorically started by a file in /Library/LaunchDaemons. So it's started with the session. That's what is said.
When I run Servo Console, it can't find the server and quits.
So I think that, perhaps, the server is not correctly running. Then I use the command found in the FAQ,
"sudo launchctl load /Library/LaunchDaemons/org.serviio.server.plist"
And the Terminal confirms that the operation is already in progress.
But the Console doesn't find him again, event after restarting.
So I uninstalled the version 1.5.2 and copied again the old (very old) version 1.3.1 which works very well.
But I can't understand why I can't use version 1.5.2 which should be better, it's the object of updates :-)
<<

jjardoino

Serviio newbie

Posts: 6

Joined: Sun Jan 03, 2016 8:10 pm

Post Mon Jan 04, 2016 5:37 pm

Re: Server 1.5.2 doesn't work on my Mac

Perhaps I don't know how to use the server in its current appearance...
And, in version 1.3.1, I am the owner for read and write. In version 1.5.2 the system is the owner.
I laughed the command java -version in the Terminal and the answer was
java version "1.6.0_65"
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Jan 04, 2016 5:58 pm

Re: Server 1.5.2 doesn't work on my Mac

Is there something in Serviio log?
<<

jjardoino

Serviio newbie

Posts: 6

Joined: Sun Jan 03, 2016 8:10 pm

Post Mon Jan 04, 2016 8:10 pm

Re: Server 1.5.2 doesn't work on my Mac

Yes, there is many lines in servo.log file, but they don't help me to understand :)

2016-01-02 21:22:13,958 INFO [MediaServer] ------------------------------------------------------------------------
2016-01-02 21:22:14,003 INFO [MediaServer] Serviio DLNA media streaming server v 1.5.2 (rev. 4b9ce176daa1)
2016-01-02 21:22:14,003 INFO [MediaServer] Petr Nejedly 2009-2015
2016-01-02 21:22:14,003 INFO [MediaServer] http://www.serviio.org
2016-01-02 21:22:14,003 INFO [MediaServer]
2016-01-02 21:22:14,003 INFO [MediaServer] Java 1.8.0_40-Oracle Corporation x86_64
2016-01-02 21:22:14,003 INFO [MediaServer] OS Mac OS X 10.10.5
2016-01-02 21:22:14,003 INFO [MediaServer] File encoding: UTF-8
2016-01-02 21:22:14,004 INFO [MediaServer] Headless mode enabled: true
2016-01-02 21:22:14,004 INFO [MediaServer] User: root
2016-01-02 21:22:14,004 INFO [MediaServer] User home dir: /var/root
2016-01-02 21:22:14,004 INFO [MediaServer] Temp dir: /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/
2016-01-02 21:22:14,004 INFO [MediaServer] ------------------------------------------------------------------------
2016-01-02 21:22:14,129 INFO [WebServer] Socket buffer set to 65535 bytes
2016-01-02 21:22:14,129 INFO [RestletServer] Starting Restlet server (/rest) exposed on port 23423
2016-01-02 21:22:14,201 INFO [RestletServer] Starting Restlet server (/cds) exposed on port 23424
2016-01-02 21:22:14,201 INFO [RestletServer] Starting Restlet server (/mediabrowser) exposed on port 23424
2016-01-02 21:22:14,215 INFO [DBSchemaUpdateExecutor] Checking if DB schema needs to be updated
2016-01-02 21:22:14,223 INFO [DatabaseManager] Using DERBY database language
2016-01-02 21:22:14,426 WARN [DBConnectionPool] Can't create a new connection for jdbc:derby:db;create=true
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.SQLExceptionFactory.getSQLException(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.jdbc.InternalDriver.getNewEmbedConnection(Unknown Source)
at org.apache.derby.jdbc.InternalDriver.connect(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:664)
at java.sql.DriverManager.getConnection(DriverManager.java:270)
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:71)
at org.serviio.db.DatabaseManager.getConnection(DatabaseManager.java:64)
at org.serviio.update.dao.DBLogDAOImpl.isScriptPresent(DBLogDAOImpl.java:49)
at org.serviio.update.DBSchemaUpdateExecutor.updateDBSchema(DBSchemaUpdateExecutor.java:77)
at org.serviio.MediaServer.main(MediaServer.java:121)
Caused by: ERROR XJ041: Failed to create database 'db', see the next exception for details.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory.wrapArgsForTransportAcrossDRDA(Unknown Source)
... 19 more
Caused by: ERROR XBM0A: The database directory '/Library/Application Support/Serviio/library/db' exists. However, it does not contain the expected 'service.properties' file. Perhaps Derby was brought down in the middle of creating this database. You may want to delete this directory and try creating the database again.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.impl.services.monitor.StorageFactoryService.vetService(Unknown Source)
at org.apache.derby.impl.services.monitor.StorageFactoryService.access$900(Unknown Source)
at org.apache.derby.impl.services.monitor.StorageFactoryService$10.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.impl.services.monitor.FileMonitor.createPersistentService(Unknown Source)
at org.apache.derby.iapi.services.monitor.Monitor.createPersistentService(Unknown Source)
... 16 more
2016-01-02 21:22:16,430 ERROR [MediaServer] An unexpected error occured. Ending the application. Message: null
java.lang.NullPointerException
at org.serviio.update.dao.DBLogDAOImpl.isScriptPresent(DBLogDAOImpl.java:50)
at org.serviio.update.DBSchemaUpdateExecutor.updateDBSchema(DBSchemaUpdateExecutor.java:77)
at org.serviio.MediaServer.main(MediaServer.java:121)
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Jan 04, 2016 11:49 pm

Re: Server 1.5.2 doesn't work on my Mac

It looks like the DB is corrupted. I'd suggest do a clean re-install.
http://serviio.org/component/content/article?id=21#q4
<<

jjardoino

Serviio newbie

Posts: 6

Joined: Sun Jan 03, 2016 8:10 pm

Post Sat Jan 09, 2016 5:40 pm

Re: Server 1.5.2 doesn't work on my Mac

zip wrote:It looks like the DB is corrupted. I'd suggest do a clean re-install.
http://serviio.org/component/content/article?id=21#q4

Thanks, so I did it.
It works now. So I copied my Samsung profile from the old profiles.xml (included in the app) to the new profiles.xml (in Application Support), but changes aren't seen aven after stopping and starting the server or quitting the console. I think I must restart the Mac. I preferred the old way, when the server was an app too.
Edit : In fact, I forgot I could stop and start the service via the Terminal. I did it and now my changes are managed.

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 59 guests

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