apport-collect fails to connect to launchpad.net

Asked by sachit

I filed a bug report https://bugs.launchpad.net/ubuntu/+source/linux/+bug/851958.
and was instructed to run apport collect. however apport collect fails to run from the terminal:

$ apport-collect 851958
ERROR: connecting to Launchpad failed: Unable to find the server at launchpad.net
You can reset the credentials by removing the file "/home/user/.cache/apport/launchpad.credentials"
$ rm /home/user/.cache/apport/launchpad.credentials
rm: cannot remove `/home/user/.cache/apport/launchpad.credentials': No such file or directory

What do I do? Why is this happening? Could some one guide me through the diagnostics?
Would like to help out in bug triage but dont know how. Thanks.

Question information

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Try:

touch /home/user/.cache/apport/launchpad.credentials

See if that helps

Revision history for this message
Sam_ (and-sam) said :
#2

> rm: cannot remove `/home/user/.cache/apport/launchpad.credentials

Options, remove the file with sudo or upload with sudo, which is needed on specific bug reports to allow access on launchpad.
sudo apport-collect 851958

This will open a launchpad page where you're requested to allow access for variable time, afterwards it'll upload necessary files.

Revision history for this message
sachit (staticd-growthecommons) said :
#3

Thanks for the quick replies.
However neither touch /home/user/.cache/apport/launchpad.credentials nor running it as sudo worked.

Could it be some system proxy setting? I have set the gconf proxies and the http_proxy, https_proxy env variables. I can update ubuntu, download packages and wget fine.

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#4

Have you verified that you have a working Internet connection in the live system at the time that apport-collect is run?

Revision history for this message
Drew McCray (hintatdrew) said :
#5

I'm having a very similar issue. Specifically

>apport-collect {BUG}
Error connecting to Launchpad: 'NoneType' object has no attribute 'makefile'
You can reset the credentials by removing the file "/home/durandal/.cache/apport/launchpad.credentials"

The file does not exist. Parents do.

touch-ing the file changes the error to
Error connecting to Launchpad: No configuration for version 1
You can reset the credentials by removing the file "/home/durandal/.cache/apport/launchpad.credentials"

running via sudo does not change output.

Also behind a proxy, configured in gconf, for which http(s) traffic is fine. IRC is also fine through this proxy. Maunually exporting the proxy to the shell does not change output.

Connection is confirmed up during attempt. (web and IM traffic)
Ubuntu Version: Ubuntu 10.04.3 LTS
Kernel 2.6.32-33-generic AMD64

Revision history for this message
sachit (staticd-growthecommons) said :
#6

Yes the internet connection was working fine. I had the launchpad page open while I was trying this.

Revision history for this message
sachit (staticd-growthecommons) said :
#7

Interrupting apport (with Ctrl+c) while it is waiting seems to indicate the time out is occuring at line 128 in credentials.py

A little searching seems to indicate that the httplib2 on which apport depends (as of ver 0.7.1) cannot
(a) work from behind squid http proxies see http://code.google.com/p/httplib2/issues/detail?id=159
(b)does not automatically use the proxies set in the env variables http_proxy/https_proxy. (needs to be explicitly set)
see http://code.google.com/p/httplib2/issues/detail?id=159.

been trying to use the latest libs but no luck.

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#8

So is this bug 619610, then?

Revision history for this message
Lealcy B. Junior (lealcy) said :
#9

This bug affects me as well. I'm running behind a proxy and I have all proxy env setted.

Revision history for this message
grgf (gfdsf) said :
#10

If you wanna connect it with your ubuntu.net you can visit https://thepaintly.com/ they will give you the complete path to solve and connect it with ubuntu.

Can you help with this problem?

Provide an answer of your own, or ask sachit for more information if necessary.

To post a message you must log in.