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

server did not acknowledge the last chunk. (No e-tag were present) #12725

Closed
toadhall opened this issue Dec 9, 2014 · 89 comments
Closed

server did not acknowledge the last chunk. (No e-tag were present) #12725

toadhall opened this issue Dec 9, 2014 · 89 comments
Labels

Comments

@toadhall
Copy link

toadhall commented Dec 9, 2014

Environment: root server
Server: Debian Wheezy
Database: SQLite
Client: Debian Testing
OC-Version: 7.0.3
PHP-Version: 5.4.35-0

Since updating to 7.0.3 I keep on getting this error:

The item is not synced because of previous errors: The server did not acknowledge the last chunk. (No e-tag were present)

Worked fine in version 7.0.2.1 and only started appearing on random files (all of the small, between 40 and 70kb) in version 7.0.3.

Please let me know if there is anything else you need from me (specific logs, etc.)

Many thanks in advance!

@ghost
Copy link

ghost commented Dec 9, 2014

Hi,

seems finally someone has manged to report this in here. There is a longer thread at the forums about this issue: https://forum.owncloud.org/viewtopic.php?f=29&t=25164

@PVince81
Copy link
Contributor

Are you getting timeouts on the last chunk ? Does it take a long time for the request to finish ?

@toadhall
Copy link
Author

Cheers PVince81,

nope, the client on my desktop is pretty quick in telling me that the server rejected the sync attempt.

@PVince81
Copy link
Contributor

Does this happen for any file or a specific file ?
Could you use the issue template and post the server logs ? https://raw.github.com/owncloud/core/master/issue_template.md

You could also try upgrading to 7.0.4 but I'm not aware of any related fix in that version though.

@multivac61
Copy link

I'm having the same problem with my setup. I have already updated to 7.0.4 but the errors persist. What can I do to help?

@DeepDiver1975
Copy link
Member

It would be great to have client and server logs for exactly the point in time when this happens.

I'm aware that we face timeout issues with large files being synced - for small files it has to be a different cause.

@multivac61
Copy link

So, I followed the issue_template but I'm having some problems with getting the server-side log to function properly due to permission issues. Maybe you could point out how I could fix it. Here's the data filled out form so far...

Steps to reproduce

  1. Update Owncloud to 7.0.2
    2.
    3.

Expected behaviour

Tell us what should happen

There should not be an error message when trying to sync files. The files that give error message seem to be files I added AFTER updating to 7.0.2 and are of .gif format. Updating to the latest version, 7.0.4, has not solved the issue

Actual behaviour

Tell us what happens instead
There is an error message which says something like: 'folder/picture.gif: The server did not acknowledge the last chunk. (No e-tag was present)' and 'folder/some_picture.png: The server did not acknowledge the last chunk'. I do however seem to be able to upload larger files of *.tar.gz format without any error messages

Server configuration

Operating system: Ubuntu 14.04.1 LTS

Web server: Default (newest version)

Database: Default (sqlite3)

PHP version: PHP 5.5.9-1ubuntu4.5

ownCloud version: (see ownCloud admin page) 7.0.4

Updated from an older ownCloud or fresh install: Updated from an older ownCloud (7.0.2)

List of activated apps: Default, none

The content of config/config.php:

<?php
$CONFIG = array (
  'instanceid' => XXX
  'passwordsalt' => XXX
  'trusted_domains' => 
  array (
    0 => XXX
    1 => XXX
  ),
  'datadirectory' => '/var/www/owncloud/data',
  'dbtype' => 'sqlite3',
  'version' => '7.0.4.2',
  'installed' => true,
  'logtimezone' => 'America/New_York',
  'logfile' => '/var/log/owncloud.log',
  'loglevel' => '0',
  'log_authfailip' => true,
  'theme' => '',
  'maintenance' => false,
  'dbtype' => 'sqlite3',
  'version' => '7.0.4.2',
  'installed' => true,
  'logtimezone' => 'America/New_York',
  'logfile' => '/var/log/owncloud.log',
  'loglevel' => '0',
  'log_authfailip' => true,
  'theme' => '',
  'maintenance' => false,
  'secret' => XXX
);

Are you using external storage, if yes which one: local/smb/sftp/...
No

Are you using encryption: yes/no
yes

Client configuration

Browser: Firefox

Operating system: Ubuntu 14.04

Logs

Web server error log

Insert your webserver log here

ownCloud log (data/owncloud.log)

{"reqId":"548a4821485f2","app":"PHP","message":"touch(): Unable to create file \/var\/log\/owncloud.log because Permission denied at \/var\/www\/owncloud\/lib\/private\/log\/owncloud.php#49","level":3,"time":"2014-12-11T20:42:57-05:00","method":"GET","url":"\/owncloud\/index.php\/settings\/ajax\/checksetup"}
{"reqId":"548a48275b386","app":"PHP","message":"touch(): Unable to create file \/var\/log\/owncloud.log because Permission denied at \/var\/www\/owncloud\/lib\/private\/log\/owncloud.php#49","level":3,"time":"2014-12-11T20:43:03-05:00","method":"GET","url":"\/owncloud\/index.php\/settings\/ajax\/getlog.php?offset=23&count=10"}
{"reqId":"548a4827aeffe","app":"PHP","message":"touch(): Unable to create file \/var\/log\/owncloud.log because Permission denied at \/var\/www\/owncloud\/lib\/private\/log\/owncloud.php#49","level":3,"time":"2014-12-11T20:43:03-05:00","method":"GET","url":"\/owncloud\/index.php\/settings\/ajax\/getlog.php?offset=23&count=10"}

I've been trying to edit my permissions but haven't succeded yet. The user 'www-data' needs to own the file \var\log\owncloud.log right?

Ubuntu client log

12-12 01:39:30:662 0x15bf6f0 !!! Mirall::PUTFileJob created for  QUrl( "https://my_webpage.com/owncloud" )  querying "/verkefni/Fuzz_lélegt.gif" 
12-12 01:39:30:662 0x15bf6f0 void Mirall::SyncEngine::slotJobCompleted(const Mirall::SyncFileItem&) "verkefni/MS20Clone2.gif" 6 "The item is not synced because of previous errors: Error downloading https://my_webpage.com/owncloud/remote.php/webdav/verkefni/MS20Clone2.gif - server replied: Internal Server Error" 
12-12 01:39:31:282 0x15bf6f0 SSL-Errors happened for url  "https://my_webpage.com/owncloud/remote.php/webdav/verkefni/Fuzz_lélegt.gif" 
12-12 01:39:31:283 0x15bf6f0    Error in  QSslCertificate( "3" , "8f:82:00:8e:01:ee:74:ae" , "nNVZ2Qic0aBz7c7+Xwg5fw==" , "Ramnode" , "Ramnode" , QMap() , QDateTime("mán sep 15 12:59:46 2014") , QDateTime("þri sep 15 12:59:46 2015") ) : "The host name did not match any of the valid hosts for this certificate" ( "The host name did not match any of the valid hosts for this certificate" ) 
12-12 01:39:31:283 0x15bf6f0    Error in  QSslCertificate( "3" , "8f:82:00:8e:01:ee:74:ae" , "nNVZ2Qic0aBz7c7+Xwg5fw==" , "Ramnode" , "Ramnode" , QMap() , QDateTime("mán sep 15 12:59:46 2014") , QDateTime("þri sep 15 12:59:46 2015") ) : "The certificate is self-signed, and untrusted" ( "The certificate is self-signed, and untrusted" ) 
12-12 01:39:31:284 0x15bf6f0 Certs are already known and trusted, Errors are not valid. 
12-12 01:39:32:575 0x15bf6f0 void Mirall::PropagateUploadFileQNAM::slotPutFinished()  QUrl( "https://my_webpage.com/owncloud/remote.php/webdav/verkefni/Fuzz_lélegt.gif" )  FINISHED WITH STATUS 0 "" QVariant(int, 302) QVariant(QString, "Found") 
12-12 01:39:32:575 0x15bf6f0 This error is not blacklisted  0 
12-12 01:39:32:575 0x15bf6f0 void Mirall::SyncEngine::slotJobCompleted(const Mirall::SyncFileItem&) "verkefni/Fuzz_lélegt.gif" 2 "The server did not acknowledge the last chunk. (No e-tag were present)" 
12-12 01:39:32:582 0x15bf6f0 void Mirall::AbstractNetworkJob::setTimeout(qint64) 300000 
12-12 01:39:32:582 0x15bf6f0 !!! Mirall::PUTFileJob created for  QUrl( "https://my_webpage.com/owncloud" )  querying "/verkefni/png_cookie_by_ellatutorials-d5r8nel.png" 
12-12 01:39:32:583 0x15bf6f0 void Mirall::AbstractNetworkJob::setTimeout(qint64) 300000 
12-12 01:39:32:583 0x15bf6f0 !!! Mirall::PUTFileJob created for  QUrl( "https://my_webpage.com/owncloud" )  querying "/verkefni/voodoolaboverdrive.gif" 
12-12 01:39:33:202 0x15bf6f0 SSL-Errors happened for url  "https://my_webpage.com/owncloud/remote.php/webdav/verkefni/voodoolaboverdrive.gif" 
12-12 01:39:33:202 0x15bf6f0    Error in  QSslCertificate( "3" , "8f:82:00:8e:01:ee:74:ae" , "nNVZ2Qic0aBz7c7+Xwg5fw==" , "Ramnode" , "Ramnode" , QMap() , QDateTime("mán sep 15 12:59:46 2014") , QDateTime("þri sep 15 12:59:46 2015") ) : "The host name did not match any of the valid hosts for this certificate" ( "The host name did not match any of the valid hosts for this certificate" ) 
12-12 01:39:33:202 0x15bf6f0    Error in  QSslCertificate( "3" , "8f:82:00:8e:01:ee:74:ae" , "nNVZ2Qic0aBz7c7+Xwg5fw==" , "Ramnode" , "Ramnode" , QMap() , QDateTime("mán sep 15 12:59:46 2014") , QDateTime("þri sep 15 12:59:46 2015") ) : "The certificate is self-signed, and untrusted" ( "The certificate is self-signed, and untrusted" ) 
12-12 01:39:33:203 0x15bf6f0 Certs are already known and trusted, Errors are not valid. 
12-12 01:39:33:899 0x15bf6f0 void Mirall::PropagateUploadFileQNAM::slotPutFinished()  QUrl( "https://my_webpage.com/owncloud/remote.php/webdav/verkefni/voodoolaboverdrive.gif" )  FINISHED WITH STATUS 0 "" QVariant(int, 302) QVariant(QString, "Found") 
12-12 01:39:33:899 0x15bf6f0 This error is not blacklisted  0 
12-12 01:39:33:899 0x15bf6f0 void Mirall::SyncEngine::slotJobCompleted(const Mirall::SyncFileItem&) "verkefni/voodoolaboverdrive.gif" 2 "The server did not acknowledge the last chunk. (No e-tag were present)" 
12-12 01:39:34:423 0x15bf6f0 void Mirall::PropagateUploadFileQNAM::slotPutFinished()  QUrl( "https://my_webpage.com/owncloud/remote.php/webdav/verkefni/png_cookie_by_ellatutorials-d5r8nel.png" )  FINISHED WITH STATUS 0 "" QVariant(int, 302) QVariant(QString, "Found") 
12-12 01:39:34:423 0x15bf6f0 This error is not blacklisted  0 
12-12 01:39:34:423 0x15bf6f0 void Mirall::SyncEngine::slotJobCompleted(const Mirall::SyncFileItem&) "verkefni/png_cookie_by_ellatutorials-d5r8nel.png" 2 "The server did not acknowledge the last chunk. (No e-tag were present)" 
12-12 01:39:34:514 0x15bf6f0 void Mirall::SyncJournalDb::walCheckpoint() took 0 msec 
12-12 01:39:34:515 0x15bf6f0 void Mirall::SyncJournalDb::commitInternal(const QString&, bool) Transaction commit  "All Finished."  
12-12 01:39:34:630 0x15bf6f0 CSync run took  14190 
12-12 01:39:34:632 0x15bf6f0 -> SyncEngine finished without problem. 
12-12 01:39:34:633 0x15bf6f0 Processing result list and logging took  0  Milliseconds. 
12-12 01:39:34:634 0x15bf6f0 OO folder slotSyncFinished: result:  3 
12-12 01:39:34:651 0x15bf6f0   ** error Strings:  ("verkefni/Fuzz_lélegt.gif: The server did not acknowledge the last chunk. (No e-tag were present)", "verkefni/png_cookie_by_ellatutorials-d5r8nel.png: The server did not acknowledge the last chunk. (No e-tag were present)", "verkefni/voodoolaboverdrive.gif: The server did not acknowledge the last chunk. (No e-tag were present)") 
12-12 01:39:34:651 0x15bf6f0     * owncloud csync thread finished with error 
12-12 01:39:34:651 0x15bf6f0 the last 1 syncs failed 
12-12 01:39:34:775 0x15bf6f0 Folder in overallStatus Message:  Mirall::Folder(0x1816ed0)  with name  "ownCloud" 
12-12 01:39:34:775 0x15bf6f0 Sync state changed for folder  "ownCloud" :  "Error" 
12-12 01:39:34:975 0x15bf6f0 <===================================== sync finished for  "ownCloud" 
12-12 01:39:35:176 0x15bf6f0 XX slotScheduleFolderSync: folderQueue size:  0 

