banago / PHPloy

PHPloy - Incremental Git (S)FTP deployment tool that supports multiple servers, submodules and rollbacks.
http://wplancer.com/phploy/
1.42k stars 197 forks source link

Warning: ftp_rawlist(): SSL read failed #400

Open fvsadem opened 1 year ago

fvsadem commented 1 year ago

Hi,

I try using FTPS scheme with ssl = true, but it doesn't seems to work. I have the following error and nothing is transfered :

Warning: ftp_rawlist(): SSL read failed in phar:///var/www/html/phploy.phar/vendor/league/flysystem/src/Adapter/Ftp.php on line 570

Call Stack:
    0.0013     612168   1. {main}() /var/www/html/phploy.phar:0
    0.0014     614512   2. include('phar:///var/www/html/phploy.phar/phploy.php') /var/www/html/phploy.phar:10
    0.0041    1087968   3. Banago\PHPloy\PHPloy->__construct($opt = ???) phar:///var/www/html/phploy.phar/phploy.php:9
    0.0107    1602464   4. Banago\PHPloy\PHPloy->deploy() phar:///var/www/html/phploy.phar/src/PHPloy.php:336
    0.0267    1965776   5. Banago\PHPloy\PHPloy->compare($localRevision = 'HEAD') phar:///var/www/html/phploy.phar/src/PHPloy.php:889
    0.2751    2094536   6. League\Flysystem\Filesystem->read($path = '.revision') phar:///var/www/html/phploy.phar/src/PHPloy.php:1026
    0.2751    2094536   7. League\Flysystem\Filesystem->assertPresent($path = '.revision') phar:///var/www/html/phploy.phar/vendor/league/flysystem/src/Filesystem.php:179
    0.2751    2094536   8. League\Flysystem\Filesystem->has($path = '.revision') phar:///var/www/html/phploy.phar/vendor/league/flysystem/src/Filesystem.php:388
    0.2752    2094536   9. League\Flysystem\Adapter\AbstractFtpAdapter->has($path = '.revision') phar:///var/www/html/phploy.phar/vendor/league/flysystem/src/Filesystem.php:57
    0.2752    2094536  10. League\Flysystem\Adapter\Ftp->getMetadata($path = '.revision') phar:///var/www/html/phploy.phar/vendor/league/flysystem/src/Adapter/AbstractFtpAdapter.php:610
    0.3906    2094536  11. League\Flysystem\Adapter\Ftp->ftpRawlist($options = '-A', $path = '.revision') phar:///var/www/html/phploy.phar/vendor/league/flysystem/src/Adapter/Ftp.php:403
    0.3983    2094576  12. ftp_rawlist($ftp = resource(145) of type (FTP Buffer), $directory = '-A .revision') phar:///var/www/html/phploy.phar/vendor/league/flysystem/src/Adapter/Ftp.php:570

Oh Snap: File not found at path: .revision

When i use ssl = false, everything is working properly...

I looked into the pureftpd log when using SSL = True and found this : ... [INFO] TLS: Enabled TLSv1.3 with TLS_AES_256_GCM_SHA384, 256 secret bits cipher

Is phploy compatible with TLS 1.3 ?

phploy version: 4.9.3

Thanks

fvsadem commented 1 year ago

PS : Everything is working fine when i use filezilla, Connection with TLS is well established.