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

[Bug]: Cannot assign requested address #465

Open
573 opened this issue Mar 20, 2023 · 1 comment
Open

[Bug]: Cannot assign requested address #465

573 opened this issue Mar 20, 2023 · 1 comment
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@573
Copy link

573 commented Mar 20, 2023

Current Behavior

jupyenv when started fails with

OSError: [Errno 99] Cannot assign requested address

Expected Behavior

Address getting assigned and logged

Steps To Reproduce

  1. flakes enabled
  2. In an new folder: nix flake init --template github:tweag/jupyterWith
  3. nix run

OS

- system: `"x86_64-linux"`
 - host os: `Linux 5.15.79.1-microsoft-standard-WSL2, NixOS, 22.11 (Raccoon), 22.11.20230307.a7cc819`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.3`
 - nixpkgs: `/nix/store/bmyw96kdilalipziklp47rva12f0fhbz-source`

Version

"rev":⋅"3ad2c9512c9efd586cf63adde454e734a8ce049c"

Additional Context

No response

Relevant log output

>[I 2023-03-20 11:11:50.907 ServerApp] nbclassic | extension was successfully loaded.
Traceback (most recent call last):
  File "/nix/store/kzndcs6zwrsih1mnyf8x11hgh5yfy9c5-python3.10-jupyterlab-3.6.1/bin/.jupyter-lab-wrapped", line 9, in <module>
    sys.exit(main())
  File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/jupyter_server/extension/application.py", line 607, in launch_instance
    serverapp = cls.initialize_server(argv=args)
  File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/jupyter_server/extension/application.py", line 577, in initialize_server
    serverapp.initialize(
  File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/traitlets/config/application.py", line 113, in inner
    return method(app, *args, **kwargs)
  File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/jupyter_server/serverapp.py", line 2548, in initialize
    self.init_httpserver()
  File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/jupyter_server/serverapp.py", line 2371, in init_httpserver
    self._find_http_port()
  File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/jupyter_server/serverapp.py", line 2418, in _find_http_port
    sockets = bind_sockets(port, self.ip)
  File "/nix/store/i2ihlpzkbcysdyq8srhh3xlpmv6cskgy-python3-3.10.9-env/lib/python3.10/site-packages/tornado/netutil.py", line 162, in bind_sockets
    sock.bind(sockaddr)
OSError: [Errno 99] Cannot assign requested address
@573 573 added the bug Something isn't working label Mar 20, 2023
@573 573 changed the title [Bug]: [Bug]: Cannot assign requested address Mar 20, 2023
@573
Copy link
Author

573 commented Mar 21, 2023

WORKAROUND: nix run .#apps.x86_64-linux.default -- --ip=0.0.0.0

@GTrunSec GTrunSec added the question Further information is requested label Mar 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants