middlewarehq / middleware

✨ Open-source dev productivity platform for engineering teams ✨
https://middlewarehq.com
Apache License 2.0
388 stars 32 forks source link

Analytics and Sync server not starting on Manual setup #426

Open Kamlesh72 opened 3 weeks ago

Kamlesh72 commented 3 weeks ago

Description:

I am trying to run the project locally by following Manual Setup instructions given in the readme. I successfully created virtual environment and installed dependences and created .env.local file in the /backend directory. However on running the command flask --app app --debug run --port 9696, I encountered following error:

File "/Users/kamlesh/Desktop/middleware/backend/venv/lib/python3.11/site-packages/sqlalchemy/engine/url.py", line 903, in _parse_url components["port"] = int(components["port"]) ValueError: invalid literal for int() with base 10: 'None'

Steps to reproduce:

  1. Clone the project locally and Go to readme.md
  2. Following instructions for Manual Setup till "Start the backend servers" part.

Expected behavior:

The server should run after executing the command.

KartikChawla09 commented 3 weeks ago

I also faced the same error, Additionally while deploying it via docker I got cron error.

CNTNR failed to solve: process "/bin/sh -c crontab /etc/cron.d/cronjob" did not complete successfully: exit code: 1

When I tried to debug this using methods available on the internet I was able to go past this step but then again Docker Container failed to run. I am running this on a Windows 11 System using Git Bash.

adnanhashmi09 commented 1 week ago

Hey @Kamlesh72, Thank you for reporting the bug. I believe this has been fixed. Now the backend reads env variable from the .env file present in the root directory. Take the latest pull of the repository and try running it. Make sure you have the .env file created in the project root.