You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Mounted ftps doesn't show all the files and directories #9630
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.
@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.
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.
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
Activity
PVince81 commentedon Jul 15, 2014
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 thehasUpdatedas well ?cdamken commentedon Jul 15, 2014
@PVince81 yes: ftp with secure checkbox. The FTP server is ProFTPD
MTRichards commentedon Jul 15, 2014
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.
karlitschek commentedon Jul 15, 2014
http://doc.owncloud.org/server/7.0/admin_manual/configuration/background_jobs.html documentation here
cdamken commentedon Jul 23, 2014
@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.
MTRichards commentedon Jul 23, 2014
@karlitschek @DeepDiver1975 Any help on the specific syntax of the cron job? @cdamken has an example above, but it doesn't seem to work.
DeepDiver1975 commentedon Jul 24, 2014
@cdamken are you executing the console call with the web server user?
cdamken commentedon Jul 25, 2014
@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
PVince81 commentedon Jul 25, 2014
@icewind1991 please help. Thanks.
cdamken commentedon Jul 31, 2014
@DeepDiver1975 From the web server, as administrator
icewind1991 commentedon Aug 29, 2014
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 * fromoc_filecacheWHERE 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
cdamken commentedon Sep 25, 2014
@icewind1991 I saved the results here: S3-ownCloud\Shared\owncloud\support\github-issues\core\9630\New\
cdamken commentedon Oct 13, 2014
@icewind1991 Any news?
74 remaining items
PVince81 commentedon May 29, 2017
please test with the files_external_ftp app from the marketplace and see if the problem persists
cdamken commentedon Dec 14, 2017
I will test it and reopen (or create a new issue) if the problem still appears.
lock commentedon Jul 30, 2019
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.