-
Notifications
You must be signed in to change notification settings - Fork 107
Replies: 1 comment · 5 replies
-
Two things.
|
Beta Was this translation helpful? Give feedback.
All reactions
-
Hi Tomas, I was able to get past this error. I changed the hostname and the management CA name as they were the same. Then I dropped the initially created ejbca database and created a new one. But then raninstall threw another error: cannot contact EJBCA instance. Now, after reading your response, I ran through the file ownership for EJBCA_HOME and noticed the following:
I guess 99% of my errors are due to file permissions but I am entirely clueless as to why dist and tmp folders were owned by root. I was never root or use sudo cloning the repo and as you previously taught me, changed the /opt/wildfly ownership to wildfly. From what the error is giving me, it looks like xyz-admin cannot write the ear file to deployment folder because of permission. Should I execute the commands as wildfly user instead of xyz-admin? Not sure if this is possible as wildfly user uses its own hashed password as defined in the documentation (elytron store). Any advice is highly appreciated. Thank you! |
Beta Was this translation helpful? Give feedback.
All reactions
-
/opt/wildfly is probably a link, make sure you change permissions of ALL files in the directory tree, and not only on the symlink. Everything under /opt/wildfly should be owned by the wildfly user. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Yup. Everything in /opt/wildfly and /opt/wildfly-26.0.0.Final are all owned by wildfly user:
When you say "deployear and runinstall should be run as the wildfly user", I tried logging in as wildfly and I used the one in /usr/bin/wildfly_pass and it didn't work. Could be hashed. I am deeply sorry for being so dumb on this. But how can I get the wildfly password? |
Beta Was this translation helpful? Give feedback.
All reactions
-
running as wildfly user means "sudo su - wildfly" or similar. Run: |
Beta Was this translation helpful? Give feedback.
All reactions
-
xyz-admin@EJBCA01:~/ejbca/ejbca-ce$ ls -al /opt/wildfly/standalone/deployments/ |
Beta Was this translation helpful? Give feedback.
-
Hi,
Been pulling my hair with this new error I got as I am trying to build another ManagementCA from scratch. When I run ant runinstall, I get this : java.lang.Exception: BatchMakeP12 failed for 'tomcat'.
I am using the same commands I used when I created a successful build and deployment. I am completely puzzled with this new error. Attached are the logs and greatly appreciated for any help! :)
output-deployear.txt
output-runtinstall.txt
Wildfly-server.log
Beta Was this translation helpful? Give feedback.
All reactions