core icon indicating copy to clipboard operation
core copied to clipboard

v4.5.0: External storage mounting FTP

Open tiroq opened this issue 14 years ago • 6 comments

v4.5.0, PostgreSQL. When I mount ftp according to instructions (http://owncloud.org/support/custom-mount-configuration/). I do not choose the option security, but in the apache logs I see:

[11:28:28 2012][error][client 10.20.139.3] PHP Warning: filetype(): Lstat failed for ftps://ftp:[email protected] in /usr/local/www/owncloud/apps/files_external/lib/streamwrapper.php on line 32, referer: http://owncloud.ex2.com/?app=files [11:28:29 2012][error][client 10.20.139.3] PHP Warning: mkdir(): Unable to connect to ftps://ftp:[email protected] in /usr/local/www/owncloud/apps/files_external/lib/streamwrapper.php on line 14, referer: http://owncloud.ex2.com/?app=files [11:28:29 2012][error][client 10.20.139.3] PHP Warning: filetype(): Lstat failed for ftps://ftp:[email protected] in /usr/local/www/owncloud/apps/files_external/lib/streamwrapper.php on line 32, referer: http://owncloud.ex2.com/?app=files

Why ftps?

in mount.php:

return array ( 'user' => array ( 'user1' => array ( '/user1/files/FTP1' => array ( 'class' => 'OC_Filestorage_FTP', 'options' => array ( 'host' => 'ftp.ex.com', 'user' => 'ftp', 'password' => 'ftp', 'root' => '/', 'secure' => 'false', ),), ), ), );

tiroq avatar Oct 24 '12 05:10 tiroq

I can't reproduce this behavior in any way

icewind1991 avatar Oct 28 '12 14:10 icewind1991

this is bug and when i'm trying to modify ftp.php to push it using ftp rather than ftps its giving me lstat failed

JFOC avatar Oct 31 '12 17:10 JFOC

@icewind1991 how can we nail down this issue? Any ideas? THX

DeepDiver1975 avatar Nov 05 '12 12:11 DeepDiver1975

The problem was caused by the use of the string 'false' in the config instead of the boolean false

icewind1991 avatar Nov 05 '12 15:11 icewind1991

is it possible to backport?

karlitschek avatar Nov 05 '12 15:11 karlitschek

Thanks :-)

karlitschek avatar Nov 05 '12 15:11 karlitschek