nextcloud / circles

👪 Create groups with other users on a Nextcloud instance and share with them
GNU Affero General Public License v3.0
141 stars 47 forks source link

Unhandled Exception when trying to enable circles #1595

Open Af0x opened 1 month ago

Af0x commented 1 month ago

Hello,

I get the following error when trying to enable circles. Had to disable it because there was an Internal Server Error preventing the webinterface to load:

occ app:enable circles
An unhandled exception has been thrown:
Error: Class "OCA\Circles\Model\Circle" not found in /path/to/nextcloud/apps/circles/lib/Service/FederatedUserService.php:573
Stack trace:
#0 /path/to/nextcloud/apps/circles/lib/Service/MigrationService.php(195): OCA\Circles\Service\FederatedUserService->getAppInitiator()
#1 /path/to/nextcloud/apps/circles/lib/Migration/Migration.php(97): OCA\Circles\Service\MigrationService->migration()
#2 /path/to/nextcloud/lib/private/Repair.php(124): OCA\Circles\Migration\Migration->run()
#3 /path/to/nextcloud/lib/private/legacy/OC_App.php(838): OC\Repair->run()
#4 /path/to/nextcloud/lib/private/Installer.php(141): OC_App::executeRepairSteps()
#5 /path/to/nextcloud/core/Command/App/Enable.php(110): OC\Installer->installApp()
#6 /path/to/nextcloud/core/Command/App/Enable.php(80): OC\Core\Command\App\Enable->enableApp()
#7 /path/to/nextcloud/3rdparty/symfony/console/Command/Command.php(298): OC\Core\Command\App\Enable->execute()
#8 /path/to/nextcloud/3rdparty/symfony/console/Application.php(1040): Symfony\Component\Console\Command\Command->run()
#9 /path/to/nextcloud/3rdparty/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
#10 /path/to/nextcloud/3rdparty/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#11 /path/to/nextcloud/lib/private/Console/Application.php(213): Symfony\Component\Console\Application->run()
#12 /path/to/nextcloud/console.php(102): OC\Console\Application->run()
#13 /path/to/nextcloud/occ(11): require_once('...')

The issue first occurred after upgrading from nextcloud-28.0.5.1 to nextcloud-28.0.6.1 and persists after upgrading to Nextcloud 29.0.1.

rjlan commented 1 month ago

I just got this one after upgrading from 29.0.0.19 -> 29.0.1.1 Got an internal server error message on the webui. Disabling circles fixed the issue. Same message if I try to enable it

ndurchx commented 1 month ago

Just occured to me after updating two other plugins

Vdauphin commented 1 month ago

Same when updating from nextcloud-28.0.5.1 to nextcloud-28.0.6.1

    Erreur interne du serveur

    Le serveur est incapable d’exécuter votre requête.
    Si cela se reproduit, veuillez envoyer les détails techniques ci-dessous à l’administrateur du serveur.
    Le fichier journal du serveur peut fournir plus de renseignements.
    Renseignements techniques

        Adresse distante : XXXX
        ID de la demande : XXXX

nextcloud_short.log

Resolved by: docker exec -u www-data $(docker ps --filter name='srv-captain--nextcloud.1' -q) php occ app:disable circles And repair: docker exec -u www-data $(docker ps --filter name='srv-captain--nextcloud.1' -q) php occ maintenance:repair Followed by a container restart

Some people talk about it here: https://help.nextcloud.com/t/after-update-to-nc29-0-1-internal-server-error-circles-the-cause/194167

muelli75 commented 1 month ago

I have the same problem after updating from 28.0.6 to 29.0.1, but natively without docker-containter.

It helped to deactivate Circles via the terminal, then you can at least log in again.

Teams cannot be activated, because apparently a -dev version is available. Activation is prevented by the message ‘This app cannot be activated because it will make the server unstable’.

Af0x commented 1 month ago

What fixed it for me completely:

  1. disable circles with occ app:disable circles
  2. repair installation with occ maintenance:repair
  3. change update channel to Beta -> Version 29.0.2 RC2 will be available
  4. update to version 29.0.2 RC2
  5. enable circles again with occ app:enable circles

The webinterface will be accessible again with circles enabled. However, Beta channel can introduce new issues so make a backup first.

osm-frasch commented 1 month ago

Is there any progress regarding the bugfix?

joshtrichards commented 3 weeks ago

So far I've been unable to reproduce any of these behaviors.

Please share the output of: