Expected behaviour
Working synchronization
Actual behaviour
Synchronization is broken after I have enabled TOTP. The sync failes with “Encryption not ready: Private key missing for user: please try to log-out and log-in again.”. Even after removing the account completely and starting a new sync (login/authentication goes fine, but after sync starts, for each and every file I get the above mentioned error message). However, the files on the server are fine, it’s possible to access/download them via the web interface.
Disabling TOTP for user or removing the TOTP app completely from owncloud does not solve the issue.
Server version 10.9.1, desktop client version 2.10.0.6519.
Steps to reproduce
- add TOTP app to owncloud and enable TOTP for user
- try to sync account with desktop client (the best is to remove the account and let it sync from the beginning, you will get the errors on every file)
- try to disable TOTP and remove TOTP app completely
- still the same error.
Server configuration
Operating system: Debian 11
Web server: Apache 2.4.52
Database: MySQL 5.5.62
PHP version: 7.4
ownCloud version: 10.9.1
Storage backend (external storage):
Client configuration
Client version: 2.10.0.6519
Operating system: Linux Mint 20.3
OS language: English
Qt version used by client package (Linux only, see also Settings dialog): 5.12.11
Client package (From ownCloud or distro) (Linux only): downloaded latest version (see above) from ownCloud, distro version also has the same problem
Installation path of client:
Logs
Please use Gist (https://gist.github.com/) or a similar code paster for longer
logs.
Template for output < 10 lines
-
Client logfile:
02-15 15:42:03:287 [ warning sync.propagator ]: Could not complete propagation of “ownCloud Manual.pdf” by OCC::PropagateDownloadFile(0x563cdc696700) with status 9 and error: "Server replied “403 Forbidden” to “GET https:///remote.php/dav/files/test/ownCloud Manual.pdf" (Encryption not ready: Private Key missing for user: please try to log-out and log-in again)"
02-15 15:42:03:291 [ info sync.database ]: Closing DB "/home//ownCloud3/._sync_70686c598b68.db”
02-15 15:42:03:309 [ info sync.engine ]: CSync run took 480 ms
02-15 15:42:03:311 [ info gui.folder ]: Client version 2.5.1 Qt 5.12.8 SSL OpenSSL 1.1.1f 31 Mar 2020
02-15 15:42:03:313 [ info gui.folder ]: SyncEngine finished without problem.
02-15 15:42:03:314 [ info gui.folder ]: Folder sync result: 3
02-15 15:42:03:316 [ info gui.application ]: Sync state changed for folder "https:///remote.php/dav/files/test/" : “Success, some files were ignored.”
02-15 15:42:03:518 [ info gui.folder.manager ]: <========== Sync finished for folder [ownCloud3] of account [test@vps.2600.sk] with remote [https://remote.php/dav/files/test/]
02-15 15:42:04:640 [ info gui.updater ]: Skipping update check because of config file -
Web server error log:
no errors -
Server logfile: ownCloud log (data/owncloud.log):
{“reqId”:“e0fb366c-ddac-444c-b2bf-139e480b4f3a”,“level”:2,“time”:“2022-02-15T14:42:02+00:00”,“remoteAddr”:“2001:4de8:fa41:36:1381:c025:1492:d156”,“user”:“test”,“app”:“no app in context”,“method”:“PROPFIND”,“url”:"/owncloud/remote.php/webdav/",“message”:“Could not decrypt the private key from user “test”” during login. Assume password change on the user back-end. Error message: Bad Signature"}