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.

No Webinterface if startup fails to contact coingecko (internet connection down) AND no auto resume of operation thereafter

See original GitHub issue

Describe the bug I noticed that during a power outage where my solar battery powers the house (with a small interruption, hence the reboot) and the DSL connection is still down, the btcpayserver does not resume normal operation even after the dsl comes back on.

Looking at the logs I noticed, that btcpay is not listening on it’s service port, the logs show this:

warn: PayServer:      Error while contacting exchange coingecko: Resource temporarily unavailable (api.coingecko.com:443)
warn: PayServer:      Error while contacting exchange coingecko: Resource temporarily unavailable (api.coingecko.com:443)
warn: PayServer:      Error while contacting exchange coingecko: Resource temporarily unavailable (api.coingecko.com:443)
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
info: Configuration:  Data Directory: /datadir
info: Configuration:  Configuration File: /datadir/Main/settings.config
info: BTCPayServer.Plugins.PluginManager: Loading plugins from /root/.btcpayserver/Plugins
info: BTCPayServer.Plugins.PluginManager: Adding and executing plugin BTCPayServer - 1.5.2.0
info: BTCPayServer.Plugins.PluginManager: Adding and executing plugin BTCPayServer.Plugins.Shopify - 1.5.2.0
info: Configuration:  Supported chains: BTC
info: Configuration:  BTC: Explorer url is http://nbxplorer:32838/
info: Configuration:  BTC: Cookie file is /root/.nbxplorer/Main/.cookie
info: Configuration:  Network: Mainnet
info: Configuration:  LogFile: /datadir/btcpay.log
info: Configuration:  Log Level: Debug

To Reproduce the bug Steps to reproduce the reported bug:

  1. on a locally running btcpay setup, disconnect DSL and power from your Pi
  2. reconnect power and wait for it to boot
  3. When trying to connect to it through the home network, you’ll notice a 503 error
  4. to resume normal operation when the DSL is back on you need to run btcpay-restart.sh

Expected behavior

I would have expected btcpayserver to bind to it’s port even if coingecko is unavailable or at least continue trying to reach coingecko and automatically restore normal operation upon resuming of the internet connection.

Your BTCPay Environment (please complete the following information):

  • BTCPay Server Version: v1.5.2.0
  • Deployment Method: Docker
  • Browser: Chrome

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
petzschcommented, Mar 3, 2023

no power outages as of recently. So the issue didn’t show up again. I would close it now and reopen if it happens again.

0reactions
pavlenexcommented, Mar 3, 2023

@petzsch Is this still an issue for you?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Coin Gecko App Not Working Problem Android & Ios
CoinGecko App #notopen # not working #notwork # CoinGecko With the help ... procedure which is very helpful for resolving this problem to...
Read more >
How do you deal with information and internet addiction?
I do something but on the computer. I issue `j w` on the terminal, which means journal write, to create a new time...
Read more >
1
It seems that the error comes from this line in my index.html file (which is needed to correctly retrieve data from Coin Gecko):....
Read more >
Changelog
Server: Cryptosettings error is not updated when tests do not pass. Server: Some of the database connections were not closed when performing transactions....
Read more >
Google Chrome Zero-Day Bugs Exploited Weeks Ahead of ...
North Korean threat actors exploited a remote code execution (RCE) zero-day vulnerability in Google's Chrome web browser weeks before the ...
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