How to authenticate apport-retrace to Launchpad?

Asked by Sergey "Shnatsel" Davidoff

How do I authenticate apport-retrace to Launchpad?
man apport-retrace mentions using cookies.txt from Firefox profile, but Firefox has migrated to SQLite for storing cookies, and I'm not sure if LP uses cookies at all.

Question information

Language:
English Edit question
Status:
Solved
For:
Apport Edit question
Assignee:
No assignee Edit question
Solved by:
Martin Pitt
Solved:
Last query:
Last reply:
Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) said :
#1

I've tried generating cookies.txt with https://addons.mozilla.org/en-US/firefox/addon/export-cookies/ but I get the following error:
"ERROR: connecting to Launchpad failed: File contains no section headers.
file: cookies.txt, line: 5"

Revision history for this message
Best Martin Pitt (pitti) said :
#2

python-launchpadlib does not use cookies at all. Instead, if you call apport-retrace the first time, it should pop up a Launchpad web page in your browser where you need to authenticate. It will also print "please look at that LP time and then get back to me".

It will store the credentials in ~/.cache/apport/launchpad.credentials, unless you specify a different path with --auth.

Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) said :
#3

Thanks Martin Pitt, that solved my question.

Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) said :
#4

It didn't show LP authentication page until I passed it "--auth=~/.cache/apport/launchpad.credentials", but that might be caused by me trying to use --auth=cookies.txt before. Thanks again!