NBXplorer has been stuck for a week on ltc, and btc "the node is starting"
See original GitHub issueDescribe 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, Func
2 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.ExceptionInterceptor
1.EnumeratorExceptionInterceptor.MoveNext(CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteSingletonAsyncQuery[TResult](QueryContext queryContext, Func2 compiledQuery, IDiagnosticsLogger
1 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, Func
2 compiledQuery, IDiagnosticsLogger1 logger, Type contextType) at Microsoft.AspNetCore.Identity.UserManager
1.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](IHttpApplication
1 application)
2019-12-05 02:35:08.254 +00:00 [INF] User logged in…
Issue Analytics
- State:
- Created 4 years ago
- Comments:18 (13 by maintainers)
Top GitHub Comments
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:
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.