btcpayserver-docker icon indicating copy to clipboard operation
btcpayserver-docker copied to clipboard

Had a former version commit locked in, tried to update and it broke the server. Any way to fix this and not start from scratch?

Open CLimeyBLimey opened this issue 1 year ago • 0 comments

A couple months ago I was experiencing this issue: https://github.com/btcpayserver/btcpayserver-docker/issues/805

I did the suggested:

# cd btcpayserver-docker/
# git checkout cd0a73435c2bc8a8bd7c815611ef34c634ca3628
# btcpay-update.sh --skip-git-pull

Fast forward to today, everything is working fine but I want to update. I ran the following on my staging server to test:

# cd btcpayserver-docker
# git checkout master
# git pull
# btcpay-update.sh

It worked fine. I was happy, so I went to production and accidentally got 2 commands backwards, running:

# cd btcpayserver-docker
# git checkout master
# btcpay-update.sh
# git pull

So running btcpay-update.sh before git pull apparently broke it.

Now after updating hours ago, it was giving a Cloudflare 502 error. I thought it was just cloudflare and disabled proxying. Then I got a generic Nginx 502 page. Tried running setup again with the same env variables while cloudflare proxying was disabled, and after a couple server reboots it worked. After logging in it said it was syncing and then after a bit, I refresh and get a 500 error. I've restarted the server multiple times with the same outcome. Cloudflare proxied or not doesn't matter. Everything will start, can login to web interface, but after some minutes it will start giving 500 errors on any request.

I'm attaching the log file but is there any way I can reinstall the docker image and everything in it without reinstalling/re-verifying the blockchain, and having a week delay in BTC payments? BTCPayServer Fail log.txt

CLimeyBLimey avatar Sep 29 '23 21:09 CLimeyBLimey