core icon indicating copy to clipboard operation
core copied to clipboard

OC7 - File changed during sync - Cache folder full of chunk files

Open christianrj opened this issue 12 years ago • 64 comments

Steps to reproduce

  1. Copy a large folder inside the owncloud folder (with some large files > 10 MB and many small files (<100 KB).
  2. All files will sync, but then, some files will resync again and again and again...

Expected behaviour

All files should sync and then resync only if they are REALLY modified

Actual behaviour

Some files resync again and again, and for all these resyncs, a chunk of 10 MB is saved in the user cache folder in the Owncloud server. After some time the disk space on the server becomes FULL if many files start resyncing on their own. This is a showstopper bug!

The Owncloud client will show this message in the activity window: Local file changed during sync.

Filename in this example: EUA 9801.ctf Content of cache directory: http://s15.postimg.org/bw5320dln/oc_cache.png

Server configuration

Operating system: CentOS 5.10

Web server: Apache 2.2.22

Database: MySQL 5.5.28

PHP version: 5.3.28 (apache module)

ownCloud version: 7 RC3

Updated from an older ownCloud or fresh install: RC2

ownCloud client version: 1.6.2 RC1

List of activated apps: Activity, Calendar, Contacts, Deleted files, External Storage support, Full Text Search, Mail Template Editor, Pictures, Share Files, Versions

The content of config/config.php:

$CONFIG = array (
  'instanceid' => 'oc8562d72ac2',
  'passwordsalt' => '*** Removed for security reasons',
  'trusted_domains' => 
  array (
    0 => '',
    1 => '',
  ),
  'datadirectory' => '/oc7/data',
  'dbtype' => 'mysql',
  'version' => '7.0.0.6',
  'dbname' => 'oc7',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => '',
  'dbpassword' => '',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'tls',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => true,
  'mail_smtphost' => '',
  'mail_smtpport' => '587',
  'mail_smtpname' => '',
  'mail_smtppassword' => '',
  'mail_from_address' => 'oc7',
  'mail_domain' => '',
  'logdateformat' => 'd-m-Y - H:i:s',
  'logtimezone' => 'America/Sao_Paulo',
  'log_rotate_size' => 5242880,
  'appstoreenabled' => false,
  'default_language' => 'pt_BR',
  'knowledgebaseenabled' => false,
  'updatechecker' => false,
  'theme' => '',
  'maintenance' => false,
  'logfile' => '/oc7/data/oc.log',
);

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

Are you using encryption: no

Client configuration

Browser: Chrome 36

Operating system: Windows 8.1

Logs

Web server error log

[Tue Jul 22 17:50:53 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Jul 22 17:50:53 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)

ownCloud log (data/owncloud.log)

No logs generated during the tests for this report

Browser log

No relevant logs to show

christianrj avatar Jul 22 '14 21:07 christianrj

Sounds similar to https://github.com/owncloud/core/issues/9513 but causes are still unknown. Can you provide the same info as requested here: https://github.com/owncloud/core/issues/9513#issuecomment-49267926

The server side issue is simply that cancelled chunks are not deleted automatically as the server cannot known what chunks were "abandoned". This will be fixed as part of https://github.com/owncloud/core/issues/9676

In the meantime the workaround is to setup a local cron job to delete abandoned/old chunks.

PVince81 avatar Jul 23 '14 13:07 PVince81

@PVince81

Here is the relevant client (1.6.2 RC1 on Windows 8.1) log for the affected file:

07-23 10:58:00:477 csync_walker: file: F:/DATA/oC/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf [file_id=]
07-23 10:58:00:524 _csync_detect_update: file: Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf, instruction: INSTRUCTION_NEW <<=
07-23 10:58:02:021 _csync_merge_algorithm_visitor: INSTRUCTION_NEW      file: Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf
07-23 10:58:05:609 networkjobs.cpp:191 !!! Mirall::PUTFileJob created for  QUrl( "https://oc7.xxxxxxxx.com" )  querying "/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-3375522164-2-0" 
07-23 10:58:06:452 propagator_qnam.cpp:261 void Mirall::PropagateUploadFileQNAM::slotPutFinished()  QUrl( "https://oc7.xxxxxxxx.com/remote.php/webdav/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-3375522164-2-0" )  FINISHED WITH STATUS 0 "" QVariant(int, 201) QVariant(QString, "Created") 
07-23 10:58:06:452 syncengine.cpp:634 void Mirall::SyncEngine::slotJobCompleted(const Mirall::SyncFileItem&) "Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf" 3 "Local file changed during sync." 

Here is the owncloud.log generated during this test sync (loglevel => 0):

{"reqId":"53cfc62e09b45","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 11:26:54","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53cfc6eed3982","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 11:30:06","method":"PROPFIND","url":"\/remote.php\/webdav"}

Also, just as a note, it seems the upload is never finished, because the file in question the file is not saved on the server.

christianrj avatar Jul 23 '14 14:07 christianrj

Thanks. Would be good to see in the sync client log whether or why it is re-detecting changes multiple times for a single file. What kind of file is a "ctf" file ? Is it open in an editor that saves the file often or locks it somehow ?

PVince81 avatar Jul 23 '14 14:07 PVince81

@PVince81 No, the file is not modified in any way on the client. This also happened, in my tests, with other file types, like: .mov, .wav and .swf files for example. I also tested this with the client installed on a server (Win 2008 R2). The same problem occurred.

christianrj avatar Jul 23 '14 15:07 christianrj

And for all these files you're often getting "Local file changed during sync", right ?

Is there a timezone difference between your server and your client ?

Just trying to guess what could be wrong as I'm not able to reproduce the issue locally.

Can you observe one of those files in the file manager and refresh many times ? Goal is to see whether the file's timestamp changes over time because that's usually what would make the sync client think the file changed.

PVince81 avatar Jul 23 '14 15:07 PVince81

CC @dragotin @ogoffart

PVince81 avatar Jul 23 '14 15:07 PVince81

@PVince81 Both server and client have date and time synchronized using NTP. No difference in date/time. The timezone is the same (GMT-3 or America/Sao_Paulo). PHP is also set to America/Sao_Paulo in php.ini.

I will try the sync and pay attention on the client to see if the file in question has some modification in the date/time.

christianrj avatar Jul 23 '14 15:07 christianrj

You might also want to upgrade to the official OC 7.0.0 release that came out today. Some syncing issues were fixed since RC3.

PVince81 avatar Jul 23 '14 16:07 PVince81

@PVince81 Upgraded my test server from RC3 to Stable7. Same problem.

Here is the information of that file after the sync (it's in portuguese, sorry): http://s15.postimg.org/zcz8pm1kr/owncloud_error.png

The tabs are: Name - Creation Date - Modification Date - Type - Size - Path

As you can see, I think we have the culprit. The modification date is older than the creation date. The modification date was in 1998. The file is indeed really old. The creation date was in 2014 (when I copied the file into that folder to sync.). Maybe Owncloud has some problems with files in this particular case?

christianrj avatar Jul 23 '14 17:07 christianrj

@PVince81

Oh, now we have something!! I have opened the file in notepad++, changed some bytes and then saved it in order to have the modification date newer than creation date, then started Owncloud Client. An internal server error occurred. Below are the relevant logs:

Cache folder: http://s28.postimg.org/cpwzk641p/error.png

Client Activity:

14:36     Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf                    ownCloud       Error downloading https://*********.com/remote.php/webdav/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-2934958719-2-1 - server replied: Internal Server Error

Client log:

07-23 14:36:41:905 csync_walker: file: F:/DATA/oC/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf [file_id=]
07-23 14:36:41:952 _csync_detect_update: file: Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf, instruction: INSTRUCTION_NEW <<=
07-23 14:36:43:263 _csync_merge_algorithm_visitor: INSTRUCTION_NEW      file: Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf
07-23 14:36:46:570 networkjobs.cpp:191 !!! Mirall::PUTFileJob created for  QUrl( "https://*********.com" )  querying "/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-2934958719-2-0" 
07-23 14:36:47:490 propagator_qnam.cpp:261 void Mirall::PropagateUploadFileQNAM::slotPutFinished()  QUrl( "https://*********.com/remote.php/webdav/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-2934958719-2-0" )  FINISHED WITH STATUS 0 "" QVariant(int, 201) QVariant(QString, "Created") 
07-23 14:36:47:490 syncjournaldb.cpp:672 "INSERT OR REPLACE INTO uploadinfo (path, chunk, transferid, errorcount, size, modtime) VALUES ( ? , ?, ? , ? ,  ? , ? )" "Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf" 1 -1370494337 0 
07-23 14:36:47:537 networkjobs.cpp:191 !!! Mirall::PUTFileJob created for  QUrl( "https://*********.com" )  querying "/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-2934958719-2-1" 
07-23 14:36:48:333 networkjobs.cpp:139 void Mirall::AbstractNetworkJob::slotFinished() 299 "Error downloading https://*********.com/remote.php/webdav/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-2934958719-2-1 - server replied: Internal Server Error" 
07-23 14:36:48:333 propagator_qnam.cpp:261 void Mirall::PropagateUploadFileQNAM::slotPutFinished()  QUrl( "https://*********.com/remote.php/webdav/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-2934958719-2-1" )  FINISHED WITH STATUS 299 "Error downloading https://*********.com/remote.php/webdav/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-2934958719-2-1 - server replied: Internal Server Error" QVariant(int, 500) QVariant(QString, "Internal Server Error") 
07-23 14:36:48:333 propagator_qnam.cpp:261 void Mirall::PropagateUploadFileQNAM::slotPutFinished()  QUrl( "https://*********.com/remote.php/webdav/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-2934958719-2-1" )  FINISHED WITH STATUS 299 "Error downloading https://*********.com/remote.php/webdav/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-2934958719-2-1 - server replied: Internal Server Error" QVariant(int, 500) QVariant(QString, "Internal Server Error") 
07-23 14:36:48:333 syncengine.cpp:634 void Mirall::SyncEngine::slotJobCompleted(const Mirall::SyncFileItem&) "Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf" 2 "Error downloading https://*********.com/remote.php/webdav/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-2934958719-2-1 - server replied: Internal Server Error" 
07-23 14:36:48:333 syncengine.cpp:634 void Mirall::SyncEngine::slotJobCompleted(const Mirall::SyncFileItem&) "Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf" 2 "Error downloading https://*********.com/remote.php/webdav/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-2934958719-2-1 - server replied: Internal Server Error" 
07-23 14:36:52:045 folder.cpp:656   ** error Strings:  ("Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf: Error downloading https://*********.com/remote.php/webdav/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-2934958719-2-1 - server replied: Internal Server Error") 
07-23 14:36:52:045 folder.cpp:656   ** error Strings:  ("Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf: Error downloading https://*********.com/remote.php/webdav/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-2934958719-2-1 - server replied: Internal Server Error") 
07-23 14:38:39:482 csync_walker: file: F:/DATA/oC/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf [file_id=]
07-23 14:38:39:529 _csync_detect_update: file: Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf, instruction: INSTRUCTION_NEW <<=
07-23 14:38:40:917 _csync_merge_algorithm_visitor: INSTRUCTION_NEW      file: Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf
07-23 14:38:44:537 propagator_qnam.cpp:108 virtual void Mirall::PropagateUploadFileQNAM::start() "Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf" : Resuming from chunk  1 
07-23 14:38:44:537 networkjobs.cpp:191 !!! Mirall::PUTFileJob created for  QUrl( "https://*********.com" )  querying "/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-2934958719-2-1" 
07-23 14:38:47:017 propagator_qnam.cpp:261 void Mirall::PropagateUploadFileQNAM::slotPutFinished()  QUrl( "https://*********.com/remote.php/webdav/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-2934958719-2-1" )  FINISHED WITH STATUS 0 "" QVariant(int, 201) QVariant(QString, "Created") 
07-23 14:38:47:017 syncjournaldb.cpp:672 "INSERT OR REPLACE INTO uploadinfo (path, chunk, transferid, errorcount, size, modtime) VALUES ( ? , ?, ? , ? ,  ? , ? )" "Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf" 0 -1370494337 0 
07-23 14:38:47:064 networkjobs.cpp:191 !!! Mirall::PUTFileJob created for  QUrl( "https://*********.com" )  querying "/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-2934958719-2-0" 
07-23 14:38:48:015 networkjobs.cpp:139 void Mirall::AbstractNetworkJob::slotFinished() 299 "Error downloading https://*********.com/remote.php/webdav/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-2934958719-2-0 - server replied: Internal Server Error" 
07-23 14:38:48:015 propagator_qnam.cpp:261 void Mirall::PropagateUploadFileQNAM::slotPutFinished()  QUrl( "https://*********.com/remote.php/webdav/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-2934958719-2-0" )  FINISHED WITH STATUS 299 "Error downloading https://*********.com/remote.php/webdav/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-2934958719-2-0 - server replied: Internal Server Error" QVariant(int, 500) QVariant(QString, "Internal Server Error") 
07-23 14:38:48:015 propagator_qnam.cpp:261 void Mirall::PropagateUploadFileQNAM::slotPutFinished()  QUrl( "https://*********.com/remote.php/webdav/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-2934958719-2-0" )  FINISHED WITH STATUS 299 "Error downloading https://*********.com/remote.php/webdav/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-2934958719-2-0 - server replied: Internal Server Error" QVariant(int, 500) QVariant(QString, "Internal Server Error") 
07-23 14:38:48:015 syncengine.cpp:634 void Mirall::SyncEngine::slotJobCompleted(const Mirall::SyncFileItem&) "Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf" 2 "Error downloading https://*********.com/remote.php/webdav/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-2934958719-2-0 - server replied: Internal Server Error" 
07-23 14:38:48:015 syncengine.cpp:634 void Mirall::SyncEngine::slotJobCompleted(const Mirall::SyncFileItem&) "Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf" 2 "Error downloading https://*********.com/remote.php/webdav/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-2934958719-2-0 - server replied: Internal Server Error" 
07-23 14:38:51:697 folder.cpp:656   ** error Strings:  ("Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf: Error downloading https://*********.com/remote.php/webdav/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-2934958719-2-0 - server replied: Internal Server Error") 
07-23 14:38:51:697 folder.cpp:656   ** error Strings:  ("Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf: Error downloading https://*********.com/remote.php/webdav/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-2934958719-2-0 - server replied: Internal Server Error") 
07-23 14:40:36:965 csync_walker: file: F:/DATA/oC/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf [file_id=]
07-23 14:40:37:028 _csync_detect_update: file: Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf, instruction: INSTRUCTION_NEW <<=
07-23 14:40:38:416 _csync_merge_algorithm_visitor: INSTRUCTION_NEW      file: Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf
07-23 14:40:41:973 propagator_qnam.cpp:108 virtual void Mirall::PropagateUploadFileQNAM::start() "Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf" : Resuming from chunk  0 
07-23 14:40:41:973 networkjobs.cpp:191 !!! Mirall::PUTFileJob created for  QUrl( "https://*********.com" )  querying "/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-2934958719-2-0" 
07-23 14:40:42:909 networkjobs.cpp:139 void Mirall::AbstractNetworkJob::slotFinished() 299 "Error downloading https://*********.com/remote.php/webdav/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-2934958719-2-0 - server replied: Internal Server Error" 
07-23 14:40:42:909 propagator_qnam.cpp:261 void Mirall::PropagateUploadFileQNAM::slotPutFinished()  QUrl( "https://*********.com/remote.php/webdav/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-2934958719-2-0" )  FINISHED WITH STATUS 299 "Error downloading https://*********.com/remote.php/webdav/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-2934958719-2-0 - server replied: Internal Server Error" QVariant(int, 500) QVariant(QString, "Internal Server Error") 
07-23 14:40:42:909 propagator_qnam.cpp:261 void Mirall::PropagateUploadFileQNAM::slotPutFinished()  QUrl( "https://*********.com/remote.php/webdav/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-2934958719-2-0" )  FINISHED WITH STATUS 299 "Error downloading https://*********.com/remote.php/webdav/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-2934958719-2-0 - server replied: Internal Server Error" QVariant(int, 500) QVariant(QString, "Internal Server Error") 
07-23 14:40:42:925 syncengine.cpp:634 void Mirall::SyncEngine::slotJobCompleted(const Mirall::SyncFileItem&) "Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf" 2 "Error downloading https://*********.com/remote.php/webdav/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-2934958719-2-0 - server replied: Internal Server Error" 
07-23 14:40:42:925 syncengine.cpp:634 void Mirall::SyncEngine::slotJobCompleted(const Mirall::SyncFileItem&) "Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf" 2 "Error downloading https://*********.com/remote.php/webdav/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-2934958719-2-0 - server replied: Internal Server Error" 
07-23 14:40:47:215 folder.cpp:656   ** error Strings:  ("Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf: Error downloading https://*********.com/remote.php/webdav/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-2934958719-2-0 - server replied: Internal Server Error") 
07-23 14:40:47:215 folder.cpp:656   ** error Strings:  ("Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf: Error downloading https://*********.com/remote.php/webdav/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-2934958719-2-0 - server replied: Internal Server Error") 

php error log:

PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 6495616 bytes) in /var/www/html/owncloud/lib/private/files/storage/local.php on line 156
PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 6495616 bytes) in /var/www/html/owncloud/lib/private/files/storage/local.php on line 156
PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 6495616 bytes) in /var/www/html/owncloud/lib/private/files/storage/local.php on line 156

