FTP_Get and FTP_List not working in the latest version of Cpanel

Operating System & Version
Window 10 local PC

RonCarver

Registered
Aug 19, 2020
3
0
1
Usa
cPanel Access Level
Website Owner
Using the commands FTP_Get and FTP_List from a PC for downloading files has stopped working.
The hosting company I am using, recently upgraded some of their servers to the newest Cpanel version.
My application using those command stopped working.
Proven that is the newer version is the reason, as some of the other servers not upgraded yet, still works.
Soon to stop too.
Does any one has experienced this situation.
Please advise.
 

RonCarver

Registered
Aug 19, 2020
3
0
1
Usa
cPanel Access Level
Website Owner
old site that the FTP works
cPanel Version 86.0 (build 24)
Apache Version 2.4.43
PHP Version 7.3.20
MySQL Version 5.7.31

new FTP do not work
cPanel Version 90.0 (build 5)
Apache Version 2.4.43
PHP Version 7.3.19
MySQL Version 10.2.33-MariaDB
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
I'm not able to replicate this behavior. Can you show me what error you're receiving? Can you also tell me which ftp server you're using (pure or pro FTPd)

Code:
226-Options: -a -l 

226 71 matches total

ftp> get files_outside_homedir.txt

227 Entering Passive Mode (XXX,XXX,XXX,XX,216,30)

150-Accepted data connection

150 156.3 kbytes to download

226-File successfully transferred

226 0.063 seconds (measured here), 2.44 Mbytes per second

161131 bytes received in 0.116 seconds (1.33 Mbytes/s)

ftp> put index.html

227 Entering Passive Mode (XXX,XXX,XXX,XX,216,30)

150 Accepted data connection

226-File successfully transferred

226 0.053 seconds (measured here), 58.53 Kbytes per second

3220 bytes sent in 0.0007 seconds (4.39 Mbytes/s)

ftp>
 

RonCarver

Registered
Aug 19, 2020
3
0
1
Usa
cPanel Access Level
Website Owner
Thanks for looking into it.
I have a few friends using this code and it has been working for the past 3 or 4 years.
If your hosting company still is using Cpanel ver 86, this code works.
Once the hosting company upgrades the Cpanel to Ver 90, the code stops working.
Here what happens.
This command is sent from an application using Alpha5. A developing app.

ftp_get_file("mydomain.com", "userid","mypw","public_html/uploads/csv" +chr(47) "mcsv.csv" , "c:\Files\WebFolder"+chr(92)+ "mcsv.csv")

Normally after sending the above code, the file or files start downloading to the PC.
Once Ver 90 is implemented, you click, the hour glass goes on for 2 seconds and "that is it" .
Nothing happens. No file is downloaded.
No errors are logged in the server or the PC.

No one seems to know what Cpanel has done to the code and there is no settings to revert or turn on back.
I am hoping that Cpanel could help us. This is putting a great burden in many people, As this Alpha 5 is very popular.
Ant the FTP_get and FTP_list is almost vital for ease of use in many apps.
This change will force us to do a manual download.
In some cases many files and it will require to zip, download and unzip on a regular basis.
Please advise, Thanks
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
HI @RonCarver

The only change that has been made was to update pureftpd per the changelogs:

https://docs.cpanel.net/changelogs/90-change-log/#89-9999-76 said:
  • Fixed case CPANEL-32808: Update rpm.versions for pure-ftpd 1.0.49-1.cp1186.
Their changes in this version are noted here: Latest news :: Pure-FTPd

Prior to this, we were running pure-ftpd 1.0.47


No errors are logged in the server or the PC.
Where did you check for errors on the server? /var/log/messages should contain error logs for FTP transactions

I also see in the software provider's documentation here: FTP_GET_FILE Function that they do have a switch for a dialogue box to run the command in the foreground which I assume would give you the error you're getting. The default (without adding the switch) is F which runs it without the dialogue.