Cannot install senrty on-premise on ubuntu 18.04

Hi
i’m trying to install sentry on ubuntu 18.04 with official docker installer

---:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.4 LTS
Release:        18.04
Codename:       bionic

---:~$ docker --version
Docker version 19.03.12, build 48a66213fe

---:~$ docker-compose --version
docker-compose version 1.26.2, build eefe0d31

there is some issues with debian repositories, which prevents successful installation

sudo docker-compose build post-process-forwarder worker web cron sentry-cleanup ingest-consumer symbolicator-cleanup snuba-cleanup
Building snuba-cleanup
Step 1/5 : ARG BASE_IMAGE
Step 2/5 : FROM ${BASE_IMAGE}
 ---> c6a4e3e5a6f7
Step 3/5 : RUN apt-get update && apt-get install -y --no-install-recommends cron &&     rm -r /var/lib/apt/lists/*
 ---> Running in 15aad5308ee4
Err:1 http://deb.debian.org/debian buster InRelease
  403  Forbidden [IP: 195.248.243.158 1088]
Err:2 http://security.debian.org/debian-security buster/updates InRelease
  403  Forbidden [IP: 195.248.243.158 1088]
Err:3 http://deb.debian.org/debian buster-updates InRelease
  403  Forbidden [IP: 195.248.243.158 1088]
Reading package lists...
E: The repository 'http://deb.debian.org/debian buster InRelease' is not signed.
E: Failed to fetch http://deb.debian.org/debian/dists/buster/InRelease  403  Forbidden [IP: 195.248.243.158 1088]
E: Failed to fetch http://security.debian.org/debian-security/dists/buster/updates/InRelease  403  Forbidden [IP: 195.248.243.158 1088]
E: The repository 'http://security.debian.org/debian-security buster/updates InRelease' is not signed.
E: Failed to fetch http://deb.debian.org/debian/dists/buster-updates/InRelease  403  Forbidden [IP: 195.248.243.158 1088]
E: The repository 'http://deb.debian.org/debian buster-updates InRelease' is not signed.
ERROR: Service 'snuba-cleanup' failed to build: The command '/bin/sh -c apt-get update && apt-get install -y --no-install-recommends cron &&     rm -r /var/lib/apt/lists/*' returned a non-zero code: 100

i have to use a proxy server which i configured according this:

Install log:
https://1drv.ms/t/s!AgSnK1j7asplnlFNx3_5J6wC0XwV?e=3rML95

The logs suggest that you have a configuration issue somewhere. Maybe this topic would help you: Setup Sentry on premise on a server with http proxy

not helping at all, by sending what i sent in the question.

cannot install after version 10.0 , tried many things

E: Failed to fetch http://deb.debian.org/debian/pool/main/l/lsb/lsb-base_10.2019051400_all.deb  Hash Sum mismatch
   Hashes of expected file:
    - SHA256:2dd69416c4e8decda8a9ed56e36275df7645aea7851b05eb16d42fed61b6a12f
    - MD5Sum:d8818e0a4e6402575c108d97d386abb8 [weak]
    - Filesize:28416 [weak]
   Hashes of received file:
    - SHA256:965ec5832fe6504becadc642d7641e6e4d2d692d7b55e49af7e7b9351d5df3f6
    - MD5Sum:29b8e7edb20a5ed11f67b3f8061a66a6 [weak]
    - Filesize:28416 [weak]
   Last modification reported: Thu, 16 May 2019 20:32:26 +0000
E: Failed to fetch http://deb.debian.org/debian/pool/main/c/cron/cron_3.0pl1-134+deb10u1_amd64.deb  0  [IP: 195.248.243.158 1088]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Removing intermediate container c06b5a9d2c16

ERROR: for sentry-cleanup  (<Service: sentry-cleanup>, "The command '/bin/sh -c apt-get update && apt-get install -y --no-install-recommends cron &&     rm -r /var/lib/apt/lists/*' returned a non-zero code: 100")
Service 'sentry-cleanup' failed to build: The command '/bin/sh -c apt-get update && apt-get install -y --no-install-recommends cron &&     rm -r /var/lib/apt/lists/*' returned a non-zero code: 100
An error occurred, caught SIGERR on line 178
Cleaning up...

i have installed version 10.0 in a same way and there was no problem, there is a problem in the installer

I referred to the whole discussion, not just to the Medium post (I did see it was the same link).

I don’t think we have changed anything that would affect this. Here are all the changes since v10: Comparing 10.0.0...20.7.2 · getsentry/self-hosted · GitHub

1 Like

I have fixed the issue, it was a proxy configuration problem,
my company requires proxy setup in order to access internet, i had to configure proxy in 4 location to successfully install sentry:

#1 command line proxy

sudo nano /etc/environment

HTTP_PROXY=http://u:p@x.x.x.x:p
FTP_PROXY=ftp://u:p@x.x.x.x:p
HTTPS_PROXY=https://u:p@x.x.x.x:p
NO_PROXY=localhost,127.0.0.1,::1


#2 apt proxy
	
sudo nano /etc/apt/apt.conf.d/proxy.conf

Acquire::http::Proxy "http://u:p@x.x.x.x:p";
Acquire::https::Proxy "https://u:p@x.x.x.x:p";
Acquire::ftp::Proxy "ftp://u:p@x.x.x.x:p";

#3 proxy for Docker daemon  		
sudo mkdir -p /etc/systemd/system/docker.service.d
sudo nano /etc/systemd/system/docker.service.d/proxy.conf

[Service]
Environment="HTTP_PROXY=http://u:p@x.x.x.x:p"
Environment="FTP_PROXY=ftp://u:p@x.x.x.x:p"
Environment="HTTPS_PROXY=https://u:p@x.x.x.x:p"
Environment="NO_PROXY="localhost,127.0.0.1,::1"

sudo systemctl daemon-reload
sudo systemctl restart docker.service

#4 proxy for Docker Compose  
sudo mkdir -p ~/.docker
sudo nano ~/.docker/config.json

{
 "proxies":
 {
   "default":
   {
     "httpProxy": "http://u:p@x.x.x.x:p",
     "ftpProxy": "ftp://u:p@x.x.x.x:p",
     "httpsProxy": "https://u:p@x.x.x.x:p",
     "noProxy": "localhost,127.0.0.1"
   }
 }
}

hope it helps.