[Bug] Undeployed database alterations found #4138
-
📦 EnvironmentDocker 📌 Versionv1.17.3 💻 Operating SystemUbuntu 🌐 BrowserChrome, Safari 🐛 Bug DescriptionWhen using docker compose, logto throws this error and exits:
This started happening during latest updates. 📷 Recurrence StepsNo response 🚦 Expected BehaviorNo response 📝 Additional InformationNo response |
Beta Was this translation helpful? Give feedback.
Replies: 16 comments 1 reply
-
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
Beta Was this translation helpful? Give feedback.
-
To resolve the "undeployed database alterations" error in a Docker environment for Logto, follow these steps:
By following these steps, you should be able to deploy the necessary database alterations and resolve the error [1]. |
Beta Was this translation helpful? Give feedback.
-
@dosu, any ideas? |
Beta Was this translation helpful? Give feedback.
-
To resolve the "undeployed database alterations" error in a Docker environment for Logto, you can try the following steps:
These steps should help resolve the "undeployed database alterations" error by ensuring that the database schema is correctly migrated and the database container is properly restarted [1]. |
Beta Was this translation helpful? Give feedback.
-
lobe-database logs:
|
Beta Was this translation helpful? Give feedback.
-
To resolve the repeated warnings about Here is the updated configuration for your environment variables: NEXT_AUTH_SECRET=<your_generated_secret>
NEXT_AUTH_SSO_PROVIDERS=logto
AUTH_LOGTO_ID=<your_client_id>
AUTH_LOGTO_SECRET=<your_client_secret>
AUTH_LOGTO_ISSUER=<your_logto_issuer_url>
NEXTAUTH_URL=https://lobe.example.com/api/auth Make sure to replace |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
To resolve the repeated warnings about # Old environment variables (deprecated)
# LOGTO_CLIENT_ID=your_old_client_id
# LOGTO_CLIENT_SECRET=your_old_client_secret
# LOGTO_ISSUER=your_old_issuer
# New environment variables
AUTH_LOGTO_ID=your_new_client_id
AUTH_LOGTO_SECRET=your_new_client_secret
AUTH_LOGTO_ISSUER=your_new_issuer Replace For the NEXTAUTH_URL=https://lobe.example.com/api/auth This should resolve the deprecation warnings and the |
Beta Was this translation helpful? Give feedback.
-
This is caused by the logto update, logto was updated to version 1.20.0 today. There are two solutions:
|
Beta Was this translation helpful? Give feedback.
-
we will remove logto soon and the recommand the casdoor as our auth provider. stay tuned. |
Beta Was this translation helpful? Give feedback.
-
容器不能启动,没办法迁移,只能拉老版本先用了,期待用casdoor。 |
Beta Was this translation helpful? Give feedback.
-
The container cannot be started and there is no way to migrate it. I can only pull the old version and use it first. I look forward to using casdoor. |
Beta Was this translation helpful? Give feedback.
-
等你了大神,logto生产搞到很痛苦,casdoor支持内网docker部署嘛 |
Beta Was this translation helpful? Give feedback.
-
Waiting for you, sir. Logto production is very painful. Does casdoor support intranet docker deployment? |
Beta Was this translation helpful? Give feedback.
-
我这个报错还有的拯救嘛 |
Beta Was this translation helpful? Give feedback.
This is caused by the logto update, logto was updated to version 1.20.0 today. There are two solutions:
npm run alteration deploy