NBXplorer error Connection refused & Name or service not known
See original GitHub issueDescribe the bug Node is stuck syncing after update from v1.2.1.0 to v1.2.3.0 BTC The node is offline Last error: Name or service not known
To Reproduce the bug
Expected behavior
Screenshots
Your BTCPay Environment (please complete the following information):
- BTCPay Server Version: v1.2.3.0
- Deployment Method: Docker, LunaNode
- Browser: Chrome
- nbxplorer: 2.2.7 Logs (if applicable)
2021-09-19 21:43:42.848 +00:00 [INF] Running SSH command: . /etc/profile.d/btcpay-env.sh && nohup btcpay-restart.sh > /dev/null 2>&1 & disown 2021-09-19 21:43:46.381 +00:00 [INF] DelayedTransactionBroadcasterHostedService successfully exited... 2021-09-19 21:43:46.383 +00:00 [INF] Internal Socks HTTP Proxy closed 2021-09-19 21:43:46.384 +00:00 [INF] TorServices successfully exited... 2021-09-19 21:43:46.391 +00:00 [INF] CheckConfigurationHostedService successfully exited... 2021-09-19 21:43:46.423 +00:00 [INF] PullPaymentHostedService successfully exited... 2021-09-19 21:43:50.958 +00:00 [INF] NBXplorerListener successfully exited... 2021-09-19 21:43:50.966 +00:00 [INF] LightningListener successfully exited... 2021-09-19 21:43:50.970 +00:00 [INF] Stop watching invoices 2021-09-19 21:43:54.324 +00:00 [INF] RatesHostedService successfully exited... 2021-09-19 21:43:54.381 +00:00 [INF] DynamicDnsHostedService successfully exited... 2021-09-19 21:43:54.403 +00:00 [INF] NewVersionCheckerHostedService successfully exited... 2021-09-19 21:43:54.406 +00:00 [INF] DbMigrationsHostedService successfully exited... 2021-09-19 21:44:24.520 +00:00 [INF] BTC: Explorer url is http://nbxplorer:32838/ 2021-09-19 21:44:24.731 +00:00 [INF] BTC: Cookie file is /root/.nbxplorer/Main/.cookie 2021-09-19 21:44:25.340 +00:00 [INF] Internal Socks HTTP Proxy listening at http://127.0.0.1:44136/ 2021-09-19 21:44:25.491 +00:00 [INF] SSH settings detected, testing connection to root@host.docker.internal on port 22 ... 2021-09-19 21:44:25.613 +00:00 [INF] Starting listening NBXplorer (BTC) 2021-09-19 21:44:25.746 +00:00 [INF] Start watching invoices 2021-09-19 21:44:26.074 +00:00 [INF] Starting payment request expiration watcher 2021-09-19 21:44:27.203 +00:00 [INF] 0 pending payment requests being checked since last run 2021-09-19 21:44:27.362 +00:00 [ERR] BTC: NBXplorer error
Connection refused2021-09-19 21:44:28.671 +00:00 [INF] SSH connection succeeded 2021-09-19 21:45:27.496 +00:00 [ERR] BTC: NBXplorer error
Name or service not known2021-09-19 21:46:27.614 +00:00 [ERR] BTC: NBXplorer error
Name or service not known2021-09-19 21:47:27.731 +00:00 [ERR] BTC: NBXplorer error
Name or service not known2021-09-19 21:48:27.848 +00:00 [ERR] BTC: NBXplorer error
Name or service not known2021-09-19 21:49:27.968 +00:00 [ERR] BTC: NBXplorer error
Name or service not known``
$ docker logs --tail 100 generated_nbxplorer_1
info: Configuration: Data Directory: /datadir info: Configuration: Configuration File: /datadir/Main/settings.config info: Configuration: Network: Mainnet info: Configuration: Supported chains: BTC info: Configuration: DBCache: 50 MB info: Configuration: Network: Mainnet info: Configuration: Supported chains: BTC info: Configuration: DBCache: 50 MB info: Explorer: Defragmenting transaction tables... info: Explorer: Defragmentation succeed, 0 bytes saved info: Explorer: Applying migration if needed, do not close NBXplorer... info: Explorer: BTC: OutPoint migration was interupted last time... info: Explorer: BTC: Restarting the Outpoint Migration... Unhandled exception. System.FormatException: A uint256 must be 64 characters at NBitcoin.uint256..ctor(String str) at NBXplorer.TrackedTransactionKey.Parse(String str) in /source/NBXplorer/TrackedTransaction.cs:line 155 at NBXplorer.Repository.MigrateOutPoints(String directory, CancellationToken cancellationToken) at NBXplorer.Repository.MigrateOutPoints(String directory, CancellationToken cancellationToken) in /source/NBXplorer/Repository.cs:line 1485 at NBXplorer.RepositoryProvider.StartAsync(CancellationToken cancellationToken) in /source/NBXplorer/Repository.cs:line 139 at Microsoft.AspNetCore.Hosting.HostedServiceExecutor.ExecuteAsync(Func
2 callback, Boolean throwOnFirstFailure)
at Microsoft.AspNetCore.Hosting.WebHost.StartAsync(CancellationToken cancellationToken)
at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token, String startupMessage)
at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token, String startupMessage)
at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token)
at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host)
at NBXplorer.Program.Main(String[] args) in /source/NBXplorer/Program.cs:line 60
`
Additional context
Bitcoin Core is fully synced
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (7 by maintainers)
Top GitHub Comments
@pretyflaco this bug was really specific for the corruption you got a while ago. Normally you won’t have such problems anymore, one reason I migrated to postgres for NBX is exactly to prevent the kind of corruption your install got.
@NicolasDorier it’s working again, thank you !