reflex-dev / reflex

🕸️ Web apps in pure Python 🐍
https://reflex.dev
Apache License 2.0
19.67k stars 1.13k forks source link

failing install of frontend base packages(exit code 9) #2137

Closed zenafey closed 2 weeks ago

zenafey commented 11 months ago

Describe the bug Error while starting reflex app, looks like problem is in bun than uses another Node than reflex installed

To Reproduce Steps to reproduce the behavior:

  1. run command: relfex run
    • Code/Link to Repo:

Expected behavior starting of app without closing with code 9

Screenshots image

Full Logs

Nov 6 08:33:04 PM  ==> Running 'python --version && python main.py'
Nov 6 08:33:04 PM  Python 3.11.0
Nov 6 08:33:34 PM  ─────────────────────────────── Initializing src ───────────────────────────────
Nov 6 08:34:03 PM  [15:34:03] Initializing the web directory.                         console.py:81
Nov 6 08:34:03 PM  Success: Initialized src
Nov 6 08:34:33 PM  ───────────────────────────────── System Info ──────────────────────────────────
Nov 6 08:34:33 PM  Debug: Config file: '/opt/render/project/src/rxconfig.py'
Nov 6 08:34:33 PM  Debug: Config: app_name='prodia' loglevel=<LogLevel.INFO: 'info'>
Nov 6 08:34:33 PM  frontend_port=3000 frontend_path='' backend_port=8000
Nov 6 08:34:33 PM  api_url='uper-puper-app.onrender.com' deploy_url='http://localhost:3000'
Nov 6 08:34:33 PM  backend_host='0.0.0.0' db_url='sqlite:///reflex.db' redis_url=None
Nov 6 08:34:33 PM  telemetry_enabled=True bun_path='/opt/render/.local/share/reflex/bun/bin/bun'
Nov 6 08:34:33 PM  cors_allowed_origins=['*'] tailwind={'theme': {'extend': {'animation':
Nov 6 08:34:33 PM  {'accordion-down': 'accordion-down 0.2s ease-out', 'accordion-up': 'accordion-up
Nov 6 08:34:33 PM  0.2s ease-out'}}}, 'plugins': []} timeout=120 next_compression=True
Nov 6 08:34:33 PM  event_namespace=None frontend_packages=[] rxdeploy_url=None
Nov 6 08:34:33 PM  cp_backend_url='https://rxcp-prod-control-plane.fly.dev'
Nov 6 08:34:33 PM  cp_web_url='https://control-plane.reflex.run' username=None
Nov 6 08:34:33 PM  gunicorn_worker_class='uvicorn.workers.UvicornH11Worker' env=<Env.DEV: 'dev'>
Nov 6 08:34:33 PM  Debug: Running command:
Nov 6 08:34:33 PM  ['/opt/render/.local/share/reflex/fnm/node-versions/v18.17.0/installation/bin/no
Nov 6 08:34:33 PM  de', '-v']
Nov 6 08:34:33 PM  Debug: Running command: ['/opt/render/.local/share/reflex/fnm/fnm', '--version']
Nov 6 08:34:33 PM  Debug: Running command: ['/opt/render/.local/share/reflex/bun/bin/bun', '-v']
Nov 6 08:34:33 PM  Debug: [Reflex 0.3.2 with Python 3.11.0 (PATH:
Nov 6 08:34:33 PM  /opt/render/project/src/.venv/bin/python3.11)]
Nov 6 08:34:33 PM  Debug: [Node 18.17.0 (Expected: 18.17.0)
Nov 6 08:34:33 PM  (PATH:/opt/render/.local/share/reflex/fnm/node-versions/v18.17.0/installation/bi
Nov 6 08:34:33 PM  n/node)]
Nov 6 08:34:33 PM  Debug: [FNM 1.35.1 (Expected: 1.35.1) (PATH:
Nov 6 08:34:33 PM  /opt/render/.local/share/reflex/fnm/fnm)]
Nov 6 08:34:33 PM  Debug: [Bun 1.0.4 (Expected: 1.0.4) (PATH:
Nov 6 08:34:33 PM  /opt/render/.local/share/reflex/bun/bin/bun)]
Nov 6 08:34:33 PM  Debug: [OS Linux Debian GNU/Linux 10 (buster)]
Nov 6 08:34:33 PM  Debug: Using package installer at: /opt/render/.local/share/reflex/bun/bin/bun
Nov 6 08:34:33 PM  Debug: Using package executer at:
Nov 6 08:34:33 PM  /opt/render/.local/share/reflex/fnm/node-versions/v18.17.0/installation/lib/node
Nov 6 08:34:33 PM  _modules/npm/bin/npm-cli.js
Nov 6 08:34:33 PM  Debug: Unzip path: /usr/bin/unzip
Nov 6 08:34:34 PM  Info: Overriding config value frontend_port with env var FRONTEND_PORT=8000
Nov 6 08:34:34 PM  ───────────────────────────── Starting Reflex App ──────────────────────────────
Nov 6 08:34:36 PM  prodiapy 15:34:34.749 - [INFO]: Welcome to prodiapy v4.3.2, if you have any questions abt package contact us on https://discord.gg/GyBCkGnbUN
Nov 6 08:34:36 PM  Compiling:  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 2/2 0:00:00
Nov 6 08:34:37 PM  Debug: Running command: ['/opt/render/.local/share/reflex/bun/bin/bun',
Nov 6 08:34:37 PM  'install', '--loglevel', 'silly']
Nov 6 08:34:37 PM  Debug: Installing base frontend packages
Nov 6 08:34:37 PM  Debug: bun install v1.0.4 (745b6b94)
Nov 6 08:34:37 PM  Debug:  Resolving dependencies
Nov 6 08:34:56 PM  ==> Using Node version 14.17.0 (default)
Nov 6 08:34:56 PM  ==> Docs on specifying a Node version: https://render.com/docs/node-version
Nov 6 08:34:49 PM  Installing base frontend packages failed with exit code -9
Nov 6 08:34:49 PM  bun install v1.0.4 (745b6b94)
Nov 6 08:34:49 PM   Resolving dependencies
Nov 6 08:34:49 PM  Run with --loglevel debug  for the full log.

Specifics (please complete the following information):

Additional context appeares only if you launch --frontend-only or if you launch full app Got this error while trying to deploy app on Render(https://render.com/), localy everything is fine

Lendemor commented 11 months ago

might be related to #2103

amila-ku commented 9 months ago

I'm facing the same issue when trying to deploy full app on AWS. No issue locally but when deploying with fargate container fails to start with error:

"Installing base frontend packages failed with exit code -9"

Lendemor commented 2 weeks ago

Closing as outdated. Please reopen a new issue if it's still happens in latest versions.