Skip to content

1.7.2

Latest
Compare
Choose a tag to compare
@nesitor nesitor released this 30 Jul 14:10
· 4 commits to main since this release

We are excited to announce our release for aleph-vm in version 1.7.2!

This update primarily focus on improving network stability and performance through crucial bug fixes related to instance network connectivity, HAProxy configurations, and timeout handling.

Bug Fixes:

  • Instance Network on Server Reboot: Fixed an issue where the instance network would not work after a server reboot. (PR #823)
  • HAProxy Fallback Server and Other Fixes: Addressed problems with the HAProxy fallback server configuration and other related issues, ensuring better service continuity. (PR #822)
  • Gradual Increase in Waiting Time (GH-814): Fixed a bug that caused a gradual increase in waiting time, likely improving responsiveness. (PR #819)
  • HAProxy Domain Mapping Issue: Resolved a specific issue with how HAProxy handles domain mapping. (PR #826)

Improvements:

  • Increased Server Timeout: The server timeout has been increased, potentially leading to more robust connections and fewer timeouts. (PR #825)
  • SSH Support for Custom domain HaProxy now handle SSH traffic redirection to your instance.

This update primarily focuses on enhancing the network resilience and stability of the Aleph VM. Key fixes include addressing network connectivity after reboots, improving HAProxy configurations for better failover, and resolving issues with waiting times and domain mapping. The increased server timeout also contributes to a more stable user experience.

What's Changed

Full Changelog: 1.7.1...1.7.2

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.7.2/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.7.2/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.7.2/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