This article explains how to update the BTCPay Server to the current version. How to make a BTCPay server update.
BTCPay Server Update
The BTCPay server is constantly being developed and updated. So are the various services, such as Transmuter, the Lightning services LND and C-Lightning, such as Ride the Lightning (RTL) and the numerous other services and programs that interact with the BTCPay server.
The current version of BTCPay Server and the other services can be found here: https://github.com/btcpayserver/btcpayserver-docker#support
If you see a different version on the bottom right of your BTCPay server page than on the Github page, then you should update.
You go to the Server Settings section and there to Maintenance.
There you click on Update.
If you get the message: “The server might restart soon if an update is available… (this page won’t reload automatically)”, then everything is fine.
After a while you reload the page and the new version number should be displayed in the lower right corner. At the same time, all other services will be updated as well, as shown on the Github version page.
It may be that the latest version is not always available here. These services can be updated only after they have been tested for compatibility with the BTCPay server. Those who feel it is important to update these services quickly as well can create an issues via Github and point out the urgency.
The following questions should be asked and answered by the applicant when creating the issue:
- Is your feature request related to a problem? Please describe.
- Describe the solution you’d like
- Provide examples
BTCPay update via Maintenance was NOT successful.
If it was not possible to perform an update via the maintenance page, a manual update can still be performed.
You have to log on to the server via terminal or PuTTY.
If you host your BTCPay server at Lunanode, you will find the access data in the Lunanode backend:
Then open the terminal or PuTTY window on your computer and enter the command ssh followed by the username, the @ sign and then the name of your server.
This should then look something like this:
Then you will be asked to enter your password.
Then you will be prompted to enter the word Yes.
To update the server, enter the following commands:
sudo su -
Don’t forget the hyphen after the su. If you then press Enter, a new update will be installed on your server.
After that, your BTCPay server and the corresponding services and programs should be up to date.