opencti-terraform icon indicating copy to clipboard operation
opencti-terraform copied to clipboard

Doesn't work on GCP ubuntu 20 - too many installation issues

Open manojah99 opened this issue 3 years ago • 4 comments

Tried installer script on GCP ubuntu 20 (focal) (this what terraform installs)

I see too many issue

  1. Apt update breaks
  2. graken installation breaks
  3. wget --quiet -O minio <URL> command doesn't work
  4. rabbitmq installation breaks

Logs:

Rabbitmq section breaking:

## Change component to "erlang-21.x" to install the latest 21.x version.
## "bionic" as distribution name should work for any later Ubuntu or Debian release.
## See the release to distribution mapping table in RabbitMQ doc guides to learn more.
deb [trusted=yes] https://dl.bintray.com/rabbitmq-erlang/debian bionic erlang
deb [trusted=yes] https://dl.bintray.com/rabbitmq/debian bionic main
E: Failed to fetch https://dl.bintray.com/rabbitmq-erlang/debian/dists/bionic/erlang/binary-amd64/Packages  403  Forbidden [IP: 52.43.227.140 443]
E: Failed to fetch https://dl.bintray.com/rabbitmq/debian/dists/bionic/main/binary-amd64/Packages  403  Forbidden [IP: 52.43.227.140 443]
E: Some index files failed to download. They have been ignored, or old ones used instead.

manojah99 avatar May 18 '21 01:05 manojah99

Similar issues on AWS. I spent a lot of time on this, but had to abandon it later. Here is the log where it fails:

# Installs the latest Erlang 22.x release.
## Change component to "erlang-21.x" to install the latest 21.x version.
## "bionic" as distribution name should work for any later Ubuntu or Debian release.
## See the release to distribution mapping table in RabbitMQ doc guides to learn more.
deb [trusted=yes] https://dl.bintray.com/rabbitmq-erlang/debian bionic erlang
deb [trusted=yes] https://dl.bintray.com/rabbitmq/debian bionic main
E: Failed to fetch https://dl.bintray.com/rabbitmq-erlang/debian/dists/bionic/erlang/binary-amd64/Packages  403  Forbidden [IP: 34.213.218.48 443]
E: Failed to fetch https://dl.bintray.com/rabbitmq/debian/dists/bionic/main/binary-amd64/Packages  403  Forbidden [IP: 34.213.218.48 443]
E: Some index files failed to download. They have been ignored, or old ones used instead.

harshal-vaidya-mox avatar Jun 18 '21 08:06 harshal-vaidya-mox

The challenge here (as I understand it) is that bintray is no longer available. This means that the installation for RabbitMQ needs to be updated in the installation script to use the new distribution mechanism. There are a couple of useful resources around this:

  1. Getting latest Erlang - https://computingforgeeks.com/how-to-install-latest-erlang-on-ubuntu-linux/
  2. Getting latest RabbitMQ - https://cloudsmith.io/~rabbitmq/repos/rabbitmq-server/setup/#formats-deb

jgwilson42 avatar Sep 16 '21 13:09 jgwilson42

Based on the cause of the issue I believe that this will impact all installs using terraform irrespective of the cloud provider being used.

jgwilson42 avatar Sep 16 '21 13:09 jgwilson42

See PR https://github.com/newcontext-oss/opencti-terraform/pull/27 for an example of how to fix this.

jgwilson42 avatar Sep 16 '21 16:09 jgwilson42