@PVince81
Copy link
Contributor

I've been trying to edit my permissions but haven't succeded yet. The user 'www-data' needs to own the file \var\log\owncloud.log right?

Yes. The web server must have permission to write into owncloud.log

@PVince81
Copy link
Contributor

Are you using a reverse proxy or anything that might truncate the files ?
Can you give us the exact size of some of the failing files ?

@toadhall
Copy link
Author

Right, here are my 2cts - oh, and no proxies and the current size of my odt file is 92k.

Steps to reproduce

  1. save file on local machine
    2.
    3.

Expected behaviour

Actual behaviour

well...

Server configuration

Operating System:
Debian Wheezy
Web server:
Apache2
Database:
SQLite
PHP version:
5.4.35-0
ownCloud version: (see ownCloud admin page)
7.0.4
Updated from an older ownCloud or fresh install:
updated from 5.x (progressively)
List of activated apps:
default?
The content of config/config.php:
root@178:~# cat /var/www/owncloud/config/config.php

'XXX', 'passwordsalt' => 'XXX', 'trusted_domains' => array ( 0 => 'XXX', ), 'datadirectory' => '/var/www/owncloud/data', 'dbtype' => 'sqlite3', 'version' => '7.0.4.2', 'installed' => true, 'forcessl' => true, 'theme' => '', 'maintenance' => false, 'user_webdavauth_url' => 'XXX', 'mail_smtpmode' => 'smtp', 'mail_from_address' => 'XXX', 'mail_domain' => 'XXX', 'mail_smtpsecure' => 'tls', 'mail_smtpauthtype' => 'LOGIN', 'mail_smtpauth' => 1, 'mail_smtphost' => 'XXX', 'mail_smtpport' => 'XXX', 'mail_smtpname' => 'XXX', 'mail_smtppassword' => 'XXX', 'loglevel' => '0', 'secret' => 'XXX', ); **Are you using external storage, if yes which one:** local/smb/sftp/... NOPE **Are you using encryption:** yes/no yes ### Client configuration **Browser:** Iceweasel/Firefox **Operating system:** Debian testing ### Logs #### Web server error log [Fri Dec 12 03:51:09 2014] [error] [client 217.112.97.187] File does not exist: /var/www/owncloud/vtigercrm [Fri Dec 12 11:13:45 2014] [error] [client 92.75.174.10] Negotiation: discovered file(s) matching request: /var/www/owncloud/settings/admin (None could be negotiated)., referer: https://XXX/index.php/apps/files/ [Fri Dec 12 11:13:46 2014] [error] [client 178.248.242.105] client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt [Fri Dec 12 11:13:56 2014] [error] [client 92.75.174.10] Negotiation: discovered file(s) matching request: /var/www/owncloud/settings/ajax/checksetup (None could be negotiated)., referer: https://XXX/index.php/settings/admin Insert your webserver log here #### ownCloud log (data/owncloud.log) {"reqId":"5481868f4ca8c","app":"OC\Files\Cache\Scanner","message":"!!! No reuse of etag for 'files\/translations\/XXX' !!! \ncache: Array\n(\n [fileid] => 26605\n [storage] => home::toad\n [path] => files\/translations\XXX\n [parent] => 746\n [name] => XXX\n [mimetype] => httpd\/unix-directory\n [mimepart] => httpd\n [size] => 2935772\n [mtime] => 1417706079\n [storage_mtime] => 1417706077\n [encrypted] => \n [unencrypted_size] => 2189241\n [etag] => 54807a5f4ad16\n [permissions] => 31\n)\n \ndata: Array\n(\n [mimetype] => httpd\/unix-directory\n [mtime] => 1417707028\n [size] => -1\n [etag] => 5481868fb3fea\n [storage_mtime] => 1417707028\n [permissions] => 31\n [parent] => 746\n)\n","level":0,"time":"2014-12-05T10:18:55+00:00","method":"PUT","url":"\/remote.php\/webdav\/translations\XXX/wd5.odt"} #### Browser log 12-12 12:31:41:120 Item is on blacklist: "translations/XXX/wd5.odt" retries: 0 12-12 12:31:44:660 void Mirall::SyncEngine::slotJobCompleted(const Mirall::SyncFileItem&) "translations/XXX/wd5.odt" 6 "The item is not synced because of previous errors: The server did not acknowledge the last chunk. (No e-tag were present)" Insert your browser log here, this could for example include: a) The javascript console log b) The network log c) ... ``` ```

@PVince81
Copy link
Contributor

Okay, so you're both using encryption. Could be a clue.

Unfortunately the server log file doesn't contain any clue about what is happening with the last chunk 😦

@adamsewell
Copy link

I'm seeing the same issue with encryption as well.

@maste9
Copy link

maste9 commented Dec 15, 2014

Steps to reproduce

Update OC from 7.0.3 to 7.0.4
Create file < 2MB in oc-directory
Let desktop-client sync.

Expected behaviour

Sync should work properly.

Actual behaviour

Upload fails with No-E-Tag-message in client.

Server configuration

Operating system:

Raspbian for bananaPi (wheezy-based)

Web server:

Apache/2.2.22 (Debian)

Database:

sqlite3

PHP version:

PHP 5.4.35-0+deb7u2 (cli) (built: Nov 19 2014 13:13:59)

ownCloud version: (see ownCloud admin page)

ownCloud 7.0.4 (stable)

Updated from an older ownCloud or fresh install:

Updated via apt from 7.0.3

List of activated apps:

