Skip to content

1.8.0

Latest

Choose a tag to compare

@nesitor nesitor released this 13 Oct 13:22
· 10 commits to main since this release

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 /notify endpoint. (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/allocation endpoint now includes stopped VMs in its response. (PR #827)
  • New Message Statuses: Added handling for two new message statuses. (PR #829)
  • aleph_message Upgrade: Upgraded the aleph_message dependency to version 1.0.5. (PR #837)
  • Disable IPFS service: Disable unused IPFS service to run it by default. (PR #838)

What's Changed

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.deb

On 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.deb

On 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.deb

2A. 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-supervisor

Alternatively 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.sh
Manual 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-supervisor

Verify that the service has stopped:

sudo systemctl status aleph-vm-supervisor

Step 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 caddy

Check that Caddy is no longer running:

ps aux | grep caddy

Step 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