I’ve got a weird issue, when updating to v56 from v55 I get an issue with installing roundcube:
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...
Installing Roundcube (webmail)...
FAILED: wget -O /tmp/roundcube.tgz https://github.com/roundcube/roundcubemail/releases/download/1.5.2/roundcubemail-1.5.2-complete.tar.gz
-----------------------------------------
--2022-02-15 14:15:22-- https://github.com/roundcube/roundcubemail/releases/download/1.5.2/roundcubemail-1.5.2-complete.tar.gz
Resolving github.com (github.com)... failed: Temporary failure in name resolution.
wget: unable to resolve host address 'github.com'
After this, nothing works anymore. If I change my /etc/resolv.conf I see it’s changed to 127.0.0.1 and not 192.168.0.1.
Hi - I don’t know what how much networking you know, and what you’ve tried so far, so please forgive any insultingly obvious advice The error message is what I’d be looking at … it couldn’t resolve be.archive.ubuntu.com, if you can sort that, it should be ok.
Things I’d check up front:
can you ping any remote server (try ping www.google.com)? If no responses, you’ve got a more general problem.
just try again, could have been a genuine short-term network problem.
(on your box) try nslookup be.archive.ubuntu.com and see if you get responses from ping be.archive.ubuntu.com
If that’s all ok, try manually executing the failing command (you’ll need sudo). That lets you see what’s happening and isolate the problem, and should not interfere with subsequent MIAB installs/upgrades when you run it again.
Thanks for your reply. Well, if I start with the upgrade, it stops at Roundcube, then, if I ping nothing pings anymore. I didn’t try nslookup yet. As you can see, there are two different scenario’s, one with the production version, when I upgrade it won’t work anymore, and the new one with a fresh installation. But both fails. Only thing I know is I replaced the router with pfsense. Maybe it’s that, but my technical skills are not that great
A fresh MIAB install should be very easy, the only think I’ve had to do is reboot the server after install/upgrade (makes sure everything has come up cleanly).
Look at things logically - on a clean machine:
Do you get ping replies from IP address? I use ping 8.8.8.8 - google’s DNS servers are unlikely to be down! (You should see a series of replies.)
Can you resolve a name, eg. nslookup www.google.com? (You’d expect to see an non-authoritative answer with an IP address.)
Can you get requests out and data back, eg. wget https://mailinabox.email/setup.sh (You should see the setup.sh file in your local directory.)
If any of that fails, the install hasn’t a chance. If all that works, run the install command. After the install, all those tests should still work. (Remember: various TCP and UDP ports must be open at your router, and at your ISP.)
(After install) have a look in /etc/mailinabox.conf - that contains the IP addresses used for the setup.
I’m wondering if your local router setup is incorrect. Perhaps it’s giving your MIAB server incorrect gateway or DNS server info.
OK, when MiaB is updating, it is changing the /etc/resolv.conf to 127.0.0.1 which will stop the installation at roundcube. When I put it back to 192.168.0.1 (running DNS server) it will work again. But how can I install the update and skip /etc/resolv.conf is being changed? chatr +i won’t work.