Acitivty, Bookmarks, Calendar, Contacts, Deleted Files, Documents, Encryption, External Storage Support, First Run, Dependencies, PDF Viewer, Pictures, Share Files, Text Editor, Updater, Versions, Charts, Mozilla_Sync

The content of config/config.php:

'oc7c54c4be43', 'passwordsalt' => '[secret]', 'datadirectory' => '/var/www/owncloud/data', 'dbtype' => 'sqlite3', 'version' => '7.0.3.4', 'installed' => true, 'forcessl' => true, 'theme' => '', 'maintenance' => false, 'enable_previews' => false, 'trusted_domains' => array ( 0 => '[mydomain.de]', 1 => '192.168.[x.x]', 2 => 'mirror.[mydomain.de]', ), 'mail_smtpmode' => 'php', 'mail_from_address' => 'owncloud', 'mail_domain' => '[mydomain.de]', 'loglevel' => '1', 'overwritewebroot' => '/owncloud', ); #### Are you using external storage, if yes which one: local/smb/sftp/... sftp #### Are you using encryption: yes ### Client configuration #### Browser: Firefox 34.0 #### Operating system: Linux Mint 17 ## Logs ####owncloud.log ``` {"app":"hook","message":"error while running hook (OC\\Preview::post_write): No preview providers","level":3,"time":"2014-12-12T21:11:39+00:00"} {"app":"remote","message":"An exception occurred while executing 'UPDATE \"oc_filecache\" SET \"size\" = ?, \"unencrypted_size\"=? WHERE \"fileid\" = ?':\n\nSQLSTATE[HY000]: General error: 5 database is locked","level":4,"time":"2014-12-12T21:14:50+00:00"} {"app":"PHP","message":"Session has been closed - no further changes to the session as allowed at \/var\/www\/owncloud\/lib\/private\/session\/memory.php#80","level":3,"time":"2014-12-12T21:14:50+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-12T21:15:38+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_delete): No preview providers","level":3,"time":"2014-12-12T21:15:38+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-12T21:15:38+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_write): No preview providers","level":3,"time":"2014-12-12T21:15:38+00:00"} {"app":"PHP","message":"unlink(\/maste9\/files_encryption\/share-keys\/Projekte\/#MuensteranerErklaerung.txt#.recovery_f8dc8165.shareKey): No such file or directory at \/var\/www\/owncloud\/apps\/files_trashbin\/lib\/trashbin.php#305","level":3,"time":"2014-12-12T21:16:00+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-12T21:16:00+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_delete_files): No preview providers","level":3,"time":"2014-12-12T21:16:00+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-12T21:16:13+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_write): No preview providers","level":3,"time":"2014-12-12T21:16:13+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-12T21:19:02+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_write): No preview providers","level":3,"time":"2014-12-12T21:19:02+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-12T21:22:24+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_write): No preview providers","level":3,"time":"2014-12-12T21:22:24+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-12T21:23:48+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_write): No preview providers","level":3,"time":"2014-12-12T21:23:48+00:00"} {"app":"PHP","message":"unlink(\/maste9\/files_encryption\/share-keys\/Projekte\/#MuensteranerErklaerung.txt#.recovery_f8dc8165.shareKey): No such file or directory at \/var\/www\/owncloud\/apps\/files_trashbin\/lib\/trashbin.php#305","level":3,"time":"2014-12-12T21:25:24+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-12T21:25:24+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_delete_files): No preview providers","level":3,"time":"2014-12-12T21:25:24+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-12T21:25:32+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_write): No preview providers","level":3,"time":"2014-12-12T21:25:32+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-12T21:27:19+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_write): No preview providers","level":3,"time":"2014-12-12T21:27:19+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-12T21:28:27+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_write): No preview providers","level":3,"time":"2014-12-12T21:28:27+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-12T21:29:29+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_write): No preview providers","level":3,"time":"2014-12-12T21:29:29+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-12T21:32:19+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_write): No preview providers","level":3,"time":"2014-12-12T21:32:19+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-12T21:34:07+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_write): No preview providers","level":3,"time":"2014-12-12T21:34:07+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-12T21:34:41+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_write): No preview providers","level":3,"time":"2014-12-12T21:34:41+00:00"} {"app":"PHP","message":"unlink(\/maste9\/files_encryption\/share-keys\/Projekte\/#MuensteranerErklaerung.txt#.recovery_f8dc8165.shareKey): No such file or directory at \/var\/www\/owncloud\/apps\/files_trashbin\/lib\/trashbin.php#305","level":3,"time":"2014-12-12T21:36:54+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-12T21:36:55+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_delete_files): No preview providers","level":3,"time":"2014-12-12T21:36:55+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-12T21:37:02+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_write): No preview providers","level":3,"time":"2014-12-12T21:37:02+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-12T21:38:13+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_write): No preview providers","level":3,"time":"2014-12-12T21:38:13+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-12T21:44:20+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_write): No preview providers","level":3,"time":"2014-12-12T21:44:20+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-13T18:16:00+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_write): No preview providers","level":3,"time":"2014-12-13T18:16:00+00:00"} {"app":"Encryption library","message":"No share key found for user \"maste9\" for file \"Namenloser Ordner\"","level":2,"time":"2014-12-13T18:16:18+00:00"} {"app":"Encryption library","message":"No share key found for user \"recovery_f8dc8165\" for file \"Namenloser Ordner\"","level":2,"time":"2014-12-13T18:16:18+00:00"} {"app":"Encryption library","message":"No share keys found for \"\/Projekte\/Namenloser Ordner\"","level":2,"time":"2014-12-13T18:16:18+00:00"} {"app":"core","message":"unable to rename, file is not writable : files_encryption\/share-keys\/Projekte\/Namenloser Ordner","level":3,"time":"2014-12-13T18:16:22+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-13T18:36:05+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_write): No preview providers","level":3,"time":"2014-12-13T18:36:05+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-14T19:08:00+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_write): No preview providers","level":3,"time":"2014-12-14T19:08:00+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-14T19:08:36+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_write): No preview providers","level":3,"time":"2014-12-14T19:08:36+00:00"} {"app":"remote","message":"An exception occurred while executing 'UPDATE \"oc_filecache\" SET \"size\"=? WHERE \"fileid\" = ?':\n\nSQLSTATE[HY000]: General error: 5 database is locked","level":4,"time":"2014-12-14T19:08:42+00:00"} {"app":"PHP","message":"Session has been closed - no further changes to the session as allowed at \/var\/www\/owncloud\/lib\/private\/session\/memory.php#80","level":3,"time":"2014-12-14T19:08:42+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-14T19:08:51+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_write): No preview providers","level":3,"time":"2014-12-14T19:08:51+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-14T19:16:17+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_write): No preview providers","level":3,"time":"2014-12-14T19:16:17+00:00"} {"app":"remote","message":"An exception occurred while executing 'UPDATE \"oc_filecache\" SET \"size\"=? WHERE \"fileid\" = ?':\n\nSQLSTATE[HY000]: General error: 5 database is locked","level":4,"time":"2014-12-14T19:16:21+00:00"} {"app":"PHP","message":"Session has been closed - no further changes to the session as allowed at \/var\/www\/owncloud\/lib\/private\/session\/memory.php#80","level":3,"time":"2014-12-14T19:16:21+00:00"} {"app":"remote","message":"An exception occurred while executing 'UPDATE \"oc_filecache\" SET \"size\"=? WHERE \"fileid\" = ?':\n\nSQLSTATE[HY000]: General error: 5 database is locked","level":4,"time":"2014-12-14T19:16:28+00:00"} {"app":"PHP","message":"Session has been closed - no further changes to the session as allowed at \/var\/www\/owncloud\/lib\/private\/session\/memory.php#80","level":3,"time":"2014-12-14T19:16:28+00:00"} {"app":"remote","message":"An exception occurred while executing 'UPDATE \"oc_filecache\" SET \"unencrypted_size\"=? WHERE \"fileid\" = ?':\n\nSQLSTATE[HY000]: General error: 5 database is locked","level":4,"time":"2014-12-14T19:16:28+00:00"} {"app":"PHP","message":"Session has been closed - no further changes to the session as allowed at \/var\/www\/owncloud\/lib\/private\/session\/memory.php#80","level":3,"time":"2014-12-14T19:16:28+00:00"} {"app":"remote","message":"An exception occurred while executing 'UPDATE \"oc_filecache\" SET \"size\"=? WHERE \"fileid\" = ?':\n\nSQLSTATE[HY000]: General error: 5 database is locked","level":4,"time":"2014-12-14T19:16:55+00:00"} {"app":"PHP","message":"Session has been closed - no further changes to the session as allowed at \/var\/www\/owncloud\/lib\/private\/session\/memory.php#80","level":3,"time":"2014-12-14T19:16:55+00:00"} {"app":"hook","message":"error while running hook (OCA\\Files_Versions\\Hooks::write_hook): An exception occurred while executing 'UPDATE \"oc_filecache\" SET \"unencrypted_size\"=? WHERE \"fileid\" = ?':\n\nSQLSTATE[HY000]: General error: 5 database is locked","level":3,"time":"2014-12-14T19:16:55+00:00"} {"app":"remote","message":"An exception occurred while executing 'UPDATE \"oc_filecache\" SET \"size\"=? WHERE \"fileid\" = ?':\n\nSQLSTATE[HY000]: General error: 5 database is locked","level":4,"time":"2014-12-14T19:16:57+00:00"} {"app":"PHP","message":"Session has been closed - no further changes to the session as allowed at \/var\/www\/owncloud\/lib\/private\/session\/memory.php#80","level":3,"time":"2014-12-14T19:16:57+00:00"} {"app":"remote","message":"An exception occurred while executing 'UPDATE \"oc_filecache\" SET \"size\"=? WHERE \"fileid\" = ?':\n\nSQLSTATE[HY000]: General error: 5 database is locked","level":4,"time":"2014-12-14T19:16:57+00:00"} {"app":"PHP","message":"Session has been closed - no further changes to the session as allowed at \/var\/www\/owncloud\/lib\/private\/session\/memory.php#80","level":3,"time":"2014-12-14T19:16:57+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-14T19:16:59+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_write): No preview providers","level":3,"time":"2014-12-14T19:16:59+00:00"} {"app":"remote","message":"An exception occurred while executing 'UPDATE \"oc_filecache\" SET \"size\"=? WHERE \"fileid\" = ?':\n\nSQLSTATE[HY000]: General error: 5 database is locked","level":4,"time":"2014-12-14T19:17:06+00:00"} {"app":"PHP","message":"Session has been closed - no further changes to the session as allowed at \/var\/www\/owncloud\/lib\/private\/session\/memory.php#80","level":3,"time":"2014-12-14T19:17:06+00:00"} {"app":"remote","message":"An exception occurred while executing 'UPDATE \"oc_filecache\" SET \"unencrypted_size\"=? WHERE \"fileid\" = ?':\n\nSQLSTATE[HY000]: General error: 5 database is locked","level":4,"time":"2014-12-14T19:17:06+00:00"} {"app":"PHP","message":"Session has been closed - no further changes to the session as allowed at \/var\/www\/owncloud\/lib\/private\/session\/memory.php#80","level":3,"time":"2014-12-14T19:17:06+00:00"} {"app":"remote","message":"An exception occurred while executing 'UPDATE \"oc_filecache\" SET \"size\"=? WHERE \"fileid\" = ?':\n\nSQLSTATE[HY000]: General error: 5 database is locked","level":4,"time":"2014-12-14T19:18:08+00:00"} {"app":"PHP","message":"Session has been closed - no further changes to the session as allowed at \/var\/www\/owncloud\/lib\/private\/session\/memory.php#80","level":3,"time":"2014-12-14T19:18:08+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-14T19:18:08+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_write): No preview providers","level":3,"time":"2014-12-14T19:18:08+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-14T19:22:37+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_write): No preview providers","level":3,"time":"2014-12-14T19:22:37+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-14T19:24:10+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_write): No preview providers","level":3,"time":"2014-12-14T19:24:10+00:00"} {"app":"Encryption library","message":"No share key found for user \"maste9\" for file \"Test.txt\"","level":2,"time":"2014-12-14T19:24:43+00:00"} {"app":"Encryption library","message":"No share key found for user \"recovery_f8dc8165\" for file \"Test.txt\"","level":2,"time":"2014-12-14T19:24:43+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-14T19:24:43+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_delete_files): No preview providers","level":3,"time":"2014-12-14T19:24:43+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-14T19:28:35+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_delete_files): No preview providers","level":3,"time":"2014-12-14T19:28:35+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-15T06:09:42+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_write): No preview providers","level":3,"time":"2014-12-15T06:09:42+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-15T06:10:38+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_write): No preview providers","level":3,"time":"2014-12-15T06:10:38+00:00"} {"app":"remote","message":"An exception occurred while executing 'UPDATE \"oc_filecache\" SET \"size\"=? WHERE \"fileid\" = ?':\n\nSQLSTATE[HY000]: General error: 5 database is locked","level":4,"time":"2014-12-15T06:17:24+00:00"} {"app":"PHP","message":"Session has been closed - no further changes to the session as allowed at \/var\/www\/owncloud\/lib\/private\/session\/memory.php#80","level":3,"time":"2014-12-15T06:17:24+00:00"} {"app":"remote","message":"An exception occurred while executing 'UPDATE \"oc_filecache\" SET \"size\"=? WHERE \"fileid\" = ?':\n\nSQLSTATE[HY000]: General error: 5 database is locked","level":4,"time":"2014-12-15T06:17:24+00:00"} {"app":"PHP","message":"Session has been closed - no further changes to the session as allowed at \/var\/www\/owncloud\/lib\/private\/session\/memory.php#80","level":3,"time":"2014-12-15T06:17:24+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-15T06:18:32+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_write): No preview providers","level":3,"time":"2014-12-15T06:18:32+00:00"} {"app":"Encryption library","message":"No share key found for user \"recovery_f8dc8165\" for file \"BasisregelSheet-1.jpg\"","level":2,"time":"2014-12-15T06:26:26+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-15T06:26:26+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_delete_files): No preview providers","level":3,"time":"2014-12-15T06:26:26+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-15T12:45:22+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_write): No preview providers","level":3,"time":"2014-12-15T12:45:22+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-15T12:46:07+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_write): No preview providers","level":3,"time":"2014-12-15T12:46:07+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-15T13:20:36+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_write): No preview providers","level":3,"time":"2014-12-15T13:20:36+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-15T13:31:52+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_write): No preview providers","level":3,"time":"2014-12-15T13:31:52+00:00"} {"app":"Encryption library","message":"No share key found for user \"maste9\" for file \"Test.txt\"","level":2,"time":"2014-12-15T13:32:31+00:00"} {"app":"Encryption library","message":"No share key found for user \"recovery_f8dc8165\" for file \"Test.txt\"","level":2,"time":"2014-12-15T13:32:31+00:00"} {"app":"core","message":"No preview providers exist","level":3,"time":"2014-12-15T13:32:31+00:00"} {"app":"hook","message":"error while running hook (OC\\Preview::post_delete_files): No preview providers","level":3,"time":"2014-12-15T13:32:31+00:00"} ```

@PVince81
Copy link
Contributor

Also another question is whether this happens when overwriting an existing file (potentially reusing the encryption keys) or uploading a new file ?

@toadhall
Copy link
Author

PVInce81 - with me it happened in both cases, new files and overwrites.

Another question - what sort of server log entry should one be looking for? I grepped for "chunk" but got nothing...

@toadhall toadhall reopened this Dec 15, 2014
@maste9
Copy link

maste9 commented Dec 15, 2014

Here in my case it only happens with new files - strangely not with all!

I made a new dir in an existing subdirectory, which worked.
Then I entered 3 freshly scanned jpeg. The first syncs well. 2 and 3 show the error in question.
Yesterday I tried save a zim-save (desktop-wiki) there. One file synced correctly, the rest did not.
A minute ago I changed an existing odt-file. No error message, sync completed.

@PVince81
Copy link
Contributor

@toadhall any entry that contains the file name you are uploading, and all entries close to that one.

You can also search for "shareKey" or "encrypt" in case it's an issue with encryption keys.

@maste9
Copy link

maste9 commented Dec 15, 2014

@PVince81 Seems to be the case looking into my log ...
{"app":"Encryption library","message":"No share key found for user "maste9" for file "Test.txt"","level":2,"time":"2014-12-14T19:24:43+00:00"}

