-
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
502 Bad Gateway after installing with ansible and restarting machine #417
Comments
Hi Amber, Thanks for reporting this. Can you confirm whether your playbook failed in the middle of the role which installs the service that's not starting ( |
Hello Amer, Can you check if nginx is well started when the system comes up : I vaguely remember that this service wasn't enabled ? Hth, |
This issue could be caused by several factors. It could be firewall problem (for the localhost stuff - I opened the PR #589 which is still under discussion to have the firewall setup automatically with the playbook, if requested). It could also be services not starting up properly because of filesystem not yet available (c.f PR #638) or because of SELinux (c.f. PR #567 and PR #634). So without more information on what exactly is the status of the host services / components, it would be quite hard to investigate I believe. However, with the latest versions of the playbooks, this kind of issue might be less likely to happen. |
I've had some deployments where the alfresco-content service was not enabled. That was caused aparently by a change in the premissions of the alfresco-content.service file: Now owned by root:
Previously owned by user alfresco:
I have not reported it as an issue because, though changing back the ownership has fixed the issue for me, it really does not make much sense that this is the cause or at least the only factor. I rolled it back because it was the only difference and the playbooks did not report any trouble running the handler that enables the service. That maybe should had happened, but I saw several references of this ansible module silently failing to enable services. |
Bug description
I installed Community Edition 7.2 yesterday with Ansible yesterday on Cent 0S 7. Services seemed to be up and running. I was able to create users, log in to share services, etc. But after restarting the machine I'm getting a 502 bad gateway when I visit localhost or localhost/share (the same URLs that were ok yesterday).
Is there a trick to restarting these services properly? Is there something I need to do manually? Would be nice if this was documented in the installation instructions I followed here: https://docs.alfresco.com/content-services/community/install/ansible/
When I list all services with "sudo systemctl list-unit-files" I get:
alfresco-content-monitored-startup.service static
alfresco-content.service disabled
alfresco-search.service enabled
alfresco-tengine-aio.service enabled
After starting the alfresco-content service manually I can get to myserver/share from the server only, but I can't see it on the rest of my network like I could before restarting the machine. I had to manually stop firewalld to fix this.
Would be nice if it was documented if I do need to start services manually. Also I noticed the docs (from the link above) list 6 services that start with "alfresco" whereas I only have 4. Are the docs out of date or is my installation incomplete?
Target OS
Cent OS 7
The text was updated successfully, but these errors were encountered: