nextcloud / nextcloud/circles

old circles (before NC 22) have only IDs and can't be deleted after upgrade to NC22

Open
#822 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
177
Forks
68
Avg merge
2d 22h
Merged PRs (30d)
60

Description

description
a jail update on truenas
iocage upgrade JAILNAME -r 12.2-RELEASE-p10
lead to an incomplete nextcloud update from NC21 to NC22
The jail update process listed at the end "nextcloud successfully upgraded!"

The only thing that was shown after accessing the nextcloud page was:

The files of the app Accessibility (accessibility),
Auditing / Logging (admin_audit),
Cloud Federation API (cloud_federation_api),
Comments (comments), Dashboard (dashboard),
Federated file sharing (federatedfilesharing),
Files (files),
Lookup Server Connector (lookup_server_connector),
OAuth 2.0 (oauth2), Provisioning API (provisioning_api),
Nextcloud settings (settings),
Theming (theming), Update notification (updatenotification),
User status (user_status) were not replaced correctly.
Make sure it is a version compatible with the server.

I did try to repair the instance with occ maintenance:repair

root@JAILNAME:/usr/local/www/nextcloud # su -m www -c "php ./occ maintenance:repair"
PHP Warning:  PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /usr/local/lib/php/20190902/imagick.so (Shared object "libhei                                              f.so.1" not found, required by "libMagickWand-7.so.9"), /usr/local/lib/php/20190902/imagick.so.so (Cannot open "/usr/local/lib/php/20190902/                                              imagick.so.so")) in Unknown on line 0
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
- All tables already have the correct collation -> nothing to do
Setting log level to debug
Turned on maintenance mode
Updating database schema
Updated database
UnexpectedValueException: The files of the app "files" were not correctly replaced before running the update
Update failed
Maintenance mode is kept active
Resetting log level

After this I did an manual update to NC22

The update was successful but now there are some share names like "91369027c4b27c" that can't be deleted.

Server Configuration

operating system
FreeBSD 12.2-RELEASE-p9
TRUENAS amd64
16.00 GB ram

nextcloud
22.2.0

php version
PHP Version => 7.4.23

database
mysql 8.0.26

delete_circle-failed
old_circles

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Start with the reported TrueNAS/FreeBSD jail upgrade path from Nextcloud 21 to 22 and the occ maintenance:repair output, then reproduce the undeletable circle names; done means old circles can be deleted after the upgrade.

Written by the indexing model from the issue text.

Assessment

Tech stack
mysql, php
Domain
backend, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.