owncloud / core

:cloud: ownCloud web server core (Files, DAV, etc.)
https://owncloud.com
GNU Affero General Public License v3.0
8.39k stars 2.05k forks source link

FTP external storage doesn't get the updates made in the backend #16407

Closed jvillafanez closed 7 years ago

jvillafanez commented 9 years ago

Steps to reproduce

  1. Configure a FTP external storage
  2. Upload a file directly in the backend

    Expected behaviour

The file should appear in ownCloud, in the configured mount point

Actual behaviour

File is missing in the configured mount

Server configuration

Operating system: ubuntu 14.04

Web server: apache 2.4.7

Database: mysql

PHP version: 5.5.9

ownCloud version: OC 8.1 beta 1

Updated from an older ownCloud or fresh install: fresh install

List of activated apps:

ghost commented 9 years ago

Hi,

very likely related to https://github.com/owncloud/core/issues/5036 where some workarounds like using a cronjob to rescan the external storage where posted.

Edit Another ref to a duplicate reported issue: https://github.com/owncloud/core/issues/11797

jvillafanez commented 9 years ago

I don't think is related to #5036 because that issue affects all external storages (or at least it did). This issue affects only to FTP storage. Other storages get the new file correctly after reloading the page in the web, but not FTP

ghost commented 9 years ago

But #11797 says:

None of Amazon/Ceph s3 #11652, Swift #8633, ftp #5655, ftps/proftpd #9630, smb on FAT correctly propagates mtime changes up the directory tree, so our hasUpdated() fails and we have yet to implement backend specific implementations that work.

PVince81 commented 9 years ago

It might also depend on the FTP server. Some might deliver proper mtimes (in a format that the FTP stream wrapper from PHP is able to read) which makes it possible to detect updates. Some others might not.

DeepDiver1975 commented 9 years ago

Known issue no some external storages - we need to address this in 8.2. nothing we can do in the livecycle of 8.1

PVince81 commented 9 years ago

General ticket: sort out external storage update issues: https://github.com/owncloud/core/issues/11797

PVince81 commented 9 years ago

@DeepDiver1975 move to 9.0 ?

DeepDiver1975 commented 9 years ago

@DeepDiver1975 move to 9.0 ?

yes from my pov @cmonteroluque objections?

ghost commented 9 years ago

@DeepDiver1975 @PVince81 Yeah, part of the overall issue with external shares. Tough to accept but no choice at all.

PVince81 commented 8 years ago

@DeepDiver1975 @icewind1991 what about the flysystem FTP implementation ? Didn't we want to replace the existing one with this new one ? Would be good to find out whether it fixes the mtime based change detection problem.

PVince81 commented 8 years ago

Moving to 9.2

PVince81 commented 7 years ago

Please try again with the "files_external_ftp" app which is based on flysystem.

lock[bot] commented 5 years ago

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.