[Bug]: Crash when accessing /register endpoint after a fresh install on Ubuntu
See original GitHub issueWhat 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:
- Created 9 months ago
- Comments:19 (17 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@raucao can you try this: In the BTCPayServer folder:
Then run
Better yet, just wanted to ensure this doesn’t come up again 😃