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.

[Bug]: Db Migration, creates table in postgres, but no data is migrated

See original GitHub issue

What is your BTCPay version?

BtcPay v1.7.9

How did you deploy BTCPay Server?

Run from source using dotnet run --no-launch-profile -c Release --project “.\BTCPayServer\BTCPayServer.csproj” --debuglog “C:\debug.log”

What happened?

So I created a postgres blank database “btcpayserver” and user for it Added this to the configuration

postgres=User ID=btcpay;Password=???;Application Name=btcpayserver;Host=127.0.0.1;Port=5432;Database=btcpayserver;

and commented out the “sqlitefile” config

How did you encounter this bug?

Ran btcpay with new postgres config for migration. The tables were created in the postgres database, however no data was migrated. When I access the btc pay server it was like accessing fresh instance, nothing migrated.

Relevant log output

nothing found in log file that suggested migration was running

What browser do you use?

No response

Additional information

No response

Are you sure this is a bug report?

  • I confirm this is a bug report

Issue Analytics

  • State:closed
  • Created 7 months ago
  • Comments:53 (26 by maintainers)

github_iconTop GitHub Comments

1reaction
mjlambcommented, Feb 22, 2023

Got you. Thanks for everything, your a rockstar! in the space!

1reaction
mjlambcommented, Feb 22, 2023

You will be pleased to see this -> info: BTCPayServer.Hosting.ToPostgresMigrationStartupTask: Migration to postgres from SQLite successful

Thank you very much for your time !

Read more comments on GitHub >

github_iconTop Results From Across the Web

rake db:migrate doesn't generate table in postgresql
Postgres does not read your schema file or migrations - rather migrations run SQL queries against your database. In this case a CREATE...
Read more >
php artisan migrate ran successfully but doe not create tables
I ran artisan migrate command successfully but I don't see any tables created in my database. Here is full background =>.
Read more >
Troubleshooting migration tasks in AWS Database Migration ...
Troubleshoot issues when migrating data using AWS Database Migration Service ... AWS DMS creates tables, primary keys, and in some cases unique indexes,...
Read more >
Preparing PostgreSQL for migration with Database ...
Starting a migration against a database that has tables without primary keys ... lacking a primary key, but the table will still be...
Read more >
Migration troubleshooting in development - Prisma
This guide describes how to resolve issues with Prisma Migrate in a development environment, which often involves resetting your database.
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