opencti-terraform
opencti-terraform copied to clipboard
Doesn't work on GCP ubuntu 20 - too many installation issues
Tried installer script on GCP ubuntu 20 (focal) (this what terraform installs)
I see too many issue
- Apt update breaks
- graken installation breaks
- wget --quiet -O minio <URL> command doesn't work
- 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.
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.
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:
- Getting latest Erlang - https://computingforgeeks.com/how-to-install-latest-erlang-on-ubuntu-linux/
- Getting latest RabbitMQ - https://cloudsmith.io/~rabbitmq/repos/rabbitmq-server/setup/#formats-deb
Based on the cause of the issue I believe that this will impact all installs using terraform irrespective of the cloud provider being used.
See PR https://github.com/newcontext-oss/opencti-terraform/pull/27 for an example of how to fix this.