getsentry / self-hosted

Sentry, feature-complete and packaged up for low-volume deployments and proofs-of-concept
https://develop.sentry.dev/self-hosted/
Other
7.89k stars 1.77k forks source link

Cannot install on a fresh ubuntu instance with ARM processor #1870

Closed youtux closed 1 year ago

youtux commented 1 year ago

Self-Hosted Version

22.12.0

CPU Architecture

aarch64

Docker Version

20.10.22

Docker Compose Version

2.14.1

Steps to Reproduce

  1. Create a new free instance on Oracle Cloud using the following CPU: "VM.Standard.A1.Flex - Always Free-eligible - Virtual machine, 2 core OCPU, 12 GB memory, 2 Gbps network bandwidth" and using the latest Ubuntu (22.04 - Image build: 2022.11.06-0 at the time of writing).
  2. Install docker as described in https://docs.docker.com/engine/install/ubuntu/
  3. Install Sentry self hosted by downloading https://github.com/getsentry/self-hosted/archive/refs/tags/22.12.0.tar.gz, unpacking it, and running ./install.sh.

Expected Result

Sentry is installed

Actual Result

I get the following error, and the installation process stops:

ubuntu@instance-20221217-0000:~/self-hosted-22.12.0$ ./install.sh
▶ Parsing command line ...

▶ Detecting Docker platform
Detected Docker platform is linux/arm64

▶ Initializing Docker Compose ...

▶ Setting up error handling ...

Hey, so ... we would love to automatically find out about issues with your
Sentry instance so that we can improve the product. Turns out there is an app
for that, called Sentry. Would you be willing to let us automatically send data
about your instance upstream to Sentry for development and debugging purposes?

  y / yes / 1
  n / no / 0

(Btw, we send this to our own self-hosted Sentry instance, not to Sentry SaaS,
so that we can be in this together.)

Here's the info we may collect:

  - OS username
  - IP address
  - install log
  - runtime errors
  - performance data

Thirty (30) day retention. No marketing. Privacy policy at sentry.io/privacy.

y or n? y

Thank you. To avoid this prompt in the future, use one of these flags:

  --report-self-hosted-issues
  --no-report-self-hosted-issues

or set the REPORT_SELF_HOSTED_ISSUES environment variable:

  REPORT_SELF_HOSTED_ISSUES=1 to send data
  REPORT_SELF_HOSTED_ISSUES=0 to not send data

latest: Pulling from getsentry/sentry-cli
c7ed990a2339: Pulling fs layer
18d3cc651798: Pulling fs layer
3e6a010ae3c1: Pulling fs layer
4e81a4699a2d: Pulling fs layer
2fd2a5f7d894: Pulling fs layer
4e81a4699a2d: Waiting
2fd2a5f7d894: Waiting
18d3cc651798: Verifying Checksum
18d3cc651798: Download complete
3e6a010ae3c1: Verifying Checksum
3e6a010ae3c1: Download complete
c7ed990a2339: Download complete
c7ed990a2339: Pull complete
18d3cc651798: Pull complete
3e6a010ae3c1: Pull complete
4e81a4699a2d: Download complete
4e81a4699a2d: Pull complete
2fd2a5f7d894: Verifying Checksum
2fd2a5f7d894: Download complete
2fd2a5f7d894: Pull complete
Digest: sha256:01d6f94d28c21a1fa9598011107deaf4807e728a91c7400c4b8865e47f14c7f0
Status: Downloaded newer image for getsentry/sentry-cli:latest
docker.io/getsentry/sentry-cli:latest

▶ Checking for latest commit ...
skipped

▶ Checking minimum requirements ...
Found Docker version 20.10.22
Found Docker Compose version 2.14.1
Unable to find image 'busybox:latest' locally
latest: Pulling from library/busybox
b2bcf7a3443b: Pulling fs layer
b2bcf7a3443b: Verifying Checksum
b2bcf7a3443b: Download complete
b2bcf7a3443b: Pull complete
Digest: sha256:3b3128d9df6bbbcc92e2358e596c9fbd722a437a62bafbc51607970e9e3b8869
Status: Downloaded newer image for busybox:latest
WARN: Recommended minimum CPU cores available to Docker is 4, found 2

▶ Turning things off ...

▶ Creating volumes for persistent storage ...
Created sentry-clickhouse.
Created sentry-data.
Created sentry-kafka.
Created sentry-postgres.
Created sentry-redis.
Created sentry-symbolicator.
Created sentry-zookeeper.

▶ Ensuring files from examples ...
Creating ../sentry/sentry.conf.py...
Creating ../sentry/config.yml...
Creating ../symbolicator/config.yml...

▶ Ensuring Relay credentials ...
Creating ../relay/config.yml...
relay Pulling
6eab20599fab Pulling fs layer
da74974bba98 Pulling fs layer
109e5234ec3b Pulling fs layer
283c59ac4140 Pulling fs layer
16b6e47fd394 Pulling fs layer
2e7d4e77cd3c Pulling fs layer
62c9a15b6a9f Pulling fs layer
16b6e47fd394 Waiting
2e7d4e77cd3c Waiting
62c9a15b6a9f Waiting
283c59ac4140 Waiting
109e5234ec3b Downloading [==============>                                    ]  1.369kB/4.598kB
109e5234ec3b Downloading [==================================================>]  4.598kB/4.598kB
109e5234ec3b Verifying Checksum
109e5234ec3b Download complete
da74974bba98 Downloading [>                                                  ]  52.62kB/5.135MB
6eab20599fab Downloading [>                                                  ]  278.5kB/27.14MB
da74974bba98 Downloading [==================================================>]  5.135MB/5.135MB
da74974bba98 Verifying Checksum
da74974bba98 Download complete
6eab20599fab Downloading [===================================>               ]  19.51MB/27.14MB
6eab20599fab Verifying Checksum
6eab20599fab Download complete
6eab20599fab Extracting [>                                                  ]  294.9kB/27.14MB
6eab20599fab Extracting [==========>                                        ]  5.603MB/27.14MB
283c59ac4140 Downloading [==================================================>]     186B/186B
283c59ac4140 Verifying Checksum
283c59ac4140 Download complete
16b6e47fd394 Downloading [>                                                  ]  119.4kB/11.82MB
6eab20599fab Extracting [===================>                               ]  10.62MB/27.14MB
16b6e47fd394 Verifying Checksum
16b6e47fd394 Download complete
2e7d4e77cd3c Downloading [>                                                  ]  540.7kB/125.9MB
6eab20599fab Extracting [==========================>                        ]  14.45MB/27.14MB
2e7d4e77cd3c Downloading [======>                                            ]  17.17MB/125.9MB
6eab20599fab Extracting [==============================>                    ]  16.81MB/27.14MB
62c9a15b6a9f Downloading [=======================================>           ]     760B/961B
62c9a15b6a9f Downloading [==================================================>]     961B/961B
62c9a15b6a9f Verifying Checksum
62c9a15b6a9f Download complete
2e7d4e77cd3c Downloading [============>                                      ]  30.54MB/125.9MB
6eab20599fab Extracting [===================================>               ]  19.46MB/27.14MB
2e7d4e77cd3c Downloading [===================>                               ]  48.68MB/125.9MB
6eab20599fab Extracting [==========================================>        ]     23MB/27.14MB
2e7d4e77cd3c Downloading [==========================>                        ]  66.28MB/125.9MB
6eab20599fab Extracting [=============================================>     ]  24.77MB/27.14MB
2e7d4e77cd3c Downloading [=================================>                 ]  84.88MB/125.9MB
2e7d4e77cd3c Downloading [=======================================>           ]  98.25MB/125.9MB
2e7d4e77cd3c Downloading [=============================================>     ]  115.4MB/125.9MB
6eab20599fab Extracting [================================================>  ]  26.25MB/27.14MB
2e7d4e77cd3c Verifying Checksum
2e7d4e77cd3c Download complete
6eab20599fab Extracting [==================================================>]  27.14MB/27.14MB
6eab20599fab Pull complete
da74974bba98 Extracting [>                                                  ]  65.54kB/5.135MB
da74974bba98 Extracting [==========================================>        ]  4.325MB/5.135MB
da74974bba98 Extracting [==================================================>]  5.135MB/5.135MB
da74974bba98 Pull complete
109e5234ec3b Extracting [==================================================>]  4.598kB/4.598kB
109e5234ec3b Extracting [==================================================>]  4.598kB/4.598kB
109e5234ec3b Pull complete
283c59ac4140 Extracting [==================================================>]     186B/186B
283c59ac4140 Extracting [==================================================>]     186B/186B
283c59ac4140 Pull complete
16b6e47fd394 Extracting [>                                                  ]  131.1kB/11.82MB
16b6e47fd394 Extracting [=======================>                           ]  5.505MB/11.82MB
16b6e47fd394 Extracting [==================================================>]  11.82MB/11.82MB
16b6e47fd394 Pull complete
2e7d4e77cd3c Extracting [>                                                  ]  557.1kB/125.9MB
2e7d4e77cd3c Extracting [=========>                                         ]  22.84MB/125.9MB
2e7d4e77cd3c Extracting [===============>                                   ]  40.11MB/125.9MB
2e7d4e77cd3c Extracting [======================>                            ]  57.38MB/125.9MB
2e7d4e77cd3c Extracting [==============================>                    ]  77.43MB/125.9MB
2e7d4e77cd3c Extracting [=====================================>             ]  95.26MB/125.9MB
2e7d4e77cd3c Extracting [==============================================>    ]  115.9MB/125.9MB
2e7d4e77cd3c Extracting [==================================================>]  125.9MB/125.9MB
2e7d4e77cd3c Extracting [==================================================>]  125.9MB/125.9MB
2e7d4e77cd3c Pull complete
62c9a15b6a9f Extracting [==================================================>]     961B/961B
62c9a15b6a9f Extracting [==================================================>]     961B/961B
62c9a15b6a9f Pull complete
relay Pulled
Network sentry-self-hosted_default  Creating
Network sentry-self-hosted_default  Created
Volume "sentry-self-hosted_sentry-kafka-log"  Creating
Volume "sentry-self-hosted_sentry-kafka-log"  Created
Volume "sentry-self-hosted_sentry-smtp-log"  Creating
Volume "sentry-self-hosted_sentry-smtp-log"  Created
Volume "sentry-self-hosted_sentry-zookeeper-log"  Creating
Volume "sentry-self-hosted_sentry-zookeeper-log"  Created
Volume "sentry-self-hosted_sentry-clickhouse-log"  Creating
Volume "sentry-self-hosted_sentry-clickhouse-log"  Created
Volume "sentry-self-hosted_sentry-nginx-cache"  Creating
Volume "sentry-self-hosted_sentry-nginx-cache"  Created
Volume "sentry-self-hosted_sentry-secrets"  Creating
Volume "sentry-self-hosted_sentry-secrets"  Created
Volume "sentry-self-hosted_sentry-smtp"  Creating
Volume "sentry-self-hosted_sentry-smtp"  Created
exec /bin/bash: exec format error
Unable to find image 'sentry-self-hosted-jq-local:latest' locally
Unable to find image 'sentry-self-hosted-jq-local:latest' locally
docker: Error response from daemon: pull access denied for sentry-self-hosted-jq-local, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.
docker: Error response from daemon: pull access denied for sentry-self-hosted-jq-local, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.

Event ID

No response

aminvakil commented 1 year ago

I suspect exec /bin/bash: exec format error is the problem.

github-actions[bot] commented 1 year ago

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

ethanhs commented 1 year ago

Yeah the exec format error is indicating the binary is for x86. We don't support ARM yet