@armaccloud
Copy link

Hi,

I have the error as well. I this case, server.csr was added on a local drive which is synchronized with oc.

FINISHED WITH STATUS 0 "" QVariant(int, 302) QVariant(QString, "Found")
12-15 17:40:19:313 0x768ea60 owncloudpropagator.cpp:93 This error is not blacklisted 0
12-15 17:40:19:314 0x768ea60 syncengine.cpp:766 void Mirall::SyncEngine::slotJobCompleted(const Mirall::SyncFileItem&) "Administration/Owncloud/server.csr" 2 "The server did not acknowledge the last chunk. (No e-tag were present)"
12-15 17:40:19:315 0x768ea60 socketapi.cpp:320 SocketApi: Sending message: "STATUS:ERROR:Z:\Administration\Owncloud\server.csr"
12-15 17:40:19:316 0x768ea60 socketapi.cpp:320 SocketApi: Sending message: "STATUS:ERROR:Z:\Administration\Owncloud\server.csr"
12-15 17:40:19:326 0x768ea60 syncjournalfilerecord.cpp:80 Mirall::SyncJournalFileRecord::SyncJournalFileRecord(const Mirall::SyncFileItem&, const QString&) "Z:/Books/Africa" Retrieved inode 5222488 (previous item inode: 5222488 )
12-15 17:40:19:326 0x768ea60 syncjournaldb.cpp:515 "INSERT OR REPLACE INTO metadata (phash, pathlen, path, inode, uid, gid, mode, modtime, type, md5, fileid, remotePerm) VALUES (?1 , ?2, ?3 , ?4 , ?5 , ?6 , ?7, ?8 , ?9 , ?10, ?11, ?12);" -8135989111767739166 12 "Books/Africa" 5222488 0 "1414095743" "2" "544963eeccdf0" "00016020occ2acd5dbe5" "RDNVCK"
12-15 17:40:19:336 0x768ea60 syncjournalfilerecord.cpp:80

@ianbmacdonald
Copy link

Bump. Our Debian Stable ownCloud server is showing this too for small files (916B example below). Seems to consistently happen by just moving a bunch of new files into client-only folders or shared folders.
Encryption: Enabled
Server Side: 7.0.4-3 (Debian 7 amd64 openvz)
Client Side: 1.7.1 (Ubuntu 14.10 amd64)

Workaround is to put the file in a different location. So we have a growing number of temporary folders we would like to get rid of soon before they get out of control.

