The Basics
Nextcloud Server version:
31.0.6.2 (AIO)
Operating system and version:
Ubuntu 24.04.2 LTS (Noble Numbat)
Web server and version:
AIO - everything up to date
Reverse proxy and version:
Using Cloudflare
PHP version:
PHP 8.3.22
Installation method:
Nextcloud AIO (Docker)
Are you using Cloudflare, mod_security, or similar?
Yes — Cloudflare proxy in front.
Summary of the issue you are facing
I am trying to add multiple calendars from iCloud into the Nextcloud Calendar app.
- Adding one iCloud calendar works fine (subscription is created and syncs normally).
- Adding a second iCloud calendar does not work — Nextcloud does not show any error in the UI, but in the logs I get:
ParseException
Invalid Mimedir file. Line starting at 4747 did not follow iCalendar/vCard conventions
Subscription 17 could not be parsed
How I try to add it:
- Open the Calendar app
- Click
+
→New subscription from link
- Paste the iCloud calendar public link
- Click Save → nothing happens, no calendar appears.
The iCloud link is a standard published ICS URL. Example (anonymized):
webcal://p108-caldav.icloud.com/published/2/MTM0NjkxNTkxMTEzNDY5M*** (anonymized)
The ICS file can be opened manually (e.g., in Thunderbird, macOS Calendar) without any problems — it is valid and contains events.
Steps to replicate it
- Open Calendar app in Nextcloud
- Click
+
→New subscription from link
- Paste a public iCloud
.ics
subscription URL - Click Save
- Calendar does not appear — log shows the
ParseException
.
Log entries
ParseException
Invalid Mimedir file. Line starting at 4747 did not follow iCalendar/vCard conventions
Subscription 17 could not be parsed
Web browser console
No relevant errors in the browser inspector — the subscription simply does not get created.
Web server / reverse proxy
Nextcloud AIO behind Cloudflare proxy — no additional reverse proxy in between.
Configuration
Output from occ config:list system
:
{
"system": {
...
"version": "31.0.6.2",
"overwrite.cli.url": "https://mydomain.example.com/",
"trusted_domains": [
"localhost",
"mydomain.example.com"
],
...
}
}
Apps
Enabled:
- calendar: 5.3.4
- dav: 1.33.0
- (others – see above)
Disabled:
- files_external: 1.23.0
- (others – see above)
Thank you so much for any hints or help!
I really appreciate your time and the community support