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.49k stars 1.7k forks source link

Debian based Image build failure when try to install/update #3122

Closed Mina-1316 closed 1 week ago

Mina-1316 commented 3 weeks ago

Self-Hosted Version

24.5.1

CPU Architecture

x86_64

Docker Version

Docker version 26.1.4, build 5650f9b

Docker Compose Version

v2.27.1

Steps to Reproduce

  1. remove all images/build caches/volumes(For clean install)
  2. run ./install.sh in shell
  3. reproduced.

Expected Result

Install is succesfully done, or else at least other errors are occured.

Actual Result

▶ Parsing command line ...

▶ Detecting Docker platform
Detected Docker platform is linux/amd64

▶ Initializing Docker Compose ...

▶ Setting up error handling ...
#0 building with "default" instance using docker driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 345B done
#1 DONE 0.0s

#2 [internal] load metadata for docker.io/library/debian:12-slim
#2 DONE 0.7s

#3 [internal] load .dockerignore
#3 transferring context: 2B done
#3 DONE 0.0s

#4 [1/2] FROM docker.io/library/debian:12-slim@sha256:804194b909ef23fb995d9412c9378fb3505fe2427b70f3cc425339e48a828fca
#4 CACHED

#5 [2/2] RUN set -x   && apt-get update   && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends jq   && apt-get clean   && rm -rf /var/lib/apt/lists/*
#5 0.129 + apt-get update
#5 0.148 Get:1 http://deb.debian.org/debian bookworm InRelease
#5 0.148 Err:1 http://deb.debian.org/debian bookworm InRelease
#5 0.148   Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
#5 0.149 Get:2 http://deb.debian.org/debian bookworm-updates InRelease
#5 0.149 Err:2 http://deb.debian.org/debian bookworm-updates InRelease
#5 0.149   Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
#5 0.149 Get:3 http://deb.debian.org/debian-security bookworm-security InRelease
#5 0.150 Err:3 http://deb.debian.org/debian-security bookworm-security InRelease
#5 0.150   Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
#5 0.152 Reading package lists...
#5 0.157 E: The repository 'http://deb.debian.org/debian bookworm InRelease' is not signed.
#5 0.157 E: Failed to fetch http://deb.debian.org/debian/dists/bookworm/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
#5 0.157 E: Failed to fetch http://deb.debian.org/debian/dists/bookworm-updates/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
#5 0.157 E: The repository 'http://deb.debian.org/debian bookworm-updates InRelease' is not signed.
#5 0.157 E: Failed to fetch http://deb.debian.org/debian-security/dists/bookworm-security/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
#5 0.157 E: The repository 'http://deb.debian.org/debian-security bookworm-security InRelease' is not signed.
#5 ERROR: process "/bin/sh -c set -x   && apt-get update   && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends jq   && apt-get clean   && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100
------
 > [2/2] RUN set -x   && apt-get update   && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends jq   && apt-get clean   && rm -rf /var/lib/apt/lists/*:
0.149 Get:3 http://deb.debian.org/debian-security bookworm-security InRelease
0.150 Err:3 http://deb.debian.org/debian-security bookworm-security InRelease
0.150   Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
0.152 Reading package lists...
0.157 E: The repository 'http://deb.debian.org/debian bookworm InRelease' is not signed.
0.157 E: Failed to fetch http://deb.debian.org/debian/dists/bookworm/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
0.157 E: Failed to fetch http://deb.debian.org/debian/dists/bookworm-updates/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
0.157 E: The repository 'http://deb.debian.org/debian bookworm-updates InRelease' is not signed.
0.157 E: Failed to fetch http://deb.debian.org/debian-security/dists/bookworm-security/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
0.157 E: The repository 'http://deb.debian.org/debian-security bookworm-security InRelease' is not signed.
------
Dockerfile:5
--------------------
   4 |     
   5 | >>> RUN set -x \
   6 | >>>   && apt-get update \
   7 | >>>   && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends jq \
   8 | >>>   && apt-get clean \
   9 | >>>   && rm -rf /var/lib/apt/lists/*
  10 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c set -x   && apt-get update   && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends jq   && apt-get clean   && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100

Event ID

There is no event ID, since this error occures when running ./install/error_handling.sh

Mina-1316 commented 3 weeks ago

Hello team! Is this problem related to debian image?

I tried docker run --rm -i debian:bookworm-slim bash and tried to invoke apt-get update manually, and this also creates same error...

hubertdeng123 commented 2 weeks ago

We ourselves are not encountering this error. Are there any additional network firewall settings that may be causing this behavior?

Mina-1316 commented 2 weeks ago

I changed my network's DNS from Local provider's to 1.1.1.1 and 8.8.8.8, and error changed to (111: connection refused).

W: Failed to fetch http://deb.debian.org/debian/dists/bookworm/InRelease  Could not connect to deb.debian.org:80 (151.101.230.132). - connect (111: Connection refused)
W: Failed to fetch http://deb.debian.org/debian/dists/bookworm-updates/InRelease  Could not connect to deb.debian.org:80 (151.101.110.132). - connect (111: Connection refused)
W: Failed to fetch http://deb.debian.org/debian-security/dists/bookworm-security/InRelease  Unable to connect to deb.debian.org:80:
W: Some index files failed to download. They have been ignored, or old ones used instead.

seems like this is not sentry's issue, but my network configuration issue...

hubertdeng123 commented 2 weeks ago

Yes, that is very likely. Please keep us posted if we are able to offer more help.

Mina-1316 commented 2 weeks ago

I checked that my docker system's network is suddenly shut down, with no reason, and all of the build tasks which worked before was just cached result. I'll check my system more! thx for the reply...

Seems it is ok to close the issue. Thanks!