System Address Book not re-initialized after re-enabling (AIO)

System Address Book not re-initialized after re-enabling (AIO)

Environment:

  • Nextcloud AIO 12.3.0

  • Nextcloud 32.0.3

  • Ubuntu Server 24.04.3 LTS

Description of the issue:

I disabled the following option in Groupware settings:

Groupware → System Address Book → Disable

After a few days, I enabled this option again.

Since re-enabling it, the System Address Book is not initialized again:

  • The System Address Book does not appear to be recreated

  • Contacts from the System Address Book are not visible in the Contacts app

  • This affects the admin user as well

No further configuration changes were made between disabling and re-enabling the feature.

Expected behavior:
After enabling System Address Book, it should be automatically re-initialized and its contacts should become visible again in the Contacts app.

I have the same problem. Any hints to solve it?

I reported it here - [Bug]: System Address Book not re-initialized after re-enabling · Issue #57329 · nextcloud/server · GitHub

No update so far.

The problem still persists in version 32.0.5.

I have prepared temporary fix for the issue. Hope it helps.

:compass: Organization Chart missing in Contacts (Nextcloud AIO fix)

:red_exclamation_mark: Problem

In Nextcloud Contacts, the Organization Chart option is not visible.

Everything else may look fine, but this feature is missing.


:desktop_computer: Environment

Applies to Nextcloud running via AIO (Docker).


:brain: Cause

A stored DAV app configuration flag can remain in the database and interfere with how the System Address Book behaves.
Removing it lets Nextcloud return to its default logic.


:white_check_mark: Solution

STEP 1 — Disable in GUI :wrench:

Go to:

Admin → Groupware

Turn OFF System Address Book
:hourglass_not_done: Wait a few seconds.


STEP 2 — Remove the stored DAV flag :broom:

Run on the AIO host:

sudo docker exec -u www-data -it nextcloud-aio-nextcloud php occ config:app:delete dav system_addressbook_exposed

Expected output:

Config value system_addressbook_exposed of app dav deleted


STEP 3 — Refresh Admin page :counterclockwise_arrows_button:

Reload:

Admin → Groupware

You’ll see System Address Book automatically switches back to Enabled.

:check_mark: This is expected.


STEP 4 — Verify in Contacts :card_index:

Open Contacts.

You should now see:

:sparkles: Organization Chart


:information_source: Notes

:prohibited: No container restart needed
:prohibited: No database edits needed
:prohibited: No additional OCC commands required

The fix is simply removing the outdated DAV config entry.