-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
AWX 11.0.0 Logstash connection refused #6794
Comments
@ifeelcream in the web container, could you run:
...and also (with any sensitive details redacted):
|
@ryanpetrello Thanks for your answer. Below are the outputs:
|
If you run this, do you see any clues in the web container logs? I'm guessing that rsyslogd is failing to bind to its socket when it comes online (or something similar); could be a permission issue. |
I get the following errors:
It seems that even though it changes the PID it is already used. |
Do you already have an rsyslogd daemon running in this container? What does |
With ps I get no rsyslogd daemon shown:
Also I didn't manually start or stop something in the container, just ran the install script. |
Is there a pre-existing |
This issue maybe looks related, but I don't see a resolution: |
Also, can you share |
There was a rsyslog.pid. I deleted it and restarted the process with
Now it is unfortunately still not working and the log is of no help:
|
@ifeelcream let's raise the rsyslogd verbosity a bit and see if we can find any clues. In the web container, edit
...to...
Next, find the supervisord pid in your container (using
This will cause rsyslogd to restart in debug mode, and if you do:
|
Hey @ifeelcream in the task container, do you see something like this?
|
Okay, I think we found a bug specific to rsyslogd in the local docker installer that explains the behavior you're seeing @ifeelcream: Trying this out will involve building your own images (or waiting until we've cut a new AWX release). |
Thanks for all your help so far, really appreciate it! Here is the output when testing the logging part:
When running the grep command in the task container I have the same output:
|
That is good to hear! Do you have a rough idea how long it would take to get into the new release? Right now I am still testing AWX for production so I am not in a rush. |
@ifeelcream usually we cut a new release every 4-8 weeks? It generally depends on the severity of discovered issues. |
@ryanpetrello Alright, thanks for the feedback and all your help :) |
So your rsyslogd output suggests to me that rsyslogd is getting events from AWX and is shipping them out. Are you certain that your log aggregator is open and reachable? You might want to do something like:
|
ncat tells me it is connected to the host:
tcpdump:
The Ansible Tower host is in the same network with the same Firewall Rules and OS and has no problems connecting. If this looks like some network problem I will try and investigate again if there was some misconfiguration. |
I looked into Kibana again and now I can see the messages from yesterday! It seems the halted rsyslogd service was the initial problem and that I looked for a hostname instead of an IP in Kibana. So I guess I have to adjust the name of the docker web container in the inventory file and then all should be fine. |
@ifeelcream just a heads up, we decided to cut a release today (awx 11.1.0) 😄, and it includes the aforementioned bug fix, which I think is what was ailing you originally: Thanks for your help digging! |
@ryanpetrello That was much faster than expected, perfect :D Thank you again for all your support! |
ISSUE TYPE
SUMMARY
AWX is not able to send logs to Logstash. The same settings are working in Tower (v.3.6.3 with Ansible 2.9.6). The "Test" Button tells me that the test was sent successfully. In the awx_web Container I can see the following log messages:
ENVIRONMENT
STEPS TO REPRODUCE
Trying to send a test message to Logstash.
EXPECTED RESULTS
A new log entry should be visible in Kibana.
ACTUAL RESULTS
No log entry in Kibana.
The text was updated successfully, but these errors were encountered: