1081048">

Debian Bug report logs - #1081048
devscripts: debrebuild from main branch does not work with a proxy

version graph

Package: devscripts; Maintainer for devscripts is Devscripts Maintainers <devscripts@packages.debian.org>; Source for devscripts is src:devscripts (PTS, buildd, popcon).

Reported by: Holger Levsen <holger@debian.org>

Date: Sat, 7 Sep 2024 16:27:01 UTC

Severity: normal

Found in version 2.23.7-78-gee16294f

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, josch@debian.org, reproducible-builds@alioth-lists.debian.net, Devscripts Maintainers <devscripts@packages.debian.org>:
Bug#1081048; Package devscripts. (Sat, 07 Sep 2024 16:27:02 GMT) (full text, mbox, link).


Acknowledgement sent to Holger Levsen <holger@debian.org>:
New Bug report received and forwarded. Copy sent to josch@debian.org, reproducible-builds@alioth-lists.debian.net, Devscripts Maintainers <devscripts@packages.debian.org>. (Sat, 07 Sep 2024 16:27:02 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, holger@osuosl4-amd64:/srv/data/holger/devscripts$ ./scripts/debrebuild.pl --builder=sbuild+unshare ../codespell_2.3.0-1_amd64.buildinfo > ../codespell_2.3.0-1_amd64.buildinfo contained a GPG signature; it has NOT been validated (debrebuild does not support this)! > Using defined Build-Path: /build/codespell-2.3.0 > 0% [Working]Traceback (most recent call last): > File "/usr/bin/debootsnap", line 137, in header_cb > field, value = line.split(":", 1) > ^^^^^^^^^^^^ > ValueError: not enough values to unpack (expected 2, got 1) > ---------------------------------------- > Exception occurred during processing of request from ('127.0.0.1', 55668) > Traceback (most recent call last): > File "/usr/lib/python3.11/socketserver.py", line 317, in _handle_request_noblock > self.process_request(request, client_address) > File "/usr/lib/python3.11/socketserver.py", line 348, in process_request > self.finish_request(request, client_address) > File "/usr/lib/python3.11/socketserver.py", line 361, in finish_request > self.RequestHandlerClass(request, client_address, self) > File "/usr/lib/python3.11/http/server.py", line 667, in __init__ > super().__init__(*args, **kwargs) > File "/usr/lib/python3.11/socketserver.py", line 755, in __init__ > self.handle() > File "/usr/lib/python3.11/http/server.py", line 432, in handle > self.handle_one_request() > File "/usr/lib/python3.11/http/server.py", line 420, in handle_one_request > method() > File "/usr/bin/debootsnap", line 148, in do_GET > c.perform() > pycurl.error: (23, 'Failed writing header') > ---------------------------------------- > Traceback (most recent call last): > File "/usr/bin/debootsnap", line 137, in header_cb > field, value = line.split(":", 1) > ^^^^^^^^^^^^ > ValueError: not enough values to unpack (expected 2, got 1) > ---------------------------------------- > Exception occurred during processing of request from ('127.0.0.1', 55670) > Traceback (most recent call last): > File "/usr/lib/python3.11/socketserver.py", line 317, in _handle_request_noblock > self.process_request(request, client_address) > File "/usr/lib/python3.11/socketserver.py", line 348, in process_request > self.finish_request(request, client_address) > File "/usr/lib/python3.11/socketserver.py", line 361, in finish_request > self.RequestHandlerClass(request, client_address, self) > File "/usr/lib/python3.11/http/server.py", line 667, in __init__ > super().__init__(*args, **kwargs) > File "/usr/lib/python3.11/socketserver.py", line 755, in __init__ > self.handle() ">reply):

From: Holger Levsen <holger@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: devscripts: debrebuild from main branch does not work with a proxy
Date: Sat, 7 Sep 2024 16:22:51 +0000
[Message part 1 (text/plain, inline)]
Package: devscripts
Version: 2.23.7-78-gee16294f
Severity: normal
User: devscripts@packages.debian.org
Usertags: debrebuild
X-Debbugs-Cc: josch@debian.org, reproducible-builds@alioth-lists.debian.net

Dear josch,

when trying to use debrebuild from the main branch and when using a proxy
to cause less load on snapshot.debian.org, this fails for me:

holger@osuosl4-amd64:/srv/data/holger/devscripts$ export http_proxy="http://localhost:3128"
holger@osuosl4-amd64:/srv/data/holger/devscripts$ ./scripts/debrebuild.pl --builder=sbuild+unshare ../codespell_2.3.0-1_amd64.buildinfo 
../codespell_2.3.0-1_amd64.buildinfo contained a GPG signature; it has NOT been validated (debrebuild does not support this)!
Using defined Build-Path: /build/codespell-2.3.0
0% [Working]Traceback (most recent call last):
  File "/usr/bin/debootsnap", line 137, in header_cb
    field, value = line.split(":", 1)
    ^^^^^^^^^^^^
ValueError: not enough values to unpack (expected 2, got 1)
----------------------------------------
Exception occurred during processing of request from ('127.0.0.1', 55668)
Traceback (most recent call last):
  File "/usr/lib/python3.11/socketserver.py", line 317, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/usr/lib/python3.11/socketserver.py", line 348, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib/python3.11/socketserver.py", line 361, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python3.11/http/server.py", line 667, in __init__
    super().__init__(*args, **kwargs)
  File "/usr/lib/python3.11/socketserver.py", line 755, in __init__
    self.handle()
  File "/usr/lib/python3.11/http/server.py", line 432, in handle
    self.handle_one_request()
  File "/usr/lib/python3.11/http/server.py", line 420, in handle_one_request
    method()
  File "/usr/bin/debootsnap", line 148, in do_GET
    c.perform()
pycurl.error: (23, 'Failed writing header')
----------------------------------------
Traceback (most recent call last):
  File "/usr/bin/debootsnap", line 137, in header_cb
    field, value = line.split(":", 1)
    ^^^^^^^^^^^^
ValueError: not enough values to unpack (expected 2, got 1)
----------------------------------------
Exception occurred during processing of request from ('127.0.0.1', 55670)
Traceback (most recent call last):
  File "/usr/lib/python3.11/socketserver.py", line 317, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/usr/lib/python3.11/socketserver.py", line 348, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib/python3.11/socketserver.py", line 361, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python3.11/http/server.py", line 667, in __init__
    super().__init__(*args, **kwargs)
  File "/usr/lib/python3.11/socketserver.py", line 755, in __init__
    self.handle()
  File "/usr/lib/python3.11/http/server.py", line 432, in handle
    self.handle_one_request()
  File "/usr/lib/python3.11/http/server.py", line 420, in handle_one_request
    method()
  File "/usr/bin/debootsnap", line 148, in do_GET
    c.perform()
pycurl.error: (23, 'Failed writing header')
----------------------------------------
Ign:1 http://localhost:53979/archive/debian/20240903T204216Z sid InRelease
0% [Working]Traceback (most recent call last):
  File "/usr/bin/debootsnap", line 137, in header_cb
    field, value = line.split(":", 1)
    ^^^^^^^^^^^^
ValueError: not enough values to unpack (expected 2, got 1)
----------------------------------------
Exception occurred during processing of request from ('127.0.0.1', 55674)
Traceback (most recent call last):
  File "/usr/lib/python3.11/socketserver.py", line 317, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/usr/lib/python3.11/socketserver.py", line 348, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib/python3.11/socketserver.py", line 361, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python3.11/http/server.py", line 667, in __init__
    super().__init__(*args, **kwargs)
  File "/usr/lib/python3.11/socketserver.py", line 755, in __init__
    self.handle()
  File "/usr/lib/python3.11/http/server.py", line 432, in handle
    self.handle_one_request()
  File "/usr/lib/python3.11/http/server.py", line 420, in handle_one_request
    method()
  File "/usr/bin/debootsnap", line 148, in do_GET
    c.perform()
pycurl.error: (23, 'Failed writing header')
----------------------------------------
Traceback (most recent call last):
  File "/usr/bin/debootsnap", line 137, in header_cb
    field, value = line.split(":", 1)
    ^^^^^^^^^^^^
ValueError: not enough values to unpack (expected 2, got 1)
----------------------------------------
Exception occurred during processing of request from ('127.0.0.1', 55688)
Traceback (most recent call last):
  File "/usr/lib/python3.11/socketserver.py", line 317, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/usr/lib/python3.11/socketserver.py", line 348, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib/python3.11/socketserver.py", line 361, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python3.11/http/server.py", line 667, in __init__
    super().__init__(*args, **kwargs)
  File "/usr/lib/python3.11/socketserver.py", line 755, in __init__
    self.handle()
  File "/usr/lib/python3.11/http/server.py", line 432, in handle
    self.handle_one_request()
  File "/usr/lib/python3.11/http/server.py", line 420, in handle_one_request
    method()
  File "/usr/bin/debootsnap", line 148, in do_GET
    c.perform()
pycurl.error: (23, 'Failed writing header')
----------------------------------------
Ign:1 http://localhost:53979/archive/debian/20240903T204216Z sid InRelease
0% [Working]Traceback (most recent call last):
  File "/usr/bin/debootsnap", line 137, in header_cb
    field, value = line.split(":", 1)
    ^^^^^^^^^^^^
ValueError: not enough values to unpack (expected 2, got 1)
----------------------------------------
Exception occurred during processing of request from ('127.0.0.1', 55696)
Traceback (most recent call last):
  File "/usr/lib/python3.11/socketserver.py", line 317, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/usr/lib/python3.11/socketserver.py", line 348, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib/python3.11/socketserver.py", line 361, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python3.11/http/server.py", line 667, in __init__
    super().__init__(*args, **kwargs)
  File "/usr/lib/python3.11/socketserver.py", line 755, in __init__
    self.handle()
  File "/usr/lib/python3.11/http/server.py", line 432, in handle
    self.handle_one_request()
  File "/usr/lib/python3.11/http/server.py", line 420, in handle_one_request
    method()
  File "/usr/bin/debootsnap", line 148, in do_GET
    c.perform()
pycurl.error: (23, 'Failed writing header')
----------------------------------------
Traceback (most recent call last):
  File "/usr/bin/debootsnap", line 137, in header_cb
    field, value = line.split(":", 1)
    ^^^^^^^^^^^^
ValueError: not enough values to unpack (expected 2, got 1)
----------------------------------------
Exception occurred during processing of request from ('127.0.0.1', 55708)
Traceback (most recent call last):
  File "/usr/lib/python3.11/socketserver.py", line 317, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/usr/lib/python3.11/socketserver.py", line 348, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib/python3.11/socketserver.py", line 361, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python3.11/http/server.py", line 667, in __init__
    super().__init__(*args, **kwargs)
  File "/usr/lib/python3.11/socketserver.py", line 755, in __init__
    self.handle()
  File "/usr/lib/python3.11/http/server.py", line 432, in handle
    self.handle_one_request()
  File "/usr/lib/python3.11/http/server.py", line 420, in handle_one_request
    method()
  File "/usr/bin/debootsnap", line 148, in do_GET
    c.perform()
pycurl.error: (23, 'Failed writing header')
----------------------------------------
Ign:1 http://localhost:53979/archive/debian/20240903T204216Z sid InRelease
0% [Working]^CTraceback (most recent call last):
  File "/usr/bin/debootsnap", line 694, in <module>
    main(sys.argv[1:])
  File "/usr/bin/debootsnap", line 680, in main
    download_packages(tmpdirname, sources, pkgs, nativearch, foreignarches)
  File "/usr/bin/debootsnap", line 600, in download_packages
    subprocess.check_call(
  File "/usr/lib/python3.11/subprocess.py", line 408, in check_call
    retcode = call(*popenargs, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 391, in call
    return p.wait(timeout=timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 1262, in wait
    return self._wait(timeout=timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 1997, in _wait
    (pid, sts) = self._try_wait(0)
                 ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 1955, in _try_wait
    (pid, sts) = os.waitpid(self.pid, wait_flags)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyboardInterrupt
debootsnap failed at ./scripts/debrebuild.pl line 423.
holger@osuosl4-amd64:/srv/data/holger/devscripts$ git describe HEAD
v2.23.7-78-gee16294f
holger@osuosl4-amd64:/srv/data/holger/devscripts$ git log --oneline -1
ee16294f (HEAD -> main, origin/main, origin/HEAD) Tidy lib/Devscripts/Salsa/Repo.pm
holger@osuosl4-amd64:/srv/data/holger/devscripts$ 


-- 
cheers,
	Holger

 ⢀⣴⠾⠻⢶⣦⠀
 ⣾⠁⢠⠒⠀⣿⡁  holger@(debian|reproducible-builds|layer-acht).org
 ⢿⡄⠘⠷⠚⠋⠀  OpenPGP: B8BF54137B09D35CF026FE9D 091AB856069AAA1C
 ⠈⠳⣄

I too often read "The planet is dying! 😱" It is not. The planet is adapting 
to what we're doing. There will always be a rich ecosystem on our planet.
But that ecosystem will adapt to the point where we no longer have a place in 
it. No, the planet is not dying. We are. (@KleineMaulwurf@troet.cafe)
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Devscripts Maintainers <devscripts@packages.debian.org>:
Bug#1081048; Package devscripts. (Fri, 13 Sep 2024 15:39:01 GMT) (full text, mbox, link).


Acknowledgement sent to Linus Nordberg <linus@glasklarteknik.se>:
Extra info received and forwarded to list. Copy sent to Devscripts Maintainers <devscripts@packages.debian.org>.

Your message did not contain a Subject field. They are recommended and useful because the title of a Bug is determined using this field. Please remember to include a Subject field in your messages in future.

(Fri, 13 Sep 2024 15:39:01 GMT) (full text, mbox, link).


Message #10 received at 1081048@bugs.debian.org (full text, mbox, reply):

From: Linus Nordberg <linus@glasklarteknik.se>
To: 1081048@bugs.debian.org
Date: Fri, 13 Sep 2024 17:27:38 +0200
I think this is due to snapshot.d.o. returning HTTP 302 since ~summer.

[1] implements support for following (one) 302 redirection.

[1] https://salsa.debian.org/linus/devscripts/-/tree/ln5/debrebuild?ref_type=heads



Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Jan 31 00:43:27 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.