Can't install 0.40 as Let's Encrypt's PGP Key times out [solved]

When I run the command:

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

I get a long pause … which eventually shows the following error:

FAILED: add-apt-repository -y ppa:certbot/certbot

Error: retrieving gpg key timed out.

So, the gpg key is not being added for the repository. I added that repositories key manually but still no luck. Not being a scripting person, I cannot make heads or tails of MiaB’s set up scripts to find where this would be happening to see if I can figure a work around … so … any ideas anyone?

Isn’t Let’s Encrypt down or was down at the time of this post?

1 Like

That was my first thought, but I didn’t find any evidence of it on their community forum at the time.
I am going to try again and see what happens.

1 Like

It is not a LE issue. For whatever reason the install script will not proceed. The necessary PPA is installed on the VPS as well as the key.

So where do I find this so that I can comment it out in the install scripts? I suppose that I should be asking this on GitHub?

File name is https://github.com/mail-in-a-box/mailinabox/blob/master/setup/system.sh (system.sh) line ~90

But make sure to checkout tag v0.40 first before editing in your local directory.

1 Like

Excellent!!! :slight_smile: I found and edited it … MiaB seems to be installing now. :slight_smile:

setup/system.sh, line 90, comment it out and you will be good. :smiley:

1 Like

Sweet … so far so good … whatcha mean by:

Checking out a specific tag will install that tag (One of the setup scripts does this, I think bootstrap.sh).

checkout essentially makes your local repository line up file-wise with a tag in git, in this case “Release” tags (found: https://github.com/mail-in-a-box/mailinabox/releases)

If you just git clone the repository from master directly, it still installed v0.40 BUT you get all the commits and file changes from the latest commit in the master branch (Dubbed in most case as a development branch, which will not usually line up with a release tag file-wise btw.)

Screenshot of tag name for version v0.40:

1 Like

Hmmm … I simply ran the normal curl command:

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

so what it downloaded, I used. My only concern is that to start the scripts installing, I ran that command again — I was worried that it would overwrite the file I had edited, but it did not. Is it possible that I have other worries to be concerned with now by doing it this way?

That command uses checkout (re: setup/bootstrap.sh) so you are fine in this case,

As for other worries, even with edits, checkout will only overwrite files if the tag changes so you are fine there too :slight_smile:

1 Like

Awesome! But …, the install just crashed. :frowning:

Things were rolling along fine until the install of the Mail-in-a-Box system management daemon … this still kept going but slowly until …

Installing Mail-in-a-Box system management daemon…
Already using interpreter /usr/bin/python3
Using base prefix ‘/usr’
New python executable in /usr/local/lib/mailinabox/env/bin/python3
Also creating executable in /usr/local/lib/mailinabox/env/bin/python
Installing setuptools, pkg_resources, pip, wheel…done.
Installing Munin (system monitoring)…
[FATAL ERROR] Lock already exists: /var/run/munin/munin-update.lock. Dying.
at /usr/share/perl5/Munin/Master/Update.pm line 128.

Stop munin services systemctl stop munin and then re-run setup using curl -s https://mailinabox.email/setup.sh | sudo -E bash, make sure /var/run/munin/munin-update.lock does not exist.

1 Like

Rerun from the beginning? i.e.

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

1 Like

well yea, don’t wanna miss a step!

1 Like

Heh, just checking captain! :slight_smile:

Your comment was good, but I like to double and triple check things when I have no clue what I am doing. :stuck_out_tongue:

1 Like

Edited my comment to make more sense, sorry! :stuck_out_tongue:

1 Like

My favorite kind of error is the one that gets so dramatic.

1 Like

SUCCESS!!!

Thank you so much for your help Mitchell! :slight_smile:

1 Like

Very much welcome my friend!

1 Like