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.

NBXplorer has been stuck for a week on ltc, and btc "the node is starting"

See original GitHub issue

Describe the problem/bug LTC NBXplorer synchronizing on popup screen has been stuck at same block for three weeks. BTC will say nbxplorer is at height 9 and the node is starting for hours, than eventually node will start to sync, but nbxplorer is not changing block height.

Your environment

  • Version of BTCPay Server: 1.0.3.144
  • Deployment method: docker / own hardware
  • Other relevant environment details:

Logs (if applicable) 019-12-05 00:02:01.193 +00:00 [ERR] BTC: NBXplorer error Connection refused 2019-12-05 00:02:03.525 +00:00 [ERR] LTC: NBXplorer error Connection refused 2019-12-05 00:02:06.653 +00:00 [INF] NBXplorer BTC: Synching => NotConnected 2019-12-05 00:02:06.653 +00:00 [INF] NBXplorer LTC: Synching => NotConnected 2019-12-05 00:02:06.657 +00:00 [ERR] BTC: NBXplorer error Connection refused 2019-12-05 00:02:06.658 +00:00 [ERR] LTC: NBXplorer error Connection refused 2019-12-05 00:03:06.664 +00:00 [ERR] BTC: NBXplorer error Connection refused 2019-12-05 00:03:06.666 +00:00 [ERR] LTC: NBXplorer error Connection refused 2019-12-05 00:03:18.367 +00:00 [INF] CssThemeManagerHostedService successfully exited… 2019-12-05 00:03:19.852 +00:00 [INF] CheckConfigurationHostedService successfully exited… 2019-12-05 00:03:20.519 +00:00 [INF] NBXplorerListener successfully exited… 2019-12-05 00:03:27.372 +00:00 [INF] LightningListener successfully exited… 2019-12-05 00:03:28.178 +00:00 [INF] Stop watching invoices 2019-12-05 00:03:29.415 +00:00 [INF] RatesHostedService successfully exited… 2019-12-05 00:03:38.310 +00:00 [INF] DynamicDnsHostedService successfully exited… 2019-12-05 00:03:38.310 +00:00 [INF] TorServicesHostedService successfully exited… 2019-12-05 00:36:06.270 +00:00 [INF] BTC: Explorer url is http://nbxplorer:32838/ 2019-12-05 00:36:06.376 +00:00 [INF] BTC: Cookie file is /root/.nbxplorer/Main/.cookie 2019-12-05 00:36:06.696 +00:00 [INF] LTC: Explorer url is http://nbxplorer:32838/ 2019-12-05 00:36:06.703 +00:00 [INF] LTC: Cookie file is /root/.nbxplorer/Main/.cookie 2019-12-05 00:36:08.676 +00:00 [INF] SSH settings detected, testing connection to root@host.docker.internal on port 22 … 2019-12-05 00:36:08.821 +00:00 [INF] Starting listening NBXplorer (BTC) 2019-12-05 00:36:09.581 +00:00 [INF] Starting listening NBXplorer (LTC) 2019-12-05 00:36:09.646 +00:00 [INF] Start watching invoices 2019-12-05 00:36:13.586 +00:00 [INF] Starting payment request expiration watcher 2019-12-05 00:36:19.220 +00:00 [INF] NBXplorer LTC: NotConnected => Synching 2019-12-05 00:36:19.240 +00:00 [INF] NBXplorer BTC: NotConnected => Synching 2019-12-05 00:36:19.375 +00:00 [INF] 0 pending payment requests being checked since last run 2019-12-05 00:36:20.925 +00:00 [INF] SSH connection succeeded 2019-12-05 00:36:22.306 +00:00 [WRN] Error while contacting poloniex: The operation has timed out. 2019-12-05 00:36:22.306 +00:00 [WRN] Error while contacting binance: The operation has timed out. 2019-12-05 00:36:22.308 +00:00 [WRN] Error while contacting bittrex: The operation has timed out. 2019-12-05 00:36:22.309 +00:00 [WRN] Error while contacting ndax: The operation has timed out. 2019-12-05 00:36:22.310 +00:00 [WRN] Error while contacting hitbtc: The operation has timed out. 2019-12-05 02:34:57.190 +00:00 [ERR] An exception occurred in the database while iterating the results of a query for context type ‘BTCPayServer.Data.ApplicationDbContext’. System.Threading.Tasks.TaskCanceledException: A task was canceled. at Microsoft.EntityFrameworkCore.Internal.ConcurrencyDetector.EnterCriticalSectionAsync(CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.Internal.AsyncLinqOperatorProvider.ExceptionInterceptor1.EnumeratorExceptionInterceptor.MoveNext(CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteSingletonAsyncQuery[TResult](QueryContext queryContext, Func2 compiledQuery, IDiagnosticsLogger1 logger, Type contextType) System.Threading.Tasks.TaskCanceledException: A task was canceled. at Microsoft.EntityFrameworkCore.Internal.ConcurrencyDetector.EnterCriticalSectionAsync(CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.Internal.AsyncLinqOperatorProvider.ExceptionInterceptor1.EnumeratorExceptionInterceptor.MoveNext(CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteSingletonAsyncQuery[TResult](QueryContext queryContext, Func2 compiledQuery, IDiagnosticsLogger1 logger, Type contextType) 2019-12-05 02:34:59.838 +00:00 [ERR] Connection id “0HLRP5DCSI8HD”, Request id “0HLRP5DCSI8HD:00000001”: An unhandled exception was thrown by the application. System.Threading.Tasks.TaskCanceledException: A task was canceled. at Microsoft.EntityFrameworkCore.Internal.ConcurrencyDetector.EnterCriticalSectionAsync(CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.Internal.AsyncLinqOperatorProvider.ExceptionInterceptor1.EnumeratorExceptionInterceptor.MoveNext(CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteSingletonAsyncQuery[TResult](QueryContext queryContext, Func2 compiledQuery, IDiagnosticsLogger1 logger, Type contextType) at Microsoft.AspNetCore.Identity.UserManager1.FindByEmailAsync(String email) at BTCPayServer.Controllers.AccountController.Login(LoginViewModel model, String returnUrl) in /source/BTCPayServer/Controllers/AccountController.cs:line 107 at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at System.Threading.Tasks.ValueTask1.get_Result() at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync() at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync() at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync() at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResourceFilter() at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context) at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeFilterPipelineAsync() at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeAsync() at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware.Invoke(HttpContext context) at BTCPayServer.Hosting.BTCPayMiddleware.Invoke(HttpContext httpContext) in /source/BTCPayServer/Hosting/BTCpayMiddleware.cs:line 75 at BTCPayServer.Hosting.HeadersOverrideMiddleware.Invoke(HttpContext httpContext) in /source/BTCPayServer/Hosting/HeadersOverrideMiddleware.cs:line 31 at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication1 application) 2019-12-05 02:35:08.254 +00:00 [INF] User logged in…