Webserver error log:

[Tue Jul 22 17:50:53 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Jul 22 17:50:53 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Wed Jul 23 11:14:08 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Wed Jul 23 11:14:08 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Wed Jul 23 11:15:28 2014] [error] [client 10.21.2.187] PHP Parse error:  syntax error, unexpected T_STRING in /var/www/html/owncloud/index.php on line 28, referer: https://oc7.hoffmann.com/index.php/apps/files/?dir=%2FExcluidos%2FViagem%20EUA%20-%2098.02.98
[Wed Jul 23 11:15:28 2014] [error] [client 10.21.2.187] File does not exist: /var/www/html/owncloud/favicon.ico
[Wed Jul 23 11:17:34 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Wed Jul 23 11:17:34 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Wed Jul 23 13:57:27 2014] [error] [client 127.0.0.1] File does not exist: /var/www/html/owncloud/data
[Wed Jul 23 13:58:30 2014] [error] [client 127.0.0.1] File does not exist: /var/www/html/owncloud/data
[Wed Jul 23 14:47:55 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Wed Jul 23 14:47:55 2014] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)

Owncloud.log:

{"reqId":"53cfc62e09b45","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 11:26:54","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53cfc6eed3982","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 11:30:06","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53cfe9614ea22","app":"core","message":"starting upgrade from 7.0.0.6 to 7.0.0.8","level":0,"time":"23-07-2014 - 13:57:05","method":"GET","url":"\/core\/ajax\/update.php?requesttoken=a64db5740c4ebc3f03a9"}
{"reqId":"53cfe9614ea22","app":"activity","message":"starting app upgrade from 1.1.22 to 1.1.23","level":0,"time":"23-07-2014 - 13:57:16","method":"GET","url":"\/core\/ajax\/update.php?requesttoken=a64db5740c4ebc3f03a9"}
{"reqId":"53cfe9614ea22","app":"contacts","message":"starting app upgrade from 0.3.0.16 to 0.3.0.17","level":0,"time":"23-07-2014 - 13:57:17","method":"GET","url":"\/core\/ajax\/update.php?requesttoken=a64db5740c4ebc3f03a9"}
{"reqId":"53cfe9614ea22","app":"search_lucene","message":"starting app upgrade from 0.5.2 to 0.5.3","level":0,"time":"23-07-2014 - 13:57:17","method":"GET","url":"\/core\/ajax\/update.php?requesttoken=a64db5740c4ebc3f03a9"}
{"reqId":"53cfe978158e1","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 13:57:28","method":"PROPFIND","url":"\/remote.php\/webdav\/"}
{"reqId":"53cfe9b6964d9","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 13:58:30","method":"PROPFIND","url":"\/remote.php\/webdav\/"}
{"reqId":"53cfe9f6b0909","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 13:59:34","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53cfea765c18f","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 14:01:42","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53cfebf958457","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 14:08:09","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53cfed8057cb0","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 14:14:40","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53cfef042bed1","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 14:21:08","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53cff2aa18446","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 14:36:42","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53cff2b04dba0","app":"PHP","message":"Allowed memory size of 33554432 bytes exhausted (tried to allocate 6495616 bytes) at \/var\/www\/html\/owncloud\/lib\/private\/files\/storage\/local.php#156","level":3,"time":"23-07-2014 - 14:36:48","method":"PUT","url":"\/remote.php\/webdav\/Excluidos\/Viagem%20EUA%20-%2098.02.98\/EUA%209801.ctf-chunking-2934958719-2-1"}
{"reqId":"53cff31fa5d13","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 14:38:39","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53cff324b5a42","app":"OC\\Files\\Cache\\Scanner","message":"!!! No reuse of etag for 'files\/Excluidos\/Viagem EUA - 98.02.98' !!! \ncache: Array\n(\n    [fileid] => 72332\n    [storage] => home::christiansen.noronha\n    [path] => files\/Excluidos\/Viagem EUA - 98.02.98\n    [parent] => 72327\n    [name] => Viagem EUA - 98.02.98\n    [mimetype] => httpd\/unix-directory\n    [mimepart] => httpd\n    [size] => 38618435\n    [mtime] => 1406056931\n    [storage_mtime] => 1406056931\n    [encrypted] => \n    [unencrypted_size] => 0\n    [etag] => 53ceb9e32a133\n    [permissions] => 31\n)\n \ndata: Array\n(\n    [mimetype] => httpd\/unix-directory\n    [mtime] => 1406137008\n    [size] => -1\n    [etag] => 53cff324b52d0\n    [storage_mtime] => 1406137008\n    [permissions] => 31\n    [parent] => 72327\n)\n","level":0,"time":"23-07-2014 - 14:38:44","method":"PUT","url":"\/remote.php\/webdav\/Excluidos\/Viagem%20EUA%20-%2098.02.98\/EUA%209801.ctf-chunking-2934958719-2-1"}
{"reqId":"53cff327f375f","app":"PHP","message":"Allowed memory size of 33554432 bytes exhausted (tried to allocate 6495616 bytes) at \/var\/www\/html\/owncloud\/lib\/private\/files\/storage\/local.php#156","level":3,"time":"23-07-2014 - 14:38:47","method":"PUT","url":"\/remote.php\/webdav\/Excluidos\/Viagem%20EUA%20-%2098.02.98\/EUA%209801.ctf-chunking-2934958719-2-0"}
{"reqId":"53cff39527abf","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 14:40:37","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53cff39ada0b6","app":"PHP","message":"Allowed memory size of 33554432 bytes exhausted (tried to allocate 6495616 bytes) at \/var\/www\/html\/owncloud\/lib\/private\/files\/storage\/local.php#156","level":3,"time":"23-07-2014 - 14:40:42","method":"PUT","url":"\/remote.php\/webdav\/Excluidos\/Viagem%20EUA%20-%2098.02.98\/EUA%209801.ctf-chunking-2934958719-2-0"}

