Skip to content
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

Command run_callback_receiver Gives error: MetricsServer failed to start for service 'callback_receiver | OSError: [Errno 98] Address already in use #15361

Closed
5 of 11 tasks
debeste123 opened this issue Jul 15, 2024 · 2 comments

Comments

@debeste123
Copy link

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that AWX is open source software provided for free and that I might not receive a timely response.
  • I am NOT reporting a (potential) security vulnerability. (These should be emailed to security@ansible.com instead.)

Bug Summary

While running the run_callback_receiver command, I get an error mentrioning that the MetricsServer cannot be started because its address is already in use.

awx-manage run_callback_receiver
2024-07-11 17:52:46,928 ERROR [-] awx.main.analytics MetricsServer failed to start for service 'callback_receiver.
Traceback (most recent call last):
File "/usr/bin/awx-manage", line 8, in
sys.exit(manage())
File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/init.py", line 175, in manage
execute_from_command_line(sys.argv)
File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/core/management/init.py", line 442, in execute_from_command_line
utility.execute()
File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/core/management/init.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/core/management/base.py", line 412, in run_from_argv
self.execute(*args, **cmd_options)
File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/django/core/management/base.py", line 458, in execute
output = self.handle(*args, **options)
File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/main/management/commands/run_callback_receiver.py", line 30, in handle
CallbackReceiverMetricsServer().start()
File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/main/analytics/subsystem_metrics.py", line 39, in start
prometheus_client.start_http_server(self.port(), addr='localhost', registry=self._registry)
File "/var/lib/awx/venv/awx/lib64/python3.9/site-packages/prometheus_client/exposition.py", line 171, in start_wsgi_server
httpd = make_server(addr, port, app, TmpServer, handler_class=_SilentHandler)
File "/usr/lib64/python3.9/wsgiref/simple_server.py", line 154, in make_server
server = server_class((host, port), handler_class)
File "/usr/lib64/python3.9/socketserver.py", line 452, in init
self.server_bind()
File "/usr/lib64/python3.9/wsgiref/simple_server.py", line 50, in server_bind
HTTPServer.server_bind(self)
File "/usr/lib64/python3.9/http/server.py", line 137, in server_bind
socketserver.TCPServer.server_bind(self)
File "/usr/lib64/python3.9/socketserver.py", line 466, in server_bind
self.socket.bind(self.server_address)
OSError: [Errno 98] Address already in use

AWX version

23.8.1

Select the relevant components

  • UI
  • UI (tech preview)
  • API
  • Docs
  • Collection
  • CLI
  • Other

Installation method

kubernetes

Modifications

no

Ansible version

No response

Operating system

No response

Web browser

No response

Steps to reproduce

In AWX task pod, run awx-manage run_callback_receiver

Expected results

The callback receiver to be restarted

Actual results

Receive the error
MetricsServer failed to start for service 'callback_receiver
OSError: [Errno 98] Address already in use

Additional information

No response

@djyasin
Copy link
Member

djyasin commented Jul 17, 2024

Hello, this appears that it could be a configuration issue rather than a bug. Could you please ask this on the Ansible Community Forum?

@djyasin
Copy link
Member

djyasin commented Jul 24, 2024

We are going to go ahead and close this issue. We look forward to speaking with you there!

@djyasin djyasin closed this as completed Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants