Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lftp returns error : "Cannot assign requested address" #495

Closed
Mausy5043 opened this issue Oct 7, 2017 · 6 comments
Closed

lftp returns error : "Cannot assign requested address" #495

Mausy5043 opened this issue Oct 7, 2017 · 6 comments

Comments

@Mausy5043
Copy link
Contributor

Trying to use lftp to upload data to my webserver is unsuccesful:

$ lftp -d mysite.nl
lftp ftpuser@mysite.nl@mysite.nl:~> ls
---- Connecting to mysite.nl (xxxx:xxxx:x::xx) port 21
**** connect(control_sock): Cannot assign requested address
---- Closing control socket
ls: Cannot assign requested address
lftp ftpuser@mysite.nl@mysite.nl:~> ls
---- Connecting to mysite.nl (xxxx:xxxx:x::xx) port 21
**** connect(control_sock): Cannot assign requested address
---- Closing control socket
ls: Cannot assign requested address
lftp ftpuser@mysite.nl@mysite.nl:~> exit

Using the same settings and commands on another Debian machine (Ubuntu 16.04) is succesfull.
I expect a package is missing but haven't been able to figure out which one.
The problem has persisted for the past couple of months.
Using a build of the current (07OCT2017) v1.1.x branch still doesn't fix the problem.

@kpfleming
Copy link

Is lftp IPv6-aware? It may not be, and it might be trying to use an IPv4 socket with an IPv6 address (the address you masked out looks like an IPv6 format).

@Mausy5043
Copy link
Contributor Author

Mausy5043 commented Oct 8, 2017

Yes it's an IPv6 address.
How can I determine if that is what's happening?

@brunetton
Copy link

Same issue here, with a demain name that resolves as a IPV4 adress. Working well on another Debian computer.
Solved using IP adress instead of domain name.

@Mausy5043
Copy link
Contributor Author

Mausy5043 commented Mar 8, 2018

Finally seem to have solved it.

Adding this line to ~/.lftprc :

set dns:order "inet inet6"

seems to work.

If someone could confirm this?

@goranche
Copy link
Contributor

goranche commented Mar 8, 2018

@Mausy5043 this isn't really related to the installer

closing for now

@goranche goranche closed this as completed Mar 8, 2018
@brunetton
Copy link

Thanks SOOOOOOO much @Mausy5043, it works like a charm ! I was stucked for such a long time with this one !
🍾

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants