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.

[Bug]: Crash when accessing /register endpoint after a fresh install on Ubuntu

See original GitHub issue

What is your BTCPay version?

Running v1.7.3

How did you deploy BTCPay Server?

I have followed the Extended Manual Setup guide to install on Ubuntu. All the steps seemingly succeeded.

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.4 LTS
Release:        20.04
Codename:       focal

What happened?

Once the server is up and running (syslog does not show any errors) I try to GET the main page, get redirected to /register and when the browser requests /register the server crashes.

Logs attached below (trimmed because the stack dump is huge).

How did you encounter this bug?

See above.

Relevant log output

Jan 01 18:11:52 btcnode run.sh[55888]: info: Configuration:  Data Directory: /home/bitcoin/.btcpayserver/Main
Jan 01 18:11:52 btcnode run.sh[55888]: info: Configuration:  Configuration File: /etc/btcpay/btcpay.config
Jan 01 18:11:53 btcnode run.sh[55888]: info: BTCPayServer.Plugins.PluginManager: Loading plugins from /home/bitcoin/.btcpayserver/Plugins
Jan 01 18:11:53 btcnode run.sh[55888]: info: BTCPayServer.Plugins.PluginManager: Adding and executing plugin BTCPayServer - 1.7.3.0
Jan 01 18:11:53 btcnode run.sh[55888]: info: BTCPayServer.Plugins.PluginManager: Adding and executing plugin BTCPayServer.Plugins.Shopify - 1.7.3.0
Jan 01 18:11:53 btcnode run.sh[55888]: info: BTCPayServer.Plugins.PluginManager: Adding and executing plugin BTCPayServer.Plugins.Crowdfund - 1.7.3.0
Jan 01 18:11:53 btcnode run.sh[55888]: info: BTCPayServer.Plugins.PluginManager: Adding and executing plugin BTCPayServer.Plugins.PayButton - 1.7.3.0
Jan 01 18:11:53 btcnode run.sh[55888]: info: BTCPayServer.Plugins.PluginManager: Adding and executing plugin BTCPayServer.Plugins.PointOfSale - 1.7.3.0
Jan 01 18:11:53 btcnode run.sh[55888]: info: BTCPayServer.Plugins.PluginManager: Adding and executing plugin BTCPayServer.Plugins.Custodians.Fake - 1.0.0.0
Jan 01 18:11:53 btcnode run.sh[55888]: info: Configuration:  Supported chains: BTC
Jan 01 18:11:53 btcnode run.sh[55888]: info: Configuration:  BTC: Explorer url is http://127.0.0.1:24444/
Jan 01 18:11:53 btcnode run.sh[55888]: info: Configuration:  BTC: Cookie file is /home/bitcoin/.nbxplorer/Main/.cookie
Jan 01 18:11:53 btcnode run.sh[55888]: info: Configuration:  Network: Mainnet
Jan 01 18:11:55 btcnode run.sh[55888]: info: Configuration:  Root Path: /
Jan 01 18:11:56 btcnode run.sh[55888]: info: Configuration:  Connection to NBXplorer's database successful, dashboard and reporting features activated.
Jan 01 18:11:56 btcnode run.sh[55888]: info: PayServer:      Starting listening NBXplorer (BTC)
Jan 01 18:11:56 btcnode run.sh[55888]: info: PayServer:      Start watching invoices
Jan 01 18:11:56 btcnode run.sh[55888]: info: PayServer:      Starting payment request expiration watcher
Jan 01 18:11:56 btcnode run.sh[55888]: info: PayServer:      BTC: Checking if any pending invoice got paid while offline...
Jan 01 18:11:56 btcnode run.sh[55888]: info: PayServer:      0 pending payment requests being checked since last run
Jan 01 18:11:56 btcnode run.sh[55888]: info: Configuration:  Now listening on: http://127.0.0.1:23000
Jan 01 18:11:56 btcnode run.sh[55888]: info: PayServer:      BTC: 0 payments happened while offline
Jan 01 18:11:56 btcnode run.sh[55888]: info: PayServer:      Connected to WebSocket of NBXplorer (BTC)
Jan 01 18:12:36 btcnode run.sh[55888]: fail: Microsoft.AspNetCore.Server.Kestrel: Connection id "0HMNC2BNDTR2R", Request id "0HMNC2BNDTR2R:00000002": An unhandled exception was thrown by th
e application.
Jan 01 18:12:36 btcnode run.sh[55888]: System.InvalidOperationException: Cannot find compilation library location for package 'System.Security.Cryptography.Pkcs'
Jan 01 18:12:36 btcnode run.sh[55888]:    at Microsoft.Extensions.DependencyModel.CompilationLibrary.ResolveReferencePaths(ICompilationAssemblyResolver resolver, List`1 assemblies)
Jan 01 18:12:36 btcnode run.sh[55888]:    at Microsoft.Extensions.DependencyModel.CompilationLibrary.ResolveReferencePaths()
Jan 01 18:12:36 btcnode run.sh[55888]:    at Microsoft.AspNetCore.Mvc.ApplicationParts.AssemblyPartExtensions.<>c.<GetReferencePaths>b__0_0(CompilationLibrary library)
Jan 01 18:12:36 btcnode run.sh[55888]:    at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.MoveNext()

What browser do you use?

Happens with curl, safari, chrome…

Additional information

Possibly related to https://github.com/btcpayserver/btcpayserver/pull/4113 or to https://github.com/btcpayserver/btcpayserver/issues/3258

Are you sure this is a bug report?

  • I confirm this is a bug report

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:19 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
NicolasDoriercommented, Feb 16, 2023

@raucao can you try this: In the BTCPayServer folder:

dotnet publish --no-cache -c Release

Then run

cd bin\Release\net6.0\publish\
dotnet BTCPayServer.dll
0reactions
dennisreimanncommented, Feb 16, 2023

Better yet, just wanted to ensure this doesn’t come up again 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fresh install of Ubuntu crashes after booting
I'm trying to get a fresh install of Ubuntu to work on a Fujitsu Esprimo e910. I have prepared a USB installation media...
Read more >
Fresh install of Ubuntu keeps crashing after booting
After the installation is done, it asks me to reboot. But one or two seconds after the Ubuntu Desktop comes up on screen...
Read more >
Ubuntu keeps crashing after a very difficult installation
EDAC pnd2: Failed to register device with error -22. This one seems related to the RAM. Since you are using new RAM here,...
Read more >
Bug #1767720 “Ubiquity crashed during install of 18.04 with ...
Ubiquity consistently crashes during install. I use the "Something else" option. It crashes after I've entered the user information and ...
Read more >
aws vpn - AWSVPNCLIENT On Ubuntu dissapear/crash
After installation of AWSVPNClient on Ubuntu, when I open, it disappears or crashes. This doesn't not allow me to import the VPN file...
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