mail-in-a-box / mailinabox

Mail-in-a-Box helps individuals take back control of their email by defining a one-click, easy-to-deploy SMTP+everything else server: a mail server in a box.
https://mailinabox.email/
Creative Commons Zero v1.0 Universal
13.92k stars 1.43k forks source link

Errors on fresh install 0.46 #1778

Open infidelus opened 4 years ago

infidelus commented 4 years ago

As I've had a couple of issues with the management interface, I thought I'd try a clean install. I've been through the backup process so I can restore the data afterwards.

I've just created a new Ubuntu 18.04 virtual machine and run curl -s https://mailinabox.email/setup.sh | sudo -E bash and I've seen two errors so far, the latter of which stops the install dead.

After entering my hostname & initial email address I see this in the terminal:

Primary Hostname: box.mydomain.co.uk
Public IP Address: xxx.xxx.xxx.xxx
Private IP Address: xxx.xxx.xxx.xxx
fatal: No names found, cannot describe anything.
Mail-in-a-Box Version: 

Updating system packages...

etc

Then, as the installs begin and get to Roundcube, this error stops the install:

Installing Roundcube (webmail)...
sha1sum: WARNING: 1 computed checksum did NOT match
------------------------------------------------------------
Download of https://github.com/roundcube/roundcubemail/releases/download/1.4.6/roundcubemail-1.4.6-complete.tar.gz did not match expected checksum.
Found:
44961ef62bb9c9875141ca34704bbc7d6f36373d  /tmp/roundcube.tgz

Expected:
4e425263f5bec27d39c07bde524f421bda205c07  /tmp/roundcube.tgz
JoshData commented 4 years ago

It's possible I messed up the release.

yodax commented 4 years ago

I upgraded roundcube, worked fine.

infidelus commented 4 years ago

I did an upgrade before I did a fresh install (as suggested in the maintenance guide) which appeared to work, but on a fresh install it's currently failing (for me at least).

Edit to add:

I did notice another error when I ran sudo mailinabox on the original server after upgrading:

Command '['/usr/bin/ldns-signzone', '-e', '20200711', '-n', '/etc/nsd/zones/my2nddomain.co.uk.txt', '/tmp/Kmy2nddomain.co.uk.+007+09981', '/tmp/Kmy2nddomain.co.uk.+007+32648']' returned non-zero exit status 1.

I don't know if that's related to the upgrade or related to something else though.

infidelus commented 4 years ago

On the offchance that Ubuntu had done something odd on the fresh install, and as the upgrade to roundcube works, I've just tried again..

Created another new Virtual Machine with Ubuntu 18.04 and current updates (apt update && apt full-upgrade). curl -s https://mailinabox.email/setup.sh | sudo -E bash

Both original errors remain.

BurntRouter commented 4 years ago

Same here. Fresh install of 18.04 and mailinabox `Creating new user database: /home/user-data/mail/users.sqlite Installing OpenDKIM/OpenDMARC... Installing SpamAssassin... Installing Nginx (web server)... Installing Roundcube (webmail)... sha1sum: WARNING: 1 computed checksum did NOT match

Download of https://github.com/roundcube/roundcubemail/releases/download/1.4.6/roundcubemail-1.4.6-complete.tar.gz did not match expected checksum. Found: 44961ef62bb9c9875141ca34704bbc7d6f36373d /tmp/roundcube.tgz

Expected: 4e425263f5bec27d39c07bde524f421bda205c07 /tmp/roundcube.tgz`

JoshData commented 4 years ago

Ok I think what happened was I created a branch and a tag with the same name but the branch was out of date. I deleted the branch. It might work now. You may need to start over or delete any Mail-in-a-Box files already retrieved from GitHub.

downtownallday commented 4 years ago

$ wget -O rc3.tgz https://github.com/roundcube/roundcubemail/releases/download/1.4.6/roundcubemail-1.4.6-complete.tar.gz --2020-06-11 20:09:49-- https://github.com/roundcube/roundcubemail/releases/download/1.4.6/roundcubemail-1.4.6-complete.tar.gz Resolving github.com (github.com)... 140.82.113.3 Connecting to github.com (github.com)|140.82.113.3|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/4224042/1acdb780-a8c3-11ea-953c-5d659c3ded4b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200612%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200612T000949Z&X-Amz-Expires=300&X-Amz-Signature=cca7d3f4e85c3f5cd94bd952d5081aca60914c3ff2ddbec3a1ffac184fc9cadc&X-Amz-SignedHeaders=host&actor_id=0&repo_id=4224042&response-content-disposition=attachment%3B%20filename%3Droundcubemail-1.4.6-complete.tar.gz&response-content-type=application%2Foctet-stream [following] --2020-06-11 20:09:49-- https://github-production-release-asset-2e65be.s3.amazonaws.com/4224042/1acdb780-a8c3-11ea-953c-5d659c3ded4b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200612%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200612T000949Z&X-Amz-Expires=300&X-Amz-Signature=cca7d3f4e85c3f5cd94bd952d5081aca60914c3ff2ddbec3a1ffac184fc9cadc&X-Amz-SignedHeaders=host&actor_id=0&repo_id=4224042&response-content-disposition=attachment%3B%20filename%3Droundcubemail-1.4.6-complete.tar.gz&response-content-type=application%2Foctet-stream Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.239.51 Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.239.51|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 7031573 (6.7M) [application/octet-stream] Saving to: ‘rc3.tgz’

rc3.tgz 100%[===================>] 6.71M 81.6KB/s in 1m 41s

2020-06-11 20:11:31 (68.0 KB/s) - ‘rc3.tgz’ saved [7031573/7031573]

$ cat rc3.tgz | openssl sha1 (stdin)= 44961ef62bb9c9875141ca34704bbc7d6f36373d

BurntRouter commented 4 years ago

@JoshData Deleted all mailinabox files that downloaded into my root directly then reran the install script and everything looks good now! Thanks for the quick reply

infidelus commented 4 years ago

Apologies for the delayed reply. Just tested again and it's working now. Thanks for the quick fix :)