Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directory and files within are missing after rename of folder #16925

Closed
shaneonabike opened this issue Jun 14, 2015 · 7 comments
Closed

Directory and files within are missing after rename of folder #16925

shaneonabike opened this issue Jun 14, 2015 · 7 comments

Comments

@shaneonabike
Copy link

Steps to reproduce

  1. Create a new directory online
  2. Add files into the directory
  3. Share the directory to another user with all permissions
  4. The second user renames the folder
  5. Suddenly the folder is not available to either user

Expected behaviour

The folder would be renamed if the correct permission exists and everything works properly

Actual behaviour

In this case, it seems that the folder was renamed on the server but not synced. I looked on Unix and noticed the folder was there but for some reason no longer available on the web interface nor through the client software.

Server configuration

Web server:
Unix/Debian

Database:
Mysql

PHP version:

ownCloud version: (see ownCloud admin page)
Latest

Updated from an older ownCloud or fresh install:

List of activated apps:

  • Contacts
  • Calendar
  • Files
  • Documents

The content of config/config.php:

<?php
$CONFIG = array (
  'trusted_domains' =>
  array (
    0 => 'cloud.blah.com',
  ),
  'datadirectory' => '/var/www/owncloud/data',
  'overwrite.cli.url' => 'http://cloud.blah.com',
  'dbtype' => 'mysql',
  'version' => '8.0.4.2',
  'dbname' => 'owncloud',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'owncloud',
  'dbpassword' => 'xxxx!',
  'installed' => true,
  'mail_from_address' => 'info',
  'mail_smtpmode' => 'smtp',
  'mail_domain' => 'blah.com',
  'mail_smtpauthtype' => 'PLAIN',
 'mail_smtphost' => 'smtp.blah.com',
  'mail_smtpport' => '587',
  'mail_smtpauth' => 1,
  'mail_smtpname' => '[email protected]',
  'mail_smtppassword' => 'xxx',
  'mail_smtpsecure' => 'tls',
  'asset-pipeline.enabled' => true,
  'forcessl' => true,
  'theme' => '',
  'maintenance' => false,
);
  • No encryption
  • Chromium Browser
@PVince81
Copy link
Contributor

Please specify your ownCloud version.
"Latest" doesn't tell us whether you are using git master (8.1 beta) or 8.0.4.

@PVince81
Copy link
Contributor

Did the folder contain a lot of entries ? Did it take a long time to rename, like a minute or so ?

@shaneonabike
Copy link
Author

Sorry I know my laptop was dying and I wanted to submit this before it died. It was unclear.

Version: 8.04

It had ony three files within it exactly!

@PVince81
Copy link
Contributor

Three files, hmmm... so this is not a known issue.

@shaneonabike
Copy link
Author

It seems almost as the the directory was not locked properly and then the syncing went all bonkers. I did notice afterwards that the files were finally on the server, but ended up missing from the owncloud of all the users as well as the Ubuntu / Mac tools that connect to owncloud.

@PVince81
Copy link
Contributor

PVince81 commented Oct 9, 2015

Yeah, likely a concurrency issue. Even when users don't do anything, their sync clients might be pinging the server to get a status.

This is solved now in 8.2RC1 with transactional file locking.

It can also be enabled manually (opt-in in 8.1, default enabled in 8.2), see https://doc.owncloud.org/server/8.1/admin_manual/configuration_files/files_locking_transactional.html

@PVince81 PVince81 closed this as completed Oct 9, 2015
@PVince81
Copy link
Contributor

PVince81 commented Oct 9, 2015

Ref #13391

@lock lock bot locked as resolved and limited conversation to collaborators Aug 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants