I am trying to install the new ejbca version 6.3.1.1. I was previously using 6.2.0, which worked ok. I used the same configuration for the new ejbca but, I get BUILD FAILED when issueing ant install.
Error: [echo] Initilizing CA with 'ManagementCA' ... [java] CLI authentication failed. The user 'ejbca' with the given password does not exist. [java] ERROR: Authentication failed. User ejbca not exist. [java] Use the syntax -u ,username> --clipassword=<password> to specify password explicity or -u <username> -p to prompt
Something seems to have failed in the install process, because the default CLI user should be created on startup. Are you re-running install over a previous installation (which you shouldn't) or are you installing a fresh installation? Are you 100% sure you have contact with the database?
Cheers,
Mike Kushner
Release Manager, Primekey Solutions
Yes, I have tested the connection with the database. As I said the tables are created, but the user is not there.
I am using mariadb as database server, with mariadb client 1.1.9.
By looking at the logs it says deployment successful. Then in jboss the log says deploying, notices that the tables are not there and creates them. When should the admin be created ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This code hasn't actually been modified since 6.2.0, so there must be an underlying error at play here. The default CLI user should be created automatically on startup. Have you changed the username or disabled it in any way, or have any errors occurred before this?
Cheers,
Mike Kushner
Release Manager, Primekey Solutions
The issue was that I deleted <subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false">, thinking that ejbca would create it.
After the successful ant install, I had another problem, the paths to the keystores were not added tot the web subsystem, so I had to manually add them.
In case someone else has this issue this is the web subsystem I have now:
I have a problem, showing up after the ant install.
I read some discussions, however i did not find the right solution.
I am using Java 1.6, EJBCA 6.1.1, jboss 7.1.1 Final, ant 1.9.7.
mysql version is 5.6.27, and mysql connector java 5.1.39.
I am folloeing the instructions given by Majic, http://ejbcacentos.blogspot.hr/.
BUILD FAILED
/opt/ejbca_ce_6_1_1/build.xml:61: The following error occurred while executing this line:
/opt/ejbca_ce_6_1_1/build.xml:67: The following error occurred while executing this line:
/opt/ejbca_ce_6_1_1/bin/cli.xml:97: The following error occurred while executing this line:
/opt/ejbca_ce_6_1_1/bin/cli.xml:85: The following error occurred while executing this line:
/opt/ejbca_ce_6_1_1/bin/cli.xml:201: Execute failed: java.io.IOException: Cannot run program "keytool" (in directory "/opt/ejbca_ce_6_1_1"): java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.processException(ProcessBuilder.java:484)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:463)
at java.lang.Runtime.exec(Runtime.java:593)
at org.apache.tools.ant.taskdefs.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:58)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:426)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:440)
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:629)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:670)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:496)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:396)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.Main.runBuild(Main.java:854)
at org.apache.tools.ant.Main.startAnt(Main.java:236)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
at java.lang.ProcessImpl.start(ProcessImpl.java:65)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:458)
... 75 more
I would appreciate your answers!
Thank you in advance,
H. Marosevic.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
"No such file or directory" means that some path you have configured is invalid.
It's better if you use the latest version of EJBCA and follow the standard installtion.
And please create a new thread. This thread is old and not related to your issue (as it was fixed/resolved). Create a new thread and we can answer more there.
Hello,
I am trying to install the new ejbca version 6.3.1.1. I was previously using 6.2.0, which worked ok. I used the same configuration for the new ejbca but, I get BUILD FAILED when issueing ant install.
Error:
[echo] Initilizing CA with 'ManagementCA' ...
[java] CLI authentication failed. The user 'ejbca' with the given password does not exist.
[java] ERROR: Authentication failed. User ejbca not exist.
[java] Use the syntax -u ,username> --clipassword=<password> to specify password explicity or -u <username> -p to prompt
I've looked over the database, the tables are created, but the user ejbca is not there.
Installation was done according to http://www.ejbca.org/docs/installation.html#Installation guide, with jboss 7.
Can someone give an inside on this issue ? Don't seem to find it anywhere.
Hi John,
Something seems to have failed in the install process, because the default CLI user should be created on startup. Are you re-running install over a previous installation (which you shouldn't) or are you installing a fresh installation? Are you 100% sure you have contact with the database?
Cheers,
Mike Kushner
Release Manager, Primekey Solutions
Save time and money with an Enterprise support subscription. Please see www.primekey.se for more information.
https://www.primekey.se/technologies/products-overview/
https://www.primekey.se/service-support/support/
Hi,
Yes, I have tested the connection with the database. As I said the tables are created, but the user is not there.
I am using mariadb as database server, with mariadb client 1.1.9.
By looking at the logs it says deployment successful. Then in jboss the log says deploying, notices that the tables are not there and creates them. When should the admin be created ?
Hi John,
This code hasn't actually been modified since 6.2.0, so there must be an underlying error at play here. The default CLI user should be created automatically on startup. Have you changed the username or disabled it in any way, or have any errors occurred before this?
Cheers,
Mike Kushner
Release Manager, Primekey Solutions
Save time and money with an Enterprise support subscription. Please see www.primekey.se for more information.
https://www.primekey.se/technologies/products-overview/
https://www.primekey.se/service-support/support/
Hi, I've fixed the problem.
The issue was that I deleted <subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false">, thinking that ejbca would create it.
After the successful ant install, I had another problem, the paths to the keystores were not added tot the web subsystem, so I had to manually add them.
In case someone else has this issue this is the web subsystem I have now:
Hello,
I have a problem, showing up after the ant install.
I read some discussions, however i did not find the right solution.
I am using Java 1.6, EJBCA 6.1.1, jboss 7.1.1 Final, ant 1.9.7.
mysql version is 5.6.27, and mysql connector java 5.1.39.
I am folloeing the instructions given by Majic, http://ejbcacentos.blogspot.hr/.
BUILD FAILED
/opt/ejbca_ce_6_1_1/build.xml:61: The following error occurred while executing this line:
/opt/ejbca_ce_6_1_1/build.xml:67: The following error occurred while executing this line:
/opt/ejbca_ce_6_1_1/bin/cli.xml:97: The following error occurred while executing this line:
/opt/ejbca_ce_6_1_1/bin/cli.xml:85: The following error occurred while executing this line:
/opt/ejbca_ce_6_1_1/bin/cli.xml:201: Execute failed: java.io.IOException: Cannot run program "keytool" (in directory "/opt/ejbca_ce_6_1_1"): java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.processException(ProcessBuilder.java:484)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:463)
at java.lang.Runtime.exec(Runtime.java:593)
at org.apache.tools.ant.taskdefs.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:58)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:426)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:440)
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:629)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:670)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:496)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:396)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.Main.runBuild(Main.java:854)
at org.apache.tools.ant.Main.startAnt(Main.java:236)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
at java.lang.ProcessImpl.start(ProcessImpl.java:65)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:458)
... 75 more
I would appreciate your answers!
Thank you in advance,
H. Marosevic.
I am using Oracle Linux 7.2, Red Hat.
"No such file or directory" means that some path you have configured is invalid.
It's better if you use the latest version of EJBCA and follow the standard installtion.
And please create a new thread. This thread is old and not related to your issue (as it was fixed/resolved). Create a new thread and we can answer more there.
Regards,
Tomas
Save time and money with an Enterprise support subscription. Please see www.primekey.se for more information.
https://www.primekey.se/technologies/products-overview/
https://www.primekey.se/service-support/support/