dunglas / symfony-docker

A Docker-based installer and runtime for Symfony. Install: download and `docker compose up`.
https://dunglas.dev/2021/12/symfonys-new-native-docker-support-symfony-world/
2.59k stars 771 forks source link

403 on caddy #422

Closed onuqer closed 1 year ago

onuqer commented 1 year ago

when I try docker compose build --pull --no-cache I get that output:

#0 7.734 2023/06/23 09:54:44 [INFO] exec (timeout=-2562047h47m16.854775808s): /usr/local/go/bin/go get -d -v github.com/dunglas/mercure/caddy github.com/caddyserver/caddy/v2@v2.6.4 
#0 8.078 go: downloading github.com/dunglas/mercure v0.14.10
#0 8.079 go: downloading github.com/dunglas/mercure/caddy v0.14.10
#0 9.378 go: downloading github.com/prometheus/client_golang v1.15.1
#0 9.378 go: downloading github.com/quic-go/quic-go v0.34.0
#0 9.496 go: downloading golang.org/x/sys v0.8.0
#0 9.589 go: downloading golang.org/x/term v0.8.0
#0 9.630 go: downloading github.com/klauspost/cpuid/v2 v2.2.4
#0 9.630 go: downloading github.com/mholt/acmez v1.1.1
#0 9.661 go: downloading github.com/miekg/dns v1.1.54
#0 9.662 go: downloading golang.org/x/crypto v0.9.0
#0 9.753 go: downloading golang.org/x/net v0.10.0
#0 9.899 go: downloading github.com/cespare/xxhash/v2 v2.2.0
#0 9.899 go: downloading github.com/prometheus/client_model v0.4.0
#0 9.925 go: downloading github.com/prometheus/common v0.44.0
#0 9.954 go: downloading github.com/prometheus/procfs v0.10.0
#0 9.991 go: downloading google.golang.org/protobuf v1.30.0
#0 10.09 go: downloading go.uber.org/atomic v1.11.0
#0 10.10 go: downloading go.uber.org/multierr v1.11.0
#0 10.11 go: downloading github.com/onsi/ginkgo/v2 v2.9.5
#0 10.14 go: downloading github.com/dustin/go-humanize v1.0.1
#0 10.19 go: downloading github.com/google/cel-go v0.15.3
#0 10.36 go: downloading google.golang.org/genproto v0.0.0-20230524185152-1884fd1fac28
#0 10.36 go: downloading github.com/dgraph-io/ristretto v0.1.1
#0 10.36 go: downloading github.com/gofrs/uuid v4.4.0+incompatible
#0 10.36 go: downloading github.com/golang-jwt/jwt/v4 v4.5.0
#0 10.41 go: downloading github.com/gorilla/handlers v1.5.1
#0 10.43 go: downloading github.com/gorilla/mux v1.8.0
#0 10.46 go: downloading github.com/hashicorp/golang-lru v0.5.4
#0 10.46 go: downloading github.com/kevburnsjr/skipfilter v0.0.1
#0 10.48 go: downloading github.com/spf13/pflag v1.0.5
#0 10.49 go: downloading github.com/spf13/viper v1.15.0
#0 10.50 go: downloading github.com/unrolled/secure v1.13.0
#0 10.55 go: downloading github.com/yosida95/uritemplate/v3 v3.0.2
#0 10.57 go: downloading go.etcd.io/bbolt v1.3.7
#0 10.60 go: downloading golang.org/x/tools v0.9.1
#0 10.60 go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.4
#0 10.63 go: downloading golang.org/x/text v0.9.0
#0 11.61 go: downloading golang.org/x/mod v0.10.0
#0 11.61 go: downloading golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1
#0 11.61 go: downloading github.com/quic-go/qtls-go1-19 v0.3.2
#0 11.67 go: downloading github.com/quic-go/qtls-go1-20 v0.2.2
#0 11.74 go: downloading github.com/smallstep/certificates v0.24.2
#0 11.77 go: downloading github.com/smallstep/truststore v0.12.1
#0 11.77 go: downloading go.step.sm/crypto v0.30.0
#0 11.90 go: downloading github.com/tailscale/tscert v0.0.0-20230509043813-4e9cb4f2b4ad
#0 11.95 go: downloading github.com/aryann/difflib v0.0.0-20210328193216-ff5ff6dc229b
#0 11.99 go: downloading github.com/spf13/cobra v1.7.0
#0 11.99 go: downloading github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.0.0-20230305170008-8188dc5388df
#0 11.99 go: downloading github.com/stoewer/go-strcase v1.3.0
#0 12.03 go: downloading github.com/felixge/httpsnoop v1.0.3
#0 12.04 go: downloading github.com/MauriceGit/skiplist v0.0.0-20211105230623-77f5c8d3e145
#0 12.04 go: downloading github.com/RoaringBitmap/roaring v1.3.0
#0 12.05 go: downloading github.com/antlr/antlr4/runtime/Go/antlr v1.4.10
#0 12.08 go: downloading github.com/fsnotify/fsnotify v1.6.0
#0 12.11 go: downloading github.com/mitchellh/mapstructure v1.5.0
#0 12.11 go: downloading github.com/spf13/afero v1.9.5
#0 12.14 go: downloading github.com/spf13/cast v1.5.1
#0 12.16 go: downloading github.com/spf13/jwalterweatherman v1.1.0
#0 12.18 go: downloading github.com/golang/protobuf v1.5.3
#0 12.19 go: downloading howett.net/plist v1.0.0
#0 12.19 go: downloading github.com/pkg/errors v0.9.1
#0 12.21 go: downloading github.com/smallstep/nosql v0.6.0
#0 12.26 go: downloading go.step.sm/cli-utils v0.7.6
#0 12.27 go: downloading go.step.sm/linkedca v0.19.1
#0 12.32 go: downloading google.golang.org/grpc v1.55.0
#0 12.33 go: downloading gopkg.in/square/go-jose.v2 v2.6.0
#0 12.35 go: downloading github.com/slackhq/nebula v1.7.1
#0 12.40 go: downloading github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572
#0 12.43 go: downloading github.com/inconshreveable/mousetrap v1.1.0
#0 12.47 go: downloading github.com/golang/glog v1.1.1
#0 12.56 go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.2
#0 12.62 go: downloading gopkg.in/yaml.v3 v3.0.1
#0 12.68 go: downloading github.com/subosito/gotenv v1.4.2
#0 12.72 go: downloading github.com/hashicorp/hcl v1.0.0
#0 12.80 go: downloading gopkg.in/ini.v1 v1.67.0
#0 12.80 go: downloading github.com/magiconair/properties v1.8.7
#0 12.81 go: downloading github.com/pelletier/go-toml/v2 v2.0.8
#0 12.81 go: downloading filippo.io/edwards25519 v1.0.0
#0 12.86 go: downloading github.com/Masterminds/sprig/v3 v3.2.3
#0 12.86 go: downloading github.com/Microsoft/go-winio v0.6.1
#0 12.86 go: downloading github.com/mitchellh/go-ps v1.0.0
#0 12.89 go: downloading github.com/micromdm/scep/v2 v2.1.0
#0 12.92 go: downloading go.mozilla.org/pkcs7 v0.0.0-20210826202110-33d05740a352
#0 12.96 go: downloading github.com/urfave/cli v1.22.13
#0 12.96 go: downloading github.com/chzyer/readline v1.5.1
#0 12.96 go: downloading github.com/manifoldco/promptui v0.9.0
#0 12.97 go: downloading github.com/google/pprof v0.0.0-20230510103437-eeec1cb781c3
#0 13.01 go: downloading github.com/russross/blackfriday/v2 v2.1.0
#0 13.02 go: downloading github.com/dgraph-io/badger v1.6.2
#0 13.15 go: downloading github.com/dgraph-io/badger/v2 v2.2007.4
#0 13.16 go: downloading github.com/go-sql-driver/mysql v1.7.1
#0 13.28 go: downloading github.com/jackc/pgx/v4 v4.18.1
#0 13.28 go: downloading github.com/go-kit/kit v0.12.0
#0 13.38 go: downloading github.com/Masterminds/goutils v1.1.1
#0 13.38 go: downloading github.com/Masterminds/semver/v3 v3.2.1
#0 13.39 go: downloading github.com/huandu/xstrings v1.4.0
#0 13.39 go: downloading github.com/imdario/mergo v0.3.15
#0 13.42 go: downloading github.com/mitchellh/copystructure v1.2.0
#0 13.43 go: downloading github.com/shopspring/decimal v1.3.1
#0 13.44 go: downloading github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13
#0 13.44 go: downloading github.com/jackc/pgconn v1.14.0
#0 13.47 go: downloading github.com/jackc/pgio v1.0.0
#0 13.48 go: downloading github.com/jackc/pgproto3/v2 v2.3.2
#0 13.48 go: downloading github.com/jackc/pgtype v1.14.0
#0 13.48 go: downloading github.com/go-kit/log v0.2.1
#0 13.53 go: downloading github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d
#0 13.55 go: downloading github.com/AndreasBriese/bbloom v0.0.0-20190825152654-46b345b51c96
#0 13.56 go: downloading github.com/golang/snappy v0.0.4
#0 13.66 go: downloading github.com/klauspost/compress v1.16.5
#0 13.66 go: downloading github.com/mitchellh/reflectwalk v1.0.2
#0 13.67 go: downloading github.com/jackc/chunkreader/v2 v2.0.1
#0 13.67 go: downloading github.com/jackc/pgpassfile v1.0.0
#0 13.70 go: downloading github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a
#0 13.70 go: downloading github.com/go-logfmt/logfmt v0.6.0
#0 13.70 go: downloading github.com/shurcooL/sanitized_anchor_name v1.0.0
#0 13.73 go: downloading github.com/mattn/go-colorable v0.1.13
#0 13.77 go: downloading github.com/mattn/go-isatty v0.0.19
#0 22.76 github.com/dunglas/mercure/caddy imports
#0 22.76    github.com/dunglas/mercure imports
#0 22.76    github.com/kevburnsjr/skipfilter imports
#0 22.76    github.com/RoaringBitmap/roaring/roaring64: github.com/RoaringBitmap/roaring@v1.3.0: reading https://proxy.golang.org/github.com/%21roaring%21bitmap/roaring/@v/v1.3.0.zip: 403 Forbidden
#0 22.76 github.com/dunglas/mercure/caddy imports
#0 22.76    github.com/caddyserver/caddy/v2/caddyconfig/httpcaddyfile imports
#0 22.76    github.com/caddyserver/caddy/v2/modules/caddypki imports
#0 22.76    github.com/smallstep/certificates/authority imports
#0 22.76    github.com/smallstep/nosql imports
#0 22.76    github.com/smallstep/nosql/badger/v2 imports
#0 22.76    github.com/dgraph-io/badger/v2 imports
#0 22.76    github.com/dgraph-io/badger/v2/y imports
#0 22.76    github.com/klauspost/compress/zstd: github.com/klauspost/compress@v1.16.5: reading https://proxy.golang.org/github.com/klauspost/compress/@v/v1.16.5.zip: 403 Forbidden
#0 24.37 2023/06/23 09:55:01 [FATAL] exit status 1
------
failed to solve: process "/bin/sh -c xcaddy build v2.6.4 \t--with github.com/dunglas/mercure/caddy \t--with github.com/dunglas/vulcain/caddy" did not complete successfully: exit code: 1

it happens only on cloud server, any ideas how to fight it?

onuqer commented 1 year ago

Solved it with changing ip