Comment 2 for bug 208808

Revision history for this message
Daniel Hahler (blueyed) wrote :

It's likely that the required Launchpad cookie is missing.
I, for myself, had to create a cookie text file, containing the "lp" and "edge" cookie, using the curl method described at https://wiki.ubuntu.com/SponsorshipProcess/ppaput.
That won't help you with the current requestsync, because it only uses the old-style Firefox cookies (~/.mozilla/*/*/cookies.txt).

Try changing the following line in /usr/bin/requestsync from:
        cookiefile = glob.glob(os.path.expanduser('~/.mozilla/*/*/cookies.txt'))[0]
to:
        cookiefile = glob.glob(os.path.expanduser('~/.mozilla/*/*/cookies.sqlite'))[0]

and make sure, that you're logged into launchpad.net and edge.launchpad.net (if you're member of the launchpad-beta team).

But, as I've just seen on my system, that might also not work correctly:
$ ls -1 ~/.mozilla/*/*/cookies.sqlite
/home/daniel/.mozilla/firefox-3.0..abandoned/4cz7eaqf.default/cookies.sqlite
/home/daniel/.mozilla/firefox/4cz7eaqf.default/cookies.sqlite

The first match looks like some obsolete profile, which you might not have access to easily.

I have a local branch, where requestsync tries the following globs for setting the required cookie file:
1. ~/.lpcookie
2. ~/.mozilla/*/*/cookies.sqlite
3. ~/.mozilla/*/*/cookies.txt