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

Have to reinitiate Reflex after a couple of runs #4387

Open
Brave-new-w0rld opened this issue Nov 16, 2024 · 1 comment
Open

Have to reinitiate Reflex after a couple of runs #4387

Brave-new-w0rld opened this issue Nov 16, 2024 · 1 comment

Comments

@Brave-new-w0rld
Copy link

Describe the bug

After a couple of runs (4-5) OR having reflex app idle for several hours I fail to run Reflex using reflex run command.
It hangs leaving the app one step short of running in a browser as per the debug log down below.
To overcome I need to restart Reflex completely reinitiating the app with reflex init and then it works again until the same bug occurs.

Debug log

PS C:\Users\Lenovo\Desktop\Python\Apps\pythonProject> reflex run --loglevel 'debug'
────────────────────────────────────────────────────────────────────────────────── System Info ───────────────────────────────────────────────────────────────────────────────────
Debug: Config file: 'C:\\Users\\Lenovo\\Desktop\\Python\\Apps\\pythonProject\\.venv\\Lib\\site-packages\\reflex\\config.py'
Debug: Config: app_name='pythonProject' 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=WindowsPath('C:/Users/Lenovo/AppData/Local/reflex/bun/bin/bun.exe') 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: ['C:\\Users\\Lenovo\\AppData\\Local\\reflex\\fnm\\node-versions\\v22.11.0\\installation\\node.exe', '-v']
Debug: Running command: [WindowsPath('C:/Users/Lenovo/AppData/Local/reflex/fnm/fnm.exe'), '--version']
Debug: Running command: ['C:\\Users\\Lenovo\\AppData\\Local\\reflex\\bun\\bin\\bun.exe', '-v']
Debug: [Reflex 0.6.5 with Python 3.12.4 (PATH: C:\Users\Lenovo\Desktop\Python\Apps\pythonProject\.venv\Scripts\python.exe)]
Debug: [Node 22.11.0 (Expected: 22.11.0) (PATH:C:\Users\Lenovo\AppData\Local\reflex\fnm\node-versions\v22.11.0\installation\node.exe)]
Debug: [FNM 1.35.1 (Expected: 1.35.1) (PATH: C:\Users\Lenovo\AppData\Local\reflex\fnm\fnm.exe)]
Debug: [Bun 1.1.29 (Expected: 1.1.29) (PATH: C:\Users\Lenovo\AppData\Local\reflex\bun\bin\bun.exe)]
Debug: [OS Windows 10.0.26100]
Debug: Using package installer at: C:\Users\Lenovo\AppData\Local\reflex\bun\bin\bun.exe
Debug: Using package executer at: C:\Users\Lenovo\AppData\Local\reflex\fnm\node-versions\v22.11.0\installation\npm
Warning: Windows Subsystem for Linux (WSL) is recommended for improving initial install times.
────────────────────────────────────────────────────────────────────────────── Starting Reflex App ───────────────────────────────────────────────────────────────────────────────
Debug: Registered lifespan task: windows_hot_reload_lifespan_hack
[21:54:29] Compiling: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 13/13 0:00:00
Debug: Running command: ['C:\\Users\\Lenovo\\AppData\\Local\\reflex\\fnm\\node-versions\\v22.11.0\\installation\\npm', 'run', 'next', 'telemetry', 'disable']
Debug: Running command: ['C:\\Users\\Lenovo\\AppData\\Local\\reflex\\fnm\\node-versions\\v22.11.0\\installation\\node.exe', '-v']
────────────────────────────────────────────────────────────────────────────────── App Running ───────────────────────────────────────────────────────────────────────────────────
Debug: Running command: ['C:\\Users\\Lenovo\\AppData\\Local\\reflex\\fnm\\node-versions\\v22.11.0\\installation\\npm', 'run', 'dev']
Debug: Starting frontend
INFO:     Will watch for changes in these directories: ['C:\\Users\\Lenovo\\Desktop\\Python\\Apps\\pythonProject\\pythonProject']
INFO:     Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
INFO:     Started reloader process [9088] using StatReload
INFO:     Started server process [26760]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
Debug: 
Debug: > dev
Debug: > next dev
Debug:
Debug:   ▲ Next.js 14.2.16
Debug:   - Local:        http://localhost:3000
App running at: http://localhost:3000
Backend running at: http://0.0.0.0:8000
Debug:
Debug:  ✓ Starting...

Specifics:

  • Python Version: 3.12.4
  • Reflex Version: 0.6.5
  • OS: Windows 11 latest build
Copy link

linear bot commented Nov 16, 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