christianrj avatar Jul 23 '14 18:07 christianrj

@christianrj you seem to have memory problems on the server. Try increasing the memory size of PHP first, just to make sure it's not related to this issue.

Strange thing that a creation date can be newer than modification date. Still, the client should not be disturbed by this.

PVince81 avatar Jul 23 '14 18:07 PVince81

@PVince81 Yes, I forgot to change the php.ini settings.

But, It's now confirmed that editing the file so that the modification date becomes newer than the date of creation, solves this bug (as a workaround).

So Owncloud has problems with modified dates older than creation dates. Confirmed.

christianrj avatar Jul 23 '14 19:07 christianrj

Okay thanks a lot for the details. From what I know the sync client will send the modified time to the ownCloud server and the date of the remote file will be set to that modified time, even if in the past.

Not sure why the sync client would still believe that the local file has changed ?

@ogoffart @dragotin can you have a look ?

PVince81 avatar Jul 23 '14 19:07 PVince81

@PVince81

Now I'm getting this in the client activity:

17:01     Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf                    ownCloud       The item is not synced because of previous errors:: Error downloading https://oc7.xxxxxxxx.com/remote.php/webdav/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-2934958719-2-0 - server replied: Internal Server Error        

Just to note, I deleted all files in the cache folder, previously.

christianrj avatar Jul 23 '14 20:07 christianrj

