Nextcloud should be able to access files on ftps shares and should be able to generate and display previews for files located on these shares.
Nextcloud displays files on a ftps share but cannot open them nor generates previews for e.g. jpg files on a these shares (PureFTPd). Instead the following error messages are written to the log file:
...,"app":"PHP","message":"fclose(): FTP server error 0: at \/var\/www\/htdocs\/nextcloud\/apps\/files_external\/3rdparty\/icewind\/streams\/src\/Wrapper.php#124","level":3,"time":"2017-02-28 19:32:03+01:00","method":"GET","url":"\/nextcloud\/index.php\/core\/preview.png?file=%2FFTP%2F20140218_golfball_im_kaktus.jpg&c=563127a1b7cdb&x=32&y=32&forceIcon=0","user":"juergen","version":"11.0.2.7"}
...,"app":"PHP","message":"fclose(): SSL operation failed with code 1. OpenSSL Error messages:\nerror:140D00CF:SSL routines:SSL_write:protocol is shutdown at \/var\/www\/htdocs\/nextcloud\/apps\/files_external\/3rdparty\/icewind\/streams\/src\/Wrapper.php#124","level":3,"time":"2017-02-28 19:32:03+01:00","method":"GET","url":"\/nextcloud\/index.php\/core\/preview.png?file=%2FFTP2F20140218_golfball_im_kaktus.jpg&c=563127a1b7cdb&x=32&y=32&forceIcon=0","user":"juergen","version":"11.0.2.7"}
...,"app":"PHP","message":"fclose(): FTP server error 0: at \/var\/www\/htdocs\/nextcloud\/apps\/files_external\/3rdparty\/icewind\/streams\/src\/Wrapper.php#124","level":3,"time":"2017-02-28 19:32:03+01:00","method":"GET","url":"\/nextcloud\/index.php\/core\/preview.png?file=%2FFTP%2F20140218_golfball_im_kaktus.jpg&c=563127a1b7cdb&x=32&y=32&forceIcon=0","user":"juergen","version":"11.0.2.7"}
...,"app":"PHP","message":"fclose(): SSL operation failed with code 1. OpenSSL Error messages:\nerror:140D00CF:SSL routines:SSL_write:protocol is shutdown at \/var\/www\/htdocs\/nextcloud\/apps\/files_external\/3rdparty\/icewind\/streams\/src\/Wrapper.php#124","level":3,"time":"2017-02-28 19:32:03+01:00","method":"GET","url":"\/nextcloud\/index.php\/core\/preview.png?file=%2FFTP%2F20140218_golfball_im_kaktus.jpg&c=563127a1b7cdb&x=32&y=32&forceIcon=0","user":"juergen","version":"11.0.2.7"}
...,"app":"core","message":"OC_Image->fixOrientation() Image is not a JPEG.","level":0,"time":"2017-02-28 19:32:03+01:00","method":"GET","url":"\/nextcloud\/index.php\/core\/preview.png?file=%2FFTP%2F20140218_golfball_im_kaktus.jpg&c=563127a1b7cdb&x=32&y=32&forceIcon=0","user":"juergen","version":"11.0.2.7"}
...,"app":"core","message":"OC_Image->fixOrientation() Orientation: -1","level":0,"time":"2017-02-28 19:32:03+01:00","method":"GET","url":"\/nextcloud\/index.php\/core\/preview.png?file=%2FFTP%2F20140218_golfball_im_kaktus.jpg&c=563127a1b7cdb&x=32&y=32&forceIcon=0","user":"juergen","version":"11.0.2.7"}
...,"app":"PHP","message":"fclose(): FTP server error 0: at \/var\/www\/htdocs\/nextcloud\/apps\/files_external\/3rdparty\/icewind\/streams\/src\/Wrapper.php#124","level":3,"time":"2017-02-28 19:32:03+01:00","method":"GET","url":"\/nextcloud\/index.php\/core\/preview.png?file=%2FFTP%2Fgolfschlaeger.jpg&c=563126bcdb50f&x=32&y=32&forceIcon=0","user":"juergen","version":"11.0.2.7"}
...,"app":"PHP","message":"fclose(): SSL operation failed with code 1. OpenSSL Error messages:\nerror:140D00CF:SSL routines:SSL_write:protocol is shutdown at \/var\/www\/htdocs\/nextcloud\/apps\/files_external\/3rdparty\/icewind\/streams\/src\/Wrapper.php#124","level":3,"time":"2017-02-28 19:32:03+01:00","method":"GET","url":"\/nextcloud\/index.php\/core\/preview.png?file=%2FFTP%2Fgolfschlaeger.jpg&c=563126bcdb50f&x=32&y=32&forceIcon=0","user":"juergen","version":"11.0.2.7"}
...,"app":"PHP","message":"fclose(): FTP server error 0: at \/var\/www\/htdocs\/nextcloud\/apps\/files_external\/3rdparty\/icewind\/streams\/src\/Wrapper.php#124","level":3,"time":"2017-02-28 19:32:03+01:00","method":"GET","url":"\/nextcloud\/index.php\/core\/preview.png?file=%2FFTP%2Fgolfschlaeger.jpg&c=563126bcdb50f&x=32&y=32&forceIcon=0","user":"juergen","version":"11.0.2.7"}
...,"app":"PHP","message":"fclose(): SSL operation failed with code 1. OpenSSL Error messages:\nerror:140D00CF:SSL routines:SSL_write:protocol is shutdown at \/var\/www\/htdocs\/nextcloud\/apps\/files_external\/3rdparty\/icewind\/streams\/src\/Wrapper.php#124","level":3,"time":"2017-02-28 19:32:03+01:00","method":"GET","url":"\/nextcloud\/index.php\/core\/preview.png?file=%2FFTP%2Fgolfschlaeger.jpg&c=563126bcdb50f&x=32&y=32&forceIcon=0","user":"juergen","version":"11.0.2.7"}
...,"app":"core","message":"OC_Image->fixOrientation() Image is not a JPEG.","level":0,"time":"2017-02-28 19:32:03+01:00","method":"GET","url":"\/nextcloud\/index.php\/core\/preview.png?file=%2FFTP%2Fgolfschlaeger.jpg&c=563126bcdb50f&x=32&y=32&forceIcon=0","user":"juergen","version":"11.0.2.7"}
...,"app":"core","message":"OC_Image->fixOrientation() Orientation: -1","level":0,"time":"2017-02-28 19:32:03+01:00","method":"GET","url":"\/nextcloud\/index.php\/core\/preview.png?file=%2FFTP%2Fgolfschlaeger.jpg&c=563126bcdb50f&x=32&y=32&forceIcon=0","user":"juergen","version":"11.0.2.7"}
Expected behavior
Nextcloud should be able to access files on ftps shares and should be able to generate and display previews for files located on these shares.
Current behavior
Nextcloud displays files on a ftps share but cannot open them nor generates previews for e.g. jpg files on a these shares (PureFTPd). Instead the following error messages are written to the log file:
Steps to reproduce
Check that the ftps share has correctly been mounted.
Access the ftps share
Check if the files can be accessed or preview files are generated for image files
Check the content of the Nextcloud log fi.e
Environment
Server Configuration
OS: Linux 3.2.84
Web server: Apache2 2.4.25
Database: MariaDB 5.5.53
PHP version: 5.6.29
Nextcloud version: 11.0.2
PureFTPd version: 1.0.43
Client Configuration
Browser: Mozilla Firefox 51.0.1
Operating system: Windows 7