Client Side:
9:32 AM config_archive/vpn/iandell.key ownCloud The server did not acknowledge the last chunk. (No e-tag were present)

Server Side:
{"reqId":"54982ba12aa18","app":"OC\Files\Cache\Scanner","message":"!!! Path 'files/config_archive/vpn2/iandell.key' is not readable !!!","level":0,"time":"December 22, 2014 09:33:05","method":"PUT","url":"/remote.php/webdav/config_archive/vpn2/iandell.key"}
{"reqId":"54982ba12aa18","app":"OC\Files\Cache\Scanner","message":"!!! No reuse of etag for 'files/config_archive/vpn2/iandell.key' !!! \ncache: Array\n(\n [fileid] => 46401\n [storage] => home::07ccffe8-32d8-1033-8b25-29c953816bfe\n [path] => files/config_archive/vpn2/iandell.key\n [parent] => 46395\n [name] => iandell.key\n [mimetype] => application/x-iwork-keynote-sffkey\n [mimepart] => application\n [size] => 9440\n [mtime] => 1419258784\n [storage_mtime] => 1419258784\n [encrypted] => 1\n [unencrypted_size] => 916\n [etag] => 54982ba15701a\n [permissions] => 27\n)\n \ndata: Array\n(\n [mimetype] => application/x-iwork-keynote-sffkey\n [mtime] => 1419200791\n [size] => 9440\n [etag] => 54982ba18139b\n [storage_mtime] => 1419200791\n [permissions] => 27\n [parent] => 46395\n)\n","level":0,"time":"December 22, 2014 09:33:05","method":"PUT","url":"/remote.php/webdav/config_archive/vpn2/iandell.key"}

@ianbmacdonald
Copy link

I noticed on the client side changes these two changes related to E-Tags. Can't be sure, but could be related.

We do use LDAPS as well for authentication currently.

@Munken
Copy link

Munken commented Dec 24, 2014

Experienced the same problem. Disabling encryption did the trick. Not really an optimal solution.

@owzim
Copy link

owzim commented Dec 27, 2014

I am on 7.0.4 an have the same problem on random files with encryption. Is there an easy and reliable way to downgrade to 7.0.2 until this is fixed?

@viorel-anghel
Copy link

I have the same problem on Ubuntu and I was wondering maybe it's a client-only problem. BEsides the trick with rename, i have discovered this behaviour: if I copy the files one by one, it is working ok. If I try to copy more than 3 files at once, it start to give the error "server did not acknowledge the last chunk. (No e-tag were present)" and it is never recovering from this error unless you rename one file, wait for sync, rename it back.

@simonspa
Copy link

simonspa commented Jan 6, 2015

Same problem here, running ownCloud 7.0.4 on Debian stable, Server nginx with encryption enabled. The missing e-tag appears randomly, I managed to upload several thousand files (8 GB inn total) and it appeared only a couple of dozens of times. However, for those files it is persistent.

@PVince81
Copy link
Contributor

PVince81 commented Jan 7, 2015

CC @schiesbn

Do you guys all see messages like "share key is missing" or "something.key" is missing related to the broken files ?

@simonspa
Copy link

simonspa commented Jan 7, 2015

Yes, I see messages like this in my owncloud log, and the files are exactly the problematic ones:

{"app":"encryption library","message":"No keys available to decrypt the file: username\/filename.ext.ocTransferId1897145941.part","level":3,"time":"2015-01-06T20:49:05+00:00"}

@PVince81
Copy link
Contributor

I meant everyone should post logs instead of complaining, because it is likely to be a different issue for everyone. For one it might be a missing etag in the database (did you actually check there?), for another one a failed final rename, for a third a wrong permission, etc, which could all cause the same error message to be displayed but be completely different bugs.

This is why I'd like the message to be changed to "Server error, please check server logs" instead of this misleading message making everyone believe they have the same issue.

If multiple people post their server logs and they do indeed look similar, then we have more data points to analyze the issue. Because so far this could not be reproduced locally (with OC 7.0.4+ and sync client 1.8.0). So the more information, the better.

If the logs are different then they need to be raised as separate tickets to be looked into separately, focusing on one issue at a time.

I hope you now understand why "I have the same issue" isn't useful, because it doesn't tell which of the X possible issues it could be.

Thank you.

@PVince81
Copy link
Contributor

I quickly scrolled through (currently on mobile) and it seems that some can already split into

  • sqlite with locking issues
  • issues with missing encryption keys
  • the rest (to be sorted further once info is provided)

These are already candidates to be moved to separate tickets later.

@ghost
Copy link

ghost commented Mar 10, 2015

Maybe could be also added to the list:

  • Using gzip on; in NginX is removing ETags completely

See owncloud-archive/documentation#344 (comment) for some infos

  • mod_deflate changing etags

After doing some tests it also seems that mod_deflate is changing the e-tag: #4783 (comment). Could this also be related to some of the reports here?

@PVince81
Copy link
Contributor

@themagicm
Copy link

@PVince81 ok...got it! Makes sense.

The issue I have is, the file does get sync'd but for some reason, I still get the same error like the one in this thread. The file gets sync'd over and over and over... I'm running SQLite and OwnCloud 7.0.4.2 under CentOS Linux 6.6

I did try your patches #13832, #13831.

If you need more info, just ask, I'll provide. Thank you for your time!

Also, I'm not using encryption, disabled it because of some other error it was causing..dont remember which.

owncloud log shows:
{"reqId":"54fc573b38ceb","app":"webdav","message":"Sabre\DAV\Exception\NotAuthenticated: No basic authentication headers were found","level":0,"time":"2015-03-08T14:05:47+00:00","method":"PROPFIND","url":"/remote.php/webdav"}

@PVince81
Copy link
Contributor

If you use SQLite it is likely that you will either get "database is locked" or "duplicate entry" when running parallel sync. I'd recommend to switch to MySQL, MariaDB or PostgreSQL if possible (there's a convert tool in OC 7: https://doc.owncloud.org/server/7.0/admin_manual/maintenance/convert_db.html)

If you don't, there are some potential fixes on the way to 8.0.3 (hopefully) that should significantly reduce the occurence of such race conditions.

@themagicm
Copy link

@PVince81

well.. I went cold turkey and migrated to MySQL. Then I moved everything from my Owncloud folder out so it can delete all files on the "cloud", then I'll put it all back. I'll see if moving to MySQL fixed it.

Also..dunno if its just me..but it seems faster accessing owncloud thru the web interface.

