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

Linux reflex init problem #4443

Open
tjzzhang opened this issue Nov 27, 2024 · 1 comment
Open

Linux reflex init problem #4443

tjzzhang opened this issue Nov 27, 2024 · 1 comment

Comments

@tjzzhang
Copy link

Describe the bug
reflex init error

To Reproduce
Steps to reproduce the behavior:

  • Code/Link to Repo:

Expected behavior
(.venv) root@88758798471f:/usr/src# reflex init --loglevel debug

Screenshots
no

Specifics (please complete the following information):

  • Python Version: 3.12
  • Reflex Version: 0.6.5
  • OS: ubuntu24.10
  • Browser (Optional):

Additional context
──────────────────────────────────────────────────────── System Info ────────────────────────────────────────────────────────
Debug: Config file: '/usr/src/.venv/lib/python3.12/site-packages/reflex/config.py'
Debug: Config: app_name='' loglevel=<LogLevel.DEFAULT: 'default'> frontend_port=3000 frontend_path='' backend_port=8000
api_url='http://localhost:8000' deploy_url='http://localhost:3000' backend_host='0.0.0.0' db_url='sqlite:///reflex.db'
redis_url=None telemetry_enabled=True bun_path=PosixPath('/root/.local/share/reflex/bun/bin/bun')
static_page_generation_timeout=60 cors_allowed_origins=['*'] tailwind={'plugins': ['@tailwindcss/typography']} timeout=120
next_compression=True react_strict_mode=True frontend_packages=[] cp_backend_url='https://rxcp-prod-control-plane.fly.dev'
cp_web_url='https://control-plane.reflex.run' gunicorn_worker_class='uvicorn.workers.UvicornH11Worker' gunicorn_workers=None
gunicorn_max_requests=100 gunicorn_max_requests_jitter=25 state_manager_mode=<StateManagerMode.DISK: 'disk'>
redis_lock_expiration=10000 redis_token_expiration=3600 env_file=None
Debug: Running command: ['/usr/bin/node', '-v']
Debug: Running command: [PosixPath('/root/.local/share/reflex/fnm/fnm'), '--version']
Debug: Running command: ['/root/.local/share/reflex/bun/bin/bun', '-v']
Debug: [Reflex 0.6.5 with Python 3.12.3 (PATH: /usr/src/.venv/bin/python3)]
Debug: [Node 18.19.1 (Expected: 22.11.0) (PATH:/usr/bin/node)]
Debug: [FNM None (Expected: 1.35.1) (PATH: /root/.local/share/reflex/fnm/fnm)]
Debug: [Bun None (Expected: 1.1.29) (PATH: /root/.local/share/reflex/bun/bin/bun)]
Debug: [OS Linux Ubuntu 24.04.1 LTS]
Debug: Using package installer at: /root/.local/share/reflex/bun/bin/bun
Debug: Using package executer at: /usr/share/nodejs/npm/bin/npm-cli.js
Debug: Unzip path: /usr/bin/unzip
───────────────────────────────────────────────────── Initializing src ──────────────────────────────────────────────────────
Debug: Running command: ['/usr/bin/node', '-v']
Debug: Downloading https://raw.githubusercontent.com/reflex-dev/reflex/main/scripts/bun_install.sh
Debug: Skipping node installation as it is already installed.
Traceback (most recent call last):
File "/usr/src/.venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 72, in map_httpcore_exceptions
yield
File "/usr/src/.venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 236, in handle_request
resp = self._pool.handle_request(req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/.venv/lib/python3.12/site-packages/httpcore/_sync/connection_pool.py", line 256, in handle_request
raise exc from None
File "/usr/src/.venv/lib/python3.12/site-packages/httpcore/_sync/connection_pool.py", line 236, in handle_request
response = connection.handle_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/.venv/lib/python3.12/site-packages/httpcore/_sync/connection.py", line 101, in handle_request
raise exc
File "/usr/src/.venv/lib/python3.12/site-packages/httpcore/_sync/connection.py", line 78, in handle_request
stream = self._connect(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/.venv/lib/python3.12/site-packages/httpcore/_sync/connection.py", line 124, in _connect
stream = self._network_backend.connect_tcp(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/.venv/lib/python3.12/site-packages/httpcore/_backends/sync.py", line 207, in connect_tcp
with map_exceptions(exc_map):
File "/usr/lib/python3.12/contextlib.py", line 158, in exit
self.gen.throw(value)
File "/usr/src/.venv/lib/python3.12/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
raise to_exc(exc) from exc
httpcore.ConnectError: [Errno 111] Connection refused

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/src/.venv/bin/reflex", line 8, in
sys.exit(cli())
^^^^^
File "/usr/src/.venv/lib/python3.12/site-packages/typer/main.py", line 342, in call
raise e
File "/usr/src/.venv/lib/python3.12/site-packages/typer/main.py", line 325, in call
return get_command(self)(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/.venv/lib/python3.12/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/.venv/lib/python3.12/site-packages/typer/core.py", line 738, in main
return _main(
^^^^^^
File "/usr/src/.venv/lib/python3.12/site-packages/typer/core.py", line 197, in _main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/usr/src/.venv/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/.venv/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/.venv/lib/python3.12/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/.venv/lib/python3.12/site-packages/typer/main.py", line 707, in wrapper
return callback(**use_params)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/.venv/lib/python3.12/site-packages/reflex/reflex.py", line 145, in init
_init(name, template, loglevel, ai)
File "/usr/src/.venv/lib/python3.12/site-packages/reflex/reflex.py", line 90, in _init
prerequisites.initialize_frontend_dependencies()
File "/usr/src/.venv/lib/python3.12/site-packages/reflex/utils/prerequisites.py", line 1168, in initialize_frontend_dependencies
processes.run_concurrently(install_node, install_bun)
File "/usr/src/.venv/lib/python3.12/site-packages/reflex/utils/processes.py", line 237, in run_concurrently
with run_concurrently_context(*fns):
File "/usr/lib/python3.12/contextlib.py", line 144, in exit
next(self.gen)
File "/usr/src/.venv/lib/python3.12/site-packages/reflex/utils/processes.py", line 224, in run_concurrently_context
task.result()
File "/usr/lib/python3.12/concurrent/futures/_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/usr/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/.venv/lib/python3.12/site-packages/reflex/utils/prerequisites.py", line 874, in install_bun
download_and_run(
File "/usr/src/.venv/lib/python3.12/site-packages/reflex/utils/prerequisites.py", line 729, in download_and_run
response = net.get(url)
^^^^^^^^^^^^
File "/usr/src/.venv/lib/python3.12/site-packages/reflex/utils/net.py", line 33, in get
return httpx.get(url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/.venv/lib/python3.12/site-packages/httpx/_api.py", line 210, in get
return request(
^^^^^^^^
File "/usr/src/.venv/lib/python3.12/site-packages/httpx/_api.py", line 118, in request
return client.request(
^^^^^^^^^^^^^^^
File "/usr/src/.venv/lib/python3.12/site-packages/httpx/_client.py", line 837, in request
return self.send(request, auth=auth, follow_redirects=follow_redirects)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/.venv/lib/python3.12/site-packages/httpx/_client.py", line 926, in send
response = self._send_handling_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/.venv/lib/python3.12/site-packages/httpx/_client.py", line 954, in _send_handling_auth
response = self._send_handling_redirects(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/.venv/lib/python3.12/site-packages/httpx/_client.py", line 991, in _send_handling_redirects
response = self._send_single_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/.venv/lib/python3.12/site-packages/httpx/_client.py", line 1027, in _send_single_request
response = transport.handle_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/.venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 235, in handle_request
with map_httpcore_exceptions():
File "/usr/lib/python3.12/contextlib.py", line 158, in exit
self.gen.throw(value)
File "/usr/src/.venv/lib/python3.12/site-packages/httpx/_transports/default.py", line 89, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ConnectError: [Errno 111] Connection refused

Copy link

linear bot commented Nov 27, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant