← Back to team overview

canonical-ubuntu-qa team mailing list archive

Re: [Bug 1999584] Re: requests.cgi returns 403 even when logged in

 

On Wed, Dec 14, 2022 at 07:06:09PM -0000, Steve Langasek wrote:
> On Wed, Dec 14, 2022 at 06:27:25PM -0000, Brian Murray wrote:
> > Actually we need to set the SRVNAME in the cookie file we are using with
> > curl so that we connect to the server with which we are logged in. Like
> > so:
> 
> > autopkgtest.ubuntu.com  TRUE    /       TRUE    0       SRVNAME S2
> 
> I have been setting this all along, but I still have been getting
> intermittent "403" errors.

Was this with S0 or S1? If so perhaps you'll have better luck with S2
and S3 which are the systems with more resources.

--
Brian Murray

-- 
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:
  Invalid

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



References