Problem updating to v0.40

I am trying to migrate to a fresh Ubuntu 18.04 box hosted with Scaleway, and when I run the MiaB installer it seems to be working fine except that it does not ask for a password and it ends without saying that the box is up and running. It finishes installing SpamAssassin and various other components and returns to the command line without any error messages. I have tried this several times, restarting with a fresh box each time and being careful of any possible errors on my end. I am thinking it might be a problem with Scaleway’s spin of Ubuntu 18.04. Any ideas?

1 Like

When things seem to finish, and you return to the command line, what is the output of

ps -ax

and

ps -ax |grep t/dae

I have the same issue on a Scaleway START1-S server running the Ubuntu Bionic image. @alento here are the requested outputs:

root@box:~# ps -ax
  PID TTY      STAT   TIME COMMAND
    1 ?        Ss     0:15 /sbin/init
    2 ?        S      0:00 [kthreadd]
    4 ?        I<     0:00 [kworker/0:0H]
    6 ?        I<     0:00 [mm_percpu_wq]
    7 ?        S      0:00 [ksoftirqd/0]
    8 ?        I      0:00 [rcu_sched]
    9 ?        I      0:00 [rcu_bh]
   10 ?        S      0:00 [migration/0]
   11 ?        S      0:00 [watchdog/0]
   12 ?        S      0:00 [cpuhp/0]
   13 ?        S      0:00 [cpuhp/1]
   14 ?        S      0:00 [watchdog/1]
   15 ?        S      0:00 [migration/1]
   16 ?        S      0:00 [ksoftirqd/1]
   18 ?        I<     0:00 [kworker/1:0H]
   19 ?        S      0:00 [kdevtmpfs]
   20 ?        I<     0:00 [netns]
   21 ?        S      0:00 [rcu_tasks_kthre]
   22 ?        S      0:00 [kauditd]
   24 ?        S      0:00 [khungtaskd]
   25 ?        S      0:00 [oom_reaper]
   26 ?        I<     0:00 [writeback]
   27 ?        S      0:00 [kcompactd0]
   28 ?        SN     0:00 [ksmd]
   29 ?        SN     0:00 [khugepaged]
   30 ?        I<     0:00 [crypto]
   31 ?        I<     0:00 [kintegrityd]
   32 ?        I<     0:00 [kblockd]
   33 ?        I<     0:00 [ata_sff]
   34 ?        I<     0:00 [md]
   35 ?        I<     0:00 [edac-poller]
   36 ?        I<     0:00 [devfreq_wq]
   37 ?        I<     0:00 [watchdogd]
   41 ?        S      0:01 [kswapd0]
   42 ?        S      0:00 [ecryptfs-kthrea]
   84 ?        I<     0:00 [kthrotld]
   85 ?        I<     0:00 [acpi_thermal_pm]
   86 ?        S      0:00 [scsi_eh_0]
   87 ?        I<     0:00 [scsi_tmf_0]
   88 ?        S      0:00 [scsi_eh_1]
   89 ?        I<     0:00 [scsi_tmf_1]
   94 ?        I<     0:00 [ipv6_addrconf]
  103 ?        I<     0:00 [kstrp]
  120 ?        I<     0:00 [charger_manager]
  170 ?        I<     0:00 [kworker/0:1H]
  274 ?        I<     0:00 [raid5wq]
  326 ?        I<     0:00 [kworker/1:1H]
  327 ?        S      0:00 [jbd2/vda1-8]
  328 ?        I<     0:00 [ext4-rsv-conver]
  387 ?        S<s    0:00 /lib/systemd/systemd-journald
  407 ?        Ss     0:00 /sbin/lvmetad -f
  410 ?        I<     0:00 [iscsi_eh]
  413 ?        Ss     0:01 /lib/systemd/systemd-udevd
  417 ?        I<     0:00 [ib-comp-wq]
  422 ?        I<     0:00 [ib_mcast]
  423 ?        I<     0:00 [ib_nl_sa_wq]
  429 ?        I<     0:00 [rdma_cm]
  740 ?        Ss     0:00 /sbin/dhclient -1 -4 -v -pf /run/dhclient.ens2.pid -lf /var/lib/dhcp/dhclient.
  871 ?        Ssl    0:00 /usr/sbin/irqbalance --foreground
  874 ?        Ssl    0:00 /usr/lib/snapd/snapd
  880 ?        Ssl    0:00 /usr/bin/lxcfs /var/lib/lxcfs/
  881 ?        Ssl    0:00 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers
  885 ?        Ss     0:02 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --system
  903 ?        Ss     0:01 /lib/systemd/systemd-logind
  905 ?        Ss     0:00 /usr/sbin/atd -f
  908 ?        Ss     0:00 /usr/sbin/cron -f
  927 ttyS0    Ss+    0:00 /sbin/agetty -o -p -- \u --keep-baud 115200,38400,9600 ttyS0 vt220
  928 tty1     Ss+    0:00 /sbin/agetty -o -p -- \u --noclear tty1 linux
  947 ?        Ssl    0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --
 1027 ?        Ss     0:00 /usr/sbin/sshd -D
 1436 ?        I      0:01 [kworker/u4:1]
 1439 ?        Ss     0:01 sshd: root@pts/0
 1441 ?        Ss     0:00 /lib/systemd/systemd --user
 1442 ?        S      0:00 (sd-pam)
 1690 pts/0    Ss+    0:00 -bash
 4209 ?        I      0:00 [kworker/0:4]
 4260 ?        I      0:00 [kworker/1:3]
 4821 ?        Ssl    0:00 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 111:114
 4929 ?        Ss     0:00 /usr/sbin/haveged --Foreground --verbose=1 -w 1024
 7465 ?        Ssl    0:00 /usr/sbin/rsyslogd -n
