dput [Errno 110] Connection timed out

Asked by Edwin Lu

This is the first time I'm uploading a ppa so I'm not sure if there's any additional configuration I need to do. I'm uploading a test ppa and encountering a timeout error

$ dput ppa:ewlu/ppa-binutils-2.41-initial-test /var/cache/pbuilder/result/binutils_2.41-1ubuntu2_source.changes
D: Splitting host argument out of ppa:ewlu/ppa-binutils-2.41-initial-test.
D: Setting host argument.
Checking signature on .changes
gpg: /var/cache/pbuilder/result/binutils_2.41-1ubuntu2_source.changes: Valid signature from 1AB561F1DB4BCEFF
Checking signature on .dsc
gpg: /var/cache/pbuilder/result/binutils_2.41-1ubuntu2.dsc: Valid signature from 1AB561F1DB4BCEFF
Uploading to ppa (via ftp to ppa.launchpad.net):
Traceback (most recent call last):
  File "/usr/bin/dput", line 33, in <module>
    sys.exit(load_entry_point('dput==1.1.0+ubuntu2.1', 'console_scripts', 'execute-dput')())
  File "/usr/share/dput/dput/dput.py", line 1211, in main
    upload_methods[method](
  File "/usr/share/dput/dput/methods/ftp.py", line 52, in upload
    ftp_connection.cwd(incoming)
  File "/usr/lib/python3.10/ftplib.py", line 625, in cwd
    return self.voidcmd(cmd)
  File "/usr/lib/python3.10/ftplib.py", line 286, in voidcmd
    return self.voidresp()
  File "/usr/lib/python3.10/ftplib.py", line 259, in voidresp
    resp = self.getresp()
  File "/usr/lib/python3.10/ftplib.py", line 244, in getresp
    resp = self.getmultiline()
  File "/usr/lib/python3.10/ftplib.py", line 230, in getmultiline
    line = self.getline()
  File "/usr/lib/python3.10/ftplib.py", line 212, in getline
    line = self.file.readline(self.maxline + 1)
  File "/usr/lib/python3.10/socket.py", line 705, in readinto
    return self._sock.recv_into(b)
TimeoutError: [Errno 110] Connection timed out

ppa.launchpad.net is not down for me since ping works
$ ping ppa.launchpad.net
PING ppa.launchpad.net (185.125.190.80) 56(84) bytes of data.
64 bytes from ppa.launchpadcontent.net (185.125.190.80): icmp_seq=1 ttl=53 time=169 ms
64 bytes from ppa.launchpadcontent.net (185.125.190.80): icmp_seq=2 ttl=53 time=163 ms
64 bytes from ppa.launchpadcontent.net (185.125.190.80): icmp_seq=3 ttl=53 time=171 ms

and ftp works
$ ftp ppa.launchpad.net
Trying 185.125.190.80:21 ...
Connected to ppa.launchpad.net.
220 Launchpad upload server
Name (ppa.launchpad.net:ewlu): ^C

I don't know what files need to be transferred so that's why I'm still using dput instead of just ftp. Is there something I'm doing incorrectly?

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
Ines Almeida (ines-almeida) said :
#1

On a first look, I don't see anything wrong with your `dput` command.

Did you retry and get the same error?
If you retry now and get the same error, could you provide us with some timestamps for when the upload starts and when it times out?

----

On another note, as far as I am aware, the files you want to upload are the ones listed in in the `*.changes` file it under `Files:`, plus the `*.changes` file itself.

Revision history for this message
Edwin Lu (ewlu) said :
#2

Hi,

I was able to get `dput` to run and upload the sources file when running it on a different wifi network. I think it might just be a network configuration (likely a proxy problem) which was preventing `dput` from working properly. Not fully sure at what stage it was happening but I was able to upload something to the ppa once I was off a proxy network.

---

Thanks for the help! If I continue to have this problem, I'll give plain ftp a shot and work it out from there.

Revision history for this message
Ines Almeida (ines-almeida) said :
#3

Interesting, and good to hear that it all worked!

Can you help with this problem?

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

To post a message you must log in.