masneyb / gftp

gFTP is a free multithreaded file transfer client for *NIX based machines. 56 language translations available.
http://www.gftp.org
MIT License
116 stars 21 forks source link

Issues with new version and Pure-FTP #149

Open iandoug opened 2 years ago

iandoug commented 2 years ago

Hi

Can you please see https://forums.gentoo.org/viewtopic.php?p=8724116#8724116

And maybe comment here?

Thanks, Ian

wdlkmpx commented 2 years ago

That error message can only happen when attempting active connections

The log doesn't show the line "entering passive mode" or something before requesting the file list, so it's not in passive mode

Pure-ftpd is a buggy server, something might be wrong. Before I compile stuff and perform tests, you must ensure the following checkbox is ticked:

gFTP menu -> Preferences -> FTP - > Passive file transfers

It's about time to change the config file location to be XDG compliant..

wdlkmpx commented 2 years ago

I see the same error when I try to connect to any remote server in active mode (Passive file transfers disabled)

CWD /
250 CWD command successful
PWD
257 "/" is the current directory
Loading directory listing / from server (LC_TIME=en_US.UTF-8)
Cannot bind a port: Cannot assign requested address
Disconnecting from site slackware.uk

So you're using gFTP in active mode, this shouldn't be happening, it shouldn't be using the config file from the old version either

Here's another reason to change gftp's config file location: https://www.linuxquestions.org/questions/linux-security-4/ssl-tls-on-gftp-on-slackware-14-2-a-4175644386/

I still have a local pure-ftpd server (1.0.49), this is an implicit FTPS connection (FTPSi)

gFTP 2.9.1b - http://www.gftp.org/
Looking up localhost
Trying localhost:990 (127.0.0.1)
Connected to localhost:990
SSL connection established using TLSv1.2 (xxxxxxx...)
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 18:04. Server port: 990.
220 You will be disconnected after 15 minutes of inactivity.
PBSZ 0
200 PBSZ=0
PROT P
200 Data protection level set to "private"
USER anonymous
230 Anonymous user logged in
FEAT
TYPE I
200 TYPE is now 8-bit binary
PWD
257 "/" is your current location
Loading directory listing / from server (LC_TIME=en_US.UTF-8)
EPRT |1|127.0.0.1|45181|
200 PORT command successful
MLSD
150 Connecting to port 45181
SSL data connection established using TLSv1.2 (xxxxxxx...)
226 34 matches total
iandoug commented 2 years ago

gFTP menu -> Preferences -> FTP - > Passive file transfers

Yes, that is one of the things I checked.

I see the options in this version are different to old ... maybe there are issues reading the old config and mapping to new options?

Thanks, Ian

wdlkmpx commented 2 years ago

Hard to tell what it's exactly going on since I always use the latest config and everything

Close gFTP, rename ~/.gftp to ~/.gftpz, start gftp and see what happens

I think the system gftprc is /usr/share/gftp/gftprc, it should have been replaced with the newer one

wdlkmpx commented 2 years ago

I have a couple of questions

1) Does gftp work as expected with other ftp servers? (paste the first lines) 2) Does gftp work as expected if you delete the old config?

iandoug commented 2 years ago

Hi

Sorry for delay. I downgraded to old version which works. I will have to upgrade and test new version as requested. Will revert.

Cheers, Ian

wdlkmpx commented 2 years ago

Hahaha I knew the next reply would not be helpful that's why I somehow managed to not read it until now. 2022.09.14

wdlkmpx commented 2 years ago

This is gftp-portable for testing purposes

Date: 2022.09.14 Git revision: 86d12b7a

Does not include SSL support

(oops the git revision no longer exists, git --amend changes the commit, this is the true revision https://github.com/masneyb/gftp/commit/2923afdebf8403fbb6bd5ab2a026104fe1347600 )