nextcloud / tables

🍱 Nextcloud tables app
https://apps.nextcloud.com/apps/tables
GNU Affero General Public License v3.0
133 stars 21 forks source link

Update didn't execute migration #1034

Open juliushaertl opened 2 months ago

juliushaertl commented 2 months ago
{"reqId":"","level":1,"time":"2024-04-26T10:25:04+00:00","remoteAddr":"","user":"--","app":"updater","method":"GET","url":"/nextcloud/core/ajax/update.php?requesttoken=","message":"\\OC\\Updater::upgradeAppStoreApp: Update app \"tables\" from appstore","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/116.0","version":"28.0.4.1","data":{"app":"updater"}}

{"reqId":"","level":1,"time":"2024-04-26T10:25:34+00:00","remoteAddr":"","user":"--","app":"updater","method":"GET","url":"/nextcloud/core/ajax/update.php?requesttoken=","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Copy the data into the new db structure","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/116.0","version":"28.0.4.1","data":{"app":"updater"}}

{"reqId":"","level":1,"time":"2024-04-26T10:25:34+00:00","remoteAddr":"","user":"--","app":"updater","method":"GET","url":"/nextcloud/core/ajax/update.php?requesttoken=","message":"OC\\Repair\\Events\\RepairInfoEvent: Repair info: Look for tables","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/116.0","version":"28.0.4.1","data":{"app":"updater"}}

{"reqId":"","level":2,"time":"2024-04-26T10:25:34+00:00","remoteAddr":"","user":"--","app":"tables","method":"GET","url":"/nextcloud/core/ajax/update.php?requesttoken=","message":"Try to set no user in context, but request is not allowed.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/116.0","version":"28.0.4.1","data":{"app":"tables"}}

{"reqId":"","level":2,"time":"2024-04-26T10:25:34+00:00","remoteAddr":"","user":"--","app":"updater","method":"GET","url":"/nextcloud/core/ajax/update.php?requesttoken=","message":"OC\\Repair\\Events\\RepairWarningEvent: Repair warning: Error while fetching tables. Will aboard.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/116.0","version":"28.0.4.1","data":{"app":"updater"}}

[Tokens and IP addresses removed from log.]

Originally posted by @kenoiyan in https://github.com/nextcloud/tables/issues/998#issuecomment-2079606513

kenoiyan commented 2 months ago

Our tables were shared between users -- if this insight helps, and may have been the cause for the failure during the automatic migration process.

The admin user had no access to the tables, as they were created by and shared between standard users.

But this shouldn't have stopped Tables from being to update its MySQL database entries and tables from the backend.