self-hosted icon indicating copy to clipboard operation
self-hosted copied to clipboard

Fresh install of 23.11.2 or 23.12.1 does not work out of the box

Open pmoorani opened this issue 1 year ago • 15 comments

Self-Hosted Version

23.11.2

CPU Architecture

aarch64

Docker Version

24.0.7

Docker Compose Version

2.23.3-desktop.2

Steps to Reproduce

> ./install.sh

Expected Result

It's a fresh install, should work out of the box?

Actual Result

Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
/usr/local/lib/python3.8/site-packages/memcache.py:1303: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if key is '':
/usr/local/lib/python3.8/site-packages/memcache.py:1304: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if key_extra_len is 0:
Error: It looks like you've skipped a hard stop in our upgrade process. Please follow the upgrade process here: https://develop.sentry.dev/self-hosted/releases/#hard-stops
Error in install/set-up-and-migrate-database.sh:13.
'$dcr web upgrade' exited with status 1
-> ./install.sh:main:37
--> install/set-up-and-migrate-database.sh:source:13

Cleaning up...

Event ID

No response

pmoorani avatar Jan 05 '24 10:01 pmoorani

That's weird. Are you using an external Postgres by any chance? Or do you use everything default on docker-compose.yml?

aldy505 avatar Jan 05 '24 14:01 aldy505

@aldy505 No I am not using any external Postgres. I use everything default on docker-compose.yml

pmoorani avatar Jan 05 '24 15:01 pmoorani

I can't reproduce it. I did a clean install on a fresh VM on 23.12.1 and got nothing wrong. What I did was exactly this:

git clone https://github.com/getsentry/self-hosted.git sentry-self-hosted
cd sentry-self-hosted
git checkout 23.12.1
sudo ./install.sh
sudo docker compose up -d

Is there any configuration or extra steps/commands that you did?

aldy505 avatar Jan 06 '24 00:01 aldy505

Thank you for your response. I tried again but got the same error

Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
00:36:47 [WARNING] sentry.utils.geo: Error opening GeoIP database: /geoip/GeoLite2-City.mmdb
00:36:47 [WARNING] sentry.utils.geo: Error opening GeoIP database in Rust: /geoip/GeoLite2-City.mmdb
Error: It looks like you've skipped a hard stop in our upgrade process. Please follow the upgrade process here: https://develop.sentry.dev/self-hosted/releases/#hard-stops
Error in install/set-up-and-migrate-database.sh:13.
'$dcr web upgrade' exited with status 1
-> ./install.sh:main:34
--> install/set-up-and-migrate-database.sh:source:13

Cleaning up...

Maybe it's because I am on Apple M1 Max (Ventura 13.4)?

pmoorani avatar Jan 06 '24 00:01 pmoorani

@hubertdeng Can you repro this on M1?

aldy505 avatar Jan 06 '24 11:01 aldy505

I also encountered the same problem

itDjango avatar Jan 08 '24 09:01 itDjango

I also encountered the same problem

Hello @itDjango are you also running the self hosted sentry on Apple M1?

aldy505 avatar Jan 08 '24 09:01 aldy505

I also encountered the same problem

Hello @itDjango are you also running the self hosted sentry on Apple M1?

Linux

itDjango avatar Jan 11 '24 06:01 itDjango

I spent a few days fixing this issue The two longest processing issues: 1 . https://github.com/getsentry/self-hosted/issues/2642 Fix https://github.com/getsentry/self-hosted/issues/1794#issuecomment-1304565961 2. https://github.com/getsentry/self-hosted/issues/2641 Fix https://github.com/getsentry/self-hosted/issues/2557#issuecomment-1824711505

Of course, there are other issues, but most of them are related to my network

itDjango avatar Jan 11 '24 08:01 itDjango

Same for me, AWS EC2, Ubuntu and Debian T2.medium and large and T3 medium and large.

Pixel-Minions avatar Jan 12 '24 03:01 Pixel-Minions

Same for me, AWS EC2, Ubuntu and Debian T2.medium and large and T3 medium and large.

@Pixel-Minions Do you have the exact output text as per the issue author's "Actual Output" section?

aldy505 avatar Jan 12 '24 04:01 aldy505

May be related #2704

vladdevops avatar Jan 12 '24 10:01 vladdevops

I believe this is related to this: https://github.com/getsentry/self-hosted/issues/1585

We do not have a timeline for when this will be completed by

hubertdeng123 avatar Jan 16 '24 23:01 hubertdeng123

I spent a few days fixing this issue The two longest processing issues: 1 . #2642 Fix #1794 (comment) 2. #2641 Fix #2557 (comment)

Of course, there are other issues, but most of them are related to my network

I have same question with you How to solve it

#2 ERROR: failed to copy: httpReadSeeker: failed open: server message: insufficient_scope: authorization failed

[internal] load metadata for docker.io/library/debian:bookworm-slim:


Dockerfile:1

1 | >>> FROM debian:bookworm-slim 2 |
3 | LABEL MAINTAINER="[email protected]"

ERROR: failed to solve: debian:bookworm-slim: failed to resolve source metadata for docker.io/library/debian:bookworm-slim: failed to copy: httpReadSeeker: failed open: server message: insufficient_scope: authorization failed

zhanglei1996 avatar Jun 18 '24 15:06 zhanglei1996

This is likely a permission error on your OS. Some permission is not configured, preventing necessary files from being read.

azaslavsky avatar Jun 21 '24 00:06 azaslavsky