core icon indicating copy to clipboard operation
core copied to clipboard

Problem accessing FTP server using external storage

Open MU7L3Y opened this issue 13 years ago • 19 comments

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

  1. Refer this topic: http://forum.owncloud.org/viewtopic.php?f=23&t=17462
  2. Create an FTP server mount
  3. Try enter into it when files of reasonable size are present ~ 1mb-2gb.
  4. 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

MU7L3Y avatar Oct 31 '13 23:10 MU7L3Y

Updated to 5.0.13 and still have the same issue.

MU7L3Y avatar Nov 29 '13 00:11 MU7L3Y

CC @PVince81

MorrisJobke avatar Nov 29 '13 08:11 MorrisJobke

@MU7L3Y what FTP server are you using and which version ?

PVince81 avatar Nov 29 '13 10:11 PVince81

@PVince81 I am using FileZilla Server version 0.9.41 and have no problems accessing the FTP or using it except with OwnCloud.

MU7L3Y avatar Nov 29 '13 11:11 MU7L3Y

@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.....

MU7L3Y avatar Dec 12 '13 00:12 MU7L3Y

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.

PVince81 avatar Dec 14 '13 19:12 PVince81

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

MU7L3Y avatar Jan 15 '14 05:01 MU7L3Y

@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.

MU7L3Y avatar Jan 17 '14 02:01 MU7L3Y

@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?

MU7L3Y avatar Jan 23 '14 00:01 MU7L3Y

Is that zip file the one that ownCloud generates when downloading a folder ? Or is that zip file directly living on the FTP storage ?

PVince81 avatar Jan 23 '14 09:01 PVince81

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.

MU7L3Y avatar Jan 28 '14 21:01 MU7L3Y

I have the same problem with the FTP Storage... Please tell me how to disable showing the thumbnails ? thanks !

climb avatar Jan 31 '14 07:01 climb

You have to set it in your config file. Look at the sample config for the code.

MU7L3Y avatar Feb 01 '14 10:02 MU7L3Y

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

climb avatar Feb 04 '14 13:02 climb

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.

PVince81 avatar Feb 04 '14 13:02 PVince81

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

climb avatar Feb 04 '14 14:02 climb

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.

sndrr avatar Aug 19 '14 17:08 sndrr

I'm not sure, I haven't been using FTP as external storage since the problem here...

MU7L3Y avatar Sep 05 '14 03:09 MU7L3Y

Tested this myself and cannot reproduce. Given that others report the same thing, it seems to have been fixed.

RobinMcCorkell avatar Dec 05 '14 11:12 RobinMcCorkell