[Bug 208808] Re: requestsync crashed with LPUrlError in _safe_urlopen()
Daniel Hahler
launchpad at thequod.de
Wed Apr 9 23:43:33 UTC 2008
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
** Changed in: ubuntu-dev-tools (Ubuntu)
Assignee: (unassigned) => Daniel Hahler (blueyed)
Status: New => Incomplete
** Visibility changed to: Public
** Description changed:
Binary package hint: ubuntu-dev-tools
I was trying to request a sync using requestsync with python-launchpad-
bugs (--lp).
I edited the report, it asked if I want to send it, I answered yes, and
it crashed.
ProblemType: Crash
Architecture: amd64
Date: Sat Mar 29 15:52:10 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/bin/requestsync
InterpreterPath: /usr/bin/python2.5
Package: ubuntu-dev-tools 0.29 [modified: usr/bin/pbuilder-dist]
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/requestsync -s --lp ndisgtk hardy
ProcEnviron:
SHELL=/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
LANG=de_DE.UTF-8
PythonArgs: ['/usr/bin/requestsync', '-s', '--lp', 'ndisgtk', 'hardy']
SourcePackage: ubuntu-dev-tools
Title: requestsync crashed with LPUrlError in _safe_urlopen()
Uname: Linux 2.6.24-12-generic x86_64
UserGroups: adm admin audio cdrom dialout dip floppy fuse lpadmin mythtv netdev plugdev powerdev scanner vboxusers video
+
+ ERROR:
+ Traceback (most recent call last):
+ File "/usr/bin/requestsync", line 350, in <module>
+ if post_bug(srcpkg, subscribe, mapping[status], title, report):
+ File "/usr/bin/requestsync", line 225, in post_bug
+ bug = Bug.New(product = product, summary = bugtitle, description = bugtext)
+ File "/usr/lib/python2.5/site-packages/launchostnameadbugs/connector.py", line 101, in New
+ return getattr(self.module, "create_new_bugreport")(connection=self.connection, *args, **kwargs)
+ File "/usr/lib/python2.5/site-packages/launchostnameadbugs/html_bug.py", line 1385, in create_new_bugreport
+ result = connection.post(url, args)
+ File "/usr/lib/python2.5/site-packages/launchostnameadbugs/http_connection.py", line 129, in post
+ return self._safe_urlopen(url, data, True)
+ File "/usr/lib/python2.5/site-packages/launchostnameadbugs/http_connection.py", line 171, in _safe_urlopen
+ raise Error.LPUrlError(error, url)
+ LPUrlError: 'An internal server error occurred. Please try again later. (url: https://bugs.launchostnamead.net/ubuntu/+source/ndisgtk/+filebug-advanced)'
--
requestsync crashed with LPUrlError in _safe_urlopen()
https://bugs.launchpad.net/bugs/208808
You received this bug notification because you are a member of MOTU,
which is subscribed to ubuntu-dev-tools in ubuntu.
More information about the universe-bugs
mailing list