Annotation 2019-12-04 193854

Annotation 2019-12-04 193955

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:18 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
morphologicscommented, Jan 22, 2020

It’s all running on one machine. Just now applied your updated and PR from yesterday with upgrade to error logging and tested with the bitcoind bandwidth throttling enabled. NBXplorer now connects fine without errors. Cool! and much love…

On 21 January 2020 2:05:57 PM GMT+07:00, Nicolas Dorier notifications@github.com wrote:

@morphologics I advise you against hosting bitcoin core and nbxplorer on different machine. Also exposing Bitcoin RPC on internet is dangerous.

If you host nbx and bitcoin core on the same machine, this would solve completely the problem.

That said, most of the traffic in bitcoind is transaction propagation, which you can control by limiting the number of connection (by default 8). If you set that to 4, you should have twice less traffic. I don’t remember the command line arg.

– You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/btcpayserver/btcpayserver/issues/1215#issuecomment-576546787

1reaction
bolatovumarcommented, Dec 6, 2019

Sometimes restarting the server helps. I had this issue at some point as well (with BTC) and eventually it went away after a server restart.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Synchronization FAQ
I'm running a full node and have a synched blockchain, can BTCPay use it so that it doesn't have to do a full...
Read more >
Bitcoin node stuck in Starting state : r/getumbrel
However, my node was disconnected from power while I was out of town, and I think the blockchain may have been corrupted.
Read more >
Nicolas Dorier (@NicolasDorier) / X
So many people focus on Bitcoin being a discovery that started with the Whitepaper. The reality is that the whitepaper has been written...
Read more >
Hosting BTCPayserver (#33750) · Issues - Tor gitLab
BTCPayserver suggests to deploy and use the docker configuration in production. ... (NBXplorer),; A database (PostgreSQL or SQLite),; A full node (eg.
Read more >
Bitcoin Node stuck "Starting"
Currently i have 284Gb available but my bitcoin node don't seem to start. I'm leaving a few screenshots and some Umbrels logs to...
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