You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by "mattias-pedersen (via GitHub)" <gi...@apache.org> on 2023/04/17 06:41:15 UTC

[GitHub] [incubator-devlake] mattias-pedersen opened a new issue, #4941: [Bug][Migration] error executing migration - v0.16.0-beta14

mattias-pedersen opened a new issue, #4941:
URL: https://github.com/apache/incubator-devlake/issues/4941

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### What happened
   
   While running the migrations i got this error: "Error 1091: Can't DROP 'deployment_id'; check that column/key exists"
   
   ### What do you expect to happen
   
   Smooth migration
   
   ### How to reproduce
   
   I have not clue how to reproduce this error. Was calling "devlake-lake" with endpoint "/proceed-db-migration" and got this error.
   
   ### Anything else
   
   This happens everytime i try to make the migration.
   
   ### Version
   
   v0.16.0
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: commits-unsubscribe@devlake.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] mattias-pedersen commented on issue #4941: [Bug][Migration] error executing migration - v0.16.0-beta14

Posted by "mattias-pedersen (via GitHub)" <gi...@apache.org>.
mattias-pedersen commented on issue #4941:
URL: https://github.com/apache/incubator-devlake/issues/4941#issuecomment-1510827821

   `
   time="2023-04-17 07:13:21" level=info msg=" [migrator] applying migratin script 20221120000001-add project issue metric tables"
   
   Mon, Apr 17 2023 9:13:21 am | time="2023-04-17 07:13:21" level=info msg="/go/pkg/mod/gorm.io/gorm@v1.24.1-0.20221019064659-5dd2bb482755/callbacks.go:134 Error 1091: Can't DROP 'deployment_id'; check that column/key exists
   Mon, Apr 17 2023 9:13:21 am | [0.395ms] [rows:0] ALTER TABLE `issues` DROP COLUMN `deployment_id`"
   Mon, Apr 17 2023 9:13:21 am | time="2023-04-17 07:13:21" level=error msg="HTTP 500 error
   Mon, Apr 17 2023 9:13:21 am | caused by: error executing migration
   Mon, Apr 17 2023 9:13:21 am | Wraps: (2) Error 1091: Can't DROP 'deployment_id'; check that column/key exists
   Mon, Apr 17 2023 9:13:21 am | Wraps: (3) Error 1091: Can't DROP 'deployment_id'; check that column/key exists
   Mon, Apr 17 2023 9:13:21 am | Error types: (1) *hintdetail.withDetail (2) *hintdetail.withDetail (3) *mysql.MySQLError"
   Mon, Apr 17 2023 9:13:21 am | [GIN] 2023/04/17 - 07:13:21 \| 500 \| 6.148372ms \| 10.88.197.161 \| GET "/proceed-db-migration"
   Mon, Apr 17 2023 9:13:55 am | time="2023-04-17 07:13:55" level=error msg="HTTP 428 error
   
   `


-- 
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: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] Startrekzky closed issue #4941: [Bug][Migration] error executing migration - v0.16.0-beta14

Posted by "Startrekzky (via GitHub)" <gi...@apache.org>.
Startrekzky closed issue #4941: [Bug][Migration] error executing migration - v0.16.0-beta14
URL: https://github.com/apache/incubator-devlake/issues/4941


-- 
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: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] klesh commented on issue #4941: [Bug][Migration] error executing migration - v0.16.0-beta14

Posted by "klesh (via GitHub)" <gi...@apache.org>.
klesh commented on issue #4941:
URL: https://github.com/apache/incubator-devlake/issues/4941#issuecomment-1512361350

   @warren830 please take a look at this


-- 
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: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] Startrekzky commented on issue #4941: [Bug][Migration] error executing migration - v0.16.0-beta14

Posted by "Startrekzky (via GitHub)" <gi...@apache.org>.
Startrekzky commented on issue #4941:
URL: https://github.com/apache/incubator-devlake/issues/4941#issuecomment-1552328385

   We're closing this issue due to inactivity. Feel free to reopen it if it still exists.


-- 
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: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] warren830 commented on issue #4941: [Bug][Migration] error executing migration - v0.16.0-beta14

Posted by "warren830 (via GitHub)" <gi...@apache.org>.
warren830 commented on issue #4941:
URL: https://github.com/apache/incubator-devlake/issues/4941#issuecomment-1521057250

   @mattias-pedersen can you share a screenshot of _devlake_migration_history in mysql? Or can you check if there is a record whose script_name is `modify tables for dora`


-- 
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: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-devlake] klesh commented on issue #4941: [Bug][Migration] error executing migration - v0.16.0-beta14

Posted by "klesh (via GitHub)" <gi...@apache.org>.
klesh commented on issue #4941:
URL: https://github.com/apache/incubator-devlake/issues/4941#issuecomment-1510808704

   @mattias-pedersen Hi, can you provide more detail, there should be logs showing the offending script. 


-- 
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: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org