-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
When upgrading the Docker container, it failed to connect to the database, resulting in a migration failure. #3234
Comments
Hey @mwnu! Great to see you back here. Seems like you've run into quite the puzzle this time around. Based on the information you've provided, it seems like you've encountered a complex issue. Let's try to address each part of the problem. Firstly, regarding the Docker container failing to connect to the database during the upgrade, it's possible that the network configuration in your As for the manual database updates, the commands you've executed seem correct based on the schema changes in Dify v0.6.0-fix1. However, it's important to note that manual database updates should be a last resort, as they can lead to inconsistencies or missed updates compared to the automatic migration process. The message "Congratulations! Converted 0 agent apps" suggests that there were no new agent apps to convert. If you expected some apps to be converted, it might be worth checking the conditions for conversion and whether your apps meet these conditions. Regarding the language issue, the Dify frontend uses the language setting from the browser by default. If the browser's language is set to English, the frontend will display in English even if the server is set to Chinese. You can change the language setting in the browser to Chinese, or you can set the If the issue persists, it would be helpful to have more information. Could you please provide the logs from the Docker container, the For more information, you can refer to the Dockerfile and config.py in the Dify repository. Sources
|
You can try to switch the language to English and switch it back to see the templates are correct. |
After switching the language, the app can now display Chinese. Thank you. |
Self Checks
Dify version
0.6.0-fix1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
I used the new docker-compose in version 0.6.0-fix1 and modified it, then executed:
Due to incorrect internal network configuration in my docker, the api and worker applications failed to connect to the database services (postgresql, redis, and qdrant). Consequently, the database did not migrate automatically (strangely, everything on the frontend application worked normally, and there were no error messages in the logs).
Then I manually updated the tables in the database:
Then executed "docker-compose -f exec api flask convert-to-agent-apps"
The result was:
The discovery applications found on the homepage were all in English (although I had set the frontend to Chinese).
On another server, I successfully migrated automatically and executed "docker-compose -f exec api flask convert-to-agent-apps" to successfully convert agent apps, and the applications on the homepage were displayed in Chinese.
✔️ Expected Behavior
I don't know what other errors there might be, how can I fix this situation?
❌ Actual Behavior
There are no logs and no errors. Currently, it seems that only the homepage application is not displaying Chinese correctly, other errors are unknown.
Some log in the worker:
The text was updated successfully, but these errors were encountered: