gtbX wrote:I tested this again but this time specifying "clone-depth = 10" in my repos.conf/gentoo. This produced a configuration that both cloned and synced fairly quickly (obviously, ymmv)
Code: Select all
[DEFAULT]
main-repo = gentoo
[gentoo]
location = /var/db/repos/gentoo
sync-type = git
sync-uri = https://anongit.gentoo.org/git/repo/sync/gentoo.git
clone-depth = 10
sync-git-verify-commit-signature = yes
sync-openpgp-key-path = /usr/share/openpgp-keys/gentoo-release.asc
I have the same issue but the issue persists with clone-depth = 10
Code: Select all
coruscant ~ # GIT_TRACE=1 GIT_CURL_VERBOSE=1 emerge --sync gentoo
>>> Syncing repository 'gentoo' into '/var/db/repos/gentoo'...
12:34:33.935756 git.c:447 trace: built-in: git rev-parse --abbrev-ref --symbolic-full-name '@{upstream}'
/usr/bin/git fetch origin
12:34:33.941342 git.c:447 trace: built-in: git rev-list --max-count=1 HEAD
12:34:33.951175 git.c:447 trace: built-in: git fetch origin
12:34:33.984385 run-command.c:667 trace: run_command: GIT_DIR=.git git remote-https origin https://anongit.gentoo.org/git/repo/sync/gentoo.git
12:34:33.988881 git.c:733 trace: exec: git-remote-https origin https://anongit.gentoo.org/git/repo/sync/gentoo.git
12:34:33.988971 run-command.c:667 trace: run_command: git-remote-https origin https://anongit.gentoo.org/git/repo/sync/gentoo.git
12:34:33.994332 http.c:756 == Info: Couldn't find host anongit.gentoo.org in the (nil) file; using defaults
12:34:34.012216 http.c:756 == Info: Trying 148.251.78.52:443...
12:34:34.213244 http.c:756 == Info: Trying 2a01:4f8:202:4333::2:443...
12:34:34.213359 http.c:756 == Info: Immediate connect fail for 2a01:4f8:202:4333::2: Network is unreachable
12:34:34.345196 http.c:756 == Info: Connected to anongit.gentoo.org (148.251.78.52) port 443 (#0)
12:34:34.346188 http.c:756 == Info: ALPN, offering h2
12:34:34.346218 http.c:756 == Info: ALPN, offering http/1.1
12:34:34.365433 http.c:756 == Info: successfully set certificate verify locations:
12:34:34.365478 http.c:756 == Info: CAfile: /etc/ssl/certs/ca-certificates.crt
12:34:34.365496 http.c:756 == Info: CApath: /etc/ssl/certs
12:34:34.366215 http.c:756 == Info: TLSv1.3 (OUT), TLS handshake, Client hello (1):
12:34:34.714314 http.c:756 == Info: TLSv1.3 (IN), TLS handshake, Server hello (2):
12:34:34.724600 http.c:756 == Info: TLSv1.2 (IN), TLS handshake, Certificate (11):
12:34:34.726296 http.c:756 == Info: TLSv1.2 (IN), TLS handshake, Server key exchange (12):
12:34:34.727142 http.c:756 == Info: TLSv1.2 (IN), TLS handshake, Server finished (14):
12:34:34.727726 http.c:756 == Info: TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
12:34:34.727809 http.c:756 == Info: TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
12:34:34.728021 http.c:756 == Info: TLSv1.2 (OUT), TLS handshake, Finished (20):
12:34:35.063158 http.c:756 == Info: TLSv1.2 (IN), TLS handshake, Finished (20):
12:34:35.063285 http.c:756 == Info: SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
12:34:35.063312 http.c:756 == Info: ALPN, server accepted to use http/1.1
12:34:35.063350 http.c:756 == Info: Server certificate:
12:34:35.063396 http.c:756 == Info: subject: CN=anon.gentoo.org
12:34:35.063429 http.c:756 == Info: start date: Jun 23 01:30:15 2021 GMT
12:34:35.063455 http.c:756 == Info: expire date: Sep 21 01:30:14 2021 GMT
12:34:35.063513 http.c:756 == Info: subjectAltName: host "anongit.gentoo.org" matched cert's "anongit.gentoo.org"
12:34:35.063568 http.c:756 == Info: issuer: C=US; O=Let's Encrypt; CN=R3
12:34:35.063587 http.c:756 == Info: SSL certificate verify ok.
12:34:35.063706 http.c:703 => Send header, 0000000214 bytes (0x000000d6)
12:34:35.063729 http.c:715 => Send header: GET /git/repo/sync/gentoo.git/info/refs?service=git-upload-pack HTTP/1.1
12:34:35.063740 http.c:715 => Send header: Host: anongit.gentoo.org
12:34:35.063748 http.c:715 => Send header: User-Agent: git/2.31.1
12:34:35.063757 http.c:715 => Send header: Accept: */*
12:34:35.063766 http.c:715 => Send header: Accept-Encoding: deflate, gzip
12:34:35.063779 http.c:715 => Send header: Pragma: no-cache
12:34:35.063792 http.c:715 => Send header: Git-Protocol: version=2
12:34:35.063802 http.c:715 => Send header:
12:34:35.405622 http.c:756 == Info: Mark bundle as not supporting multiuse
12:34:35.405713 http.c:703 <= Recv header, 0000000017 bytes (0x00000011)
12:34:35.405736 http.c:715 <= Recv header: HTTP/1.1 200 OK
12:34:35.405755 http.c:703 <= Recv header, 0000000015 bytes (0x0000000f)
12:34:35.405769 http.c:715 <= Recv header: Server: nginx
12:34:35.405784 http.c:703 <= Recv header, 0000000037 bytes (0x00000025)
12:34:35.405797 http.c:715 <= Recv header: Date: Tue, 13 Jul 2021 02:34:35 GMT
12:34:35.405816 http.c:703 <= Recv header, 0000000059 bytes (0x0000003b)
12:34:35.405828 http.c:715 <= Recv header: Content-Type: application/x-git-upload-pack-advertisement
12:34:35.405846 http.c:703 <= Recv header, 0000000028 bytes (0x0000001c)
12:34:35.405860 http.c:715 <= Recv header: Transfer-Encoding: chunked
12:34:35.405878 http.c:703 <= Recv header, 0000000024 bytes (0x00000018)
12:34:35.405891 http.c:715 <= Recv header: Connection: keep-alive
12:34:35.405906 http.c:703 <= Recv header, 0000000024 bytes (0x00000018)
12:34:35.405919 http.c:715 <= Recv header: Keep-Alive: timeout=20
12:34:35.405930 http.c:703 <= Recv header, 0000000040 bytes (0x00000028)
12:34:35.405940 http.c:715 <= Recv header: Expires: Tue, 13 Jul 2021 02:49:35 GMT
12:34:35.405954 http.c:703 <= Recv header, 0000000018 bytes (0x00000012)
12:34:35.405967 http.c:715 <= Recv header: Pragma: no-cache
12:34:35.405982 http.c:703 <= Recv header, 0000000028 bytes (0x0000001c)
12:34:35.405995 http.c:715 <= Recv header: Cache-Control: max-age=900
12:34:35.406012 http.c:703 <= Recv header, 0000000155 bytes (0x0000009b)
12:34:35.406027 http.c:715 <= Recv header: Content-Security-Policy: default-src 'self' https://assets.gentoo.org; img-src *; media-src *; style-src 'self' https://assets.gentoo.org 'unsafe-inline'
12:34:35.406045 http.c:703 <= Recv header, 0000000002 bytes (0x00000002)
12:34:35.406055 http.c:715 <= Recv header:
12:34:35.406111 http.c:756 == Info: Connection #0 to host anongit.gentoo.org left intact
12:34:35.406913 run-command.c:667 trace: run_command: git fetch-pack --stateless-rpc --stdin --lock-pack --include-tag --thin https://anongit.gentoo.org/git/repo/sync/gentoo.git/
12:34:35.409933 git.c:447 trace: built-in: git fetch-pack --stateless-rpc --stdin --lock-pack --include-tag --thin https://anongit.gentoo.org/git/repo/sync/gentoo.git/
12:34:35.411023 http.c:756 == Info: Couldn't find host anongit.gentoo.org in the (nil) file; using defaults
12:34:35.411156 http.c:756 == Info: Found bundle for host anongit.gentoo.org: 0x555cbdab4df0 [serially]
12:34:35.411172 http.c:756 == Info: Can not multiplex, even if we wanted to!
12:34:35.411375 http.c:756 == Info: Re-using existing connection! (#0) with host anongit.gentoo.org
12:34:35.411399 http.c:756 == Info: Connected to anongit.gentoo.org (148.251.78.52) port 443 (#0)
12:34:35.411615 http.c:703 => Send header, 0000000261 bytes (0x00000105)
12:34:35.411683 http.c:715 => Send header: POST /git/repo/sync/gentoo.git/git-upload-pack HTTP/1.1
12:34:35.411697 http.c:715 => Send header: Host: anongit.gentoo.org
12:34:35.411753 http.c:715 => Send header: User-Agent: git/2.31.1
12:34:35.411810 http.c:715 => Send header: Accept-Encoding: deflate, gzip
12:34:35.411821 http.c:715 => Send header: Content-Type: application/x-git-upload-pack-request
12:34:35.411830 http.c:715 => Send header: Accept: application/x-git-upload-pack-result
12:34:35.411839 http.c:715 => Send header: Content-Length: 279
12:34:35.411848 http.c:715 => Send header:
12:35:35.757917 http.c:756 == Info: Mark bundle as not supporting multiuse
12:35:35.757976 http.c:703 <= Recv header, 0000000031 bytes (0x0000001f)
12:35:35.758024 http.c:715 <= Recv header: HTTP/1.1 504 Gateway Time-out
12:35:35.758058 http.c:703 <= Recv header, 0000000015 bytes (0x0000000f)
12:35:35.758088 http.c:715 <= Recv header: Server: nginx
12:35:35.758119 http.c:703 <= Recv header, 0000000037 bytes (0x00000025)
12:35:35.758148 http.c:715 <= Recv header: Date: Tue, 13 Jul 2021 02:35:35 GMT
12:35:35.758190 http.c:703 <= Recv header, 0000000025 bytes (0x00000019)
12:35:35.758220 http.c:715 <= Recv header: Content-Type: text/html
12:35:35.758253 http.c:703 <= Recv header, 0000000022 bytes (0x00000016)
12:35:35.758283 http.c:715 <= Recv header: Content-Length: 2283
12:35:35.758328 http.c:703 <= Recv header, 0000000024 bytes (0x00000018)
12:35:35.758358 http.c:715 <= Recv header: Connection: keep-alive
12:35:35.758393 http.c:703 <= Recv header, 0000000024 bytes (0x00000018)
12:35:35.758452 http.c:715 <= Recv header: Keep-Alive: timeout=20
12:35:35.758470 http.c:703 <= Recv header, 0000000022 bytes (0x00000016)
12:35:35.758483 http.c:715 <= Recv header: ETag: "5e126410-8eb"
12:35:35.758496 http.c:703 <= Recv header, 0000000002 bytes (0x00000002)
12:35:35.758506 http.c:715 <= Recv header:
12:35:35.758555 http.c:756 == Info: Connection #0 to host anongit.gentoo.org left intact
error: RPC failed; HTTP 504 curl 22 The requested URL returned error: 504
fatal: the remote end hung up unexpectedly
!!! git fetch error in /var/db/repos/gentoo
Action: sync for repo: gentoo, returned code = 128
coruscant ~ #
any suggestions? maybe I should switch back to rsync.
edit: Strangly,
Code: Select all
rm -rf /var/db/repos/gentoo && emerge --sync gentoo
works