TC sometimes asks for FTP password even when it is saved

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
tmcdos
Junior Member
Junior Member
Posts: 30
Joined: 2006-05-22, 18:29 UTC
Location: Sofia, Bulgaria
Contact:

TC sometimes asks for FTP password even when it is saved

Post by *tmcdos »

I have a stored FTP connection (listed when you click Ctrl+F) which also contains the username and password stored.
So when I click Ctrl+F, select that connection and press ENTER - TC connects to the FTP server without prompting me for password.
The remote server is Debian with vsFTPd 3.0.3 and it has a default timeout of 600 seconds for idle connections.
On this particular FTP server, when I connect with TC and the connection is idle for too much time - TC detects this and shows a dialog offering to re-connect. After 2 or 3 such dialogs it suddenly begins asking for an FTP password. If I dont' provide a password - it keeps asking it (even though it has been saved in the connection settings). If I provide the password - which has not changed, by the way - then it reconnects and continues fine.
And after being idle for some time - it again starts asking for the password.
This behavior happens only with this FTP server - I have not experienced it anywhere else and I am using TC for 20 years.
If I enable the creating of a log file for FTP connections - the issue does not happen (or maybe I don't wait long enough).
Please advice me what can I do to gather enough information for the troubleshooting.
I can create a limited FTP account and provide the credentials by a private message.
The log file does not look suspicious but maybe it does not contain all the low-level information that could help for the debugging (TC asks for the password on OFFLINE6 event):

----------
Connect to: (04.10.2022 15:53:39)
hostname=WEBPAGEops.com
username=root
startdir=/var/www/WEBPAGE
WEBPAGEops.com=144.202.45.131
220 (vsFTPd 3.0.3)
USER root
331 Please specify the password.
PASS ***********
230 Login successful.
SYST
215 UNIX Type: L8
FEAT
211-Features:
EPRT
EPSV
MDTM
PASV
REST STREAM
SIZE
TVFS
211 End
HELP SITE
214-The following commands are recognized.
ABOR ACCT ALLO APPE CDUP CWD DELE EPRT EPSV FEAT HELP LIST MDTM MKD
MODE NLST NOOP OPTS PASS PASV PORT PWD QUIT REIN REST RETR RMD RNFR
RNTO SITE SIZE SMNT STAT STOR STOU STRU SYST TYPE USER XCUP XCWD XMKD
XPWD XRMD
214 Help OK.
OPTS UTF8 ON
200 Always in UTF8 mode.
CWD /var/www/WEBPAGE
250 Directory successfully changed.
Connect ok!
PWD
257 "/var/www/WEBPAGE" is the current directory
Get directory
TYPE A
200 Switching to ASCII mode.
PASV
227 Entering Passive Mode (144,202,45,131,40,113).
Connected to PASV port
LIST -la
150 Here comes the directory listing.
Download
Waiting for server...
and more...
226 Directory send OK.
CWD api
250 Directory successfully changed.
PWD
257 "/var/www/WEBPAGE/api" is the current directory
Get directory
PASV
227 Entering Passive Mode (144,202,45,131,40,77).
Connected to PASV port
LIST -la
150 Here comes the directory listing.
Download
Waiting for server...
226 Directory send OK.
CWD route
250 Directory successfully changed.
PWD
257 "/var/www/WEBPAGE/api/route" is the current directory
Get directory
PASV
227 Entering Passive Mode (144,202,45,131,39,218).
Connected to PASV port
LIST -la
150 Here comes the directory listing.
Download
Waiting for server...
226 Directory send OK.
CWD setup
250 Directory successfully changed.
PWD
257 "/var/www/WEBPAGE/api/route/setup" is the current directory
Get directory
PASV
227 Entering Passive Mode (144,202,45,131,40,233).
Connected to PASV port
LIST -la
150 Here comes the directory listing.
Download
Waiting for server...
226 Directory send OK.
CWD accounts
250 Directory successfully changed.
PWD
257 "/var/www/WEBPAGE/api/route/setup/accounts" is the current directory
Get directory
PASV
227 Entering Passive Mode (144,202,45,131,40,125).
Connected to PASV port
LIST -la
150 Here comes the directory listing.
Download
Waiting for server...
226 Directory send OK.
TYPE I
200 Switching to Binary mode.
PASV
227 Entering Passive Mode (144,202,45,131,40,182).
Connected to PASV port
STOR emails.php
150 Ok to send data.
Upload: 635 bytes
226 Transfer complete.
SIZE emails.php
213 635
Copied (04.10.2022 15:53:51): d:\WORK\Vite\NEW\Mark Cracco = WEBPAGE\WEBPAGE\api\route\setup\accounts\emails.php -> ftp://WEBPAGEops.com/var/www/WEBPAGE/api/route/setup/accounts/emails.php 635 bytes, 2 kbytes/s
Get directory
TYPE A
200 Switching to ASCII mode.
PASV
227 Entering Passive Mode (144,202,45,131,40,230).
Connected to PASV port
LIST -la
150 Here comes the directory listing.
Download
Waiting for server...
226 Directory send OK.
OFFLINE5, error=0
----------
Connect to: (04.10.2022 16:09:54)
hostname=WEBPAGEops.com
username=root
startdir=/var/www/WEBPAGE/api/route/setup/accounts
WEBPAGEops.com=144.202.45.131
220 (vsFTPd 3.0.3)
USER root
331 Please specify the password.
PASS ***********
230 Login successful.
SYST
215 UNIX Type: L8
FEAT
211-Features:
EPRT
EPSV
MDTM
PASV
REST STREAM
SIZE
TVFS
211 End
HELP SITE
214-The following commands are recognized.
ABOR ACCT ALLO APPE CDUP CWD DELE EPRT EPSV FEAT HELP LIST MDTM MKD
MODE NLST NOOP OPTS PASS PASV PORT PWD QUIT REIN REST RETR RMD RNFR
RNTO SITE SIZE SMNT STAT STOR STOU STRU SYST TYPE USER XCUP XCWD XMKD
XPWD XRMD
214 Help OK.
OPTS UTF8 ON
200 Always in UTF8 mode.
Connect ok!
CWD /var/www/WEBPAGE/api/route/setup/accounts
250 Directory successfully changed.
PWD
257 "/var/www/WEBPAGE/api/route/setup/accounts" is the current directory
DELE emails.php
250 Delete operation successful.
Deleted (04.10.2022 16:09:56): ftp://WEBPAGEops.com/var/www/WEBPAGE/api/route/setup/accounts/emails.php
Get directory
TYPE A
200 Switching to ASCII mode.
PASV
227 Entering Passive Mode (144,202,45,131,39,220).
Connected to PASV port
LIST -la
150 Here comes the directory listing.
Download
Waiting for server...
226 Directory send OK.
CDUP
250 Directory successfully changed.
PWD
257 "/var/www/WEBPAGE/api/route/setup" is the current directory
MKD emails
257 "/var/www/WEBPAGE/api/route/setup/emails" created
CWD emails
250 Directory successfully changed.
PWD
257 "/var/www/WEBPAGE/api/route/setup/emails" is the current directory
Get directory
PASV
227 Entering Passive Mode (144,202,45,131,40,219).
Connected to PASV port
LIST -la
150 Here comes the directory listing.
Download
Waiting for server...
226 Directory send OK.
TYPE I
200 Switching to Binary mode.
PASV
227 Entering Passive Mode (144,202,45,131,39,187).
Connected to PASV port
STOR list.php
150 Ok to send data.
Upload: 635 bytes
226 Transfer complete.
SIZE list.php
213 635
Copied (04.10.2022 16:10:02): d:\WORK\Vite\NEW\Mark Cracco = WEBPAGE\WEBPAGE\api\route\setup\emails\list.php -> ftp://WEBPAGEops.com/var/www/WEBPAGE/api/route/setup/emails/list.php 635 bytes, 2 kbytes/s
PASV
227 Entering Passive Mode (144,202,45,131,41,22).
Connected to PASV port
STOR save.php
150 Ok to send data.
Upload: 1 258 bytes
226 Transfer complete.
SIZE save.php
213 1258
Copied (04.10.2022 16:10:02): d:\WORK\Vite\NEW\Mark Cracco = WEBPAGE\WEBPAGE\api\route\setup\emails\save.php -> ftp://WEBPAGEops.com/var/www/WEBPAGE/api/route/setup/emails/save.php 1 258 bytes, 3 kbytes/s
CWD /var/www/WEBPAGE/api/route/setup
250 Directory successfully changed.
PWD
257 "/var/www/WEBPAGE/api/route/setup" is the current directory
Get directory
TYPE A
200 Switching to ASCII mode.
PASV
227 Entering Passive Mode (144,202,45,131,41,69).
Connected to PASV port
LIST -la
150 Here comes the directory listing.
Download
Waiting for server...
226 Directory send OK.
CWD emails
250 Directory successfully changed.
PWD
257 "/var/www/WEBPAGE/api/route/setup/emails" is the current directory
Get directory
PASV
227 Entering Passive Mode (144,202,45,131,41,9).
Connected to PASV port
LIST -la
150 Here comes the directory listing.
Download
Waiting for server...
226 Directory send OK.
TYPE I
200 Switching to Binary mode.
PASV
227 Entering Passive Mode (144,202,45,131,40,239).
Connected to PASV port
STOR save.php
150 Ok to send data.
Upload: 1 257 bytes
226 Transfer complete.
SIZE save.php
213 1257
Copied (04.10.2022 16:11:24): d:\WORK\Vite\NEW\Mark Cracco = WEBPAGE\WEBPAGE\api\route\setup\emails\save.php -> ftp://WEBPAGEops.com/var/www/WEBPAGE/api/route/setup/emails/save.php 1 257 bytes, 3 kbytes/s
Get directory
TYPE A
200 Switching to ASCII mode.
PASV
227 Entering Passive Mode (144,202,45,131,39,242).
Connected to PASV port
LIST -la
150 Here comes the directory listing.
Download
Waiting for server...
226 Directory send OK.
OFFLINE6, error=0
----------
Connect to: (04.10.2022 17:03:34)
hostname=WEBPAGEops.com
username=root
startdir=/var/www/WEBPAGE/api/route/setup/emails
WEBPAGEops.com=144.202.45.131
220 (vsFTPd 3.0.3)
USER root
331 Please specify the password.
PASS ***********
230 Login successful.
SYST
215 UNIX Type: L8
FEAT
211-Features:
EPRT
EPSV
MDTM
PASV
REST STREAM
SIZE
TVFS
211 End
HELP SITE
214-The following commands are recognized.
ABOR ACCT ALLO APPE CDUP CWD DELE EPRT EPSV FEAT HELP LIST MDTM MKD
MODE NLST NOOP OPTS PASS PASV PORT PWD QUIT REIN REST RETR RMD RNFR
RNTO SITE SIZE SMNT STAT STOR STOU STRU SYST TYPE USER XCUP XCWD XMKD
XPWD XRMD
214 Help OK.
OPTS UTF8 ON
200 Always in UTF8 mode.
Connect ok!
CWD /var/www/WEBPAGE/api/route/setup/emails
250 Directory successfully changed.
CDUP
250 Directory successfully changed.
PWD
257 "/var/www/WEBPAGE/api/route/setup" is the current directory
CDUP
250 Directory successfully changed.
PWD
257 "/var/www/WEBPAGE/api/route" is the current directory
CWD batches
250 Directory successfully changed.
PWD
257 "/var/www/WEBPAGE/api/route/batches" is the current directory
Get directory
TYPE A
200 Switching to ASCII mode.
PASV
227 Entering Passive Mode (144,202,45,131,41,82).
Connected to PASV port
LIST -la
150 Here comes the directory listing.
Download
Waiting for server...
226 Directory send OK.
TYPE I
200 Switching to Binary mode.
PASV
227 Entering Passive Mode (144,202,45,131,39,253).
Connected to PASV port
STOR current.php
150 Ok to send data.
Upload: 1 746 bytes
226 Transfer complete.
SIZE current.php
213 1746
Copied (04.10.2022 17:03:49): d:\WORK\Vite\NEW\Mark Cracco = WEBPAGE\WEBPAGE\api\route\batches\current.php -> ftp://WEBPAGEops.com/var/www/WEBPAGE/api/route/batches/current.php 1 746 bytes, 4 kbytes/s
Get directory
TYPE A
200 Switching to ASCII mode.
PASV
227 Entering Passive Mode (144,202,45,131,40,98).
Connected to PASV port
LIST -la
150 Here comes the directory listing.
Download
Waiting for server...
226 Directory send OK.
OFFLINE6, error=0
----------
Connect to: (04.10.2022 17:10:50)
hostname=WEBPAGEops.com
username=root
startdir=/var/www/WEBPAGE/api/route/batches
WEBPAGEops.com=144.202.45.131
220 (vsFTPd 3.0.3)
USER root
331 Please specify the password.
PASS ***********
230 Login successful.
SYST
215 UNIX Type: L8
FEAT
211-Features:
EPRT
EPSV
MDTM
PASV
REST STREAM
SIZE
TVFS
211 End
HELP SITE
214-The following commands are recognized.
ABOR ACCT ALLO APPE CDUP CWD DELE EPRT EPSV FEAT HELP LIST MDTM MKD
MODE NLST NOOP OPTS PASS PASV PORT PWD QUIT REIN REST RETR RMD RNFR
RNTO SITE SIZE SMNT STAT STOR STOU STRU SYST TYPE USER XCUP XCWD XMKD
XPWD XRMD
214 Help OK.
OPTS UTF8 ON
200 Always in UTF8 mode.
Connect ok!
CWD /var/www/WEBPAGE/api/route/batches
250 Directory successfully changed.
PWD
257 "/var/www/WEBPAGE/api/route/batches" is the current directory
TYPE I
200 Switching to Binary mode.
PASV
227 Entering Passive Mode (144,202,45,131,41,100).
Connected to PASV port
STOR send.php
150 Ok to send data.
Upload: 5 200 bytes
226 Transfer complete.
SIZE send.php
213 5200
Copied (04.10.2022 17:11:11): d:\WORK\Vite\NEW\Mark Cracco = WEBPAGE\WEBPAGE\api\route\batches\send.php -> ftp://WEBPAGEops.com/var/www/WEBPAGE/api/route/batches/send.php 5 200 bytes, 9 kbytes/s
Get directory
TYPE A
200 Switching to ASCII mode.
PASV
227 Entering Passive Mode (144,202,45,131,40,152).
Connected to PASV port
LIST -la
150 Here comes the directory listing.
Download
Waiting for server...
226 Directory send OK.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC sometimes asks for FTP password even when it is saved

Post by *ghisler(Author) »

Difficult to say what the problem is - the server is constantly disconnecting you. Maybe set a longer timeout on the server?
Author of Total Commander
https://www.ghisler.com
tmcdos
Junior Member
Junior Member
Posts: 30
Joined: 2006-05-22, 18:29 UTC
Location: Sofia, Bulgaria
Contact:

Re: TC sometimes asks for FTP password even when it is saved

Post by *tmcdos »

More than 600 seconds?
Why would TC ask for a password if the password on the server is not changed and at the same time the password is saved in TC?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC sometimes asks for FTP password even when it is saved

Post by *ghisler(Author) »

There was a bug in 10.50 where it did that, but it was fixed in 10.51 and I can't reproduce it any more. There must be a problem specific to only your server.
Author of Total Commander
https://www.ghisler.com
tmcdos
Junior Member
Junior Member
Posts: 30
Joined: 2006-05-22, 18:29 UTC
Location: Sofia, Bulgaria
Contact:

Re: TC sometimes asks for FTP password even when it is saved

Post by *tmcdos »

Ah, I see now!
Apparently it was my fault that I did not specify the TC version from the beginning (it was 10.50) - I could've avoided the confusion.
Sorry about that!
I've upgraded to 10.51, if I notice something weird - I will report back here. Otherwise we may consider this closed.
Thank you!
Post Reply