EDIT:
Ok, I moved all files out of the owncloud dir, let it sync (delete the missing files)..then put them back in the owncloud folder so they could sync. same problem. It was with 1 specific file, so I renamed it and it transferred. These files are Quickbooks backup files, nothing special. I'll let this process run and sync for a few days to see if the problem is solved.

@themagicm
Copy link

Ok..upgrading to MySQL so far has resolved it. I do not get the problem where a certain file keeps getting sent over and over even though its been sent already. Hopefully this fixed it. I'll report back after a week of file syncs.

@ghost
Copy link

ghost commented Mar 13, 2015

upgrading to MySQL is not a fix, that is just a workround, @themagicm . the guys at owncloud still have to solve this problem.

@PVince81
Copy link
Contributor

For SQLite "Database is locked" issues, go to: #10566

@rr-paras-patel
Copy link
Member

I am facing same issue. I think this issue is related to e-tag calculation.
becoz

  1. if i copy file with similar name like newfile.txt --> newfile_1.txt it don't work
  2. if i rename file newfile_1.txt --> somethingnew.txt it works and don't give e-tag error.

might be this clue will helpful for developer.
Thank you

@PVince81
Copy link
Contributor

Are you guys still seeing issues with 7.0.7 ?
Many encryption issues were fixed since.

@PVince81
Copy link
Contributor

@patelparas the issue you described sounds like #11127.
This was fixed a long time ago.

@PVince81
Copy link
Contributor

PVince81 commented Oct 8, 2015

Anyone still having issues with 8.1.3 ?

"Database is locked" issues should be gone

@themagicm
Copy link

I am not experiencing this anymore.

Thank you for the direct email asking, I appreciate it!

-Alex


On Thu, 10/8/15, Vincent Petry [email protected] wrote:

Subject: Re: [core] server did not acknowledge the last chunk. (No e-tag were present) (#12725)
To: "owncloud/core" [email protected]
Cc: "themagicm" [email protected]
Date: Thursday, October 8, 2015, 7:58 AM

Anyone still having issues with
8.1.3 ?

"Database is locked" issues should be gone


Reply to this email directly or view
it on GitHub.

@ghost
Copy link

ghost commented Oct 13, 2015

@PVince81 Thats should be solved by the OC-ETag header introduced by oC 8.1.x

@jaqfneto
Copy link

I installed OC version 8.2.1 and i am unable to upload any file i put in my local folder.

I allways get the error "The server did not acknowledge the last chunk. (No e-tag were present)".

Via browser i have no problems to upload, and all uploaded files that way are automatically downloaded to the local folder in my desktop.

If i create a folder in my ownCloud local folder, the folder is also created in the server.

I am using OC Server v. 8.2.1 and OC client version 2.0.2 for windows

Thanks

@dsalvanes
Copy link

I am a Linux server Administrator and I use WHM & cPanel. In one account I have OwnCloud and I have this problem (The server did not acknowledge the last chunk).

I can solve it. It is a problem with ModSecurity. I have activate in ModSecurity Vendors, OWASP ModSecurity Core Rule Set (provider is cPanel). I desactivate it and problem is solved.

I hope this can help to someone.

@edgar4s
Copy link

edgar4s commented Apr 26, 2016

2 years later:

image

Any concrete solution, anyone?

@PVince81
Copy link
Contributor

@310TN server logs please + OC version. This message can mean anything.

By the way, is anyone else still seeing such errors in v9.0.1 ?

@giuppi
Copy link

giuppi commented May 1, 2016

I'm getting this error.
Clean install v9.0.1

can create folders from both pc and android app
can upload files from web interface

this is the log when i try to upload something from the android app, nothing gets logged from the failed upload using the computer app

Debug webdav

Exception: {"Message":"HTTP/1.1 404 File with name .somefile.backup could not be located","Exception":"Sabre\DAV\Exception\NotFound",
"Code":0,"Trace":"
#0 /home/user/public_html/owncloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php(79): OCA\DAV\Connector\Sabre\ObjectTree->getNodeForPath('.somefile.bac...', 0)
#1 [internal function]: Sabre\DAV\CorePlugin->httpGet(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
#2 /home/user/public_html/owncloud/3rdparty/sabre/event/lib/EventEmitterTrait.php(105): call_user_func_array(Array, Array)
#3 /home/user/public_html/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(459): Sabre\Event\EventEmitter->emit('method:GET', Array)
#4 /home/user/public_html/owncloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php(251): Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response), false)
#5 [internal function]: Sabre\DAV\CorePlugin->httpHead(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
#6 /home/user/public_html/owncloud/3rdparty/sabre/event/lib/EventEmitterTrait.php(105): call_user_func_array(Array, Array)
#7 /home/user/public_html/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(459): Sabre\Event\EventEmitter->emit('method:HEAD', Array)
#8 /home/user/public_html/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(248): Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
#9 /home/user/public_html/owncloud/apps/dav/appinfo/v1/webdav.php(55): Sabre\DAV\Server->exec()
#10 /home/user/public_html/owncloud/remote.php(138): require_once('/home/user/...')
#11 {main}","File":"/home/user/public_html/owncloud/apps/dav/lib/connector/sabre/objecttree.php","Line":168,"User":"admin"}

@PVince81
Copy link
Contributor

@giuppi this is a normal message. The Android app first checks whether the file exists by doing a PROPFIND. If the PROPFIND returns 404, then it knows that it can upload without conflict.

This doesn't look related to "server did not acknowledge the last chunk" which is a message from the desktop client, not mobile.

@PVince81
Copy link
Contributor

I'm closing this huge ticket for now.

If anyone sees this issue again, please raise a new ticket and post all possible details using the issue template: https://raw.githubusercontent.com/owncloud/core/master/issue_template.md
But first, check the forums or http://owncloud.org/support because in most cases it is a problem in the server environment and not a bug.
Also note that many of the actual bugs that used to cause this error message have already been fixed.

Please always open a new ticket, unless an existing one contains the same exception or log entries from your owncloud.log, in which case the cause is the same.

Thank you!

@j4hangir
Copy link

j4hangir commented Aug 25, 2016

For anyone who might still be tackling with this issue, in our setup of ownCloud 9.1.0, the culprit was mod_security, which was filtering certain file extensions.

@lock
Copy link

lock bot commented Aug 3, 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.

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

No branches or pull requests