Skip to content

Moving files makes them disappear (SWIFT object store) #15702

Closed

Description

@pvancald

Steps to reproduce

  1. via the webinterface
  2. Create a subfolder in an existing folder
  3. Move a file from current folder to the freshly created subfolder

Expected behaviour

The freshly moved file should be visible in the subfolder

Actual behaviour

The file is not visible and the logs of the desktop client indicates that it has been deleted.

Server configuration

Operating system: Redhat 6.4

Web server: Apache

Database: EnterpriseDB (PostgreSQL)

PHP version: 5.6.2

ownCloud version: 8.0.2

Updated from an older ownCloud or fresh install: Updated from fresh 8.0.7

List of activated apps:

  • activity
  • calendar
  • contacts
  • files
  • files_external
  • files_locking
  • files_pdfviewer
  • files_sharing
  • files_texteditor
  • files_trashbin
  • files_versions
  • files_videoviewer
  • firstrunwizard
  • gallery
  • provisioning_api
  • templateeditor
  • updater
  • user_external

Disabled:

  • bookmarks
  • documents
  • external
  • files_encryption
  • user_ldap
  • user_webdavauth

The content of config/config.php:

<?php
$CONFIG = array (
  'instanceid' => 'XXX',
  'passwordsalt' => 'XXX',
  'secret' => 'XXX',
  'trusted_domains' =>
  array (
    0 => '192.168.14.XXX',
    1 => '192.168.14.XXX',
    2 => '192.168.14.XXX',
    3 => '192.168.14.XXX',
    4 => 'oc.XXX.be',
    5 => 'o.XXX.be',
  ),
  'datadirectory' => '/var/www/html/owncloud/data',
  'overwrite.cli.url' => 'https://o.XXX.be/owncloud/',
  'installed' => true,
  'version' => '8.0.2.0',
  'forcessl' => true,
  'forceSSLforSubdomains' => true,
  'dbtype' => 'pgsql',
  'dbname' => 'PGOWNCLOUD',
  'dbhost' => '192.168.14.XXX',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'XXX',
  'dbpassword' => 'XXX',
  'objectstore' =>
  array (
    'class' => 'OC\\Files\\ObjectStore\\Swift',
    'arguments' =>
    array (
      'username' => 'XXX',
      'password' => 'XXX',
      'container' => 'XXX',
      'autocreate' => true,
      'region' => 'regionOne',
      'url' => 'http://s2.XXX.lan:5000/v2.0',
      'tenantName' => 'owncloud',
      'serviceName' => 'swift',
    ),
  ),
  'user_backends' =>
  array (
    0 =>
    array (
      'class' => 'OC_User_IMAP',
      'arguments' =>
      array (
        0 => '{mailbox.XXX.be:993/imap/ssl}INBOX',
      ),
    ),
  ),
  'theme' => '',
  'maintenance' => false,
  'loglevel' => 2,
);

Are you using external storage, if yes which one: Swift

Are you using encryption: No

Are you using an external user-backend, if yes which one: IMAP

Client configuration

Browser: Chrome

Operating system: Windows 7

Logs

ownCloud log (data/owncloud.log)

{"reqId":"5f446c3817ed232afbc10b844dcadf93","remoteAddr":"192.168.203.112","app":"sharing","message":"No fileinfo available for: \/Documents\/Lifecycle.png","level":2,"time":"2015-03-31T13:36:41+00:00","method":"POST","url":"\/owncloud\/index.php\/apps\/files\/ajax\/move.php"}

ownCloud Desktop client log

Line 70: 03-31 15:37:06:070 0x433b520 OCC::SocketApi::command_RETRIEVE_FILE_STATUS: void OCC::SocketApi::command_RETRIEVE_FILE_STATUS(const QString&, OCC::SocketType*) "C:\Users\pvancaldenborgh\ownCloud\Lifecycle.png"
Line 71: 03-31 15:37:06:071 0x433b520 OCC::SocketApi::sendMessage: SocketApi:  Sending message:  "STATUS:OK:C:\Users\XXX\ownCloud\Lifecycle.png"
Line 297: 03-31 15:37:08:656 0x7239374 csync_ftw: Uniq ID from Database: Lifecycle.png -> 551aa2b0e33ab
Line 298: 03-31 15:37:08:656 0x7239374 csync_walker: file: C:/Users/XXX/ownCloud/Lifecycle.png [inode=30438 size=225286]
Line 300: 03-31 15:37:08:656 0x7239374 _csync_detect_update: file: Lifecycle.png, instruction: INSTRUCTION_NONE <<=
Line 389: 03-31 15:37:08:719 0x433b520 OCC::SocketApi::command_RETRIEVE_FILE_STATUS: void OCC::SocketApi::command_RETRIEVE_FILE_STATUS(const QString&, OCC::SocketType*) "C:\Users\XXX\ownCloud\Lifecycle.png"
Line 390: 03-31 15:37:08:719 0x433b520 OCC::SocketApi::sendMessage: SocketApi:  Sending message:  "STATUS:OK:C:\Users\XXX\ownCloud\Lifecycle.png"
Line 488: 03-31 15:37:09:124 0x433b520 _csync_merge_algorithm_visitor: INSTRUCTION_REMOVE   file: Lifecycle.png
Line 544: 03-31 15:37:09:140 0x433b520 OCC::SocketApi::sendMessage: SocketApi:  Sending message:  "STATUS:SYNC:C:\Users\XXX\ownCloud\Lifecycle.png"
Line 555: 03-31 15:37:09:795 0x433b520 OCC::OwncloudPropagator::localFileNameClash: CaseClashCheck for  "C:/Users/XXX/ownCloud/Lifecycle.png"
Line 556: 03-31 15:37:09:795 0x433b520 OCC::SyncJournalDb::deleteFileRecord: "DELETE FROM metadata WHERE phash=?1" 9051815921365099374 "Lifecycle.png"
Line 558: 03-31 15:37:09:795 0x433b520 OCC::SyncEngine::slotJobCompleted: void OCC::SyncEngine::slotJobCompleted(const OCC::SyncFileItem&) "Lifecycle.png" INSTRUCTION_REMOVE 4 ""
Line 559: 03-31 15:37:09:795 0x433b520 OCC::SocketApi::sendMessage: SocketApi:  Sending message:  "STATUS:OK:C:\Users\XXX\ownCloud\Lifecycle.png"
Line 560: 03-31 15:37:09:795 0x71c57a8 OCC::WatcherThread::watchChanges: void OCC::WatcherThread::watchChanges(size_t, bool*) Found change in "C:/Users/XXX/ownCloud/Lifecycle.png" action: 2
Line 561: 03-31 15:37:09:796 0x433b520 OCC::FolderWatcher::changeDetected: detected changes in paths: QSet("C:/Users/XXX/ownCloud/Lifecycle.png")
Line 564: 03-31 15:37:09:796 0x433b520 OCC::Folder::watcherSlot: void OCC::Folder::watcherSlot(QString) Sync running, IGNORE event for  "C:/Users/XXX/ownCloud/Lifecycle.png"
Line 633: 03-31 15:37:10:468 0x433b520 OCC::SocketApi::command_RETRIEVE_FILE_STATUS: void OCC::SocketApi::command_RETRIEVE_FILE_STATUS(const QString&, OCC::SocketType*) "C:\Users\XXX\ownCloud\Lifecycle.png"
Line 634: 03-31 15:37:10:469 0x433b520 OCC::SocketApi::fileStatus: OO File  "C:/Users/XXX/ownCloud/Lifecycle.png"  is not existing
Line 635: 03-31 15:37:10:469 0x433b520 OCC::SocketApi::sendMessage: SocketApi:  Sending message:  "STATUS:ERROR:C:\Users\XXX\ownCloud\Lifecycle.png"
Line 951: 03-31 15:37:13:639 0x433b520 OCC::SocketApi::command_RETRIEVE_FILE_STATUS: void OCC::SocketApi::command_RETRIEVE_FILE_STATUS(const QString&, OCC::SocketType*) "C:\Users\XXX\ownCloud\Lifecycle.png"
Line 952: 03-31 15:37:13:639 0x433b520 OCC::SocketApi::fileStatus: OO File  "C:/Users/XXX/ownCloud/Lifecycle.png"  is not existing
Line 953: 03-31 15:37:13:639 0x433b520 OCC::SocketApi::sendMessage: SocketApi:  Sending message:  "STATUS:ERROR:C:\Users\XXX\ownCloud\Lifecycle.png"
Line 1172: 03-31 15:37:15:129 0x433b520 OCC::SocketApi::command_RETRIEVE_FILE_STATUS: void OCC::SocketApi::command_RETRIEVE_FILE_STATUS(const QString&, OCC::SocketType*) "C:\Users\XXX\ownCloud\Lifecycle.png"
Line 1173: 03-31 15:37:15:129 0x433b520 OCC::SocketApi::fileStatus: OO File  "C:/Users/XXX/ownCloud/Lifecycle.png"  is not existing
Line 1174: 03-31 15:37:15:130 0x433b520 OCC::SocketApi::sendMessage: SocketApi:  Sending message:  "STATUS:ERROR:C:\Users\XXX\ownCloud\Lifecycle.png"

