Deployment failure due to db-migrate
See original GitHub issueDescribe the bug
We’ve updated to v0.5.1 and are having trouble deploying the TRE. The deployment fails with
make: *** [/home/vscode/AzureTRE/Makefile:344: db-migrate] Error 1
HTTP/1.1 400 Bad Request
Date: Tue, 18 Oct 2022 16:52:04 GMT
Content-Type: text/plain; charset=utf-8
Content-Length: 23
Connection: keep-alive
Server: uvicorn
list index out of range
Error while migrating state store
Error: Process completed with exit code 2.
I’ve dug into this a little more and the 400 occurs at https://github.com/microsoft/AzureTRE/blob/316b9d168a05c880f4f4ae168eb2fb3e699e3085/devops/scripts/migrate_state_store.sh#L81
I’m pretty certain the secrets are right, but could be proved otherwise!
Steps to reproduce
- Run deployment pipeline https://github.com/microsoft/AzureTRE-Deployment/blob/main/.github/workflows/deploy_tre.yml
cc: @marrobi
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Problem with Postgresql db:migrate when deploy #230 - GitHub
01 PG::ConnectionBad: FATAL: password authentication failed for user "customuser" ... Tasks: TOP => db:migrate I can normally login to psq.
Read more >blockchain - UNABLE TO MIGRATE (Error: Deployment Failed)
It looks like this issue: https://github.com/ethereum/go-ethereum/issues/19424. Because you were sending LES/1 version of transaction ...
Read more >EF Core RC2 migrations failing during publish/deployment
1>Publish failed due to build errors. Check the error list for more details. Everything works perfectly if I click Preview Migration under Entity...
Read more >Trying to apply migration script - Redgate forums
He clicks apply, and immediately this error shows up: "Failed to apply migrations. Unable to load deployment script template Migration"
Read more >Migration may fail due to a previous migration failure because ...
When the migration process for a federated node fails because the wrong deployment manager is running, the migration tool will log the error ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@t-young31 we think there’s a bug where the install action of the firewall returns an ok status despite failing. This is being fixed as part of this: https://github.com/microsoft/AzureTRE/pull/2747 CC: @stuartleeks
just to close the loop on this one – once the firewall was deployed successfully the migration worked just fine. thanks for the tips!