FAQ  •  Register  •  Login

Running (upgrade) 1.0 on FreeBSD 9.0

<<

leeor

Serviio newbie

Posts: 10

Joined: Sun Feb 05, 2012 1:33 pm

Post Sat Jul 28, 2012 11:46 am

Running (upgrade) 1.0 on FreeBSD 9.0

Upgraded from 0.6.2, and running into a few issues: a padlock exception, accessing the user preferences files (probably not fatal), and an error when parsing profiles.

Logs and exceptions:
Running the service
  Code:
root@beast:/usr/ports/java/openjdk7# service serviio start
Starting serviio.
root@beast:/usr/ports/java/openjdk7# java.io.IOException: No such file or directory
   at java.io.UnixFileSystem.createFileExclusively(Native Method)
   at java.io.File.createNewFile(File.java:947)
   at net.padlocksoftware.padlock.validator.history.FileHistory.setEarliestRun(FileHistory.java:79)
   at net.padlocksoftware.padlock.validator.plugins.ExpiredPlugin.getFirstRun(ExpiredPlugin.java:170)
   at net.padlocksoftware.padlock.validator.plugins.ExpiredPlugin.validate(ExpiredPlugin.java:76)
   at net.padlocksoftware.padlock.validator.Validator.validate(Validator.java:343)
   at net.padlocksoftware.padlock.validator.Validator.validate(Validator.java:298)
   at org.serviio.licensing.LicenseValidator.validateLicense(LicenseValidator.java:97)
   at org.serviio.licensing.LicenseValidator.validateBundledLicense(LicenseValidator.java:116)
   at org.serviio.licensing.LicenseValidator.getCurrentLicense(LicenseValidator.java:67)
   at org.serviio.licensing.LicensingManager.updateLicense(LicensingManager.java:128)
   at org.serviio.licensing.LicensingManager.<init>(LicensingManager.java:103)
   at org.serviio.licensing.LicensingManager.getInstance(LicensingManager.java:113)
   at org.serviio.MediaServer.printLicenseInformation(MediaServer.java:250)
   at org.serviio.MediaServer.main(MediaServer.java:110)
java.io.IOException: No such file or directory
   at java.io.UnixFileSystem.createFileExclusively(Native Method)
   at java.io.File.createNewFile(File.java:947)
   at net.padlocksoftware.padlock.validator.history.FileHistory.setEarliestRun(FileHistory.java:79)
   at net.padlocksoftware.padlock.validator.plugins.ExpiredPlugin.getTimeRemaining(ExpiredPlugin.java:133)
   at net.padlocksoftware.padlock.validator.Validator.getTimeRemaining(Validator.java:367)
   at org.serviio.licensing.LicenseValidator.validateLicense(LicenseValidator.java:98)
   at org.serviio.licensing.LicenseValidator.validateBundledLicense(LicenseValidator.java:116)
   at org.serviio.licensing.LicenseValidator.getCurrentLicense(LicenseValidator.java:67)
   at org.serviio.licensing.LicensingManager.updateLicense(LicensingManager.java:128)
   at org.serviio.licensing.LicensingManager.<init>(LicensingManager.java:103)
   at org.serviio.licensing.LicensingManager.getInstance(LicensingManager.java:113)
   at org.serviio.MediaServer.printLicenseInformation(MediaServer.java:250)
   at org.serviio.MediaServer.main(MediaServer.java:110)

/var/log/serviio/serviio.log
  Code:
2012-07-28 13:46:21,305 DEBUG [ApplicationInstanceManager] Listening for application instances on socket 44331
2012-07-28 13:46:21,314 INFO  [MediaServer] ------------------------------------------------------------------------
2012-07-28 13:46:21,314 INFO  [MediaServer] Serviio DLNA media streaming server v 1.0 (rev. 34c915f37185+)
2012-07-28 13:46:21,314 INFO  [MediaServer] Petr Nejedly 2009-2012
2012-07-28 13:46:21,314 INFO  [MediaServer] http://www.serviio.org
2012-07-28 13:46:21,314 INFO  [MediaServer]
2012-07-28 13:46:21,314 INFO  [MediaServer] Java 1.7.0_04-Oracle Corporation
2012-07-28 13:46:21,314 INFO  [MediaServer] OS FreeBSD amd64 9.0-RELEASE
2012-07-28 13:46:21,315 INFO  [MediaServer] File encoding: US-ASCII
2012-07-28 13:46:21,315 INFO  [MediaServer] Headless mode enabled: true
2012-07-28 13:46:21,315 INFO  [MediaServer] User home dir: /nonexistent
2012-07-28 13:46:21,315 INFO  [MediaServer] Temp dir: /var/tmp/
2012-07-28 13:46:21,315 INFO  [MediaServer] ------------------------------------------------------------------------
2012-07-28 13:46:21,408 INFO  [WebServer] Socket buffer set to 65535 bytes
2012-07-28 13:46:21,409 INFO  [RestletServer] Starting Restlet server (/rest) exposed on 10.0.0.11:23423
2012-07-28 13:46:21,437 INFO  [RestletServer] Starting Restlet server (/cds) exposed on 10.0.0.11:23424
2012-07-28 13:46:21,437 INFO  [RestletServer] Starting Restlet server (/mediabrowser) exposed on 10.0.0.11:23424
2012-07-28 13:46:21,447 INFO  [DBSchemaUpdateExecutor] Checking if DB schema needs to be updated
2012-07-28 13:46:21,454 DEBUG [DBLogDAOImpl] Checking if script 'script-0.1.sql' has been run
2012-07-28 13:46:22,113 DEBUG [DBLogDAOImpl] Checking if script 'script-0.1.1.sql' has been run
2012-07-28 13:46:22,114 DEBUG [DBLogDAOImpl] Checking if script 'script-0.2.sql' has been run
2012-07-28 13:46:22,114 DEBUG [DBLogDAOImpl] Checking if script 'script-0.3.1.sql' has been run
2012-07-28 13:46:22,115 DEBUG [DBLogDAOImpl] Checking if script 'script-0.4.sql' has been run
2012-07-28 13:46:22,116 DEBUG [DBLogDAOImpl] Checking if script 'script-0.4.1.sql' has been run
2012-07-28 13:46:22,117 DEBUG [DBLogDAOImpl] Checking if script 'script-0.4.2.sql' has been run
2012-07-28 13:46:22,118 DEBUG [DBLogDAOImpl] Checking if script 'script-0.5.sql' has been run
2012-07-28 13:46:22,118 DEBUG [DBLogDAOImpl] Checking if script 'script-0.5.1.sql' has been run
2012-07-28 13:46:22,119 DEBUG [DBLogDAOImpl] Checking if script 'script-0.6.sql' has been run
2012-07-28 13:46:22,120 DEBUG [DBLogDAOImpl] Checking if script 'script-0.6.1.sql' has been run
2012-07-28 13:46:22,121 DEBUG [DBLogDAOImpl] Checking if script 'script-0.6.2.sql' has been run
2012-07-28 13:46:22,121 DEBUG [DBLogDAOImpl] Checking if script 'script-1.0.sql' has been run
2012-07-28 13:46:22,130 DEBUG [ConfigEntryDAOImpl] Reading all ConfigEntries
2012-07-28 13:46:22,192 WARN  [prefs] Couldn't create user preferences directory. User preferences are unusable.
2012-07-28 13:46:22,192 WARN  [prefs] java.io.IOException: No such file or directory
2012-07-28 13:46:22,361 INFO  [Device] Created UPnP Device with UUID: 4a050adb-abeb-36b2-ad5b-58527e601c75, bound address: 10.0.0.11
2012-07-28 13:46:23,749 WARN  [prefs] Could not lock User prefs.  Unix error code 2.
2012-07-28 13:46:25,307 WARN  [prefs] Could not lock User prefs.  Unix error code 2.
2012-07-28 13:46:25,311 INFO  [MediaServer] ------------------------------------------------------------------------
2012-07-28 13:46:25,311 INFO  [MediaServer] License: PRO (EVALUATION, id: 11111111-1111-1111-1111-111111111113)
2012-07-28 13:46:25,311 INFO  [MediaServer] ------------------------------------------------------------------------
2012-07-28 13:46:25,496 INFO  [ProfilesDefinitionParser] Parsing Profiles definition
2012-07-28 13:46:25,546 DEBUG [ProfilesDefinitionParser] Parsing profile definition for profile 1
2012-07-28 13:46:25,994 INFO  [ProfilesDefinitionParser] Added profile 'Generic DLNA profile' (id=1)
2012-07-28 13:46:25,994 DEBUG [ProfilesDefinitionParser] Parsing profile definition for profile 2
2012-07-28 13:46:26,281 INFO  [ProfilesDefinitionParser] Added profile 'Samsung TV (B-series)' (id=2)
2012-07-28 13:46:26,282 DEBUG [ProfilesDefinitionParser] Parsing profile definition for profile 3
2012-07-28 13:46:26,442 INFO  [ProfilesDefinitionParser] Added profile 'Xbox 360' (id=3)
2012-07-28 13:46:26,443 DEBUG [ProfilesDefinitionParser] Parsing profile definition for profile 4
2012-07-28 13:46:26,668 INFO  [ProfilesDefinitionParser] Added profile 'Playstation 3' (id=4)
2012-07-28 13:46:26,669 DEBUG [ProfilesDefinitionParser] Parsing profile definition for profile 5
2012-07-28 13:46:26,796 INFO  [ProfilesDefinitionParser] Added profile 'Samsung TV (A-series)' (id=5)
2012-07-28 13:46:26,796 DEBUG [ProfilesDefinitionParser] Parsing profile definition for profile 6
2012-07-28 13:46:26,866 INFO  [ProfilesDefinitionParser] Added profile 'DirecTV HD-DVR' (id=6)
2012-07-28 13:46:26,866 DEBUG [ProfilesDefinitionParser] Parsing profile definition for profile 7
2012-07-28 13:46:27,151 INFO  [ProfilesDefinitionParser] Added profile 'Samsung TV / player (C/D/E-series)' (id=7)
2012-07-28 13:46:27,152 DEBUG [ProfilesDefinitionParser] Parsing profile definition for profile 8
2012-07-28 13:46:27,170 INFO  [ProfilesDefinitionParser] Added profile 'LG TV / player' (id=8)
2012-07-28 13:46:27,171 DEBUG [ProfilesDefinitionParser] Parsing profile definition for profile sony2012
2012-07-28 13:46:27,541 INFO  [ProfilesDefinitionParser] Added profile 'Sony Bravia TV (2012)' (id=sony2012)
2012-07-28 13:46:27,542 DEBUG [ProfilesDefinitionParser] Parsing profile definition for profile 10
2012-07-28 13:46:27,985 INFO  [ProfilesDefinitionParser] Added profile 'Sony BD Player / SMP' (id=10)
2012-07-28 13:46:27,986 DEBUG [ProfilesDefinitionParser] Parsing profile definition for profile 13
2012-07-28 13:46:28,166 INFO  [ProfilesDefinitionParser] Added profile 'Toshiba REGZA' (id=13)
2012-07-28 13:46:28,167 DEBUG [ProfilesDefinitionParser] Parsing profile definition for profile 14
2012-07-28 13:46:28,269 INFO  [ProfilesDefinitionParser] Added profile 'WDTV Live' (id=14)
2012-07-28 13:46:28,270 DEBUG [ProfilesDefinitionParser] Parsing profile definition for profile 15
2012-07-28 13:46:28,289 INFO  [ProfilesDefinitionParser] Added profile 'LaCie LaCinema Media Player' (id=15)
2012-07-28 13:46:28,290 DEBUG [ProfilesDefinitionParser] Parsing profile definition for profile 16
2012-07-28 13:46:28,373 INFO  [ProfilesDefinitionParser] Added profile 'Manta WIFI Centre' (id=16)
2012-07-28 13:46:28,374 DEBUG [ProfilesDefinitionParser] Parsing profile definition for profile 17
2012-07-28 13:46:28,407 INFO  [ProfilesDefinitionParser] Added profile 'Pure Flow' (id=17)
2012-07-28 13:46:28,408 DEBUG [ProfilesDefinitionParser] Parsing profile definition for profile 18
2012-07-28 13:46:28,569 INFO  [ProfilesDefinitionParser] Added profile 'Sharp Aquos' (id=18)
2012-07-28 13:46:28,570 DEBUG [ProfilesDefinitionParser] Parsing profile definition for profile sony2011
2012-07-28 13:46:28,601 INFO  [ProfilesDefinitionParser] Added profile 'Sony Bravia TV (2011)' (id=sony2011)
2012-07-28 13:46:28,602 DEBUG [ProfilesDefinitionParser] Parsing profile definition for profile sony2010
2012-07-28 13:46:28,764 INFO  [ProfilesDefinitionParser] Added profile 'Sony Bravia TV (2010)' (id=sony2010)
2012-07-28 13:46:28,765 DEBUG [ProfilesDefinitionParser] Parsing profile definition for profile 20
2012-07-28 13:46:28,940 INFO  [ProfilesDefinitionParser] Added profile 'Philips' (id=20)
2012-07-28 13:46:28,941 DEBUG [ProfilesDefinitionParser] Parsing profile definition for profile sony2009
2012-07-28 13:46:29,015 INFO  [ProfilesDefinitionParser] Added profile 'Sony Bravia TV (2009)' (id=sony2009)
2012-07-28 13:46:29,016 DEBUG [ProfilesDefinitionParser] Parsing profile definition for profile 22
2012-07-28 13:46:29,050 INFO  [ProfilesDefinitionParser] Added profile 'Denon AVR' (id=22)
2012-07-28 13:46:29,051 DEBUG [ProfilesDefinitionParser] Parsing profile definition for profile viera2011a
2012-07-28 13:46:29,375 INFO  [ProfilesDefinitionParser] Added profile 'Panasonic Viera E/G/GT/DT/UT (2011/2012)' (id=viera2011a)
2012-07-28 13:46:29,377 DEBUG [ProfilesDefinitionParser] Parsing profile definition for profile viera2011
2012-07-28 13:46:29,425 INFO  [ProfilesDefinitionParser] Added profile 'Panasonic Viera S/ST/VT (2011)' (id=viera2011)
2012-07-28 13:46:29,426 DEBUG [ProfilesDefinitionParser] Parsing profile definition for profile viera2010
2012-07-28 13:46:29,475 INFO  [ProfilesDefinitionParser] Added profile 'Panasonic Viera (2010)' (id=viera2010)
2012-07-28 13:46:29,476 ERROR [MediaServer] An unexpected error occured. Ending the application. Message: org.serviio.profile.ProfilesDefinitionException: Profiles definition is not present.
java.lang.RuntimeException: org.serviio.profile.ProfilesDefinitionException: Profiles definition is not present.
   at org.serviio.profile.ProfileManager.parseProfilesFromFile(ProfileManager.java:183)
   at org.serviio.profile.ProfileManager.loadProfiles(ProfileManager.java:157)
   at org.serviio.MediaServer.main(MediaServer.java:112)
Caused by: org.serviio.profile.ProfilesDefinitionException: Profiles definition is not present.
   at org.serviio.profile.ProfilesDefinitionParser.parseDefinition(ProfilesDefinitionParser.java:132)
   at org.serviio.profile.ProfileManager.parseProfilesFromFile(ProfileManager.java:181)
   ... 2 more
2012-07-28 13:46:29,478 WARN  [IndexedDiskCache] Region [thumbnails] Disk cache not shutdown properly, shutting down now.
2012-07-28 13:46:29,478 WARN  [IndexedDiskCache] Region [online_technical_metadata] Disk cache not shutdown properly, shutting down now.


I have not made any modifications to profiles.xml, and it is identical to the one in the distribution tar.gz archive. I've tried removing all profiles not relevant for my needs (leaving only the generic DLNA and samsung B/C/D profiles) but the results were the same.

I've tried searching for these errors but they might only be relevant to some freebsd quirks. I've tried openjdk7 and Sun java, but the behavior is identical here as well.

File permissions for /var/tmp/Serviio (tmp folder) and /var/db/serviio are set to dlna:wheel with serviio running under the dlna account.

Can anyone provide any information on how to resolve any of this issues?

Thanks!
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Sat Jul 28, 2012 11:56 am

Re: Running (upgrade) 1.0 on FreeBSD 9.0

First two are because you are running Serviio as a user without a home directory.

Profiles one is odd. Do you have an application-profiles.xml file next to your profiles.xml (That stores the profile for MediaBrowser and ServiiGo), it looks like it is failing just before parsing that. Maybe check the permissions on it.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

leeor

Serviio newbie

Posts: 10

Joined: Sun Feb 05, 2012 1:33 pm

Post Sat Jul 28, 2012 12:18 pm

Re: Running (upgrade) 1.0 on FreeBSD 9.0

It was indeed the application-profiles.xml that was missing. Strange how I did not notice it. Thanks!

Serviio is now running and rebuilding the media library. I haven't addressed the other issues yet, so I'll wait for the rebuild process to complete first.

Thanks again.

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 87 guests

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