-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Flask : upgrade-db #11920
Comments
Hello, @DarkNeedle! I'm here to help you with any bugs, questions, or contributions while we wait for a human maintainer. Let's tackle this issue together! The error message indicates that the The Here are a few steps you can take to troubleshoot and resolve this issue:
If these steps do not resolve the issue, you may need to investigate further into the specific version of the Dify codebase you are using to identify any discrepancies or missing components related to the To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Refer to my original post, the code is wrong in the repo and needs to be updated per what I mentioned above |
Please feel free to open a pull request. I think the Makefile is contributed by the community. And we use Actions to build the image. |
Strange, I can't reproduce it anymore. |
Self Checks
Dify version
Current : Main
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
make build-all
docker-compose up
✔️ Expected Behavior
Expected the app to launch. This is some issue injected in the current GitHub source
❌ Actual Behavior
worker-1 | Usage: flask [OPTIONS] COMMAND [ARGS]...
worker-1 | Try 'flask --help' for help.
worker-1 |
worker-1 | Error: No such command 'upgrade-db'.
api-1 | Usage: flask [OPTIONS] COMMAND [ARGS]...
api-1 | Try 'flask --help' for help.
api-1 |
api-1 | Error: No such command 'upgrade-db'.
The actual fix is:
in api/docker/entrypoit.sh
Line 7: change to "flask db upgrade" (flask upgrade-db does not exist)
in .github/workflows/db-migration-test.yml
Line 55: change to "poetry run python -m flask db upgrade"
This seems to have been corrected in the README.md but did not make it in to the code
The text was updated successfully, but these errors were encountered: