[SOLVED] Error after modify profiles.xml
Posted: Fri Sep 30, 2011 2:45 am
I am using XML copy editor.
I added the lines:
Now I have:
(the message from xml copy editor is: profiles.xml is valid)
However, this modification only works when I make it "on the fly".
After a reboot, when I try to start serviio.sh:
Error:
What do I have to do to solve this?
I added the lines:
<MediaFormatProfiles>
<MediaFormatProfile mime-type="video/mp4" name="">avi</MediaFormatProfile>
Now I have:
(the message from xml copy editor is: profiles.xml is valid)
- Code:
<Profile id="8" name="LG TV / player" extendsProfileId="1">
<Detection>
<HttpHeaders>
<friendlyName.dlna.org>LG.*</friendlyName.dlna.org>
</HttpHeaders>
</Detection>
<MediaFormatProfiles>
<MediaFormatProfile mime-type="video/mp4" name="">avi</MediaFormatProfile>
</MediaFormatProfiles>
<SubtitlesMimeType>text/srt</SubtitlesMimeType>
<Transcoding>
<Video targetContainer="mpegts" targetACodec="mp3">
<Matches container="matroska" aCodec="ac3" />
</Video>
</Transcoding>
</Profile>
However, this modification only works when I make it "on the fly".
After a reboot, when I try to start serviio.sh:
- Code:
2011-09-29 23:29:17,448 INFO [MediaServer] ------------------------------------------------------------------------
2011-09-29 23:29:17,459 INFO [MediaServer] Serviio DLNA media streaming server v 0.6.0.1 (rev. 8e4ee98bff12)
2011-09-29 23:29:17,459 INFO [MediaServer] Petr Nejedly 2009-2011
2011-09-29 23:29:17,459 INFO [MediaServer] http://www.serviio.org
2011-09-29 23:29:17,460 INFO [MediaServer]
2011-09-29 23:29:17,460 INFO [MediaServer] Java 1.6.0_22-Sun Microsystems Inc.
2011-09-29 23:29:17,460 INFO [MediaServer] OS Linux i386 2.6.38-11-generic
2011-09-29 23:29:17,460 INFO [MediaServer] File encoding: UTF-8
2011-09-29 23:29:17,461 INFO [MediaServer] Headless mode enabled: true
2011-09-29 23:29:17,461 INFO [MediaServer] User home dir: /home/mrcs
2011-09-29 23:29:17,461 INFO [MediaServer] Temp dir: /tmp
2011-09-29 23:29:17,461 INFO [MediaServer] ------------------------------------------------------------------------
2011-09-29 23:29:17,900 INFO [RestletServer] Starting Restlet server exposed on port 23423
2011-09-29 23:29:17,967 INFO [DBSchemaUpdateExecutor] Checking if DB schema needs to be updated
2011-09-29 23:29:19,960 INFO [DBSchemaUpdateExecutor] Updating DB schema
2011-09-29 23:29:33,027 ERROR [XmlUtils] XML Profiles.xsd didn't pass validation, reason: Content is not allowed in prolog.
2011-09-29 23:29:33,029 ERROR [MediaServer] An unexpected error occured. Ending the application. Message: org.serviio.profile.ProfilesDefinitionException: Profiles XML file is not valid (according to the schema). Check the log.
java.lang.RuntimeException: org.serviio.profile.ProfilesDefinitionException: Profiles XML file is not valid (according to the schema). Check the log.
at org.serviio.profile.ProfileManager.loadProfiles(ProfileManager.java:156)
at org.serviio.MediaServer.main(MediaServer.java:105)
Caused by: org.serviio.profile.ProfilesDefinitionException: Profiles XML file is not valid (according to the schema). Check the log.
at org.serviio.profile.ProfilesDefinitionParser.validateXML(ProfilesDefinitionParser.java:693)
at org.serviio.profile.ProfilesDefinitionParser.parseDefinition(ProfilesDefinitionParser.java:128)
at org.serviio.profile.ProfileManager.loadProfiles(ProfileManager.java:154)
... 1 more
2011-09-29 23:30:16,859 INFO [ServiioConsole] Starting Serviio Console
2011-09-29 23:30:19,511 INFO [ServiioConsole] Connecting to Serviio REST on localhost:23423
2011-09-29 23:30:24,699 WARN [ServiioConsole] Cannot connect to the server to get DB initialization info
2011-09-29 23:30:28,824 WARN [ServiioConsole] Cannot connect to server: Communication Error (1001) - Conexão recusada
2011-09-29 23:30:28,958 INFO [Messages] Loaded console message bundle for locale: en
2011-09-29 23:30:32,999 WARN [ServiioConsole] Cannot connect to server: Communication Error (1001) - Conexão recusada
2011-09-29 23:30:44,099 INFO [ServiioConsole] Leaving Serviio Console
Error:
2011-09-29 23:29:33,027 ERROR [XmlUtils] XML Profiles.xsd didn't pass validation, reason: Content is not allowed in prolog.
2011-09-29 23:29:33,029 ERROR [MediaServer] An unexpected error occured. Ending the application. Message: org.serviio.profile.ProfilesDefinitionException: Profiles XML file is not valid (according to the schema). Check the log.
What do I have to do to solve this?