Activity

  1. rullzer commented on Apr 19, 2015

    @rullzer
    Contributor

    @pvancald Did this happen using the webinterface? Or did it happen using the desktop client?

  2. pvancald commented on Apr 20, 2015

    @pvancald
    Author

    Hi,
    the behaviour is the same either using the webinterface or the folder with
    the desktop client.
    The attached logs were for a move operation via the webinterface (drag and
    drop of the file to the subfolder)

    For completion, I also tried a scan of all files with the occ command and
    the missing files do not re-appear.

    On 19 April 2015 at 17:31, Roeland Douma [email protected] wrote:

    @pvancald https://github.com/pvancald Did this happen using the
    webinterface? Or did it happen using the desktop client?

    —
    Reply to this email directly or view it on GitHub
    #15702 (comment).


    Pascal Van Caldenborgh
    Chef de projet et Architecte IT

  3. PVince81 commented on Apr 20, 2015

    @PVince81
    Contributor

    I see you're using the SWIFT object store as home storage, tagging as such

  4. beejee commented on May 21, 2015

    @beejee

    Hi,
    do you have any input on this issue, ways we can debug this, logs you would like to see?
    Can this be related to this issue: #11797?
    as in: the file is being renamed on swift level, oc not picking up the new file so cancelling the move , not registering the new location in the db metadata, hence the db location being different from the actual file location?

    The files are still available when we look on the actual swift storage after the move
    They don't reappear with a "occ files:scan --all" though.

  5. pvancald commented on May 21, 2015

    @pvancald
    Author

    Hi!
    we updated to 8.0.3 recently and the issue is still present...
    today we have a fresh eye working on it and I asked him to contribute as well to this issue.
    Our engineer and the consultant are more aware than I am to continue feeding on the investigations but from what I read on issue #11797 it really sounds related...

  6. beejee commented on May 21, 2015

    @beejee

    From what it looks like, the move (which is a copy/delete action in the swift storage) processes on swift level. The db metadata is not updated though, which could be because owncloud does not see an updated mtime on the directory containing the moved/new file so it does not pick up the new file in the new location.

    Can we get more details or debug info out of owncloud on these actions happening when files are moved from a folder?

    (btw I am the fresh eye :), last week we received a report of another location having similar problems with a swift setup as main storage but they proceeded with another form of storage for now)

  7. diegoparrilla commented on Jun 9, 2015

    @diegoparrilla

    I can confirm the bug in 8.0.3

  8. PVince81 commented on Jul 14, 2015

    @PVince81
    Contributor

    @motomura0770 thanks, I raised owncloud-archive/documentation#1314 to fix the doc.

    Did you check the admin page and see in the "Server status" section that locking was enabled properly ?

  9. PVince81 commented on Jul 14, 2015

    @PVince81
    Contributor

    @motomura0770 can you post your environment info ? See https://raw.githubusercontent.com/owncloud/core/master/issue_template.md
    I suspect this might not be related to locking or concurrency.

  10. PVince81 commented on Jul 14, 2015

    @PVince81
    Contributor

    I just saw the "objectstore" label.
    Are you guys ALL using the SWIFT home object store with the "objectstore" setting in config.php ?

  11. 25 remaining items

  12. ghost added this to the milestone on Oct 13, 2015
  13. ghost removed this from the milestone on Oct 13, 2015
  14. PVince81 commented on Oct 20, 2015

    @PVince81
    Contributor

    I see the PR #17641 was merged, is this fixed or is there additional work to be done ?

  15. butonic commented on Oct 20, 2015

    @butonic
    Contributor

    fixed for 9.0, backport for 8.2.1 in #19882

  16. modified the milestones: , on Oct 20, 2015
  17. lock commented on Aug 5, 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.

  18. locked as resolved and limited conversation to collaborators on Aug 5, 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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions