-
Notifications
You must be signed in to change notification settings - Fork 33
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
Missing environment variables TOMCAT_HOME #330
Comments
Hi @Fikili , This is most likely something we introduced recently in master. @gionn told me about the exact same thing on friday and according to him this is something linked with idempotency. So most likely, everything works ok if the playbook works on the first try. But in some cases it may fail after a second/third run... |
Bug confirmed & introduced by: d5decf4#diff-ac0f65d3b426670bcb415da9b458d4236af17cb17d3e9bb01e86106b13e2828eL55 Now tracked in OPSEXP-1424 |
Hi @alxgomz, At the moment, I am not able to run the playbook without issues so it is very likely that issue is related to idempotency. Thanks for tracking that as a new bug. |
Hi @Fikili , Can you give https://github.com/Alfresco/alfresco-ansible-deployment/commits/opsexp-1424 a try? |
Let me try |
@alxgomz I have the same issue as you, LibreOffice installer is not available. I will try to find that rpm somewhere and use it. |
Ah yes ofc, triggering the cleanup procedure wil force downloading artifacts again. |
Hi @alxgomz, I can confirm that issue is not visible anymore. Thanks for help. |
Bug description
After resolving issues in #328 and not handling errors reported in #329, I can see that Alfresco cannot startup because of missing environment variables.
If I start Alfresco repository by
sudo systemctl start alfresco-content.service
, I get error message visible usingjournalctl -xe
:Apr 23 11:46:40 tomcat.sh[31057]: /bin/bash: /bin/catalina.sh: No such file or directory Apr 23 11:46:40 systemd[1]: alfresco-content.service: Control process exited, code=exited status=127 Apr 23 11:46:40 systemd[1]: alfresco-content.service: Failed with result 'exit-code'.
The same error message can be seen if I run startup command directly by alfresco user:
The problem is caused by missing environment variables. If I run part of tomcat.sh manually, I can see that value for "CATALINA_HOME" is empty:
The problem here is caused already by missing "TOMCAT_HOME"
Target OS
RHEL 8.3
Ansible error
The error is not visible during Ansible deploy but after that once Alfresco repository is started.
Ansible context
Same as #328
The text was updated successfully, but these errors were encountered: