Virtualmin installation error on almalinux and rockylinux

SYSTEM INFORMATION
OS type and version Almalinux 9 / Rocky 9 Tested on both with separate servers.
Virtualmin version latest

Installing on a barebone dedicated server. No proxy. used the same command 10days back and was working.

[root@almalinux987 ~]# sudo sh -c "$(curl -fsSL https://software.virtualmin.com/gpl/scripts/virtualmin-install.sh)" -- --bundle LEMP -m
[INFO] Installation log is written to /root/virtualmin-install.log

  Welcome to the Virtualmin GPL installer, version 7.5.2

  This script must be run on a freshly installed supported OS. It does not
  perform updates or upgrades (use your system package manager) or license
  changes (use the "virtualmin change-license" command).

  The systems currently supported by the install script are:

    Red Hat Enterprise Linux and derivatives
      - RHEL 8 and 9 on x86_64
      - Alma and Rocky 8 and 9 on x86_64
      - CentOS 7 on x86_64
      
    Debian Linux and derivatives
      - Debian 10, 11 and 12 on i386 and amd64
      - Ubuntu 20.04 LTS, 22.04 LTS and 24.04 LTS on i386 and amd64
      
  If your OS/version/arch is not listed, installation will fail. More
  details about the systems supported by the script can be found here:

    https://www.virtualmin.com/os-support

  The selected package bundle is LEMP and the size of install is
  minimal. It will require up to 1 GB of disk space.

  Exit and re-run this script with --help flag to see available options.

 Continue? (y/n) y

▣◻◻◻ Phase 1 of 4: Check
Checking system time                                                         ✔ 
Checking Perl installation                                                   ✔ 
Checking CA certificates package                                             ✔ 
Checking HTTP client                                                         ✔ 
Checking GPG package                                                         ✔ 

▣▣◻◻ Phase 2 of 4: Setup
Installing core plugins for package manager                                  ✔ 
Downloading Virtualmin 7 release package                                     ✔ 
Installing Virtualmin 7 release package                                      ✔ 

▣▣▣◻ Phase 3 of 4: Installation
Installing EPEL release package                                              ✔ 
Enabling CRB package repository                                              ✔ 
Cleaning up software repo metadata                                           ✔ 
Checking and installing system package updates                               ✔ 
Installing dependencies and system packages                                  ✔ 
Installing Virtualmin 7 and all related packages                             ✔ 
Installing Virtualmin 7 related package updates                              ✔ 

▣▣▣▣ Phase 4 of 4: Configuration
[1/17] Configuring Bind                                                      ✔ 
[2/17] Configuring Dovecot                                                   ✔ 
[3/17] Configuring Etckeeper                                                 ✔ 
[4/17] Configuring Firewalld                                                 ✔ 
[5/17] Configuring MariaDB                                                   ✔ 
[6/17] Configuring Nginx                                                     ✔ 
[7/17] Configuring Postfix                                                   ✔ 
[8/17] Configuring ProFTPd                                                  ▒▒▒[21/Dec/2024:12:48:17 +0000] Systemd service proftpd does not exist init/init-lib.pl (line 703)
Error
-----
Systemd service proftpd does not exist init/init-lib.pl (line 703)
-----
▣▣▣ Cleaning up

[WARNING] The following errors occurred during installation:

  ◉ Postinstall configuration returned an error.

virtualmin-install.log

Just to clear this up. You are using Alma Linux according to the command prompt.

Have you ALSO tried this on Rocky or are you just lumping the two together in a generic sense?

tried on both rocky and alma. same error.

I tested on Vultr, I get the same error using that command

Why didn’t proftpd install? Search for proftpd in the virtualmin-install.log and see what errors occurred.

Hmm, not installed by the log
Is proftp in the minimal?

Good eye.

@Ilia broke it. Fix to drop ProFTPD from minimal install · virtualmin/virtualmin-lamp-stack-ubu@d168e2a · GitHub

Ilia, if you’re dropping ProFTPd from the minimal bundle, you need to remove it from the configuration stage in the Virtualmin-Config MiniLAMP and MiniLEMP bundles, too.

Short term, if you want to get past this, do the following:

dnf install proftpd
virtualmin config-system --bundle MiniLEMP

Or, on Debian/Ubuntu:

apt install  proftpd-basic proftpd-mod-crypto
virtualmin config-system --bundle MiniLEMP

That should make everything happy. I think.

1 Like

I guess we should make the configure stage skip steps if a package isn’t installed rather than bailing, and maybe give a better warning.

What’s the command for rocky? dnf failed

Oops, sorry I thought we were talking about Ubuntu.

The package is just proftpd on Rocky/Alma, I’m pretty sure.

Yep that fixed it

is it gonna fix soon or will take time? i will stick with the default installer as i am afraid if additional fix conflict with any configuration. can we have any eta?

I don’t know how long it’ll be.

If you want to be absolutely sure everything is correct, you can just do a fresh OS installation, then install postfix, and then run the Virtualmin install script. That will be identical to an install done before Ilia removed that dependency.

1 Like

let’s give @Ilia a treat so he fix it asap as there would be thousands install getting disrupted in-between the official fix.

@Joe, thanks for pointing this out! Now fixed in the latest commits to Virtualmin Config, along with an improved general approach to deciding which packages should be configured.

There’s no need to install the ProFTPd package. We can simply use the exclude option with the bundle. I remember fixing it, so something like this should work too:

virtualmin-config-system -b LAMP -x ProFTPd

@Joe, furthermore, in my opinion, we should also add a “Micro” stack without mail and a “Nano” stack without mail and local DNS.

We now have the facility to do this.

1 Like

that would be amazing, like in my small vps i only need webserver stack with no dns, mail.

can you post the update once you fix it? i only wish to use the official command. thanks