Upgrading to 1.7.2 (from 1.5.1)
I get this when trying to set up the handle server.
I want to preserve handles so I loaded
all collections with handles. I have see other reports of this
problem where the solution is to delete the handles.
(https://jira.duraspace.org/browse/DS-110)
Has anyone successfully migrated their handles to 1.7?
-----------------------------------------------------------------------------------------------------------------------------------------
dspace@ir:~/bin$ ./start-handle-server
dspace@ir:~/bin$ ./dspace update-handle-prefix 123456789 10465
If you continue, all handles in your repository with prefix 123456789 will
be updated to have handle prefix 10465
68 items will be updated.
Have you taken a backup, and are you ready to continue? [y/n]: y
Updating handle table... Exception: ERROR: duplicate key value violates
unique constraint "handle_handle_key"
org.postgresql.util.PSQLException: ERROR: duplicate key value violates
unique constraint "handle_handle_key"
at
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1531)
at
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1313)
at
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:188)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:452)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:354)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:308)
at
org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at
org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at
org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at
org.dspace.storage.rdbms.DatabaseManager.updateQuery(DatabaseManager.java:421)
at org.dspace.handle.UpdateHandlePrefix.main(UpdateHandlePrefix.java:58)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183)
---------------------------------------------------------------------------------------------------------------------
--
Mark Ludwig
Director of Research Systems Development
University Libraries
SUNY at Buffalo
Buffalo, NY 14260
716 645 5952
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech