Hello,
Moving this from the Fedora Community to Fedora Tech, I'm working on testing an upgrade from Fedora 4.7.0 to 4.7.1 and running into a data problem. Right now I've got an Ubuntu box running Fedora on Tomcat7, with Postgres 9.5 serving as the database back end. I've cloned the fedora data disk and made a full backup via pg_dump of the database to try the upgrade on test machine. When I start the machine up the first time with Fedora 4.7.1's WAR file everything works fine, but if I take tomcat down for any reason and attempt to restart I get the following error in Tomcat's log:
WARN (XmlWebApplicationContext) Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.org.fcrepo.kernel.api.string to a Name
ERROR (ContextLoader) Context initialization failed
org.springframework.beans.nested exception is org.fcrepo.kernel.api.
s019:Proxy" from String to a Name
Full error:
https://gist.github.com/sanfordd/57ca6868ccccce95e0a2933a66aed583As far as I can tell, when I use the 4.7.1 WAR on the initial startup it works well, but it runs a few odd commands on the postgres database which I am fairly sure are messing things up:
[26363] user@fcrepo LOG: 00000: execute S_4: INSERT INTO MODESHAPE_REPOSITORY (ID, CONTENT) VALUES ($1, $2)
[26363] user@fcrepo DETAIL: parameters: $1 = '936198c317f1e7mode:
http://fedora.info/', $2 = [pile of rbinary data removed to keep this short]
[26363] user@fcrepo LOG: 00000: execute S_4: INSERT INTO MODESHAPE_REPOSITORY (ID, CONTENT) VALUES ($1, $2)
[26363] user@fcrepo DETAIL: parameters: $1 = '936198c317f1e7mode:
http://www.w3.org/', $2 = [pile of rbinary data removed to keep this short]
[26363] user@fcrepo LOG: 00000: execute S_4: INSERT INTO MODESHAPE_REPOSITORY (ID, CONTENT) VALUES ($1, $2)
[26363] user@fcrepo DETAIL: parameters: $1 = '936198c317f1e7mode:
http://www.w3.org/', $2 = [pile of rbinary data removed to keep this short]
[26363] user@fcrepo LOG: 00000: execute S_4: INSERT INTO MODESHAPE_REPOSITORY (ID, CONTENT) VALUES ($1, $2)
[26363] user@fcrepo DETAIL: parameters: $1 = '936198c317f1e7mode:
Doing the same with 4.7.0 doesn't generate the INSERT_INTO statements. Andrew Woods noted, in the initial e-mail to the Fedora Community list this may be connected to the ModeShape upgrade in 4.7.1.
For further help here's a copy of the postgres configuration for Fedora:
https://gist.github.com/sanfordd/6f5fe840d22f850cffe413271903c07cHere's the repo.xml for spring:
https://gist.github.com/sanfordd/18ee28ea98914f947dd5d58da73fbe99Thanks for any advice,
Daniel