Error: Class "OCA\Circles\Model\Member" not found after automatic upgrade
Steps To Reproduce
- Run Nextcloud-VM
- Activate automatic upgrade
- wait until nextcloud stucks in maintainance-mode after upgrade
Expected Result
collectives should update to new version 2.17.1.
Actual Result
the following error-massage comes in the mail "NcVM: cloud.konis.info - Your apps just got updated!"
collectives new version available: 2.17.1
An unhandled exception has been thrown:
Error: Class "OCA\Circles\Model\Member" not found in /var/www/nextcloud/apps/collectives/lib/Db/Collective.php:69
Stack trace:
#0 /var/www/nextcloud/lib/public/AppFramework/Db/Entity.php(55): [constant expression]()
#1 /var/www/nextcloud/lib/public/AppFramework/Db/QBMapper.php(315): OCP\AppFramework\Dbntity::fromRow()
#2 /var/www/nextcloud/lib/public/AppFramework/Db/QBMapper.php(333): OCP\AppFramework\Db\QBMapper->mapRowToEntity()
#3 /var/www/nextcloud/apps/collectives/lib/Db/CollectiveMapper.php(158): OCP\AppFramework\Db\QBMapper->findEntities()
#4 /var/www/nextcloud/apps/collectives/lib/Migration/MigrateTemplates.php(112): OCA\Collectives\Db\CollectiveMapper->getAll()
#5 /var/www/nextcloud/lib/private/Repair.php(104): OCA\Collectives\Migration\MigrateTemplates->run()
#6 /var/www/nextcloud/lib/private/legacy/OC_App.php(755): OC\Repair->run()
#7 /var/www/nextcloud/lib/private/legacy/OC_App.php(696): OC_App::executeRepairSteps()
#8 /var/www/nextcloud/lib/private/Installer.php(151): OC_App::updateApp()
#9 /var/www/nextcloud/core/Command/App/Update.php(87): OC\Installer->updateAppstoreApp()
#10 /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php(326): OC\Core\Command\App\Update->execute()
#11 /var/www/nextcloud/3rdparty/symfony/console/Application.php(1078): Symfony\Component\Console\Command\Command->run()
#12 /var/www/nextcloud/3rdparty/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand()
#13 /var/www/nextcloud/3rdparty/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun()
#14 /var/www/nextcloud/lib/private/Console/Application.php(187): Symfony\Component\Console\Application->run()
#15 /var/www/nextcloud/console.php(87): OC\Console\Application->run()
#16 /var/www/nextcloud/occ(33): require_once('...')
#17 {main}
Screenshots, Videos, or Pastebins
No response
Additional Context
sudo -u www-data php /var/www/nextcloud/occ maintenance:repair with same result:
root@cloud:/home/ncadmin# sudo -u www-data php /var/www/nextcloud/occ maintenance:repair
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
- Repair MySQL collation
- Not a mysql database -> nothing to do
- Clean tags and favorites
- 0 tags of deleted users have been removed.
- 0 tags for delete files have been removed.
- 0 tag entries for deleted tags have been removed.
- 0 tags with no entries have been removed.
- Repair invalid shares
- Move .step file of updater to backup location
- Add move avatar background job
- Repair step already executed
- Add preview cleanup background jobs
- Migrate oauth2_clients table to nextcloud schema
- Update the oauth2_access_tokens table schema.
- Update the oauth2_clients table schema.
- Delete clients (and their related access tokens) with the redirect_uri starting with oc:// or ending with *
- Repair language codes
- Add log rotate job
- Clear frontend caches
- Image cache cleared
- JS cache cleared
- Clear every generated avatar
- Add preview background cleanup job
- Queue a one-time job to cleanup old backups of the updater
- Cleanup invalid photocache files for carddav
- Add background job to cleanup login flow v2 tokens
- Remove potentially over exposing share links
- No need to remove link shares.
- Clear access cache of projects
- Reset generated avatar flag
- Keep legacy encryption enabled
- Check encryption key format
- Remove old dashboard app config data
- Add job to cleanup the bruteforce entries
- Queue a one-time job to check for user uploaded certificates
- Repair DAV shares
- Add background job to set the lookup server share state for users
- Add token cleanup job
- Clean up abandoned apps
- Add possibly missing system config
- Add AI tasks cleanup jobs
- Queue a job to generate metadata
- migrate lazy config values
- Cache logo dimension to fix size in emails on Outlook
- Theming is not used to provide a logo
- Remove legacy ".ocdata" file
- Add cleanup-deleted-users background job
- Validate account properties and store phone numbers in a known format for search
- Queued background to validate account properties.
- AppAPI Daemons configuration GPU params update
- Daemons configuration GPU params updated: 0
- Migrate templates to new implementation logic
0 [>---------------------------]An unhandled exception has been thrown:
Error: Class "OCA\Circles\Model\Member" not found in /var/www/nextcloud/apps/collectives/lib/Db/Collective.php:69
Stack trace:
#0 /var/www/nextcloud/lib/public/AppFramework/Db/Entity.php(55): [constant expression]()
#1 /var/www/nextcloud/lib/public/AppFramework/Db/QBMapper.php(315): OCP\AppFramework\Db\Entity::fromRow()
#2 /var/www/nextcloud/lib/public/AppFramework/Db/QBMapper.php(333): OCP\AppFramework\Db\QBMapper->mapRowToEntity()
#3 /var/www/nextcloud/apps/collectives/lib/Db/CollectiveMapper.php(163): OCP\AppFramework\Db\QBMapper->findEntities()
#4 /var/www/nextcloud/apps/collectives/lib/Migration/MigrateTemplates.php(112): OCA\Collectives\Db\CollectiveMapper->getAll()
#5 /var/www/nextcloud/lib/private/Repair.php(104): OCA\Collectives\Migration\MigrateTemplates->run()
#6 /var/www/nextcloud/core/Command/Maintenance/Repair.php(99): OC\Repair->run()
#7 /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php(326): OC\Core\Command\Maintenance\Repair->execute()
#8 /var/www/nextcloud/3rdparty/symfony/console/Application.php(1078): Symfony\Component\Console\Command\Command->run()
#9 /var/www/nextcloud/3rdparty/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand()
#10 /var/www/nextcloud/3rdparty/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun()
#11 /var/www/nextcloud/lib/private/Console/Application.php(187): Symfony\Component\Console\Application->run()
#12 /var/www/nextcloud/console.php(87): OC\Console\Application->run()
#13 /var/www/nextcloud/occ(33): require_once('...')
Build Version
31.0.4
Environment
By downloading the VM
Environment Details
No response
Seems to be a problem in App collectives. After disabling this app everything is fine. uninstalled app, and now even app-preview in web-app-installer shows error "Class "OCA\Circles\Model\Member" not found"
This is a problem in nextcloud server or contacts. I can not reproduce this on either old or new setups.
do you have enabled the "collectives" App before update?
I know of at least 5 vms running with collectives installed that has worked to upgrade.