Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php-fpm failed to fetch debian archive 403 error #3470

Open
NiceLeader opened this issue Oct 26, 2023 · 3 comments
Open

php-fpm failed to fetch debian archive 403 error #3470

NiceLeader opened this issue Oct 26, 2023 · 3 comments

Comments

@NiceLeader
Copy link

NiceLeader commented Oct 26, 2023

Description:

During the build process of my Laradock containers, I am encountering an error on php-fpm when trying to fetch certain packages from the Debian repository servers. The error occurs at different stages of the build process, sometimes on the first package and sometimes on others, making the issue appear to be random. The primary error message is E: Failed to fetch followed by a URL and a connection error message, indicating a failure to connect to the deb.debian.org servers. Additionally, similar errors were encountered while fetching other packages such as npm, JDK, and ImageMagick at random stages during the build process. However, I have temporarily bypassed these errors by disabling the installation of these packages as they are not required for my current project.

It's not problem with my internet because another packages downloading without problem, also i pinged ip that resolving failed:

maciej@DESKTOP-ALIPPNQ:~/projects/php8.2/cashrewind-api/laradock$ ping 146.75.118.132
PING 146.75.118.132 (146.75.118.132) 56(84) bytes of data.
64 bytes from 146.75.118.132: icmp_seq=1 ttl=58 time=28.0 ms
64 bytes from 146.75.118.132: icmp_seq=2 ttl=58 time=27.4 ms
64 bytes from 146.75.118.132: icmp_seq=3 ttl=58 time=27.7 ms
64 bytes from 146.75.118.132: icmp_seq=4 ttl=58 time=27.4 ms
64 bytes from 146.75.118.132: icmp_seq=5 ttl=58 time=27.2 ms
^C
--- 146.75.118.132 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4006ms
rtt min/avg/max/mdev = 27.169/27.532/27.957/0.272 ms
maciej@DESKTOP-ALIPPNQ:~/projects/php8.2/cashrewind-api/laradock$

Also i tried to change CHANGE_SOURCE=true but this caused another errors.

Context information:

b958fc096c1c43fd5ed73eeef727fe636bd1b789
Client: Docker Engine - Community
 Cloud integration: v1.0.35+desktop.5
 Version:           24.0.6
 API version:       1.43
 Go version:        go1.20.7
 Git commit:        ed223bc
 Built:             Mon Sep  4 12:32:16 2023
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Desktop
 Engine:
  Version:          24.0.6
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.7
  Git commit:       1a79695
  Built:            Mon Sep  4 12:32:16 2023
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.22
  GitCommit:        8165feabfdfe38c65b599c4993d227328c231fca
 runc:
  Version:          1.1.8
  GitCommit:        v1.1.8-0-g82f18fe
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0```

Docker Compose version v2.22.0-desktop.2
Windows 10 + docker desktop + Ubuntu on WSL2

Steps to reproduce the issue:

  1. Run git submodule add -f https://github.com/Laradock/laradock.git to add Laradock submodule.
  2. Copy .env.example to .env inside laradock directory.
  3. Set PHP_VERSION=8.2 in .env file.
  4. Set PHP_WORKER_INSTALL_REDIS=true in .env file.
  5. Set WORKSPACE_NODE_VERSION=v16.14.2 in `.env' file.
  6. Set PHP_FPM_INSTALL_IMAGEMAGICK=false in .env file.
  7. Set DOCKER_SYNC_STRATEGY=unison in .env file.
  8. Set COMPOSE_PROJECT_NAME=test-api in .env file.
  9. Set DATA_PATH_HOST=~/.laradock/test-api in .env file.
  10. Run docker-compose up -d nginx php-fpm php-worker mysql phpmyadmin redis redis-webui workspace to build docker containers and start.

Stacktrace & Additional info:

maciej@DESKTOP-ALIPPNQ:~/projects/php8.2/cashrewind-api/laradock$ sh start.sh
[+] Building 78.0s (8/86)                                                                                                                                                                                                     docker:default
 => [php-fpm internal] load .dockerignore                                                                                                                                                                                               0.0s
 => => transferring context: 2B                                                                                                                                                                                                         0.0s
 => [php-fpm internal] load build definition from Dockerfile                                                                                                                                                                            0.0s
 => => transferring dockerfile: 50.76kB                                                                                                                                                                                                 0.0s
 => [php-fpm internal] load metadata for docker.io/laradock/php-fpm:latest-8.2                                                                                                                                                          1.2s
 => [php-fpm auth] laradock/php-fpm:pull token for registry-1.docker.io                                                                                                                                                                 0.0s
 => [php-fpm internal] load build context                                                                                                                                                                                               0.0s
 => => transferring context: 132B                                                                                                                                                                                                       0.0s
 => [php-fpm  1/81] FROM docker.io/laradock/php-fpm:latest-8.2@sha256:7c8421f7bb02b3f7e8d3901db3bd163a9a6cdece4900a361e84ea9f9be021055                                                                                                  0.0s
 => CACHED [php-fpm  2/81] RUN if [ false = true ]; then     sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/' /etc/apt/sources.list &&     sed -i 's/security.debian.org/mirrors.tuna.tsinghua.edu.cn/' /etc/apt/sources.list &  0.0s
 => ERROR [php-fpm  3/81] RUN set -xe;     apt-get update -yqq &&     pecl channel-update pecl.php.net &&     apt-get install -yqq       apt-utils       gnupg2       git       libzip-dev zip unzip &&       if [ 8.2 = "7.3" ] || [  76.6s
------
 > [php-fpm  3/81] RUN set -xe;     apt-get update -yqq &&     pecl channel-update pecl.php.net &&     apt-get install -yqq       apt-utils       gnupg2       git       libzip-dev zip unzip &&       if [ 8.2 = "7.3" ] || [ 8.2 = "7.4" ] || [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then         docker-php-ext-configure zip;       else         docker-php-ext-configure zip --with-libzip;       fi &&       docker-php-ext-install zip &&       php -m | grep -q 'zip':
0.309 + apt-get update -yqq
2.683 + pecl channel-update pecl.php.net
2.705 Updating channel "pecl.php.net"
3.308 Channel "pecl.php.net" is up to date
3.310 + apt-get install -yqq apt-utils gnupg2 git libzip-dev zip unzip
76.63 E: Failed to fetch http://deb.debian.org/debian/pool/main/libe/libedit/libedit2_3.1-20221030-2_amd64.deb  403  connecting to deb.debian.org:80: connecting to 146.75.118.132:80: dial tcp 146.75.118.132:80: connectex: Prba poczenia nie powioda si, poniewa poczona strona nie odpowiedziaa poprawnie po ustalonym okresie czasu lub utworzone poczenie nie powiodo si, poniewa poczony host nie odpowiedzia. [IP: 146.75.118.132 80]
76.63 E: Failed to fetch http://deb.debian.org/debian/pool/main/libk/libksba/libksba8_1.6.3-2_amd64.deb  403  connecting to deb.debian.org:80: connecting to 146.75.118.132:80: dial tcp 146.75.118.132:80: connectex: Prba poczenia nie powioda si, poniewa poczona strona nie odpowiedziaa poprawnie po ustalonym okresie czasu lub utworzone poczenie nie powiodo si, poniewa poczony host nie odpowiedzia. [IP: 146.75.118.132 80]
76.63 E: Failed to fetch http://deb.debian.org/debian/pool/main/g/gnupg2/gnupg-utils_2.2.40-1.1_amd64.deb  403  connecting to deb.debian.org:80: connecting to 146.75.118.132:80: dial tcp 146.75.118.132:80: connectex: Prba poczenia nie powioda si, poniewa poczona strona nie odpowiedziaa poprawnie po ustalonym okresie czasu lub utworzone poczenie nie powiodo si, poniewa poczony host nie odpowiedzia. [IP: 146.75.118.132 80]
76.63 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
------
failed to solve: process "/bin/sh -c set -xe;     apt-get update -yqq &&     pecl channel-update pecl.php.net &&     apt-get install -yqq       apt-utils       gnupg2       git       libzip-dev zip unzip &&       if [ ${LARADOCK_PHP_VERSION} = \"7.3\" ] || [ ${LARADOCK_PHP_VERSION} = \"7.4\" ] || [ $(php -r \"echo PHP_MAJOR_VERSION;\") = \"8\" ]; then         docker-php-ext-configure zip;       else         docker-php-ext-configure zip --with-libzip;       fi &&       docker-php-ext-install zip &&       php -m | grep -q 'zip'" did not complete successfully: exit code: 100
@parallels999
Copy link

A 403 Forbidden Error occurs when you do not have permission to access a web page or something else on a web server

Maybe ISP problems? Probably a non-reproducible issue

@SwierczKacper
Copy link

SwierczKacper commented Nov 1, 2023

I have 1:1 same issue, sometime i got 403 errors and sometime 404 errors

1 similar comment
@Knowicki24
Copy link

I have 1:1 same issue, sometime i got 403 errors and sometime 404 errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants