Closed nursoda closed 1 year ago
sed -i -e "/INeedSyncVersionBackend;/d" -e "s/, INeedSyncVersionBackend//" apps/groupfolders/lib/Versions/VersionsBackend.php
temporarily solves the issue for NC27 and Groupfolders 15.1.0
cron job is affected and doesn't run any more.
π
I have the same problem with Nextcloud 27.0.2, ubuntu 22.04, MariaDB and apache2. Downgrade too version 15.0.2 works fine.
I just did a fresh new install of NC27 stable with groupfolders latest yesterday and it was fine, so the problem appears to only happen during occ upgrade.
If you ran the command line updater to NC 27.02 and used the --non-interactive
switch you can end up with what looks like a successful upgrade, but this bug actually just broke the upgrade halfway through, then --non-interactive disabled maintenance mode prematurely.
This then manifests to users as the "Files" app showing no files, just an empty page.
Meanwhile the log is spammed nonstop with this error: Could not boot files_versions: Interface \"OCA\\Files_Versions\\Versions\\INeedSyncVersionBackend\" not found
.
To fix this, I tried the fix from https://github.com/nextcloud/groupfolders/issues/2548#issuecomment-1714282515 but that didn't help, still no files data. In hindsight I probably needed to run an occ upgrade
at this point and it would have worked.
Next I manually downgraded apps/groupfolders to 15.0.2. Afterwards, when I reloaded a nextcloud page I found myself at an upgrade screen and so I continued on and it finished off the upgrade steps I was missing (including re-upgrading group folders to 15.1.0 again, but by then it was past where it had been stuck). End result was everything working again.
Same problem. Temporary partial solution is to disable the GroupFolders app through the web interface (since OCC is dead). Hoping for a fix soon, as we rely on GroupFolders.
Meet same issue with Nextcloud 27.0.2, Debian11, MariaDB and apache2. Temporarily solved by manually commenting all "INeedSyncVersionBackend" in apps/groupfolders/lib/Versions/VersionsBackend.php, same as https://github.com/nextcloud/groupfolders/issues/2548#issuecomment-1714282515.
Checked https://github.com/nextcloud/server/tree/v27.0.2/apps/files_versions/lib/Versions and the INeedSyncVersionBackend is only available in the latest branch of Nextcloud server and is not present in version 27.0.2. I think it's a version issue with the group folders in Nextcloud 27.0.2 that references the INeedSyncVersionBackend which is not available.
@nursoda after your hotfix (thank you for that!): are there any further steps like occ upgrade which need to be performed afterwards?
I know this isn't a place for general remarks. But still it feels like the group folders team should do less releases and more testing. This isn't the first time that a release broke a lot for a lot of people and did so reproducibly. Today I upgraded 4 different NC instances with groupfolders enabled and the issue occurred on each of them. How can this slip through the cracks if you do some testing before pushing out a release?
yes, upgrade is required as there is is a migration for DB changes.
I am also seeing the same issue on 12 instances - 2 official docker installations, 10 Debian 12 + PHP 8.2 FPM + Caddy + MariaDB installations. For now, i downgraded Groupfolders on all instances.
The mentioned workarounds regarding to the missing DB upgrade are slightly unclear for me. In each situation, occ upgrade
returns, that there is no pending upgrade. Is there something that i missed?
I'm facing the same issue on my Nextcloud LAMP Stack installation
Two new versions just got released, one for 27.0.0, and one for 27.1.0, you can update to the one offered by your Nextcloud server. Closing, feel free to reopen if this is not enough.
@artonge Closed?! It is actually a recommended update in Nextcloud 27.0.2 (Group folders 15.1.0 from 11. September 2023 13:19 >=27.0.0,<28.0.0)
This is a serious bug, which produce heavy CPU load, logs and stops the cron job.
Can confirm the issue in the app group folder version 15.10 with nextcloud VM 27.0.2 on Ubuntu 22.04.3 LTS and also that the hotfix from @nursoda works. Also thanks for that... saved my day.
CronJob was also affected and didn't work, like @clorenz150 mentioned.
So, what works for me in following steps:
cd /var/www/nextcloud/
sed -i -e "/INeedSyncVersionBackend;/d" -e "s/, INeedSyncVersionBackend//" apps/groupfolders/lib/Versions/VersionsBackend.php
It seems to be fixed in 15.2.0 - at least for me that works again (I have applied the sed fix before though)
Ok thanks @artonge and @reox, now see the release at the nextcloud app store. A few hours ago the version was not yet displayed: https://apps.nextcloud.com/apps/groupfolders/releases?platform=27#27
Thanks a lot for the quick fix! after the update it all worked again!
15.3.0 seems to have the problem for me. I installed it on a test system with 27.1.0 RC2, which was running the modified version of 15.1.0.
It immediately had the log messages again, and I again removed the references to INeedSyncVersionBackend from VersionsBackend.php
15.3.0 seems to have the problem for me. I installed it on a test system with 27.1.0 RC2, which was running the modified version of 15.1.0.
Updating to 27.1.0 RC3 should make it work with 15.3.0 :)
I confirm that installing GF 15.2 over patched GF 15.1 works without issues.
GF 15.3 requires NC >= 27.1, so that's OK. Unfortunately, 27.1.RC2 does not meet that. So if you run beta channel, make sure to update NC prior to GF.
What works for me:
cd /var/www/nextcloud/
sed -i -e "/INeedSyncVersionBackend;/d" -e "s/, INeedSyncVersionBackend//" apps/groupfolders/lib/Versions/VersionsBackend.php
Switch to AJAX instead of cron and switch back to cron.
After having occ running again I could do occ app:update --all and upgraded groupfolders to 15.2.0
Restarted the whole Server but get now a 502 Bad Gateway when trying to login
In logfiles i see
Sep 13 11:27:14 cloud notify_push[2205]: [2023-09-13 11:27:14.700898 +02:00] WARN [notify_push::connection] src/connection.rs:75: Error while sending authentication request to nextcloud
Testing this
sudo -u www-data php /var/www/nextcloud/occ notify_push:self-test β redis is configured β push server is receiving redis messages β push server can load mount info from database β push server can connect to the Nextcloud server β push server is a trusted proxy β push server is running the same version as the app
My Desktop Clients and Android are logged in via App Token. 2FA is enabled for all admin accounts.
Any ideas?
@chrissi55 I don't see that this is related to the GF update.
had the same problem and had thought it with the above sed command for now and then with the update (occ app:remove & occ app:install) of the groupfolders app to have solved. Today I noticed that deleted data did not end up in the trashbin but were deleted permanently. No idea why, but after the server restart everything worked again. Maybe you look to be sure if everything works for you....
Greetings
How to use GitHub
Steps to reproduce
"OCA\Files_Versions\Versions\INeedSyncVersionBackend" not found in /path/to/cloud/apps/groupfolders/lib/Versions/VersionsBackend.php:46
Note: Web access and WebDAV interface seem to work fine!
Expected behaviour
OCC should work
Actual behaviour
OCC cannot be used without manual intervention
Server configuration
Operating system: Arch Linux Web server: NGINX Database: MariaDB PHP version: 8.2 Nextcloud version: 27.1.0 RC2 Group folders version: 15.1.0 Updated from an older Nextcloud: yes Where did you install Nextcloud from: nextcloud.com Are you using external storage, if yes which one: no Are you using encryption: no Are you using an external user-backend: none
Logs
Web server error log
no errors
Nextcloud log (data/nextcloud.log)
Nextcloud log
```json { "reqId": "MpkAFHQeVclG2JcQoaH5", "level": 4, "time": "2023-09-11T18:45:45+02:00", "remoteAddr": "192.168.1.2", "user": "USER", "app": "no app in context", "method": "PROPFIND", "url": "/remote.php/dav/files/USER/", "message": "Could not boot files_versions: Interface \"OCA\\Files_Versions\\Versions\\INeedSyncVersionBackend\" not found", "userAgent": "Mozilla/5.0 (Linux) mirall/3.9.4git (Nextcloud, arch-6.5.2-arch1-1 ClientArchitecture: x86_64 OsArchitecture: x86_64)", "version": "27.0.2.1", "exception": { "Exception": "Error", "Message": "Interface \"OCA\\Files_Versions\\Versions\\INeedSyncVersionBackend\" not found", "Code": 0, "Trace": [ { "file": "/path/to/cloud/lib/composer/composer/ClassLoader.php", "line": 582, "function": "include" }, { "file": "/path/to/cloud/lib/composer/composer/ClassLoader.php", "line": 433, "function": "Composer\\Autoload\\{closure}", "args": [ "*** sensitive parameters replaced ***" ] }, { "file": "/path/to/cloud/apps/groupfolders/lib/AppInfo/Application.php", "line": 138, "function": "loadClass", "class": "Composer\\Autoload\\ClassLoader", "type": "->" }, { "file": "/path/to/cloud/lib/private/AppFramework/Utility/SimpleContainer.php", "line": 171, "function": "OCA\\GroupFolders\\AppInfo\\{closure}", "class": "OCA\\GroupFolders\\AppInfo\\Application", "type": "->", "args": [ "*** sensitive parameters replaced ***" ] }, { "file": "/path/to/cloud/3rdparty/pimple/pimple/src/Pimple/Container.php", "line": 122, "function": "OC\\AppFramework\\Utility\\{closure}", "class": "OC\\AppFramework\\Utility\\SimpleContainer", "type": "->", "args": [ "*** sensitive parameters replaced ***" ] }, { "file": "/path/to/cloud/lib/private/AppFramework/Utility/SimpleContainer.php", "line": 138, "function": "offsetGet", "class": "Pimple\\Container", "type": "->" }, { "file": "/path/to/cloud/lib/private/AppFramework/DependencyInjection/DIContainer.php", "line": 488, "function": "query", "class": "OC\\AppFramework\\Utility\\SimpleContainer", "type": "->" }, { "file": "/path/to/cloud/lib/private/ServerContainer.php", "line": 155, "function": "queryNoFallback", "class": "OC\\AppFramework\\DependencyInjection\\DIContainer", "type": "->" }, { "file": "/path/to/cloud/lib/private/AppFramework/DependencyInjection/DIContainer.php", "line": 469, "function": "query", "class": "OC\\ServerContainer", "type": "->" }, { "file": "/path/to/cloud/lib/private/AppFramework/Utility/SimpleContainer.php", "line": 65, "function": "query", "class": "OC\\AppFramework\\DependencyInjection\\DIContainer", "type": "->" }, { "file": "/path/to/cloud/apps/files_versions/lib/AppInfo/Application.php", "line": 152, "function": "get", "class": "OC\\AppFramework\\Utility\\SimpleContainer", "type": "->" }, { "file": "/path/to/cloud/apps/files_versions/lib/AppInfo/Application.php", "line": 135, "function": "loadBackend", "class": "OCA\\Files_Versions\\AppInfo\\Application", "type": "->" }, { "file": "/path/to/cloud/lib/private/AppFramework/Bootstrap/FunctionInjector.php", "line": 45, "function": "registerVersionBackends", "class": "OCA\\Files_Versions\\AppInfo\\Application", "type": "->" }, { "file": "/path/to/cloud/lib/private/AppFramework/Bootstrap/BootContext.php", "line": 50, "function": "injectFn", "class": "OC\\AppFramework\\Bootstrap\\FunctionInjector", "type": "->" }, { "file": "/path/to/cloud/apps/files_versions/lib/AppInfo/Application.php", "line": 125, "function": "injectFn", "class": "OC\\AppFramework\\Bootstrap\\BootContext", "type": "->" }, { "file": "/path/to/cloud/lib/private/AppFramework/Bootstrap/Coordinator.php", "line": 200, "function": "boot", "class": "OCA\\Files_Versions\\AppInfo\\Application", "type": "->" }, { "file": "/path/to/cloud/lib/private/App/AppManager.php", "line": 437, "function": "bootApp", "class": "OC\\AppFramework\\Bootstrap\\Coordinator", "type": "->" }, { "file": "/path/to/cloud/lib/private/App/AppManager.php", "line": 216, "function": "loadApp", "class": "OC\\App\\AppManager", "type": "->" }, { "file": "/path/to/cloud/lib/private/legacy/OC_App.php", "line": 126, "function": "loadApps", "class": "OC\\App\\AppManager", "type": "->" }, { "file": "/path/to/cloud/apps/dav/lib/AppInfo/Application.php", "line": 209, "function": "loadApps", "class": "OC_App", "type": "::" }, { "file": "/path/to/cloud/lib/private/AppFramework/Bootstrap/Coordinator.php", "line": 200, "function": "boot", "class": "OCA\\DAV\\AppInfo\\Application", "type": "->" }, { "file": "/path/to/cloud/lib/private/App/AppManager.php", "line": 437, "function": "bootApp", "class": "OC\\AppFramework\\Bootstrap\\Coordinator", "type": "->" }, { "file": "/path/to/cloud/lib/private/App/AppManager.php", "line": 216, "function": "loadApp", "class": "OC\\App\\AppManager", "type": "->" }, { "file": "/path/to/cloud/lib/private/legacy/OC_App.php", "line": 126, "function": "loadApps", "class": "OC\\App\\AppManager", "type": "->" }, { "file": "/path/to/cloud/remote.php", "line": 157, "function": "loadApps", "class": "OC_App", "type": "::" } ], "File": "/path/to/cloud/apps/groupfolders/lib/Versions/VersionsBackend.php", "Line": 46, "message": "Could not boot files_versions: Interface \"OCA\\Files_Versions\\Versions\\INeedSyncVersionBackend\" not found", "exception": {}, "CustomMessage": "Could not boot files_versions: Interface \"OCA\\Files_Versions\\Versions\\INeedSyncVersionBackend\" not found" } } ```Browser log
irrelevant as not in browser