Skip to content

Problem accessing FTP server using external storage #5655

Closed

Description

@MU7L3Y

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

Activity

  1. MU7L3Y commented on Nov 29, 2013

    @MU7L3Y
    Author

    Updated to 5.0.13 and still have the same issue.

  2. MorrisJobke commented on Nov 29, 2013

    @MorrisJobke
    Contributor
  3. PVince81 commented on Nov 29, 2013

    @PVince81
    Contributor

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

  4. MU7L3Y commented on Nov 29, 2013

    @MU7L3Y
    Author

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

  5. MU7L3Y commented on Dec 12, 2013

    @MU7L3Y
    Author

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

  6. PVince81 commented on Dec 14, 2013

    @PVince81
    Contributor

    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.

  7. MU7L3Y commented on Jan 15, 2014

    @MU7L3Y
    Author

    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

  8. MU7L3Y commented on Jan 17, 2014

    @MU7L3Y
    Author

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

  9. MU7L3Y commented on Jan 23, 2014

    @MU7L3Y
    Author

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

  10. PVince81 commented on Jan 23, 2014

    @PVince81
    Contributor

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

  11. MU7L3Y commented on Jan 28, 2014

    @MU7L3Y
    Author

    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.

  12. climb commented on Jan 31, 2014

    @climb

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

  13. MU7L3Y commented on Feb 1, 2014

    @MU7L3Y
    Author

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

  14. climb commented on Feb 4, 2014

    @climb

    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

  15. PVince81 commented on Feb 4, 2014

    @PVince81
    Contributor

    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.

  16. climb commented on Feb 4, 2014

    @climb

    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

  17. sndrr commented on Aug 19, 2014

    @sndrr

    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.

  18. MU7L3Y commented on Sep 5, 2014

    @MU7L3Y
    Author

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

  19. RobinMcCorkell commented on Dec 5, 2014

    @RobinMcCorkell
    Contributor

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

  20. locked as resolved and limited conversation to collaborators on Aug 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions