You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running restore of a backup file, in localmode, the database password inside the backup file set is checked very late, causing any errors to appear very late.
In my case, this error pops-up after a few hours, which is rather inconvenient.
What did you expect
Fast failure for wrong passwords, also in localmode
My RFE: please have the username/password checked at at the beginning of the backup process.
Describe how to reproduce or add a test
exist-distribution-5.0.0-RC8-SNAPSHOT-dir>bin\backup.bat -r full20190409-0300.zip -ouri=xmldb:exist:/// -R -q
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
Rebuilding application repository ...
URI: xmldb:exist:////db
org.xmldb.api.base.XMLDBException: Wrong password for user [admin]
at org.exist.xmldb.DatabaseImpl.getUser(DatabaseImpl.java:303)
at org.exist.xmldb.DatabaseImpl.getLocalCollection(DatabaseImpl.java:200)
at org.exist.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:178)
at org.exist.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:169)
at org.xmldb.api.DatabaseManager.getCollection(DatabaseManager.java:235)
at org.exist.backup.Main.restoreWithoutGui(Main.java:286)
at org.exist.backup.Main.process(Main.java:243)
at org.exist.backup.Main.main(Main.java:441)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.exist.start.Main.invokeMain(Main.java:116)
at org.exist.start.Main.runEx(Main.java:246)
at org.exist.start.Main.run(Main.java:121)
at org.exist.start.Main.main(Main.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.mojo.appassembler.booter.AppassemblerBooter.executeMain(AppassemblerBooter.java:257)
at org.codehaus.mojo.appassembler.booter.AppassemblerBooter.main(AppassemblerBooter.java:77)
Caused by: org.exist.security.AuthenticationException: Wrong password for user [admin]
at org.exist.security.internal.RealmImpl.authenticate(RealmImpl.java:252)
at org.exist.security.internal.SecurityManagerImpl.authenticate(SecurityManagerImpl.java:404)
at org.exist.xmldb.DatabaseImpl.getUser(DatabaseImpl.java:301)
... 21 more
caused by
org.exist.security.AuthenticationException: Wrong password for user [admin]
at org.exist.security.internal.RealmImpl.authenticate(RealmImpl.java:252)
at org.exist.security.internal.SecurityManagerImpl.authenticate(SecurityManagerImpl.java:404)
at org.exist.xmldb.DatabaseImpl.getUser(DatabaseImpl.java:301)
at org.exist.xmldb.DatabaseImpl.getLocalCollection(DatabaseImpl.java:200)
at org.exist.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:178)
at org.exist.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:169)
at org.xmldb.api.DatabaseManager.getCollection(DatabaseManager.java:235)
at org.exist.backup.Main.restoreWithoutGui(Main.java:286)
at org.exist.backup.Main.process(Main.java:243)
at org.exist.backup.Main.main(Main.java:441)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.exist.start.Main.invokeMain(Main.java:116)
at org.exist.start.Main.runEx(Main.java:246)
at org.exist.start.Main.run(Main.java:121)
at org.exist.start.Main.main(Main.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.mojo.appassembler.booter.AppassemblerBooter.executeMain(AppassemblerBooter.java:257)
at org.codehaus.mojo.appassembler.booter.AppassemblerBooter.main(AppassemblerBooter.java:77)
Context information
Please always add the following information
eXist-db version : v5 RCx
Java version (e.g. Java8u201)
Operating system (Windows 10)
64 bit
How is eXist-db installed? (clone from GitHub, exist-distribution-5.0.0-RC8-SNAPSHOT-dir)
Any custom changes in e.g. conf.xml - none
The text was updated successfully, but these errors were encountered:
What is the problem
When running restore of a backup file, in localmode, the database password inside the backup file set is checked very late, causing any errors to appear very late.
In my case, this error pops-up after a few hours, which is rather inconvenient.
What did you expect
Fast failure for wrong passwords, also in localmode
My RFE: please have the username/password checked at at the beginning of the backup process.
Describe how to reproduce or add a test
Context information
Please always add the following information
The text was updated successfully, but these errors were encountered: