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
Sync failed after moving lots of files #41087
Comments
There has been a change on the server setup which need to be analysed: User backend OC\User\Database is returning home: /mnt/ocdata/data/admin for user: admin which differs from existing value: /mnt/dietpi_userdata/owncloud_data/admin |
Thanks. I used the standard setup from dietpi, installed quite some time ago. Always worked like that, I certainly did not move the database. What do I need to do? Can I just update some configuration path to the correct database location? |
To be honest this is the first time I hear about dietpi. 🙈 Is this docker setup provided by dietpi? Was something changed there? |
I have seen such messages recently if the The message doesn't look like that nothing has changed on the system and actually something got changed. |
Everything fixed now - or are you still facing any issues? |
Thank you for your help, and sorry for the delay. Between work an kids, there is not much time left. I tried what you suggested. Unfortunately, it did not help.
However, on the client side, nothing has changed. Some error. (with user Chris) Server Log: {"reqId":"gOwLpWmwWMlCOmRwmDmJ","level":3,"time":"2021-09-13T19:40:14+00:00","remoteAddr":"192.168.1.118","user":"--","app":"no app in context","method":"POST","url":"/owncloud/index.php/login","message":"User backend OC\User\Database is returning home: /mnt/u4t/ocdata/Chris for user: Chris which differs from existing value: /mnt/ocdata/data/Chris"} {"reqId":"94db17e3-c9de-4233-be23-94ddf2350b44","level":3,"time":"2021-09-13T19:40:30+00:00","remoteAddr":"192.168.1.118","user":"--","app":"no app in context","method":"PROPFIND","url":"/owncloud/remote.php/dav/files/Chris/","message":"User backend OC\User\Database is returning home: /mnt/u4t/ocdata/Chris for user: Chris which differs from existing value: /mnt/ocdata/data/Chris"} rest of the log is filled with repetitions of the following: {"reqId":"Qcu7w4putRUqwCtft4Oh","level":3,"time":"2021-10-01T14:30:02+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"Exception: {"Exception":"OCP\\AppFramework\\QueryException","Message":"Could not resolve OCA\\Federation\\SyncJob! Class OCA\\Federation\\SyncJob does not exist","Code":0,"Trace":"#0 \/var\/www\/owncloud\/lib\/private\/AppFramework\/Utility\/SimpleContainer.php(110): OC\\AppFramework\\Utility\\SimpleContainer->resolve()\n#1 \/var\/www\/owncloud\/lib\/private\/ServerContainer.php(86): OC\\AppFramework\\Utility\\SimpleContainer->query()\n#2 \/var\/www\/owncloud\/lib\/private\/BackgroundJob\/JobList.php(253): OC\\ServerContainer->query()\n#3 \/var\/www\/owncloud\/lib\/private\/BackgroundJob\/JobList.php(209): OC\\BackgroundJob\\JobList->buildJob()\n#4 \/var\/www\/owncloud\/core\/Command\/System\/Cron.php(116): OC\\BackgroundJob\\JobList->getNext()\n#5 \/var\/www\/owncloud\/lib\/composer\/symfony\/console\/Command\/Command.php(255): OC\\Core\\Command\\System\\Cron->execute()\n#6 \/var\/www\/owncloud\/lib\/composer\/symfony\/console\/Application.php(1009): Symfony\\Component\\Console\\Command\\Command->run()\n#7 \/var\/www\/owncloud\/lib\/composer\/symfony\/console\/Application.php(273): Symfony\\Component\\Console\\Application->doRunCommand()\n#8 \/var\/www\/owncloud\/lib\/composer\/symfony\/console\/Application.php(149): Symfony\\Component\\Console\\Application->doRun()\n#9 \/var\/www\/owncloud\/lib\/private\/Console\/Application.php(165): Symfony\\Component\\Console\\Application->run()\n#10 \/var\/www\/owncloud\/console.php(116): OC\\Console\\Application->run()\n#11 \/var\/www\/owncloud\/occ(11): require_once('\/var\/www\/ownclo...')\n#12 {main}","File":"\/var\/www\/owncloud\/lib\/private\/AppFramework\/Utility\/SimpleContainer.php","Line":96}"} When installing it, I moved the data directory, first to something "u4T", which appears in the log, then to what its now (ocdata). This was running fine for several years. I did not move the data directory, its fine as it is (if it worked). Any ideas? |
vs. the previous posted:
Looks like still some path in the database which needs to be adjusted / made consistent with the |
After moving a few thousand files, sync failed (it might have failed a few hours before).
Failed to fix the issue. Updated server to newest version: 10.13.2.3
Also using newest client version 3.0.0.9215
Steps to reproduce
Expected behaviour
Actual behaviour
Client aborts with following error messages
"Server replied with an error while reading directory " : error transferring - server replied: Forbidden
Client log
23-11-12 17:54:49:978 [ warning gui.account.state ]: checkConnectivity blocking: false
23-11-12 17:54:49:978 [ debug sync.connectionvalidator ] [ OCC::ConnectionValidator::checkServer ]: Checking server and authentication
23-11-12 17:54:49:978 [ debug sync.connectionvalidator ] [ OCC::ConnectionValidator::checkServer ]: Trying to look up system proxy
23-11-12 17:54:49:980 [ info sync.connectionvalidator ]: No system proxy set by OS
23-11-12 17:54:50:062 [ info sync.checkserverjob ]: status.php returns: QJsonDocument({"edition":"Community","installed":true,"maintenance":false,"needsDbUpgrade":false,"product":"ownCloud","productname":"ownCloud","version":"10.13.2.3","versionstring":"10.13.2"}) QNetworkReply::NoError Reply: QNetworkReplyHttpImpl(0x21fb2346470)
23-11-12 17:54:50:062 [ info sync.connectionvalidator ]: ** Application: ownCloud found: QUrl("http://192.168.1.123/owncloud/") with version "10.13.2"
23-11-12 17:54:50:062 [ debug sync.connectionvalidator ] [ OCC::ConnectionValidator::checkAuthentication ]: # Check whether authenticated propfind works.
23-11-12 17:54:50:062 [ info sync.networkjob ]: Created OCC::PropfindJob(OCC::Account("Chris@192.168.1.123"), "http://192.168.1.123/owncloud/remote.php/webdav/", "PROPFIND", Original-Request-ID: "090d9d18-29c8-47e9-ad40-3e294c86af1e", X-Request-ID: "090d9d18-29c8-47e9-ad40-3e294c86af1e") for OCC::ConnectionValidator(0x21fb26480c0)
23-11-12 17:54:50:351 [ debug sync.networkjob ] [ OCC::AbstractNetworkJob::needsRetry ]: Not Retry auth job OCC::PropfindJob(OCC::Account("Chris@192.168.1.123"), "http://192.168.1.123/owncloud/remote.php/webdav/", "PROPFIND", Original-Request-ID: "090d9d18-29c8-47e9-ad40-3e294c86af1e", X-Request-ID: "090d9d18-29c8-47e9-ad40-3e294c86af1e", NetworkError: "Error transferring http://192.168.1.123/owncloud/remote.php/webdav/ - server replied: Forbidden") QUrl("http://192.168.1.123/owncloud/remote.php/webdav/")
23-11-12 17:54:50:351 [ info sync.networkjob.propfind ]: LSCOL of QUrl("http://192.168.1.123/owncloud/remote.php/webdav/") FINISHED WITH STATUS "ContentAccessDenied, Server replied "403 Forbidden" to "PROPFIND http://192.168.1.123/owncloud/remote.php/webdav/\""
23-11-12 17:54:50:353 [ info gui.folder.manager ]: Account "Chris@192.168.1.123" disconnected or paused, terminating or descheduling sync folders
23-11-12 17:54:50:353 [ debug sync.networkjob ] [ OCC::AbstractNetworkJob::slotFinished ]: Network job finished OCC::PropfindJob(OCC::Account("Chris@192.168.1.123"), "http://192.168.1.123/owncloud/remote.php/webdav/", "PROPFIND", Original-Request-ID: "090d9d18-29c8-47e9-ad40-3e294c86af1e", X-Request-ID: "090d9d18-29c8-47e9-ad40-3e294c86af1e", NetworkError: "Error transferring http://192.168.1.123/owncloud/remote.php/webdav/ - server replied: Forbidden")
23-11-12 17:55:51:982 [ warning gui.account.state ]: checkConnectivity blocking: false
23-11-12 17:55:51:982 [ debug sync.connectionvalidator ] [ OCC::ConnectionValidator::checkServer ]: Checking server and authentication
23-11-12 17:55:51:982 [ debug sync.connectionvalidator ] [ OCC::ConnectionValidator::checkServer ]: Trying to look up system proxy
23-11-12 17:55:51:985 [ info sync.connectionvalidator ]: No system proxy set by OS
23-11-12 17:55:52:037 [ info sync.checkserverjob ]: status.php returns: QJsonDocument({"edition":"Community","installed":true,"maintenance":false,"needsDbUpgrade":false,"product":"ownCloud","productname":"ownCloud","version":"10.13.2.3","versionstring":"10.13.2"}) QNetworkReply::NoError Reply: QNetworkReplyHttpImpl(0x21fb23468e0)
23-11-12 17:55:52:037 [ info sync.connectionvalidator ]: ** Application: ownCloud found: QUrl("http://192.168.1.123/owncloud/") with version "10.13.2"
23-11-12 17:55:52:037 [ debug sync.connectionvalidator ] [ OCC::ConnectionValidator::checkAuthentication ]: # Check whether authenticated propfind works.
23-11-12 17:55:52:037 [ info sync.networkjob ]: Created OCC::PropfindJob(OCC::Account("Chris@192.168.1.123"), "http://192.168.1.123/owncloud/remote.php/webdav/", "PROPFIND", Original-Request-ID: "66eab74e-e82c-4159-b4ac-4d9060070b2f", X-Request-ID: "66eab74e-e82c-4159-b4ac-4d9060070b2f") for OCC::ConnectionValidator(0x21fb281bff0)
23-11-12 17:55:52:356 [ debug sync.networkjob ] [ OCC::AbstractNetworkJob::needsRetry ]: Not Retry auth job OCC::PropfindJob(OCC::Account("Chris@192.168.1.123"), "http://192.168.1.123/owncloud/remote.php/webdav/", "PROPFIND", Original-Request-ID: "66eab74e-e82c-4159-b4ac-4d9060070b2f", X-Request-ID: "66eab74e-e82c-4159-b4ac-4d9060070b2f", NetworkError: "Error transferring http://192.168.1.123/owncloud/remote.php/webdav/ - server replied: Forbidden") QUrl("http://192.168.1.123/owncloud/remote.php/webdav/")
23-11-12 17:55:52:356 [ info sync.networkjob.propfind ]: LSCOL of QUrl("http://192.168.1.123/owncloud/remote.php/webdav/") FINISHED WITH STATUS "ContentAccessDenied, Server replied "403 Forbidden" to "PROPFIND http://192.168.1.123/owncloud/remote.php/webdav/\""
23-11-12 17:55:52:357 [ info gui.folder.manager ]: Account "Chris@192.168.1.123" disconnected or paused, terminating or descheduling sync folders
23-11-12 17:55:52:357 [ debug sync.networkjob ] [ OCC::AbstractNetworkJob::slotFinished ]: Network job finished OCC::PropfindJob(OCC::Account("Chris@192.168.1.123"), "http://192.168.1.123/owncloud/remote.php/webdav/", "PROPFIND", Original-Request-ID: "66eab74e-e82c-4159-b4ac-4d9060070b2f", X-Request-ID: "66eab74e-e82c-4159-b4ac-4d9060070b2f", NetworkError: "Error transferring http://192.168.1.123/owncloud/remote.php/webdav/ - server replied: Forbidden")
Server configuration
server log after end part of update
{"reqId":"ZGEPHFjon71uHA7RPN9O","level":0,"time":"2023-11-12T16:08:39+00:00","remoteAddr":"192.168.1.123","user":"--","app":"core","method":"POST","url":"/owncloud/index.php/occ/upgrade","message":"Migrations: starting 20230105001100 from app core"}
{"reqId":"ZGEPHFjon71uHA7RPN9O","level":0,"time":"2023-11-12T16:08:39+00:00","remoteAddr":"192.168.1.123","user":"--","app":"core","method":"POST","url":"/owncloud/index.php/occ/upgrade","message":"Migrations: completed 20230105001100 from app core"}
{"reqId":"ZGEPHFjon71uHA7RPN9O","level":0,"time":"2023-11-12T16:08:39+00:00","remoteAddr":"192.168.1.123","user":"--","app":"core","method":"POST","url":"/owncloud/index.php/occ/upgrade","message":"Migrations: starting 20230120101715 from app core"}
{"reqId":"ZGEPHFjon71uHA7RPN9O","level":0,"time":"2023-11-12T16:08:40+00:00","remoteAddr":"192.168.1.123","user":"--","app":"core","method":"POST","url":"/owncloud/index.php/occ/upgrade","message":"Migrations: completed 20230120101715 from app core"}
{"reqId":"ZGEPHFjon71uHA7RPN9O","level":0,"time":"2023-11-12T16:08:40+00:00","remoteAddr":"192.168.1.123","user":"--","app":"core","method":"POST","url":"/owncloud/index.php/occ/upgrade","message":"Migrations: starting 20230210073645 from app core"}
{"reqId":"ZGEPHFjon71uHA7RPN9O","level":0,"time":"2023-11-12T16:08:44+00:00","remoteAddr":"192.168.1.123","user":"--","app":"core","method":"POST","url":"/owncloud/index.php/occ/upgrade","message":"Migrations: completed 20230210073645 from app core"}
{"reqId":"ZGEPHFjon71uHA7RPN9O","level":0,"time":"2023-11-12T16:08:44+00:00","remoteAddr":"192.168.1.123","user":"--","app":"core","method":"POST","url":"/owncloud/index.php/occ/upgrade","message":"Migrations: starting 20230210103154 from app core"}
{"reqId":"ZGEPHFjon71uHA7RPN9O","level":0,"time":"2023-11-12T16:08:44+00:00","remoteAddr":"192.168.1.123","user":"--","app":"core","method":"POST","url":"/owncloud/index.php/occ/upgrade","message":"Migrations: completed 20230210103154 from app core"}
{"reqId":"isXrk4QxVcK8HaqGlXhr","level":3,"time":"2023-11-12T16:13:11+00:00","remoteAddr":"192.168.1.128","user":"admin","app":"no app in context","method":"GET","url":"/owncloud/index.php/settings/personal","message":"User backend OC\User\Database is returning home: /mnt/ocdata/data/admin for user: admin which differs from existing value: /mnt/dietpi_userdata/owncloud_data/admin"}
{"reqId":"wb48rz1fVezogKPnfkW9","level":3,"time":"2023-11-12T16:57:41+00:00","remoteAddr":"192.168.1.128","user":"--","app":"PHP","method":"GET","url":"/owncloud/index.php/login?user=root","message":"Undefined index: loginName at /var/www/owncloud/core/Controller/LoginController.php#171"}
{"reqId":"MFPX31REii6ziGk7r25I","level":3,"time":"2023-11-12T16:57:46+00:00","remoteAddr":"192.168.1.128","user":"--","app":"no app in context","method":"POST","url":"/owncloud/index.php/login?user=root","message":"User backend OC\User\Database is returning home: /mnt/ocdata/data/admin for user: admin which differs from existing value: /mnt/dietpi_userdata/owncloud_data/admin"}
{"reqId":"SYu8L4OrNmE8Zm56bXcB","level":3,"time":"2023-11-12T17:02:58+00:00","remoteAddr":"192.168.1.128","user":"admin","app":"no app in context","method":"GET","url":"/owncloud/ocs/v2.php/apps/notifications/api/v1/notifications?format=json","message":"User backend OC\User\Database is returning home: /mnt/ocdata/data/admin for user: admin which differs from existing value: /mnt/dietpi_userdata/owncloud_data/admin"}
{"reqId":"FeSgLdjfzdRDnTRKCWZP","level":3,"time":"2023-11-12T17:07:58+00:00","remoteAddr":"192.168.1.128","user":"admin","app":"no app in context","method":"GET","url":"/owncloud/ocs/v2.php/apps/notifications/api/v1/notifications?format=json","message":"User backend OC\User\Database is returning home: /mnt/ocdata/data/admin for user: admin which differs from existing value: /mnt/dietpi_userdata/owncloud_data/admin"}
{"reqId":"vuXcOoys4HbjCGZh5naL","level":3,"time":"2023-11-12T17:13:00+00:00","remoteAddr":"192.168.1.128","user":"admin","app":"no app in context","method":"GET","url":"/owncloud/ocs/v2.php/apps/notifications/api/v1/notifications?format=json","message":"User backend OC\User\Database is returning home: /mnt/ocdata/data/admin for user: admin which differs from existing value: /mnt/dietpi_userdata/owncloud_data/admin"}
Before the error occurred, nothing changed on the server. Same config running as usual. The only thing I am aware of is moving those files (they were by mistake moved before, which worked, now moved back).
Any ideas how to fix this would be appreciated. Thanks!
The text was updated successfully, but these errors were encountered: