We are excited to announce our release for aleph-vm in version 1.8.0!
This update introduces support of new Credits payment method and resolves some network and payment-related bugs, improving the stability and functionality of the Aleph VM.
New Features:
- Credits Payment Method: Implemented the 'Credits' payment method for usage tracking and billing. (PR #830)
- Credits Payment on Notify Endpoint: Integrated the Credits payment method into the
/notifyendpoint. (PR #834)
Bug Fixes:
- HAProxy VM Local IP Check: Fixed a bug in the HAProxy check for VM local IP addresses. (PR #831)
- IPv4 HTTPS Forwarding: Resolved an issue where IPv4 HTTPS forwarding was not working correctly. (PR #832)
- Broken Documentation Links: Fixed several broken links within the documentation. (PR #828)
- Hold and Credit Balance Retrieval: Fixed an issue with correctly retrieving a user's hold and credit balance. (PR #835)
Improvements:
- Stopped VM in Allocation Endpoint: The
/control/allocationendpoint now includes stopped VMs in its response. (PR #827) - New Message Statuses: Added handling for two new message statuses. (PR #829)
aleph_messageUpgrade: Upgraded thealeph_messagedependency to version1.0.5. (PR #837)- Disable IPFS service: Disable unused IPFS service to run it by default. (PR #838)
What's Changed
- Fix haproxy vm local ip check by @aliel in #831
- /control/allocation now return stopped vm by @olethanh in #827
- fix: Broken docs links by @RezaRahemtola in #828
- Fix IPv4 https forwarding not working by @olethanh in #832
- Handle 2 new message status by @nesitor in #829
- Implement credits payment method by @nesitor in #830
- Implement Credits payment on Notify endpoint by @nesitor in #834
- Upgrade
aleph_messageversion to1.0.5by @nesitor in #837 - Fix getting hold and credit balance of user by @olethanh in #835
- Disable unused IPFS service by @nesitor in #838
Full Changelog: 1.7.2...1.8.0
How to upgrade
1. Upgrade the packages
This part did not change, download and install the new package as usual.
On Debian 12 (Bookworm):
rm -f /opt/aleph-vm.debian-12.deb
wget -P /opt https://github.com/aleph-im/aleph-vm/releases/download/1.8.0/aleph-vm.debian-12.deb
apt install /opt/aleph-vm.debian-12.debOn Ubuntu 22.04 (Jammy Jellyfish):
sudo rm -f /opt/aleph-vm.ubuntu-22.04.deb
sudo wget -P /opt https://github.com/aleph-im/aleph-vm/releases/download/1.8.0/aleph-vm.ubuntu-22.04.deb
sudo apt install /opt/aleph-vm.ubuntu-22.04.debOn Ubuntu 24.04 (Noble Numbat):
sudo rm -f /opt/aleph-vm.ubuntu-24.04.deb
sudo wget -P /opt https://github.com/aleph-im/aleph-vm/releases/download/1.8.0/aleph-vm.ubuntu-24.04.deb
sudo apt install /opt/aleph-vm.ubuntu-24.04.deb2A. Apply last HAProxy Configuration (if you already did the migration to HAProxy.)
If your server was previously configured with last version, and you are having issues with metrics and IPv6, only apply last version configuration on HAProxy and restart it, this should solve the issue.
ln -fs /etc/haproxy/haproxy-aleph.cfg /etc/haproxy/haproxy.cfg
sudo systemctl restart haproxy
sudo systemctl restart aleph-vm-supervisorAlternatively if the migration still has issue run the automatic configuration script documented below, it should fix them.
2B. Migrate from Caddy to HAProxy Configuration (if you did not migrate to HAProxy beforehand)
If your server was previously configured with Caddy, you can migrate to the HAProxy + Certbot setup using the steps
below. This configuration supports HTTPS and provides a secure reverse-proxy setup. The existing Caddy setup will remain
intact until you have tested and verified the HAProxy setup. Once verified, you may optionally remove the Caddy
package.
Automated setup via script
You can automate the migation using that script:
wget https://gist.githubusercontent.com/aliel/6051c2d573e53440f52777f247d5b735/raw/setup_haproxy.sh
chmod +x setup_haproxy.sh
./setup_haproxy.shManual migrations.
Alternatively, you can do the migration manually
Step 1: Stop the aleph-vm-supervisor Service
Before making changes, stop the aleph-vm-supervisor service managed by systemd to ensure a smooth migration process.
sudo systemctl stop aleph-vm-supervisorVerify that the service has stopped:
sudo systemctl status aleph-vm-supervisorStep 2: Stop Caddy Without Removing Its Configuration
Stop Caddy to prevent conflicts. Do not remove its configuration yet, so you can revert to Caddy if needed.
sudo systemctl stop caddy
sudo systemctl disable caddyCheck that Caddy is no longer running:
ps aux | grep caddyStep 3: Install HAProxy
Follow this link with the instructions to install and setup HAProxy:
For Debian: https://docs.aleph.cloud/nodes/compute/installation/debian-12/#_4-install-a-reverse-proxy
For Ubuntu: https://docs.aleph.cloud/nodes/compute/installation/ubuntu-24.04/#_4-install-a-reverse-proxy