Skip to content

Commit 504bce0

Browse files
authored
Merge pull request #13133 from nextcloud/bug/noid/add-article-for-missing-calendars
docs(groupware): add troubleshooting article for missing calendars
2 parents 80bcdd0 + 5a12d9d commit 504bce0

3 files changed

Lines changed: 42 additions & 0 deletions

File tree

admin_manual/groupware/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ Groupware
1010
contacts
1111
mail
1212
out_of_office
13+
troubleshooting
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
.. _troubleshooting_groupware:
2+
3+
===============
4+
Troubleshooting
5+
===============
6+
7+
Calendar
8+
########
9+
10+
Missing Shared Calendars
11+
************************
12+
13+
**Problem:**
14+
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).
15+
16+
**Affected Versions:**
17+
- Nextcloud Server 31.0.5 and below
18+
- Nextcloud Server 30.0.11 and below
19+
20+
**Possible Reason:**
21+
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.
22+
23+
**Troubleshooting Steps:**
24+
25+
1. **Check for Hidden Calendars:**
26+
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.
27+
28+
2. **List Calendar Shares:**
29+
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:
30+
31+
A. **Remove All Calendar Unshares for a User:**
32+
``occ dav:clear-calendar-unshares <uid>``.
33+
34+
B. **Delete Specific Unshares:**
35+
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.
36+
37+
**Why Isn't there an Automated Migration to Correct the Problem?**
38+
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.

admin_manual/issues/general_troubleshooting.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,9 @@ and then :ref:`rescan the external storage<occ_files_scan_label>`.
373373
Troubleshooting contacts & calendar
374374
-----------------------------------
375375

376+
.. tip::
377+
Please also refer to the troubleshooting article in the groupware section: :ref:`troubleshooting_groupware`.
378+
376379
Unable to update contacts or events
377380
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
378381

0 commit comments

Comments
 (0)