Uploading to PPA fails, showing "[Errno 111] Connection refused"

Asked by Robin Lee

cheese@cheese-laptop:~/build/mentohust$ LANG=en_US.UTF8 dput my-ppa mentohust_0.2.4-0~ppa1_source.changes
Checking Signature on .changes
gpg: Signature made Tue Oct 27 22:05:45 2009 CST using DSA key ID 294F35F9
gpg: Good signature from "Cheese Lee <cheeselee@126.com>"
Good signature on /home/cheese/build/mentohust/mentohust_0.2.4-0~ppa1_source.changes.
Checking Signature on .dsc
gpg: Signature made Tue Oct 27 22:05:42 2009 CST using DSA key ID 294F35F9
gpg: Good signature from "Cheese Lee <cheeselee@126.com>"
Good signature on /home/cheese/build/mentohust/mentohust_0.2.4-0~ppa1.dsc.
Package includes an .orig.tar.gz file although the debian revision suggests
that it might not be required. Multiple uploads of the .orig.tar.gz may be
rejected by the upload queue management software.
Uploading to my-ppa (via ftp to ppa.launchpad.net):
  Uploading mentohust_0.2.4-0~ppa1.dsc: [Errno 111] Connection refused

Question information

Language:
English Edit question
Status:
Answered
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Paul Hummer (rockstar) said :
#1

Is there a firewall between you and the greater internet?

Revision history for this message
Robin Lee (cheeselee) said :
#2

I can access PPA archives through http, that is to say, I can get on http://ppa.launchpad.net/ .
But I am not able to access ppa.lauchpad.net through ftp, which is necessary for uploading.

Revision history for this message
Paul Hummer (rockstar) said :
#3

Yes, so I'm wondering if there is a firewall that may be blocking your FTP access via port 23.

Revision history for this message
Robin Lee (cheeselee) said :
#4

How to check this?

Revision history for this message
Ursula Junque (ursinha) said :
#5

Hi Cheese,

I'd try to access ftp with user anonymous and empty password to see if you can reach the server.

ursula@phoenix: ~ $ ftp ppa.launchpad.net
Connected to ppa.launchpad.net.
220 0.0.0.0 Canonical FTP server ready.
Name (ppa.launchpad.net:ursula): anonymous
331 Password required
Password:
230 Login Successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> bye
221 Goodbye.

See if this helps.

Thanks,

Úrsula

Revision history for this message
Robin Lee (cheeselee) said :
#6

I can work through this procedure.

cheese@cheese-laptop:~$ ftp ppa.launchpad.net
Connected to ppa.launchpad.net.
220 0.0.0.0 Canonical FTP server ready.
Name (ppa.launchpad.net:cheese): anonymous
331 Password required
Password:
230 Login Successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> bye
221 Goodbye.

But it still show "[Errno 111] Connection refused" when I upload with dput.

cheese@cheese-laptop:~$ cat .dput.cf
[my-ppa]
fqdn = ppa.launchpad.net
method = ftp
incoming = ~cheeselee/ppa/ubuntu/
login = anonymous
allow_unsigned_uploads = 0

Revision history for this message
Julian Edwards (julian-edwards) said :
#7

Since you can ftp directly to ppa.launchpad.net it indicates that there is no problem with your connection or our servers.

I suspect that you have a proxy configured somewhere and it's refusing connections for whatever reason.

Can you try adding this to your .dput.cf:

passive_ftp = 0

Revision history for this message
Robin Lee (cheeselee) said :
#8

I added the line. But now it turn to another situation.
dput is frozen after showing this:

cheese@cheese-laptop:~/build/mentohust$ LANG=en_US.UTF8 dput my-ppa mentohust_0.2.5-0~r1_source.changes
Checking Signature on .changes
gpg: Signature made Tue Nov 10 08:50:50 2009 CST using DSA key ID 294F35F9
gpg: Good signature from "Cheese Lee <cheeselee@126.com>"
Good signature on /home/cheese/build/mentohust/mentohust_0.2.5-0~r1_source.changes.
Checking Signature on .dsc
gpg: Signature made Tue Nov 10 08:50:46 2009 CST using DSA key ID 294F35F9
gpg: Good signature from "Cheese Lee <cheeselee@126.com>"
Good signature on /home/cheese/build/mentohust/mentohust_0.2.5-0~r1.dsc.
Package includes an .orig.tar.gz file although the debian revision suggests
that it might not be required. Multiple uploads of the .orig.tar.gz may be
rejected by the upload queue management software.
Uploading to my-ppa (via ftp to ppa.launchpad.net):

Then the command prompt doesn't show back and there is a dput process but no ftp one.

Revision history for this message
Julian Edwards (julian-edwards) said :
#9

Ok then that didn't work.

As far as I can see, you've got a local problem and I'm not sure what else we can do to help here.

Doing something like:
dput my-ppa mentohust_0.2.5-0~r1_source.changes; netstat -an|grep 21

This will show the ftp session closing down and you can double check where it went.

Revision history for this message
Robin Lee (cheeselee) said :
#10

After running dput my-ppa mentohust_0.2.5-0~r1_source.changes; netstat -an|grep 21 , it shows something like this after the messages from dput:

tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN
tcp 0 70 192.168.14.127:49738 219.70.213.27:13577 ESTABLISHED
tcp 0 0 192.168.14.127:52880 121.235.252.224:19514 ESTABLISHED
tcp 0 1 192.168.14.127:45972 91.189.90.217:21 FIN_WAIT1
tcp 1 46 192.168.14.127:47753 218.162.124.44:24153 LAST_ACK
tcp 0 0 192.168.14.127:43126 221.239.134.242:17535 ESTABLISHED
tcp 0 0 192.168.14.127:48866 121.236.42.189:24024 ESTABLISHED
tcp 0 0 192.168.14.127:35500 60.177.21.120:19685 ESTABLISHED
tcp 0 0 192.168.14.127:40339 218.19.82.195:80 ESTABLISHED
unix 3 [ ] STREAM CONNECTED 10721
unix 3 [ ] STREAM CONNECTED 10421

What can I find out from the above informations?

Revision history for this message
Julian Edwards (julian-edwards) said :
#11

The line:

tcp 0 1 192.168.14.127:45972 91.189.90.217:21 FIN_WAIT1

Means that dput tried to connect to ppa.launchpad.net and that you're not getting proxied.

I have no idea what can be wrong since you can connect with ftp directly. It is still a local problem and not a Launchpad problem. As such the only thing I can recommend is asking on #ubuntu-motu or the forums.

As a work-around, you can actually use ftp instead of dput for now.

Revision history for this message
Chapin Bryce (cbryce) said :
#12

Did anyone find a solution to this?

Can you help with this problem?

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

To post a message you must log in.