Problem accessing FTP server using external storage
Expected behaviour
OwnCloud should load all external FTP files in the web interface no matter how big the files are. Perhaps it shouldn't enter extended passive mode.
Actual behaviour
I can navigate through folders in the OwnCloud web interface but when loading any files bigger than 50kb it won't load in OwnCloud and just says 503 service unavailable. FTP server says it enters into extended passive mode and then it fails.
Steps to reproduce
- Refer this topic: http://forum.owncloud.org/viewtopic.php?f=23&t=17462
- Create an FTP server mount
- Try enter into it when files of reasonable size are present ~ 1mb-2gb.
- Error page appears with 503 service unavailable.
Server configuration
Operating system: Linux Hosting Package
Web server: Apache on Litespeed
Database: SQLite
PHP version: 5.3.26
ownCloud version: 5.0.12
Client configuration
Browser: Chrome 30.0.1599.101 m or IE10
Operating system: Windows 7
Logs
owncloud admin page
OC\Files\Storage\Common::getMimeType() [<a href='oc\files\storage\common.getmimetype'>oc\files\storage\common.getmimetype</a>]: FTP server error 426:426 Connection closed; transfer aborted. at /clientdata/apache-www/ftp/lib/files/storage/common.php#0
Updated to 5.0.13 and still have the same issue.
CC @PVince81
@MU7L3Y what FTP server are you using and which version ?
@PVince81 I am using FileZilla Server version 0.9.41 and have no problems accessing the FTP or using it except with OwnCloud.
@PVince81 Using the newly released owncloud 6, there is slight improvement but still doesn't work. Now I don't get the 503 error page, instead it loads the folder but says "Nothing in here. Upload something!" I actually have a 2mb zip file in the directory though.....
Try creating a file into that FTP dir using ownCloud, that should somehow trigger a rescan. I suspect that the previous error might have put you in a state where the cache believes it is up to date.
Well I have it working now. We moved hosts and I have used a different database.
Operating system: Linux Hosting Package Database: MySQL PHP version: 5.3.27 ownCloud version: 6.0.0a
@PVince81 It works but very slow when loading many files. It seems like it tries to load every file each time I go into a directory. When using a FTP client, it loads the list of files in under 1 second. OC takes a good number of minutes, even timing out at times. I've even set the cron job up every 2 minutes thinking that would help but seems not. Looking at the FTP server log, it seems OC tries to load a file as a directory, that fails and so then it connects again to get the file. It does this for every file. FTP client just sets current directory and that's it. Maybe you could try doing something similar?
Help on this is appreciated as this is a main way to access files in my situation.
@PVince81 I found that the reason it was so slow was because it was trying to get thumbnails of every file. Since disabling that, it works much faster.
I've now got problems with downloading any big files that are coming from FTP storage. For instance I've been trying to download a 76.1MB zip file and it downloads for 8.5 minutes one time, 7.5 another, then my internet browser says "Failed - Network error."
I see on the FTP server that the connection is accepted and it works up until that time, then it says "426 Connection closed; transfer aborted."
I've set these in my .htaccess: php_value upload_max_filesize 2048M php_value post_max_size 2100M php_value memory_limit 1024M php_value max_execution_time 10800 php_value max_input_time 10800
I've also upgraded to 6.0.1 now. Can anyone think of why it seems to time out and not finish the download?
Is that zip file the one that ownCloud generates when downloading a folder ? Or is that zip file directly living on the FTP storage ?
The zip file is directly living on the FTP storage. However, IIRC, trying to zip up a bunch of files from FTP storage with OC also failed.
I have the same problem with the FTP Storage... Please tell me how to disable showing the thumbnails ? thanks !
You have to set it in your config file. Look at the sample config for the code.
thanks, I disabled the thumbnails, but it still doesn't work properly: I cannot see some subfolders...for example it doesn't show me the content of the biggest folder ont the ftp
Could be the issue with update detection. Please try uploading a file in the folder where the subfolders are missing (using the web UI), then refresh the page. If after that the subfolder suddenly reappears, then it's the update detection issue.
no, it's not... I uploaded a file and refreshed, still doesn't show the other folders. Also I created a folder , and then deleted it over Filezilla on the FTP-Server and this deleted folder it's still there in the Owncloud Webinterface
This issue seems to be fixed in oC 7.0.1 with a MySQL backend and external storage app v0.2.1. I cannot reproduce this behavior.
I'm not sure, I haven't been using FTP as external storage since the problem here...
Tested this myself and cannot reproduce. Given that others report the same thing, it seems to have been fixed.