[CPANEL-33879] PureFTP won't work with MGET after latest update

Gary Barr

Registered
May 5, 2018
3
0
1
Evansville, IN
cPanel Access Level
Root Administrator
Over the weekend, our server upgraded to V90.0.5, and apparently it also updated PureFTPD to V1.0.49 (or at least changed settings for it.)

But now, when a clients Windows FTP script runs with the command

MGET *.TXT

...we get the error:

Can't check for file existence

It's worked perfectly for years but died after the update. If I convert to ProFTPD, it then works again fine... But I don't really want to leave it on ProFTPD due to memory usage and security issues. I've found people complaining about this, but no answers to those complaints. I thought I would try here.

It seems like some people have installed older versions of PureFTP to fix it, but I never like going backward because security is a big deal... So looking for any way to make this work or what is the safest way to proceed. Anyone with ideas?

Oh, this also affects "MDEL *.txt" but MPUT works fine.
 

cPanelLauren

Technical Support Community Manager
Staff member
Nov 14, 2017
13,304
1,247
313
Houston
Hello,

It does appear that we have a recent internal case open on this CPANEL-33879 based on the comments in the case it would appear that pure-ftpd removed support for this in version 1.0.48 but they are looking into the issue further. Right now the only workaround is to use get instead for single files.

I'll update this thread with more information on the issue when it becomes available.


Thanks!
 

wbording

Registered
Sep 3, 2020
2
0
1
Netherlands
cPanel Access Level
Root Administrator
Hello,

It does appear that we have a recent internal case open on this CPANEL-33879 based on the comments in the case it would appear that pure-ftpd removed support for this in version 1.0.48 but they are looking into the issue further. Right now the only workaround is to use get instead for single files.

I'll update this thread with more information on the issue when it becomes available.


Thanks!
Hi cPanelLauren,
how come you think pure-ftpd version 1.0.48 is responsible for this 'change'. Latest version 1.0.49 is from April 3, 2019 and this problem is from end of august 2020.
Regards,
Wouter
 

Madsens

Registered
Sep 9, 2020
2
0
1
Denmark
cPanel Access Level
DataCenter Provider
Is there any way to fix this?
A customer using Microsoft C5 2012, a webshop on our cPanel server, and an old module for C5 for integration between the two, is using "MPUT *" and "MGET *".
And my understanding is that "*" is no longer allowed.
Should i roll back pureftpd as a temporary fix, or something?
 

cPanelLauren

Technical Support Community Manager
Staff member
Nov 14, 2017
13,304
1,247
313
Houston
This functionality depends on how the FTP client fetches the file listing. Eg: lftp does not use NLST for fetching the directory contents, and mget is still functional. The issue is that the NLST command no longer performs globbing which is what PureFTPd changed in this release.

The internal case was marked as won't fix as this is a decision made by the FTP client software, there's nothing we can do to modify this change.
 

Madsens

Registered
Sep 9, 2020
2
0
1
Denmark
cPanel Access Level
DataCenter Provider
To anyone in the same situation: My workaround was fooling the service by using MGET and MPUT via another FTP service that still works as intended, and from that server i used a scheduled bat to download a list of files from the cPanel server, and after that using GET and PUT instead. It introduces some waiting time, depending on how often you set the schedule to run, but in our case, it was an easy and quick solution, until we find a permanent one. Changing the software itself to use GET and PUT i was not an option for us.