-
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
Job details and Job view not working #1861
Comments
I am experiencing the same issue. |
What are you using for a proxy in front of AWX? Do you have your awx_web container bound to |
I'm having the same issue where the job details will not display (also running with a proxy in front of awx). Adjusting the awx_web container to listen on 127.0.0.1 did not resolve the issue. Prior to upgrading to 1.0.6.5 this was working properly. ENVIRONMENT In developer tools I'm seeing this error: where the <> is the correct uri to my instance. "/#/jobs?job_search=page_size:20;order_by:-finished;not__launch_type:sync:1 /#/jobz/inventory/33:1". I am also usning Nginx as a front end proxy (port 443). |
Thanks for the tip @anasypany and for trying this solution @cstuart1. I indeed also use nginx as front-end proxy as I need SSL and port 443. What I haven't tried yet is via a ssh-tunnel directly connecting to the awx_web container. If the issue then still persist it is in the application itself. However I will not be able to test this today, but it will be the first thing I will do tomorrow morning. |
@cstuart1 Can you paste your ngxinx proxy config? (with censored environment details of course) |
@Borrelworst location /websocket { @anasypany this is probably what you were going to suggest/inquire about? |
@cstuart1 I was able to get the job details pages working again with this simple nginx proxy config once awx_web was bound to 127.0.0.1: location / { If you try this config make sure to add |
Yes, that resolved the issue for me. For someone else reading this thread and trying to setup SAML. and restart tower after making the setting change. |
@cstuart1: That indeed solved the issue. I have not set the awx_web to bound explicitly to 127.0.0.1 and apparently that is not needed. The only issue I still see is that when I go to my custom inventory scripts and click on schudule inventory syncs, I will just see the cog wheel, but nothing happens. This is also described in #1850. |
I am also experiencing problems with job details. I deployed a stack with postgres, rabbitmq, memcache, awx_web and awx_task in a swarm (ansible role to check variables, create dirs, instantiating a docker-compose template, deploy and so on). I am using vfarcic docker-flow to provide access to all the services in the swarm and to automatically detect changes in the configuration and reflect those changes in the proxy configuration. Within this stack, only awx_web is provided access outside the swarm with the docker-flow stack.
Occasionally, the following messages are also printed in the same log:
The haproxy config generated by docker-flow for this service (awx_web) is:
It is very similar to a bunch of other services in the swarm. |
I'm experiencing the same issue ENVIRONMENT |
I have the same issue either |
Hi, I had the same issue and i was able to get the jobs output running this command to fix the permissions:
|
Since most of these comments are related to proxy configurations, I should probably mention that I have the same issue but I do not have a proxy in front of mine. |
I'm experiencing the same issue as well. Initially will work fine. I noticed restarting the containers/docker resolves the issue. Will monitor it to determine if issue occurs again, which I assume it will. |
same error
but i'm unable to see the job |
ENVIRONMENT
cat awx/installer/inventory
It works for me |
Same issues |
@piroux That does resolve it for us as well temporarily. Haven't found a permanent fix for it. Maybe a bug. |
It appears you can swap the supervisor.conf and add verbose output to daphne:
With this I am seeing the following behavior related to websockets from Daphne/nginx:
This eventually logs:
|
awx_web:1.0.6.23 here:
etc. websocket simply not working. All reverse proxy configuration was working before (1.0.3.29 for example). nginx config is fine:
I appended these lines to /etc/tower/settings.py:
I found Please not the settings.py changes are not needed for 1.0.6.11 to work. I don't see any impact it I set those or not. |
I am also facing the same issue. ENVIRONMENT
They only workaround that is currently working for me is stopping everything and starting again the containers. |
This issue does not appear to occur for a little while after redeploying AWX. I did however notice that none of the job details from while this issue is occuring are available even after you restart. It appears as though the "stdout" response on the API is populated via the task container posting data to a websocket for that job. I also noticed that when the issue is occurring that the task container fails with the following errors:
This would explain why the job details from jobs that ran while the websockets are not working arent even visible after restarting the web/task container and why they arent available when hitting the stdout resource on the job endpoint |
I ran into this issue as well and resolved it by stopping both the web and task containers and rerunning the installer playbook to start them again. |
Some observation:
|
It sounds to me like job events aren't being saved into the database. This can be caused by a number of things. Do you see anything when you visit |
@ryanpetrello I suspect you meant jobs_events. it returns
If I restart awx-task and awx-web this information gets populated. And it continues working until we see in awx-task that log message related to rabbitmq |
Yep, that's exactly what I meant, thanks :) In your awx task container, can you run:
|
|
Some more information:
|
@ryanpetrello Some more details. Bug is reproduced on many version of AWX. If i run /usr/bin/awx-manage run_callback_receiver in task container All results get send to database... More interesting thing is this piece of code: If something happens to rabbitmq and we got broken connection it's not recrated, from other side we have large try/except in code that uses connection, which doesn't let run_callback_reciever crash so supervisor will be bring it back... |
@boris-42 the example you linked is catching |
@boris-42 do you see any logs in the task container for the callback receiver that might provide some hints? |
IMHO, I don't know why this issue is closed when is still happening, even with the recent versions. |
@josemgom the reason it's closed is that the original reporter described their issue and found a solution to it here: #1861 (comment) (also, see: #1861 (comment)) The number of people chiming in on this one has generated a lot of noise; it's likely people are encountering a number of issues across a variety of configurations that are being conflated:
If you're still encountering an issue with the job details page, and you're using the most recent version of awx, and none of the suggestions in this comment thread have addressed it for you, then please open a new issue with as much detail as possible about the problem you're encountering: https://github.com/ansible/awx/issues/new?template=bug_report.md In the meantime, I and other awx maintainers are happy to help as much as possible here (see my and others' various interactions with people above) and in our IRC room on freenode ( |
@ryanpetrello you are back ! =) Steps to reproduce:
|
Hey @boris-42, Do you see any logs in the task container for the callback receiver that might provide some hints? Errors/exceptions/tracebacks? |
@boris-42 @strawgate @DBLaci @nmpacheco and others who have encountered the Alternatively, you could try running something like this (in all of your containers) and then restarting awx services to get the latest version:
|
@ryanpetrello Thanks, I'll try to patch container this weekend! |
Thanks @ryanpetrello I just upgraded the package in my development and production envs. I let you know if the users still facing this issue. |
Running:
Running: ENVIRONMENT
|
@taspotts thanks for the feedback. We've merged the |
@boris-42 @strawgate @DBLaci @nmpacheco and others who have encountered the |
I also had this error and verified that it was fixed in the latest released docker-image. |
Closing this, please reopen if it persists. |
@ryanpetrello thanks for fixing this, I checked it finally yesterday, everything works. |
ISSUE TYPE
COMPONENT NAME
SUMMARY
Job details and Job view not working properly
ENVIRONMENT
STEPS TO REPRODUCE
Run any playbook, failed and succeeded jobs are present but not showing any details.
EXPECTED RESULTS
Details from jobs
ACTUAL RESULTS
Nothing is showing, no errors, no timeouts, just nothing
ADDITIONAL INFORMATION
For example I have a failed job. When clicking on details, I can see the URL changing to:
https://awx-url/#/jobz/project/
However nothing happens. When using right mouse button and opening in new tab/page I will only get the navigation pane and a blank page.
Same happens when I click on the job it self.
Additionaly, adding inventory sources works fine, however when navigating to 'Schedule inventory sync' I can see the the gear-wheel spinning but also nothing happens.
I did a fresh installation today (9th May)
The text was updated successfully, but these errors were encountered: