Cannot upgrade to V73

I have attempted to upgrade to v73 today and get an error I am not sure about.

When I try curl -s https://mailinabox.email/setup.sh | sudo bash I get:

ubuntu@box:~$ curl -s https://mailinabox.email/setup.sh | sudo bash
Updating Mail-in-a-Box to v73 . . .
remote: Enumerating objects: 1, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 1 (delta 0), reused 1 (delta 0), pack-reused 0 (from 0)
Unpacking objects: 100% (1/1), 507 bytes | 507.00 KiB/s, done.
error: Your local changes to the following files would be overwritten by checkout:
management/dns_update.py
Please commit your changes or stash them before you switch branches.
Aborting
Update failed. Did you modify something in /root/mailinabox?

When I try sudo mailinabox I get the expected grey on blue messages and then this:

Primary Hostname: box.xxxxxxx.com (disguised)
Public IP Address: 5x.6x.1xx.2xx (disguised)
Private IP Address: 17x.2x.x.1xx (disguised)
Mail-in-a-Box Version: v72

Updating system packages…
Installing system packages…
Initializing system random number generator…
Firewall is active and enabled on system startup
Synchronizing state of fail2ban.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable fail2ban
Installing nsd (DNS server)…
Installing Postfix (SMTP server)…
Installing Dovecot (IMAP server)…
Installing OpenDKIM/OpenDMARC…
Installing SpamAssassin…
Installing Nginx (web server)…
Installing Roundcube (webmail)…
Installing Nextcloud (contacts/calendar)…
Nextcloud is already latest version
Installing Z-Push (Exchange/ActiveSync server)…
Installing Mail-in-a-Box system management daemon…
Installing Mail-in-a-Box system management daemon…
Installing Munin (system monitoring)…
updated DNS: OpenDKIM configuration


Your Mail-in-a-Box is running.

Please log in to the control panel for further instructions at:

https://box.xxxxxxx.com/admin

If you have a DNS problem put the box’s IP address in the URL
(https://5x.6x.1xx.2xx/admin) but then check the TLS fingerprint:
xx:xx:xx:xx:xx:xx:xx:xx
ubuntu@box:~$

I am a bit lost on this… after a reboot, status page still says new version is available

This message says that something in your installation folder has changed. If you are not aware of any changes, you can just move the folder away. mv mailinabox mailinabox_backup and rerun the upgrade / installation command (the one starting with curl).
If all is well after this you can remove the mailimabox_backup folder.
If you’re curious about what’s changed you can do

cd mailinabox
git diff

Thank you for that. I did the mv and re-ran the curl/bash command but still it errors with:

ubuntu@box:~$ curl -s https://mailinabox.email/setup.sh | sudo bash
Updating Mail-in-a-Box to v73 . . .
remote: Enumerating objects: 1, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 1 (delta 0), reused 1 (delta 0), pack-reused 0 (from 0)
Unpacking objects: 100% (1/1), 507 bytes | 507.00 KiB/s, done.
error: Your local changes to the following files would be overwritten by checkout:
management/dns_update.py
Please commit your changes or stash them before you switch branches.
Aborting
Update failed. Did you modify something in /root/mailinabox?

Clearly, I had fiddled with dns_update.py to reduce TTL, however i restored the backup file i took, but still update script fails with error above.

Am I facing a backup and restore action to clean build with v73?

Also, the correct install command (from the instructions) is:

curl -s https://mailinabox.email/setup.sh | sudo -E bash

Note the -E option.

And if you’ve been changing things, some kind of git restore might clean it up.

1 Like

Hmmmm

The link: https://mailinabox.email/maintenance.html#upgrade

shows:

curl -s https://mailinabox.email/setup.sh | sudo bash

The link: https://mailinabox.email/guide.html

shows

curl -s https://mailinabox.email/setup.sh | sudo -E bash

NOW it appears to work!! Now I’m upgraded!!

Thank you so much

Terry