dosubot[bot] commented on issue #8613: URL: https://github.com/apache/incubator-devlake/issues/8613#issuecomment-3408882626
<!-- Greeting --> Hi @wrldcup2003-sudo! I'm [Dosu](https://go.dosu.dev/dosubot) and Iām helping the incubator-devlake team. <!-- Answer --> The "database migration scripts needed" message means DevLake hasn't run its required database migrations yet, which is why your migration_history table is blank. Normally, the UI provides a button to trigger migration, which calls the `/proceed-db-migration` API endpoint. If you get the same error even when using CURL to this endpoint, it suggests the backend service is stuck waiting for migration confirmation or isn't able to execute migrations. DevLake's migrator loads migration scripts and tracks their execution in the migration_history table. If the table is empty, all migrations are pending and must be applied for the UI to work properly. The backend blocks access until migrations are confirmed and executed via the API or UI button. You can review the migration logic and API endpoint in the backend code for more details: - [Migrator implementation](https://github.com/apache/incubator-devlake/blob/main/backend/core/migration/migrator.go) - [API migration endpoint](https://github.com/apache/incubator-devlake/blob/main/backend/server/api/api.go) - [UI migration prompt](https://github.com/apache/incubator-devlake/blob/main/config-ui/src/routes/db-migrate/index.tsx) Since you deployed manually (not with Helm), double-check that the lake backend pod has the right permissions and environment variables to connect to MySQL and execute migrations. Also, check the lake pod logs for any migration errors or permission issues. If the pod can't write to the database or is missing config, migrations won't run. Recent migration script changes have improved MySQL compatibility, so if you're using v1.0.2, you should be covered, but make sure your deployment matches the expected setup for DevLake. If you continue to see the migration prompt and can't proceed, focus on the lake pod logs and MySQL connectivity/configuration. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/f1d8baa5-5ba0-4690-8747-aa583143a9b0?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/f1d8baa5-5ba0-4690-8747-aa583143a9b0?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/f1d8baa5-5ba0-4690-8747-aa583143a9b0?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/f1d8baa5-5ba0-4690-8747-aa583143a9b0?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/f1d8baa5-5ba0-4690-8747-aa583143a9b0?feedback_type=hallucination) | [Report š](https://app.dosu.dev/response-feedback/f1d8baa5-5ba0-4690-8747-aa583143a9b0?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/f1d8baa5-5ba0-4690-8747-aa583143a9b0?feedback_type=other)</sup> [](https://app.dosu.dev/b4e8e847-d479-4541-83a8-d88d83fea5c9/ask?utm_source=githu b) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/incubator-devlake/issues/8613) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