Do you have the matching owncloud.log entry from about the same time ?

PVince81 avatar Jul 23 '14 20:07 PVince81

Here is the complete one:

{"reqId":"53cfc62e09b45","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 11:26:54","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53cfc6eed3982","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 11:30:06","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53cfe9614ea22","app":"core","message":"starting upgrade from 7.0.0.6 to 7.0.0.8","level":0,"time":"23-07-2014 - 13:57:05","method":"GET","url":"\/core\/ajax\/update.php?requesttoken=a64db5740c4ebc3f03a9"}
{"reqId":"53cfe9614ea22","app":"activity","message":"starting app upgrade from 1.1.22 to 1.1.23","level":0,"time":"23-07-2014 - 13:57:16","method":"GET","url":"\/core\/ajax\/update.php?requesttoken=a64db5740c4ebc3f03a9"}
{"reqId":"53cfe9614ea22","app":"contacts","message":"starting app upgrade from 0.3.0.16 to 0.3.0.17","level":0,"time":"23-07-2014 - 13:57:17","method":"GET","url":"\/core\/ajax\/update.php?requesttoken=a64db5740c4ebc3f03a9"}
{"reqId":"53cfe9614ea22","app":"search_lucene","message":"starting app upgrade from 0.5.2 to 0.5.3","level":0,"time":"23-07-2014 - 13:57:17","method":"GET","url":"\/core\/ajax\/update.php?requesttoken=a64db5740c4ebc3f03a9"}
{"reqId":"53cfe978158e1","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 13:57:28","method":"PROPFIND","url":"\/remote.php\/webdav\/"}
{"reqId":"53cfe9b6964d9","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 13:58:30","method":"PROPFIND","url":"\/remote.php\/webdav\/"}
{"reqId":"53cfe9f6b0909","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 13:59:34","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53cfea765c18f","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 14:01:42","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53cfebf958457","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 14:08:09","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53cfed8057cb0","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 14:14:40","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53cfef042bed1","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 14:21:08","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53cff2aa18446","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 14:36:42","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53cff2b04dba0","app":"PHP","message":"Allowed memory size of 33554432 bytes exhausted (tried to allocate 6495616 bytes) at \/var\/www\/html\/owncloud\/lib\/private\/files\/storage\/local.php#156","level":3,"time":"23-07-2014 - 14:36:48","method":"PUT","url":"\/remote.php\/webdav\/Excluidos\/Viagem%20EUA%20-%2098.02.98\/EUA%209801.ctf-chunking-2934958719-2-1"}
{"reqId":"53cff31fa5d13","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 14:38:39","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53cff324b5a42","app":"OC\\Files\\Cache\\Scanner","message":"!!! No reuse of etag for 'files\/Excluidos\/Viagem EUA - 98.02.98' !!! \ncache: Array\n(\n    [fileid] => 72332\n    [storage] => home::christiansen.noronha\n    [path] => files\/Excluidos\/Viagem EUA - 98.02.98\n    [parent] => 72327\n    [name] => Viagem EUA - 98.02.98\n    [mimetype] => httpd\/unix-directory\n    [mimepart] => httpd\n    [size] => 38618435\n    [mtime] => 1406056931\n    [storage_mtime] => 1406056931\n    [encrypted] => \n    [unencrypted_size] => 0\n    [etag] => 53ceb9e32a133\n    [permissions] => 31\n)\n \ndata: Array\n(\n    [mimetype] => httpd\/unix-directory\n    [mtime] => 1406137008\n    [size] => -1\n    [etag] => 53cff324b52d0\n    [storage_mtime] => 1406137008\n    [permissions] => 31\n    [parent] => 72327\n)\n","level":0,"time":"23-07-2014 - 14:38:44","method":"PUT","url":"\/remote.php\/webdav\/Excluidos\/Viagem%20EUA%20-%2098.02.98\/EUA%209801.ctf-chunking-2934958719-2-1"}
{"reqId":"53cff327f375f","app":"PHP","message":"Allowed memory size of 33554432 bytes exhausted (tried to allocate 6495616 bytes) at \/var\/www\/html\/owncloud\/lib\/private\/files\/storage\/local.php#156","level":3,"time":"23-07-2014 - 14:38:47","method":"PUT","url":"\/remote.php\/webdav\/Excluidos\/Viagem%20EUA%20-%2098.02.98\/EUA%209801.ctf-chunking-2934958719-2-0"}
{"reqId":"53cff39527abf","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 14:40:37","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53cff39ada0b6","app":"PHP","message":"Allowed memory size of 33554432 bytes exhausted (tried to allocate 6495616 bytes) at \/var\/www\/html\/owncloud\/lib\/private\/files\/storage\/local.php#156","level":3,"time":"23-07-2014 - 14:40:42","method":"PUT","url":"\/remote.php\/webdav\/Excluidos\/Viagem%20EUA%20-%2098.02.98\/EUA%209801.ctf-chunking-2934958719-2-0"}
{"reqId":"53cffd629e1c8","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 15:22:26","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53cffd684b459","app":"PHP","message":"Allowed memory size of 33554432 bytes exhausted (tried to allocate 6495616 bytes) at \/var\/www\/html\/owncloud\/lib\/private\/files\/storage\/local.php#156","level":3,"time":"23-07-2014 - 15:22:32","method":"PUT","url":"\/remote.php\/webdav\/Excluidos\/Viagem%20EUA%20-%2098.02.98\/EUA%209801.ctf-chunking-2934958719-2-0"}
{"reqId":"53cffdd78260d","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 15:24:23","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53cffe4a4e3ef","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 15:26:18","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53cffe75e8128","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 15:27:01","method":"PROPFIND","url":"\/remote.php\/webdav\/"}
{"reqId":"53cffecde071e","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 15:28:29","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53cfff4184bb6","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 15:30:25","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53cfffbd45e72","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 15:32:29","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53d000308d1a2","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 15:34:24","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53d001afed0ce","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 15:40:47","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53d00331bd08c","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 15:47:13","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53d004b21af93","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 15:53:38","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53d00634438ad","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 16:00:04","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53d007b85ad60","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 16:06:32","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53d0093a39e92","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 16:12:58","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53d00abbc5e40","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 16:19:23","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53d00c3d0cf39","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 16:25:49","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53d00dbe5b2ad","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 16:32:14","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53d00f3ea8b12","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 16:38:38","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53d010bf90f9e","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 16:45:03","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53d0128f5841d","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 16:52:47","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53d0130312a34","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 16:54:43","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53d0147a2e23b","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 17:00:58","method":"PROPFIND","url":"\/remote.php\/webdav"}
{"reqId":"53d015e60b6f4","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"23-07-2014 - 17:07:02","method":"PROPFIND","url":"\/remote.php\/webdav"}

christianrj avatar Jul 23 '14 20:07 christianrj

@PVince81 Did another test. This time, I deleted the file on the client and then I waited the client to sync. Then, I uploaded the problematic file via web interface. Then I opened the client and it downloaded the file just fine, completing the sync with no errors (the file in this question was the one with the modified date updated).

Then I replaced the file in the client side with the old one (with the 1998 modification date) and the problem returned. Maybe it's a client problem, and not server side?

Client log:

07-23 17:45:25:392 csync_walker: file: ownclouds://*********.com/remote.php/webdav/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf [file_id=00074121oc8562d72ac2]
07-23 17:45:25:392 _csync_detect_update: file: Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf, instruction: INSTRUCTION_NEW <<=
07-23 17:45:27:732 _csync_merge_algorithm_visitor: INSTRUCTION_NEW      file: Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf
07-23 17:45:29:245 syncengine.cpp:232 "Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf" one ETag is empty, no blacklisting 
07-23 17:45:29:978 propagator_qnam.cpp:475 virtual void Mirall::PropagateDownloadFileQNAM::start() "Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf" 0 
07-23 17:45:29:978 owncloudpropagator.cpp:345 CaseClashCheck for  "F:/DATA/oC/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf" 
07-23 17:45:29:978 syncjournaldb.cpp:606 "INSERT OR REPLACE INTO downloadinfo (path, tmpfile, etag, errorcount) VALUES ( ? , ?, ? , ? )" "Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf" "Excluidos/Viagem EUA - 98.02.98/.EUA 9801.ctf.~2894" "53d016c521914" 0 
07-23 17:45:29:978 syncjournaldb.cpp:606 "INSERT OR REPLACE INTO downloadinfo (path, tmpfile, etag, errorcount) VALUES ( ? , ?, ? , ? )" "Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf" "Excluidos/Viagem EUA - 98.02.98/.EUA 9801.ctf.~2894" "53d016c521914" 0 
07-23 17:45:30:072 networkjobs.cpp:191 !!! Mirall::GETFileJob created for  QUrl( "https://*********.com" )  querying "/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf" 
07-23 17:45:31:055 propagator_qnam.cpp:563 void Mirall::PropagateDownloadFileQNAM::slotGetFinished()  QUrl( "https://*********.com/remote.php/webdav/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf" )  FINISHED WITH STATUS 0 "" 
07-23 17:45:31:070 syncjournaldb.cpp:400 "INSERT OR REPLACE INTO metadata (phash, pathlen, path, inode, uid, gid, mode, modtime, type, md5, fileid) VALUES ( ? , ?, ? , ? , ? , ? , ?,  ? , ? , ?, ? )" 4701884023476737316 44 "Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf" 127653 0 0 0 "1406146245" "0" "53d016c521914" "00074121oc8562d72ac2" 
07-23 17:45:31:070 syncjournaldb.cpp:616 "DELETE FROM downloadinfo WHERE path=?" "Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf" 
07-23 17:45:31:304 syncengine.cpp:634 void Mirall::SyncEngine::slotJobCompleted(const Mirall::SyncFileItem&) "Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf" 4 "" 
07-23 17:47:24:330 csync_ftw: Uniq ID from Database: Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf -> 53d016c521914
07-23 17:47:24:330 csync_walker: file: F:/DATA/oC/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf [file_id=]
07-23 17:47:24:330 _csync_detect_update: file: Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf, instruction: INSTRUCTION_NONE <<=
07-23 17:47:25:702 _csync_merge_algorithm_visitor: INSTRUCTION_NONE     file: Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf
07-23 17:47:27:013 _csync_merge_algorithm_visitor: INSTRUCTION_NONE     file: Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf
07-23 17:53:48:445 csync_ftw: Uniq ID from Database: Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf -> 53d016c521914
07-23 17:53:48:445 csync_walker: file: F:/DATA/oC/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf [file_id=]
07-23 17:53:48:445 _csync_detect_update: file: Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf, instruction: INSTRUCTION_NONE <<=
07-23 17:53:49:864 _csync_merge_algorithm_visitor: INSTRUCTION_NONE     file: Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf
07-23 17:53:51:378 _csync_merge_algorithm_visitor: INSTRUCTION_NONE     file: Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf
07-23 17:55:48:020 csync_ftw: Uniq ID from Database: Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf -> 53d016c521914
07-23 17:55:48:020 csync_walker: file: F:/DATA/oC/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf [file_id=]
07-23 17:55:48:020 _csync_detect_update: file: Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf, instruction: INSTRUCTION_EVAL <<=
07-23 17:55:49:346 _csync_merge_algorithm_visitor: INSTRUCTION_SYNC     file: Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf
07-23 17:55:50:672 _csync_merge_algorithm_visitor: INSTRUCTION_NONE     file: Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf
07-23 17:55:53:089 networkjobs.cpp:191 !!! Mirall::PUTFileJob created for  QUrl( "https://*********.com" )  querying "/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-3375498587-2-0" 
07-23 17:55:53:979 propagator_qnam.cpp:261 void Mirall::PropagateUploadFileQNAM::slotPutFinished()  QUrl( "https://*********.com/remote.php/webdav/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-3375498587-2-0" )  FINISHED WITH STATUS 0 "" QVariant(int, 201) QVariant(QString, "Created") 
07-23 17:55:53:979 syncengine.cpp:634 void Mirall::SyncEngine::slotJobCompleted(const Mirall::SyncFileItem&) "Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf" 3 "Local file changed during sync." 

christianrj avatar Jul 23 '14 21:07 christianrj

This looks like a client bug. Next time you paste a log, please add the few lines before and after the line that looks like this:

07-23 17:45:25:392 _csync_detect_update: file: Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf, instruction: INSTRUCTION_NEW <<=

Those line should contains the mtime that is read from the file system.

ogoffart avatar Jul 24 '14 08:07 ogoffart

Please try to reproduce with this build of the client: https://download.owncloud.com/desktop/daily/ownCloud-1.6.2.3449-nightly20140724-setup.exe It is based on 1.6.2rc2 but contains has additional debug output in order to debug this problem.

ogoffart avatar Jul 24 '14 09:07 ogoffart

@PVince81 @ogoffart Ok, below are the logs. And, the file hashes before and after the sync. The file has not changed. And just to note, this problem is occurring in the OSX client too. Not tested on Linux.

Before Sync: Modification date: http://s22.postimg.org/k654cxr35/file_mod1.jpg CRC32: E63995D5 MD5: 9D9AB743467F9E31FE06D62395DB90A5 SHA-1: 4E69B1E7B0DB46490741ED63F0B38456AA812E4F

After Sync: Modification date: http://s22.postimg.org/noh49brz5/file_mod2.jpg CRC32: E63995D5 MD5: 9D9AB743467F9E31FE06D62395DB90A5 SHA-1: 4E69B1E7B0DB46490741ED63F0B38456AA812E4F

In the logs I can see this: 888017354 -> Fri, 20 Feb 1998 23:29:14 GMT 888013754 -> Fri, 20 Feb 1998 22:29:14 GMT

But the real modification date is: Fri, 20 Feb 1998 20:29:14 (GMT-3)

From where the client is getting these wrong timestamps and not reading the real modification date from the file system?

Client Logs:

07-24 10:33:01:635 csync_ftw: Uniq ID from Database: Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf -> 53d016c521914
07-24 10:33:01:635 csync_walker: file: F:/DATA/oC/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf [file_id=]
07-24 10:33:01:635 _csync_detect_update: Database entry found, compare: 888017354 <-> 1406146245, etag: 53d016c521914 <-> 53d016c521914, inode: 127653 <-> 127653
07-24 10:33:01:635 _csync_detect_update: file: Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf, instruction: INSTRUCTION_EVAL <<=
07-24 10:33:03:101 _csync_merge_algorithm_visitor: INSTRUCTION_SYNC     file: Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf
07-24 10:33:04:458 _csync_merge_algorithm_visitor: INSTRUCTION_NONE     file: Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf
07-24 10:33:06:736 networkjobs.cpp:65 void Mirall::AbstractNetworkJob::setTimeout(qint64) 300000 
07-24 10:33:06:736 networkjobs.cpp:191 !!! Mirall::PUTFileJob created for  QUrl( "https://oc7.*********.com" )  querying "/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-3375512180-2-0"
07-24 10:33:07:937 propagator_qnam.cpp:261 void Mirall::PropagateUploadFileQNAM::slotPutFinished()  QUrl( "https://oc7.*********.com/remote.php/webdav/Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf-chunking-3375512180-2-0" )  FINISHED WITH STATUS 0 "" QVariant(int, 201) QVariant(QString, "Created")
07-24 10:33:07:937 propagator_qnam.cpp:306 The local file has changed during upload: 888017354 != 888013754 QDateTime("1998-02-20 20:29:14.000 Brazilian daylight saving time Qt::LocalTime") 
07-24 10:33:07:937 syncengine.cpp:634 void Mirall::SyncEngine::slotJobCompleted(const Mirall::SyncFileItem&) "Excluidos/Viagem EUA - 98.02.98/EUA 9801.ctf" 3 "Local file changed during sync."
07-24 10:33:14:770 syncjournaldb.cpp:870 Transaction Start  "All Finished." 
07-24 10:33:14:832 syncengine.cpp:678 CSync run took  94882

christianrj avatar Jul 24 '14 13:07 christianrj