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

ERROR while attempting to bind on address when launching ayon #1098

Open
2 tasks done
Liametc opened this issue Jan 22, 2025 · 3 comments
Open
2 tasks done

ERROR while attempting to bind on address when launching ayon #1098

Liametc opened this issue Jan 22, 2025 · 3 comments
Labels
type: bug Something isn't working

Comments

@Liametc
Copy link

Liametc commented Jan 22, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior:

When launching ayon, there is an issue that arises from the webserver not being able to bind on an address. I have narrowed it down to client/ayon_core/tools/tray/webserver/server.py where it is resorting to "localhost" as a hostname. This suggestion to fix the error works as I have tried it on my local addons install. I replaced all "localhost" instances in the aforementioned file with "0.0.0.0".

Expected Behavior:

That error should go way

Version

1.0.10

What platform you are running on?

Linux / Centos

Steps To Reproduce:

Launch ayon, the error appears in the console

Are there any labels you wish to add?

  • I have added the relevant labels to the bug report.

Relevant log output:

>>> Connected to AYON server http://*********:5000
*** AYON [1.1.1] -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>>> Using AYON from [ /home/cache/liam.hoflay/AYON-1.1.1-linux-rocky9 ]
... AYON variant: [ production ]
... AYON bundle:  [ BLACKKITE-2025-01-21-01 ]
>>> loading environments ...
  - global AYON ...
  - for addons ...
Registered font families: Noto Sans, Noto Sans, Noto Sans, Noto Sans, Noto Sans Mono, Noto Sans Mono, Noto Sans Mono SemiBold, Noto Sans Mono, Noto Sans Mono Thin, Noto Sans Mono, Noto Sans Mono Medium, Noto Sans Mono, Noto Sans Mono Light, Noto Sans Mono, Noto Sans Mono ExtraBold, Noto Sans Mono, Noto Sans Mono ExtraLight, Noto Sans Mono, Noto Sans Mono Black, Noto Sans Mono
>>> [  Starting WebServer server  ] 
*** WRN: >>> { WebServerThread }: [  Web Server service has FAILED  ] 
==============================
[ Errno 99 ] ERROR while attempting to bind on address ('::1', 14419, 0, 0): cannot assign requested address
==============================
Traceback (most recent call last):
  File "/home/cache/liam.hoflay/AYON/addons/core_1.0.10/ayon_core/tools/tray/webserver/server.py", line 212, in run
    self.loop.run_until_complete(self.start_server())
  File "asyncio/base_events.py", line 647, in run_until_complete
  File "/home/cache/liam.hoflay/AYON/addons/core_1.0.10/ayon_core/tools/tray/webserver/server.py", line 237, in start_server
    await self.site.start()
  File "/home/cache/liam.hoflay/AYON-1.1.1-linux-rocky9/dependencies/aiohttp/web_runner.py", line 121, in start
    self._server = await loop.create_server(
  File "asyncio/base_events.py", line 1506, in create_server
OSERROR: [ Errno 99 ] ERROR while attempting to bind on address ('::1', 14419, 0, 0): cannot assign requested address
>>> [  Web server stopped  ]

Additional context:

No response

@BigRoy
Copy link
Collaborator

BigRoy commented Jan 22, 2025

Going based off of this answer here I'm not sure 0.0.0.0 would be doing what you wanted it to. But I really know too little of networking to begin with so 🤷

@iLLiCiTiT @martastain thoughts?

@iLLiCiTiT
Copy link
Member

iLLiCiTiT commented Jan 22, 2025

Hmm, 0.0.0.0 is potential danger as it makes the server open for all adapters, instead of just the host. The localhost is alias for 127.0.0.1 (fake localhost network).

@Liametc
Copy link
Author

Liametc commented Jan 23, 2025

Hmm, 0.0.0.0 is potential danger as it makes the server open for all adapters, instead of just the host. The localhost is alias for 127.0.0.1 (fake localhost network).

this works @iLLiCiTiT I've added that change to my PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants