Menu

EJBCA Community 6.3.1.1 - install error

John Madof
2015-06-29
2016-06-02
  • John Madof

    John Madof - 2015-06-29

    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.

     
  • Mike Kushner

    Mike Kushner - 2015-06-29

    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/


     
  • John Madof

    John Madof - 2015-06-29

    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 ?

     
  • Mike Kushner

    Mike Kushner - 2015-06-29

    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/


     
  • John Madof

    John Madof - 2015-07-02

    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:

        <subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false">
            <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http" redirect-port="8443"/>
            <connector name="httpspriv" protocol="HTTP/1.1" scheme="https" socket-binding="httpspriv" secure="true">
                <ssl key-alias="localhost" password="serverpwd" certificate-key-file="/opt/jboss/standalone/configuration/keystore/keystore.jks" verify-client="true" ca-certificate-file="/opt/jboss/standalone/configuration/keystore/truststore.jks" ca-certificate-password="changeit"/>
            </connector>
            <connector name="httpspub" protocol="HTTP/1.1" scheme="https" socket-binding="httpspub" secure="true">
                <ssl key-alias="localhost" password="serverpwd" certificate-key-file="/opt/jboss/standalone/configuration/keystore/keystore.jks"/>
            </connector>
            <virtual-server name="default-host" enable-welcome-root="true">
                <alias name="localhost"/>
                <alias name="example.com"/>
            </virtual-server>
        </subsystem>
    
     
  • Hristina Marosevic

    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.

     
  • Hristina Marosevic

    I am using Oracle Linux 7.2, Red Hat.

     
  • Tomas Gustavsson

    "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/

     

Log in to post a comment.