Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run ejbca in a different host, not in localhost #11

Closed
p4pifor opened this issue Jul 23, 2021 · 2 comments
Closed

Run ejbca in a different host, not in localhost #11

p4pifor opened this issue Jul 23, 2021 · 2 comments

Comments

@p4pifor
Copy link

p4pifor commented Jul 23, 2021

I am trying to run ejbca on a virtual network. In such a way that I have a client(10.0.2.2) in a host and the ejbca(10.0.4.4) in another. I wanna let the client interact with ejbca server from its machine, thus, I've tried the following:

-Then, modify ejbca-setup.sh switching the following parameters from localhost to 10.0.4.4:
httpsserver_hostname=¨10.0.4.4¨ database_host= ¨10.0.4.4¨

The proccess of deploying EJBCA in the new host ends in failure, only wildfly is deployed with success.

Logs:
ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 65) MSC000001: Failed to start service jboss.persistenceunit."ejbca.ear#ejbca": org.jboss.msc.service.StartException in service jboss.persistenceunit."ejbca.ear#ejbca": javax.persistence.PersistenceException: [PersistenceUnit: ejbca] Unable to build Hibernate SessionFactory

ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) WFLYCTL0013: Operation ("deploy") failed - address:

"WFLYCTL0080: Failed services" => {"jboss.persistenceunit.\"ejbca.ear#ejbca\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"ejbca.ear#ejbca\": javax.persistence.PersistenceException: [PersistenceUnit: ejbca] Unable to build Hibernate SessionFactory

ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "ejbca.ear")]) - failure description: {

`Caused by: javax.persistence.PersistenceException: [PersistenceUnit: ejbca] Unable to build Hibernate SessionFactory
Caused by: org.hibernate.tool.schema.spi.SchemaManagementException: Unable to open JDBC connection for schema management target
Caused by: java.sql.SQLException: javax.resource.ResourceException: IJ000453: Unable to get managed connection for java:/EjbcaDS
Caused by: javax.resource.ResourceException: IJ000453: Unable to get managed connection for java:/EjbcaDS
Caused by: javax.resource.ResourceException: IJ031084: Unable to create connection
Caused by: java.sql.SQLNonTransientConnectionException: Could not connect to address=(host=10.0.4.4)(port=3306)(type=master) : Connection refused (Connection refused)
Caused by: java.net.ConnectException: Connection refused (Connection refused)"},
"WFLYCTL0412: Required services that are not installed:" => ["jboss.persistenceunit.\"ejbca.ear#ejbca\""],
"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined

}`

Is there any other parammeter I should change or something I'm not doing well? I really appreciate any kind of help, thanks in advance

@primetomas
Copy link
Collaborator

The error is from the network layer.

Could not connect to address=(host=10.0.4.4)(port=3306)(type=master) : Connection refused

Either your firewall does not let port 3306 through, or your database is not listening externally.

@primekeydevs
Copy link
Contributor

Closed due to inactivity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants