question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deployment failure due to db-migrate

See original GitHub issue

Describe 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

  1. Run deployment pipeline https://github.com/microsoft/AzureTRE-Deployment/blob/main/.github/workflows/deploy_tre.yml

cc: @marrobi

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
tamirkamaracommented, Oct 19, 2022

@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

0reactions
t-young31commented, Oct 19, 2022

just to close the loop on this one – once the firewall was deployed successfully the migration worked just fine. thanks for the tips!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found