Ask A Question

Notifications

You’re not receiving notifications from this thread.

Let's Encrypt Error on Hatch

Lauro asked in General

I keep getting this error when trying to add Let's Encrypt using Hatch. Im not sure how to debug it.

Any thoughts?

Uploaded /etc/nginx/snippets/letsencrypt.conf

Uploaded /etc/nginx/snippets/ssl.conf

Executing 'add-apt-repository ppa:certbot/certbot'
 This is the PPA for packages prepared by Debian Let's Encrypt Team and backported for Ubuntu(s).
 More info: https://launchpad.net/~certbot/+archive/ubuntu/certbot
OK

Executing 'apt-get update'
Hit:1 http://apt.postgresql.org/pub/repos/apt xenial-pgdg InRelease
Hit:2 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:3 http://mirrors.digitalocean.com/ubuntu xenial InRelease
Hit:4 http://ppa.launchpad.net/certbot/certbot/ubuntu xenial InRelease
Hit:5 http://mirrors.digitalocean.com/ubuntu xenial-updates InRelease
Hit:6 http://mirrors.digitalocean.com/ubuntu xenial-backports InRelease
Hit:7 https://deb.nodesource.com/node_7.x xenial InRelease
Hit:8 http://ppa.launchpad.net/chris-lea/redis-server/ubuntu xenial InRelease
Get:10 https://dl.yarnpkg.com/debian stable InRelease [11.5 kB]
Hit:11 http://ppa.launchpad.net/git-core/ppa/ubuntu xenial InRelease
Get:12 https://repos.sonar.digitalocean.com/apt main/main amd64 Packages [1,172 B]
Err:12 https://repos.sonar.digitalocean.com/apt main/main amd64 Packages
  Hash Sum mismatch
Ign:13 https://oss-binaries.phusionpassenger.com/apt/passenger xenial InRelease
Hit:14 https://oss-binaries.phusionpassenger.com/apt/passenger xenial Release
Fetched 12.5 kB in 1s (10.1 kB/s)
Reading package lists...

E: Failed to fetch https://repos.sonar.digitalocean.com/apt/dists/main/main/binary-amd64/Packages.bz2  Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.


Hit:1 http://apt.postgresql.org/pub/repos/apt xenial-pgdg InRelease
Hit:2 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:3 http://mirrors.digitalocean.com/ubuntu xenial InRelease
Hit:4 http://ppa.launchpad.net/certbot/certbot/ubuntu xenial InRelease
Hit:5 http://mirrors.digitalocean.com/ubuntu xenial-updates InRelease
Hit:6 http://mirrors.digitalocean.com/ubuntu xenial-backports InRelease
Hit:7 https://deb.nodesource.com/node_7.x xenial InRelease
Hit:8 http://ppa.launchpad.net/chris-lea/redis-server/ubuntu xenial InRelease
Get:10 https://dl.yarnpkg.com/debian stable InRelease [11.5 kB]
Hit:11 http://ppa.launchpad.net/git-core/ppa/ubuntu xenial InRelease
Get:12 https://repos.sonar.digitalocean.com/apt main/main amd64 Packages [1,172 B]
Err:12 https://repos.sonar.digitalocean.com/apt main/main amd64 Packages
  Hash Sum mismatch
Ign:13 https://oss-binaries.phusionpassenger.com/apt/passenger xenial InRelease
Hit:14 https://oss-binaries.phusionpassenger.com/apt/passenger xenial Release
Fetched 12.5 kB in 1s (10.1 kB/s)
Reading package lists...


Command "apt-get update" returned exit code 100
Reply

Sometimes the repositories get out of sync or have errors like this. If you give it a bit of time, these usually get cleared up in an hour or so.

It's just something DigitalOcean does to reduce the bandwidth your server's use, so they keep a clone of the repositories in their datacenter. Their repositories just have a temporary issue there.

Reply

One thing you can try is to run these two commands on your server:

sudo apt-get clean
sudo apt-get update
Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 85,376+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.