lazzard / php-ftp-client

:package: Provides helper classes and methods to manage FTP files in an OOP way.
MIT License
90 stars 18 forks source link

ftp_nlist(): php_connect_nonb() failed #35

Closed AkramiPro closed 1 year ago

AkramiPro commented 2 years ago

[FtpClientException] - ftp_nlist(): php_connect_nonb() failed: Operation now in progress (115)

i try passive mode on/off & SSL off/on but did not work

AmraniCh commented 2 years ago

Hey @akramiPro, thanks for opening this issue.

Are you sure you've enabled the passive mode ?

If you enabled the passive mode and the error still exist, I suggest using this tool Lazzard\Ftpbridge to know what the exact error message sent from the server, just use the example usage, and share the logs here (do not forget to hide the username and the password in the generated logs).

tuyenlaptrinh commented 1 year ago

Same error and this is error when use FTPBridge

Failed to establish a successful passive data connection to the (xx.xx.xx.xx) : stream_socket_client(): unable to connect to tcp://xx.xx.xx.xx:35892
AmraniCh commented 1 year ago

@tuyenlaptrinh have you used the logger ? can you paste the logs here please ?

tuyenlaptrinh commented 1 year ago

Hi @AmraniCh I used "Usage Example" in your github repository FTPBridge and I only got that error with no log

AmraniCh commented 1 year ago

I will close this issue as long as the error is not caused by the library implementation, some FTP servers may have an incorrect configuration of file transfer operations (active/passive transfers), so I suggest having contact with your server administrator, thanks!