From: Efraim F. <efr...@gm...> - 2012-02-14 14:33:28
|
Hi, On 02/13/2012 01:22 PM, Wolfgang Meier wrote: > Hi, > > yes, we found an issue with empty passwords, either if the admin > password in the db to be restored was empty or you currently have an > empty password. Please try setting a password before you restore. If I > remember well, it works if you do. I tried setting a password on the database before running the restore. Running client.sh -qls -u admin -P <password> allows me to access the database, but: backup.sh -r <some path>/__contents__.xml -u admin -p <password> -ouri=xmldb:exist:// results in a wrong password exception. I also tried -P for the password and both -p and -P and I still get the "wrong password" exception. I had been doing this in previous revisions (<=r14669) and it worked -- I'm not sure if I'm doing something wrong that "just worked" or something broke. Thanks, Efraim > Wolfgang > > > 2012/2/13 Efraim Feinstein<efr...@gm...>: >> Hi, >> >> I'm currently updating my code to work with eXist 2.0 tech preview >> r15880. Setup of my code requires a number of restores from backups >> (actually, filesystems with backup-like __contents__.xml files). The >> restores have to be sequential because the files in one "backup," which >> includes a DTD, are necessary to be able to store some files from the >> second. >> >> My first restore works. The second restore fails with an exception >> claiming that the admin password (which should be blank at this point >> from a new installation) is wrong. >> >> After the error, logging in to an embedded database using the Java admin >> client with a blank password works. >> >> Thanks! >> -Efraim >> >> A transcript of the sessions is reproduced below: >> >> $ /usr/local/opensiddur/bin/backup.sh -r >> `pwd`/./db/group/everyone/transliteration/__contents__.xml >> -ouri=xmldb:exist:// >> -r >> /home/efeins/src/opensiddur/./db/group/everyone/transliteration/__contents__.xml >> -ouri=xmldb:exist:// >> Using locale: en_US.UTF-8 >> Starting restore of backup... >> Processing backup: >> /home/efeins/src/opensiddur/./db/group/everyone/transliteration/__contents__.xml >> Creating collection /db/group/everyone/transliteration >> Restored International_Phonetic_Alphabet-2005.tr.xml >> Restored Modern_Israeli_Hebrew-2010.tr.xml >> Restored Society_of_Biblical_Literature-1999.tr.xml >> Restored hebrew.dtd >> Restored Modern_Ashkenazi_Dialect-2010.tr.xml >> Restored Academy_of_the_Hebrew_Language-2007.tr.xml >> Restored James_Strong-1890.tr.xml >> Restored Michigan-Claremont-1984.tr.xml >> Restored ALA-Library_of_Congress-1997.tr.xml >> Finished restore of backup. >> shutting down database... >> $ /usr/local/opensiddur/bin/backup.sh -r >> `pwd`/./db/code/__contents__.xml -ouri=xmldb:exist:// >> -r /home/efeins/src/opensiddur/./db/code/__contents__.xml >> -ouri=xmldb:exist:// >> Using locale: en_US.UTF-8 >> Starting restore of backup... >> Processing backup: /home/efeins/src/opensiddur/./db/code/__contents__.xml >> Creating collection /db/code >> An unrecoverable error occurred while restoring >> collection '/db/code'. Aborting restore! >> Finished restore of backup. >> Wrong password for user [admin] >> ------------------------------------ >> Problems occured found during restore: >> WARN: An unrecoverable error occurred while restoring >> collection '/db/code'. Aborting restore! >> ERROR: Wrong password for user [admin] >> >> org.xmldb.api.base.XMLDBException: Wrong password for user [admin] >> at org.exist.xmldb.DatabaseImpl.getUser(DatabaseImpl.java:288) >> at >> org.exist.xmldb.DatabaseImpl.getLocalCollection(DatabaseImpl.java:193) >> at >> org.exist.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:163) >> at >> org.exist.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:158) >> at org.xmldb.api.DatabaseManager.getCollection(Unknown Source) >> at org.exist.backup.Main.process(Main.java:319) >> at org.exist.backup.Main.main(Main.java:441) >> 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:601) >> at org.exist.start.Main.invokeMain(Main.java:137) >> at org.exist.start.Main.run(Main.java:463) >> at org.exist.start.Main.main(Main.java:59) >> Caused by: org.exist.security.AuthenticationException: Wrong password >> for user [admin] >> at >> org.exist.security.internal.RealmImpl.authenticate(RealmImpl.java:281) >> at >> org.exist.security.internal.SecurityManagerImpl.authenticate(SecurityManagerImpl.java:453) >> at org.exist.xmldb.DatabaseImpl.getUser(DatabaseImpl.java:286) >> ... 13 more >> [B...@61...thenticationException: Wrong password >> for user [admin] >> at >> org.exist.security.internal.RealmImpl.authenticate(RealmImpl.java:281) >> at >> org.exist.security.internal.SecurityManagerImpl.authenticate(SecurityManagerImpl.java:453) >> at org.exist.xmldb.DatabaseImpl.getUser(DatabaseImpl.java:286) >> at >> org.exist.xmldb.DatabaseImpl.getLocalCollection(DatabaseImpl.java:193) >> at >> org.exist.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:163) >> at >> org.exist.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:158) >> at org.xmldb.api.DatabaseManager.getCollection(Unknown Source) >> at org.exist.backup.Main.process(Main.java:319) >> at org.exist.backup.Main.main(Main.java:441) >> 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:601) >> at org.exist.start.Main.invokeMain(Main.java:137) >> at org.exist.start.Main.run(Main.java:463) >> at org.exist.start.Main.main(Main.java:59) >> Caused by: org.exist.security.AuthenticationException: Wrong password >> for user [admin] >> at >> org.exist.security.internal.RealmImpl.authenticate(RealmImpl.java:281) >> at >> org.exist.security.internal.SecurityManagerImpl.authenticate(SecurityManagerImpl.java:453) >> at org.exist.xmldb.DatabaseImpl.getUser(DatabaseImpl.java:286) >> at >> org.exist.xmldb.DatabaseImpl.getLocalCollection(DatabaseImpl.java:193) >> at >> org.exist.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:163) >> at >> org.exist.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:158) >> at org.xmldb.api.DatabaseManager.getCollection(Unknown Source) >> at org.exist.backup.Main.process(Main.java:319) >> at org.exist.backup.Main.main(Main.java:441) >> 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:601) >> at org.exist.start.Main.invokeMain(Main.java:137) >> at org.exist.start.Main.run(Main.java:463) >> at org.exist.start.Main.main(Main.java:59) >> caused by >> org.exist.security.AuthenticationException: Wrong password for user [admin] >> at >> org.exist.security.internal.RealmImpl.authenticate(RealmImpl.java:281) >> at >> org.exist.security.internal.SecurityManagerImpl.authenticate(SecurityManagerImpl.java:453) >> at org.exist.xmldb.DatabaseImpl.getUser(DatabaseImpl.java:286) >> at >> org.exist.xmldb.DatabaseImpl.getLocalCollection(DatabaseImpl.java:193) >> at >> org.exist.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:163) >> at >> org.exist.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:158) >> at org.xmldb.api.DatabaseManager.getCollection(Unknown Source) >> at org.exist.backup.Main.process(Main.java:319) >> at org.exist.backup.Main.main(Main.java:441) >> 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:601) >> at org.exist.start.Main.invokeMain(Main.java:137) >> at org.exist.start.Main.run(Main.java:463) >> at org.exist.start.Main.main(Main.java:59) >> make: *** [copy-files] Error 1 >> >> >> -- >> --- >> Efraim Feinstein >> Lead Developer >> Open Siddur Project >> http://opensiddur.net >> http://wiki.jewishliturgy.org >> >> >> ------------------------------------------------------------------------------ >> Try before you buy = See our experts in action! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-dev2 >> _______________________________________________ >> Exist-open mailing list >> Exi...@li... >> https://lists.sourceforge.net/lists/listinfo/exist-open -- --- Efraim Feinstein Lead Developer Open Siddur Project http://opensiddur.net http://wiki.jewishliturgy.org |