Hi Zeng, From the log you post, it looks like you are still configured to use the h2 database that comes with Matterhorn. I would definitely recommend using your own database so that you can have some persistence.
With respect to Red5, i recently struggled a little bit to get it running correctly with a 1.2 installation. For me, some of the paths were set incorrectly, and fixing those got me on track- this is from my post to this list on Jan 6; > I began looking very closely at the files installed at > <$RED5_HOME>/webapps/matterhorn. > Somehow, there was definitely something off with my logback files: > 1. Why should there be 2 of them? > 2. They seem to be renamed copies of the oflaDemo logback file > > That made me look closer at other files, and for some reason, my > <$RED5_HOME>/webapps/matterhorn/WEB-INF/web.xml had incorrect values (the > oflaDemo stuff again...). > I replaced it with a fresh copy from the source in > <$MATTERHORN_HOME>/contrib/www/WEB-INF, restarted, and voila...streaming > is working. The most vexing thing for me in troubleshooting my Red5 setup was that i could not locate its logs. I expected them to be in the logs directory under Red5 home, but they weren't, and when i finally used 'find' to locate them, they were in the root (/) of the filesystem or i /opt...not where I was looking. I realize this is pretty general, but maybe it will help. JP On Feb 12, 2012, at 7:38 PM, zengshan wrote: > Hi all, > I am trying to use red5 streaming server in matterhorn core, but when I start > the matterhorn, there are so many odd logs in the opencast.log(like the > following), is there anybody know, what can I do to fix it? thank you very > much! > Caused by: org.h2.jdbc.JdbcSQLException: Unique index or primary key > violation: "UNQ_JOB_ARGUMENTS_0_INDEX_8 ON PUBLIC.JOB_ARGUMENTS(ID, > LIST_INDEX)"; SQL statement: > INSERT INTO job_arguments (id, argument, list_index) VALUES (?, ?, ?) > [23001-149] > at > org.h2.message.DbException.getJdbcSQLException(DbException.java:327) > at org.h2.message.DbException.get(DbException.java:167) > at org.h2.message.DbException.get(DbException.java:144) > at org.h2.index.BaseIndex.getDuplicateKeyException(BaseIndex.java:158) > at org.h2.index.PageBtree.find(PageBtree.java:121) > at org.h2.index.PageBtreeLeaf.addRow(PageBtreeLeaf.java:146) > at org.h2.index.PageBtreeLeaf.addRowTry(PageBtreeLeaf.java:100) > at org.h2.index.PageBtreeNode.addRowTry(PageBtreeNode.java:200) > at org.h2.index.PageBtreeIndex.addRow(PageBtreeIndex.java:93) > at org.h2.index.PageBtreeIndex.add(PageBtreeIndex.java:84) > at org.h2.table.RegularTable.addRow(RegularTable.java:125) > at org.h2.command.dml.Insert.insertRows(Insert.java:126) > at org.h2.command.dml.Insert.update(Insert.java:86) > at org.h2.command.CommandContainer.update(CommandContainer.java:69) > at org.h2.command.Command.executeUpdate(Command.java:209) > at > org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:143) > at > org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:129) > at > com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeUpdate(NewProxyPreparedStatement.java:105) > at > org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:792) > ... 127 more > 2012-02-13 09:20:32 WARN (ServiceRegistryJpaImpl:1368) - Service > org.opencastproject.distribution.download@http://202.38.128.12:8080 failed > (500) accepting Job {id:2300, version:24524} > 2012-02-13 09:20:32 ERROR (AbstractFaultChainInitiatorObserver:101) - Error > occurred during error handling, give up! > org.apache.cxf.interceptor.Fault: javax.persistence.RollbackException: > Exception [EclipseLink-4002] (Eclipse Persistence Services - > 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.DatabaseException > Internal Exception: org.h2.jdbc.JdbcSQLException: Unique index or primary key > violation: "UNQ_JOB_ARGUMENTS_0_INDEX_8 ON PUBLIC.JOB_ARGUMENTS(ID, > LIST_INDEX)"; SQL statement: > INSERT INTO job_arguments (id, argument, list_index) VALUES (?, ?, ?) > [23001-149] > Error Code: 23001 > Call: INSERT INTO job_arguments (id, argument, list_index) VALUES (?, ?, ?) > bind => [2301, <?xml version="1.0" encoding="UTF-8" > standalone="yes"?><ns2:mediapackage start="2012-02-12T03:35:00Z" > id="17a64887-6b26-49ee-bf7a-8a2ed57909fe" duration="600900" > xmlns:ns2="http://mediapackage.opencastproject.org"><title>????</title><media><track > type="presentation/source" > id="track-1"><mimetype>video/mpeg</mimetype><tags/><url>http://202.38.128.12:8080/files/mediapackage/2046/track-1/VGA.mpg</url><checksum > > type="md5">1ed9cb4bc6db28d002f2fbea938d4d21</checksum><duration>600900</duration><video > > id="video-1"><device/><encoder/><bitrate>1973832.0</bitrate><framerate>25.0</framerate><resolution>1024x768</resolution><scantype > type="Progressive"/></video></track><track type="presentation/work" > id="track-2"><mimetype>video/mpeg</mimetype><tags/><url>http://202.38.128.12:8080/files/mediapackage/2046/track-1/VGA.mpg</url><checksum > > type="md5">1ed9cb4bc6db28d002f2fbea938d4d21</checksum><duration>600900</duration><video > > id="video-1"><device/><encoder/><bitrate>1973832.0</bitrate><framerate>25.0</framerate><resolution>1024x768</resolution><scantype > type="Progressive"/></video></track><track ref="track:track-2" > type="presentation/trimmed" > id="track-3"><mimetype>video/mpeg</mimetype><tags/><url>http://202.38.128.12:8080/files/mediapackage/2046/track-1/VGA.mpg</url><checksum > > type="md5">1ed9cb4bc6db28d002f2fbea938d4d21</checksum><duration>600900</duration><video > > id="video-1"><device/><encoder/><bitrate>1973832.0</bitrate><framerate>25.0</framerate><resolution>1024x768</resolution><scantype > type="Progressive"/></video></track><track ref="track:track-3" > type="presentation/delivery" > id="4107bb4f-f2dd-4cd6-a5c1-4adf36b4cbec"><mimetype>video/x-flv</mimetype><tags><tag>engage</tag></tags><url>http://202.38.128.12:8080/files/mediapackage/17a64887-6b26-49ee-bf7a-8a2ed57909fe/4107bb4f-f2dd-4cd6-a5c1-4adf36b4cbec/VGA.flv</url><checksum > > type="md5">4d1bed3065171be7a45c82a49e7a3180</checksum><duration>600200</duration><video > > id="video-1"><device/><encoder/><bitrate>500000.0</bitrate><framerate>5.0</framerate><resolution>1024x768</resolution></video></track><track > ref="track:track-3" type="presentation/delivery" > id="67cfea8e-9a2b-4d18-a33a-c689e4578ed6"><mimetype>video/avi</mimetype><tags><tag>atom</tag><tag>rss</tag></tags><url>http://202.38.128.12:8080/files/mediapackage/17a64887-6b26-49ee-bf7a-8a2ed57909fe/67cfea8e-9a2b-4d18-a33a-c689e4578ed6/VGA.avi</url><checksum > > type="md5">f5f11c298f0df6c55ffe00e533235dc4</checksum><duration>599960</duration><video > > id="video-1"><device/><encoder/><bitrate>205386.0</bitrate><framerate>25.0</framerate><resolution>320x240</resolution><scantype > type="Progressive"/></video></track></media><metadata><catalog > type="dublincore/episode" > id="catalog-1"><mimetype>text/xml</mimetype><tags/><url>http://202.38.128.12:8080/files/mediapackage/17a64887-6b26-49ee-bf7a-8a2ed57909fe/catalog-1/episode.xml</url></catalog><catalog > ref="track:track-3" type="mpeg-7/text" id=^C > > 2012-02-13 > ZENG SHAN > Tel,861088236837 > E-mail,[email protected] > Computing Center > Institute of High Energy Physics,CAS > _______________________________________________ > Matterhorn-users mailing list > [email protected] > http://lists.opencastproject.org/mailman/listinfo/matterhorn-users
_______________________________________________ Matterhorn-users mailing list [email protected] http://lists.opencastproject.org/mailman/listinfo/matterhorn-users
