Fatal error installing Z-Push

Hi,

I’m trying to install MIB on Ubuntu 14.04 but I’m getting the following error:

Installing Z-Push (Exchange/ActiveSync server)…
fatal: unable to access ‘https://stash.z-hub.io/scm/zp/z-push.git/’: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

Should I just install it from source manually?

Thanks!

Julie

Got the same error here. Tried the steps in:

But no luck :frowning:

Perhaps related to this one… !? : https://github.com/mail-in-a-box/mailinabox/pull/1387

1 Like

The quick patch included with that link was an acceptable solution for me.

Thanks a lot!

1 Like

Provided patch via pull request by @nascarsayan in Github Updated git_clone to not verify ssl worked here, too. @JoshData please, consider to merge it ASAP.

I actually think the patch is not such a good idea to merge as is though. It’s useful to bypass this issue but applied at large, it seriously reduces the security of the installation script.

A bypass prompt for such issues would be ideal but implies a lot of testing.

I had been struggling with this since days, i finally figured to disable git ssl verification for installation sake then enable it again after.

git config http.sslVerify false

then to enable

git config http.sslVerify true

worked like a charm!

1 Like

For a simple command line solution, running this command worked for me:

export GIT_SSL_NO_VERIFY=1; curl -s https://mailinabox.email/setup.sh | sudo -E bash

5 Likes

@marcchampagne Thanks! That worked for me, however this need to be merged asap for new users/users that are updating. @JoshData can you merge?

just upgraded to v27 and encountered this error.
Applied your solution and all went well up to a point.

on MIAB restart

start-stop-daemon: warning: failed to kill 30931: No such process

The PID is irrelevant as it changes every time the restart is repeated.

I know it is only a warning but… something is wrong.

Outbound Mail seems OK and can log in to admin

Thanks, that did the trick!

Just tried upgrading to V0.27 and got the same error. marcchampagne’s solution got me passed the Z-Push issue, but now I have an infinite “Waiting for the Mail-in-a-Box management daemon to start…” Not sure if it is related or a different issue…

Primary Hostname: box.XXXXXXXXX.net
Public IP Address: XXX.XXX.XXX.XXX
Mail-in-a-Box Version: v0.27
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 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 Munin (system monitoring)…
Waiting for the Mail-in-a-Box management daemon to start…
Waiting for the Mail-in-a-Box management daemon to start…
Waiting for the Mail-in-a-Box management daemon to start…

This has been going on for about 40mins now…
e-mail seems to be function correctly, can send and recv via SMTP and roundcube.
But admin page gives a “502 Bad Gateway” error.

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