Launchpad couldn't connect to ALSA Bug Tracker.

Bug #261254 reported by Brian Murray
6
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Abel Deuring

Bug Description

Bug watches of ALSA bug tracker bugs are not being updated. Bug 114053 is an example of this.

Exception type BugTrackerConnectError
Exception value http://bugtrack.alsa-project.org/alsa-bug: HTTP Error 500: Internal Server Error

Related branches

Revision history for this message
Diogo Matsubara (matsubara) wrote :

For some reason, alsa bugtracker is returning a HTTP Error 500: Internal Server Error

Related OOPS: OOPS-968CCW1994, OOPS-969CCW1944

Changed in malone:
importance: Undecided → High
status: New → Confirmed
description: updated
Changed in malone:
assignee: nobody → intellectronica
Revision history for this message
Eleanor Berger (intellectronica) wrote :

Looks like the CSV export of the mantis bug tracker at alsa is broken, and returns 500 errors. We'll have to find who's the administrator of the bug tracker and let them know.

Revision history for this message
Eleanor Berger (intellectronica) wrote :

Actually, that's not the whole story - we should be able to fall back from using the CSV export to screen scraping, but that doesn't work correctly, so it's worth fixing regardless of the problem on the server itself

Revision history for this message
Eleanor Berger (intellectronica) wrote :

After testing this on several machines as well as the staging server, it now looks like the problem is with the redirect from http to https

Revision history for this message
Eleanor Berger (intellectronica) wrote :

confirmed. marking this as a duplicate of an existing bug about redirects from https to https. i have also changed the bug tracker information, so it should be ok in the future.

Revision history for this message
Eleanor Berger (intellectronica) wrote :

Maybe this isn't a dupe after all - fixing the bugtracker URL didn't solve the problem.

Revision history for this message
Eleanor Berger (intellectronica) wrote :

Actually, maybe it is the problem. All the relevant oopses refer to the http address, and are from before the change, so we'll have to wait for the next run to confirm.

Revision history for this message
era (era) wrote :

So is this a duplicate of Bug #34102?

Gavin Panella (allenap)
tags: added: story-reliable-bug-syncing
Revision history for this message
Gavin Panella (allenap) wrote :

I did some investigation. It seems that, for the ALSA tracker, the return value from Mantis.csv_data is an HTML page, containing the login form (from login_page.php).

I tried detecting if the page was HTML - see the diff at http://pastebin.ubuntu.com/364577/ - and then falling back to page scraping. However, it still returned the login page.

It seems that the auto-login code in MantisLoginHandler is no longer enough to get us access. The guest user name and password we give are fine - they work in the browser - so I suspect the problem is that Mantis wants us to POST the form.

Revision history for this message
Abel Deuring (adeuring) wrote :

There are two problems:

  - class MantisLoginHandler was designed to be used with ClientCookie, while r7133 replaced ClientCokkie by urllib2
  - acessing the CSV data URL on the Alsa bug tracker leads to HTTP 500 error.

Changed in malone:
assignee: Tom Berger (intellectronica) → Abel Deuring (adeuring)
status: Triaged → In Progress
Abel Deuring (adeuring)
Changed in malone:
milestone: none → 10.04
status: In Progress → Fix Committed
Revision history for this message
Ursula Junque (ursinha) wrote : Bug fixed by a commit
tags: added: qa-needstesting
Revision history for this message
Ursula Junque (ursinha) wrote :
Revision history for this message
Abel Deuring (adeuring) wrote :

The code changes pass several tests: Running cronscripts/checkwatches.py works (mostly) fine on staging for several Mantis trackers; running the method Mantis.initializeRemoteBugDB() with all Alsa related bugs work fine on a development machine (except for bug 570263).

One problem remains: Attempts to access the Alsa bug tracker from staging result in "Connection Refused" HTTP errors. Seems that Launchpad is blacklisted by the Alsa tracker. I contacted their webmaster to see what we can do to remedy this.

tags: added: qa-ok
removed: qa-needstesting
Curtis Hovey (sinzui)
Changed in malone:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.