13215 ?        Ss     0:00 gpg-agent --homedir /var/lib/spamassassin/sa-update-keys --use-standard-socket
13453 ?        Ss     0:00 /usr/bin/perl -T /usr/sbin/spampd --pid=/var/run/spampd/spampd.pid --tagall --
13459 ?        S      0:00 /usr/bin/perl -T /usr/sbin/spampd --pid=/var/run/spampd/spampd.pid --tagall --
13460 ?        S      0:00 /usr/bin/perl -T /usr/sbin/spampd --pid=/var/run/spampd/spampd.pid --tagall --
13461 ?        S      0:00 /usr/bin/perl -T /usr/sbin/spampd --pid=/var/run/spampd/spampd.pid --tagall --
14598 ?        I      0:00 [kworker/u4:0]
15734 ?        I      0:00 [kworker/u4:2]
15897 ?        I      0:00 [kworker/1:0]
16536 ?        I      0:00 [kworker/0:2]
16862 ?        Ss     0:00 sshd: root@pts/1
17107 pts/1    Ss     0:00 -bash
18250 ?        Ssl    0:00 /usr/sbin/named -f -u bind -4
18261 ?        I      0:00 [kworker/1:1]
18273 ?        Ss     0:00 /lib/systemd/systemd-resolved
18639 ?        Ss     0:00 postgrey --pidfile=/var/run/postgrey/postgrey.pid --daemonize --inet=127.0.0.1
18970 ?        Ss     0:00 /usr/sbin/dovecot -F
18999 ?        S      0:00 dovecot/anvil
19000 ?        S      0:00 dovecot/log
19002 ?        S      0:00 dovecot/config
19027 ?        I      0:00 [kworker/u4:3]
19053 ?        I      0:00 [kworker/0:0]
19054 ?        I      0:00 [kworker/0:1]
19055 ?        I      0:00 [kworker/0:3]
19056 ?        I      0:00 [kworker/0:5]
19057 ?        I      0:00 [kworker/1:2]
19085 ?        I      0:00 [kworker/1:4]
19086 ?        I      0:00 [kworker/1:5]
19131 ?        Ssl    0:00 /usr/sbin/opendkim -x /etc/opendkim.conf
19159 ?        Ssl    0:00 /usr/sbin/opendmarc
19347 ?        Ss     0:00 /usr/lib/postfix/sbin/master -w
19348 ?        S      0:00 pickup -l -t unix -u -c
19349 ?        S      0:00 qmgr -l -t unix -u
19392 ?        S      0:00 cleanup -z -t unix -u -c
19393 ?        S      0:00 trivial-rewrite -n rewrite -t unix -u -c
19394 ?        S      0:00 lmtp -t unix -u -c
19395 ?        S      0:00 dovecot/lmtp
19396 ?        S      0:00 dovecot/ssl-params
19397 ?        S      0:00 dovecot/auth
19398 ?        S      0:00 dovecot/auth -w
19399 ?        S      0:00 bounce -z -t unix -u -c
19401 pts/1    R+     0:00 ps -ax

root@box:~# ps -ax | grep t/dae
19405 pts/1    S+     0:00 grep --color=auto t/dae

Reboot didnt help, neither did restoring backup files from v30 prior to running mailinabox. This is how the output looks like:

Updating system packages...
Installing system packages...
Initializing system random number generator...
Firewall is active and enabled on system startup
Installing nsd (DNS server)...
Installing Postfix (SMTP server)...
Installing Dovecot (IMAP server)...
Installing OpenDKIM/OpenDMARC...
Installing SpamAssassin...

Then it just returns to the command line again…

So from that ps output we can see that the MiaB Management Daemon is not running, nor is nginx or nsd.

Do this next:

dpkg -l apache2
dpkg -l nginx
dpkg -l nsd

The first SHOULD come back as not found while the others should return info about the installed package. This is to confirm that Scaleway does not automatically include apache (some VPS providers do by default), and that nginx and nsd are installed.

nsd gets installed at the very beginning but the installation aborts before nginx gets installed. Here is the output:

root@miab:~# dpkg -l apache2
dpkg-query: no packages found matching apache2
root@miab:~#  dpkg -l nginx
dpkg-query: no packages found matching nginx
root@miab:~#  dpkg -l nsd
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  nsd            4.1.17-1buil amd64        authoritative domain name server

I guess the issue is related to the step that comes after installing spamassasin. What gets installed next?

Start service configuration.

source setup/system.sh
source setup/ssl.sh
source setup/dns.sh
source setup/mail-postfix.sh
source setup/mail-dovecot.sh
source setup/mail-users.sh
source setup/dkim.sh
source setup/spamassassin.sh
source setup/web.sh
source setup/webmail.sh
source setup/nextcloud.sh
source setup/zpush.sh
source setup/management.sh
source setup/munin.sh

nginx it seems…

A bit off topic at the moment … but OP, have you used Scaleway previously? I am assuming so. Reading through the forum there seems to be issues with them concerning setting the rDNS and with port 25 being blocked. Neither of those things are contributing to this issue but thought that I would mention them so you can be prepared for dealing with support on them.

Looking at GitHub there were several issues with Scaleway and Ubuntu 18.04 which seemed to have been fixed in the final release of v 0.40. Perhaps there are more issues that were not identified?

Scaleway by default blocks port 25 ( and some other ports) for all new accounts and will likely NOT unlock them without reason. You will need to contact scaleway support. If you are worried about hosting, Please try Digital Ocean, My affiliate link (DigitalOcean | Cloud Hosting for Builders) will give you $100 over the first 60 days if you just put in $25 (plus I get $25 of that as well!) if you sign up with a new account.

(Sorry for the shameless link there, don’t remember if it’s against rules, but maybe it helps you find a better host for your MIAB! Digital Ocean (once you get a Droplet setup) can set you up with rDNS, Port 25, etc no questions asked. Just make sure the IP they give you isn’t black listed anywhere (it’s not a shared IP, however VPS providers IP block ranges get BL’s easily due to neighbors.)

There are no need to contact admins. Its one checkbox you can change yourself.

I know that miab v40 was installing successfully in Scaleway’s Paris datacenter last week. I tried to spin up a VM in their Paris datacenter but the setup got stuck at installing spamassasin again.

I think that the setup/spamassasin.sh script doesnt finish. When I do journalctl -u spampd it looks like the service only got started once, so it never gets to the restart_service spampd line at teh end of setup/spamassasin.sh.

That link seems to be for outbound email only, but maybe I read it wrong? We are talking about inbound email I thought?

Edit also, they require you to contact support first anyway (RE, end of that section:)

I’m running miab instance on scaleway and I did ask any admin to open ports only turned off that default security role.

How new was your account at the time?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.