-
Notifications
You must be signed in to change notification settings - Fork 69
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
Installer fails with Bad Gateway #251
Comments
It looks like the application isn't running and nginx can't connect to it 🤔. Could you check the output of: systemctl --user status puma_consul_production Replace Also, could you check the application logs in |
Thank you! Here's the output (I just re-ran the installer with the same error):
(But only when I execute it as the
Content of
Looks good to me 🤔
|
I finally found the
These are my two tries running the installer, followed by two tries requesting The corresponding
So it says "permission denied". File system permissions of the socked file and the
Please note that the @javierm Can you please have a look again? Should the Thanks in advance, |
Hi, @aardjon 😄. Thanks for the logs (and sorry I forgot to reply two weeks ago 🙏).
That's fine, the file should not exist. If it existed, it would overwrite the homepage generated by the application. I guess it's OK if nginx looks for that file and, if it doesn't find it, forwards the request to Puma (which is what we want). Having said that, I don't get any references to The permissions in the Puma socket seem to be just fine. Could you run By the way, the command above assumes the user The other thing that comes to mind is that I see requests are done to an IP address instead of a domain. I take it you aren't using a domain and an SSL certificate? |
Hi @javierm,
Thanks for this hint - it led me to the root cause! For me, the problem is now solved. But what do you think about adding an explicit permission check to the installer (or maybe it can even adjust them automatically) as a solution to this issue? Thanks again, |
Hi, @aardjon 😄. The installer does adjust those permissions 🤔. - name: Ensure correct permissions of deploy user home directory
file:
path: "{{ home_dir }}"
owner: "{{ deploy_user }}"
group: "{{ deploy_group }}"
mode: 0755
state: directory Just to be sure, is it possible that the permissions were changed after running the installer? Or that the |
Hi @javierm, please excuse the long time without reply! 🙄
I created the consul user manually, yes - I didn't expect this to be done automatically by the installer. Does it? Also, I don't think I changed the directory permission on purpose after the installer ran, but of course I cannot say for sure 🤔. After all, I'm not the only one with |
Hi, @aardjon 😄.
Yes, the installer automatically creates a user based on the What's true is that currently the installer doesn't do certain steps (like adding the permissions) if the user was created manually 🤔. Do you know enough about Ansible to open a pull request to adjust this behavior? |
Hi @javierm, I wish you a happy new year (in case you are in a region that just switched years 😅 )!
At least it wasn't clear to me. I will check if I can improve the documentation. But there's one thing still unclear to me: In the
Sorry, I don't know anything about Ansible, actually this was my very first contact with it at all. |
I'm trying to install Consul on Ubuntu 24.04.1 LTS, but the installer fails with:
See installer.log for more log output (with
-vvvvvv
). Runningcurl localhost
also gets as 502.I don't see any error in the output. Where can I find the corresponding nginx logfile (it's not in
/var/log/
)? Can you please support me in solving this problem?Please note that the installer didn't reach this point in one run due to #233, but got cancelled and continued later (just in case this is important).
Thanks in advance for all support!
The text was updated successfully, but these errors were encountered: