I modified the server for which I do not think I have cookie (apache2-2) to return a 404 instead of a 403 and observed the following:
[ 9:49AM 10943 ] [ bdmurray@impulse:~/source-trees/ubuntu-archive-tools/ubuntu-archive-tools(rar-more-info✗) ] $ echo "https://autopkgtest.ubuntu.com/request.cgi?release=lunar&arch=arm64&package=nat-rtsp&trigger=linux-meta-raspi%2F5.19.0.1006.7" | xargs -rn1 -P10 curl --cookie ~/.cache/autopkgtest.cookie -o /dev/null --silent --head --write-out '%{url_effective}: %{http_code}\n' https://autopkgtest.ubuntu.com/request.cgi?release=lunar&arch=arm64&package=nat-rtsp&trigger=linux-meta-raspi%2F5.19.0.1006.7: 404 [ 10:05AM 10947 ] [ bdmurray@impulse:~/source-trees/ubuntu-archive-tools/ubuntu-archive-tools(rar-more-info✗) ] $ echo "https://autopkgtest.ubuntu.com/request.cgi?release=lunar&arch=arm64&package=nat-rtsp&trigger=linux-meta-raspi%2F5.19.0.1006.7" | xargs -rn1 -P10 curl --cookie ~/.cache/autopkgtest.cookie -o /dev/null --silent --head --write-out '%{url_effective}: %{http_code}\n' https://autopkgtest.ubuntu.com/request.cgi?release=lunar&arch=arm64&package=nat-rtsp&trigger=linux-meta-raspi%2F5.19.0.1006.7: 404 [ 10:05AM 10947 ] [ bdmurray@impulse:~/source-trees/ubuntu-archive-tools/ubuntu-archive-tools(rar-more-info✗) ] $ echo "https://autopkgtest.ubuntu.com/request.cgi?release=lunar&arch=arm64&package=nat-rtsp&trigger=linux-meta-raspi%2F5.19.0.1006.7" | xargs -rn1 -P10 curl --cookie ~/.cache/autopkgtest.cookie -o /dev/null --silent --head --write-out '%{url_effective}: %{http_code}\n' https://autopkgtest.ubuntu.com/request.cgi?release=lunar&arch=arm64&package=nat-rtsp&trigger=linux-meta-raspi%2F5.19.0.1006.7: 200 On the server we can see: grep "request.cgi.*nat-rtsp" /var/log/haproxy.log | cut -d' ' -f3,9,11 17:49:31 https_service/apache2-2-80 404 18:05:08 https_service/apache2-2-80 404 18:05:11 https_service/apache2-2-80 404 18:05:16 https_service/apache2-3-80 200 So it clearly seems to be something with the haproxy configuration. -- You received this bug notification because you are a member of Canonical's Ubuntu QA, which is subscribed to Auto Package Testing. https://bugs.launchpad.net/bugs/1999584 Title: requests.cgi returns 403 even when logged in Status in Auto Package Testing: Confirmed Bug description: I've recently modified the way I use retry-autopkgtest-regressions and now pass it to curl and print the url the and http_code of the request. I've been quite surprised by the number of 403s I'm getting even though I'm logged in and my cookie is still valid. Here's an example from 2022-12-13: $ ./retry-autopkgtest-regressions --log-regex "ERROR: testbed failure: cannot send to testbed" | vipe | xargs -rn1 -P10 curl --cookie ~/.c ache/autopkgtest.cookie -o /dev/null --silent --head --write-out '%{url_effective}: %{http_code}\n' https://autopkgtest.ubuntu.com/request.cgi?release=lunar&arch=arm64&package=node-imagemagick&trigger=graphicsmagick%2F1.4%2Breally1.3.38%2Bhg16870-1: 200 https://autopkgtest.ubuntu.com/request.cgi?release=lunar&arch=arm64&package=netplan.io&trigger=iproute2%2F6.0.0-1ubuntu1: 200 https://autopkgtest.ubuntu.com/request.cgi?release=lunar&arch=arm64&package=courier&trigger=exim4%2F4.96-9ubuntu1: 200 https://autopkgtest.ubuntu.com/request.cgi?release=lunar&arch=s390x&package=ruby-mini-magick&trigger=graphicsmagick%2F1.4%2Breally1.3.38%2Bhg16870-1: 200 https://autopkgtest.ubuntu.com/request.cgi?release=lunar&arch=s390x&package=golang-github-containernetworking-plugins&trigger=iproute2%2F6.0.0-1ubuntu1: 403 https://autopkgtest.ubuntu.com/request.cgi?release=lunar&arch=s390x&package=ruby-mojo-magick&trigger=graphicsmagick%2F1.4%2Breally1.3.38%2Bhg16870-1: 200 https://autopkgtest.ubuntu.com/request.cgi?release=lunar&arch=arm64&package=osk-sdl&trigger=graphicsmagick%2F1.4%2Breally1.3.38%2Bhg16870-1: 403 https://autopkgtest.ubuntu.com/request.cgi?release=lunar&arch=s390x&package=auto-multiple-choice&trigger=graphicsmagick%2F1.4%2Breally1.3.38%2Bhg16870-1: 403 https://autopkgtest.ubuntu.com/request.cgi?release=lunar&arch=s390x&package=sqldeveloper-package&trigger=graphicsmagick%2F1.4%2Breally1.3.38%2Bhg16870-1: 403 https://autopkgtest.ubuntu.com/request.cgi?release=lunar&arch=arm64&package=nat-rtsp&trigger=linux-meta-raspi%2F5.19.0.1006.7: 200 https://autopkgtest.ubuntu.com/request.cgi?release=lunar&arch=s390x&package=recoverjpeg&trigger=graphicsmagick%2F1.4%2Breally1.3.38%2Bhg16870-1: 403 This bears further investigation as we shouldn't be dropping any test requests. To manage notifications about this bug go to: https://bugs.launchpad.net/auto-package-testing/+bug/1999584/+subscriptions -- Mailing list: https://launchpad.net/~canonical-ubuntu-qa Post to : [email protected] Unsubscribe : https://launchpad.net/~canonical-ubuntu-qa More help : https://help.launchpad.net/ListHelp

