Skip to content

Mounted ftps doesn't show all the files and directories #9630

Closed

Description

@cdamken

Expected behaviour

Mounting a ftps file system. put and erase files/directories and can be used with ownCloud

Actual behaviour

Mounting a ftps file system. put and erase files and ownCloud do not refresh the files or directories

Steps to reproduce

  1. Mounting an external ftps, can be seen in ownCloud
  2. Actual files and directories are shown
  3. Put new files and/or directories in the ftps with an external application
  4. Files and directories are not shown
    1. Nothing gets better if I execute 'php console.php files:scan --all' (It doesn't refresh)

Server configuration

ownCloud version: 6.0.4

00001186

Activity

  1. PVince81 commented on Jul 15, 2014

    @PVince81
    Contributor

    With FTPS you mean FTP + secure checkbox ?

    There's trouble with some FTP servers that they don't return any mtime, so update detection cannot work.

    Related: #6395

    @icewind1991 maybe we need to put return false; in the hasUpdated as well ?

  2. cdamken commented on Jul 15, 2014

    @cdamken
    ContributorAuthor

    @PVince81 yes: ftp with secure checkbox. The FTP server is ProFTPD

  3. MTRichards commented on Jul 15, 2014

    @MTRichards
    Contributor

    Have you set up a cron job (admin page > set background jobs to cron > configure an OS cron job to execute the cron).
    Probably the issue is that ownCloud doesn't know that files have been added to the FTP server, since the FTP server doesn't tell this to ownCloud. Therefore, you need to set the cron job to occasionally scan for updates.

  4. cdamken commented on Jul 23, 2014

    @cdamken
    ContributorAuthor

    @MTRichards what should the cron job says?, As I wrote before: php console.php files:scan --all' (It doesn't refresh)
    Even unmouning and remounting does not help.

  5. MTRichards commented on Jul 23, 2014

    @MTRichards
    Contributor

    @karlitschek @DeepDiver1975 Any help on the specific syntax of the cron job? @cdamken has an example above, but it doesn't seem to work.

  6. DeepDiver1975 commented on Jul 24, 2014

    @DeepDiver1975
    Contributor

    @cdamken are you executing the console call with the web server user?

  7. cdamken commented on Jul 25, 2014

    @cdamken
    ContributorAuthor

    @DeepDiver1975 @MTRichards

    I just mounted a local directory with my ftps server (using curlftpfs) and added to OwnCloud as an external storage. I can see that ownCloud can access to the files in the FTP server, and it refreshes the content although the files have been uploaded through an FTP client. There are some problems to create files trough the ownCloud client in that directory, but it seems it's a problem with curlftpfs (the files cannot be created in the file system either)

    When I use "Local" as an external storage, I see that if I delete the storage, the oc_filecache table keeps the old entries, but once I create again the local external storage, this table get refreshed with the new files (I deleted directly some files in the meantime). It doesn't happen if I create an external storage as FTP, since the files in the oc_filecache table that belong to this external storage don' get
    refreshed (after recreating the storage, I can see some files that don't exist anymore) Nothing gets better if I execute 'php console.php files:scan --all'

    You can see attached tree files: the ftp external storage definition (ac.png, where the indicator is green), the files not refreshed that I can see through the web interface (edw.png) and the files that actually exist in the ftp server (Ftp_folder.png). In order to reproduce it, you just have to create the FTPS external storage and delete some FTP files through the ftp client, not the owncloud client.

    Attached in: S3-ownCloud\Shared\owncloud\support\github-issues\core\9630

  8. PVince81 commented on Jul 25, 2014

    @PVince81
    Contributor

    @icewind1991 please help. Thanks.

  9. cdamken commented on Jul 31, 2014

    @cdamken
    ContributorAuthor

    @DeepDiver1975 From the web server, as administrator

  10. icewind1991 commented on Aug 29, 2014

    @icewind1991
    Contributor

    It might be caused by the filecache entries not having valid hashes of the path, which makes it impossible for the scanner to remove the files. Can you try running

    SELECT * from oc_filecache WHERE path_hash != md5(path);

    (this is mysql specific, you probably need to replace the oc_ prefix)
    (see also #10705)

    You can also try re-running the scanner and checking the output it generates, if the output of the scanner lists the removed files it means it's a problem with the storage backend

  11. cdamken commented on Sep 25, 2014

    @cdamken
    ContributorAuthor

    @icewind1991 I saved the results here: S3-ownCloud\Shared\owncloud\support\github-issues\core\9630\New\

  12. cdamken commented on Oct 13, 2014

    @cdamken
    ContributorAuthor

    @icewind1991 Any news?

  13. 74 remaining items

  14. modified the milestones: 9.1.4, 9.1.3 on Dec 22, 2016
  15. modified the milestones: 9.1.5, 9.1.4 on Feb 6, 2017
  16. modified the milestones: 9.1.6, 9.1.5 on Apr 13, 2017
  17. self-assigned this
    on May 12, 2017
  18. PVince81 commented on May 29, 2017

    @PVince81
    Contributor

    please test with the files_external_ftp app from the marketplace and see if the problem persists

  19. modified the milestones: triage, 9.1.6 on May 29, 2017
  20. cdamken commented on Dec 14, 2017

    @cdamken
    ContributorAuthor

    I will test it and reopen (or create a new issue) if the problem still appears.

  21. removed this from the triage milestone on Apr 10, 2018
  22. lock commented on Jul 30, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions