Skip to content

[stable30] docs(groupware): add troubleshooting article for missing calendars #13155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions admin_manual/groupware/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ Groupware
contacts
mail
out_of_office
troubleshooting
38 changes: 38 additions & 0 deletions admin_manual/groupware/troubleshooting.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
.. _troubleshooting_groupware:

===============
Troubleshooting
===============

Calendar
########

Missing Shared Calendars
************************

**Problem:**
User should have access to a shared calendar, but the calendar is not displayed in Nextcloud Calendar or other CalDAV clients (e.g., DAVx⁵ or Thunderbird).

**Affected Versions:**
- Nextcloud Server 31.0.5 and below
- Nextcloud Server 30.0.11 and below

**Possible Reason:**
A bug in previous versions of Nextcloud Server could mistakenly add a calendar unshare instead of removing the share permission. For example, a user has read access through a group membership, and the owner grants permission to a single user to modify a calendar. When removing the modify permission again, the unshare record was created.

**Troubleshooting Steps:**

1. **Check for Hidden Calendars:**
It's possible for a user to hide a calendar. Please check in Nextcloud Calendar if the missing calendar is listed in the "hidden" section. If the missing calendar is listed there, check the box in front of the calendar to enable it again.

2. **List Calendar Shares:**
Run the command ``occ dav:list-calendar-shares <uid>`` to list all shares for a user. Look for lines with the Calendar URI/Calendar Name of the missing calendar and Permissions = Unshare. If there's such a line, but the user should have access, you have two options:

A. **Remove All Calendar Unshares for a User:**
``occ dav:clear-calendar-unshares <uid>``.

B. **Delete Specific Unshares:**
Some users may have many calendar unshares, so it might be easier to delete only the unwanted unshare. The ``Share Id`` references the id of a row in the ``oc_dav_shares`` database table. Delete the row with the matching id to remove the unshare.

**Why Isn't there an Automated Migration to Correct the Problem?**
Unsharing a calendar is a feature, and with the given information, we cannot determine if a calendar was unshared on purpose or as a result of the bug.
3 changes: 3 additions & 0 deletions admin_manual/issues/general_troubleshooting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,9 @@ and then :ref:`rescan the external storage<occ_files_scan_label>`.
Troubleshooting contacts & calendar
-----------------------------------

.. tip::
Please also refer to the troubleshooting article in the groupware section: :ref:`troubleshooting_groupware`.

Unable to update contacts or events
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Expand Down