Calendar Not Displaying at All

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 31.0.9
  • Operating system and version (e.g., Ubuntu 24.04):
    • Linux 6.1.0-41-amd64 x86_64 (Debian 12, bookworm)
  • Web server and version (e.g, Apache 2.4.25):
    • PostgreSQL 15.14
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • nginx/1.28.0 (twice ie one is the main gatekeeping for other elements/sites/tools, and pass the info, the other one which is the nextcloud one with all the fastgci, location, etc… parameters)
  • PHP version (e.g, 8.3):
    • 8.3.25
  • Is this the first time you’ve seen this error? (Yes / No):
    • It never worked
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
      • docker (in a VM, on proxmox)
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • using Cloudflare

Summary of the issue you are facing:

On the “home page”, the icon of the calendar is not displaying (it’s there with a placeholder for the picture which is not displayed).

Clicking on it shows an empty page.

So I can’t do anything in the calendar obviously.

Web Browser

In the browser (Brave) console I have those GET errors :

Can't find www.mydomaincom/custom_apps/calendar/js/calendar-contacts-menu.js?v=62c98b92-0’ because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled.

then

error with ``static.coudflareinsights.com/beacon.min.js`` cause blocked by client

Can't find www.mydomain.com/custom_apps/calendar/js/calendar-main.js?v=62c98b92-0’ because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled.

and

Failed to load resource: the server responded with a status of 404 () forcalendar.svg

(this one is the icone I guess)

Now, I think this is accounted for, but just mentionning as well that the url shows :

www.mydomain.com/apps/calendar/`

But I can see in the console that it is trying to pick up the data in the correct subfolder ie

www.mydomain.com/ custom_apps/calendar/

Nextcloud logs

I do have few warnings, but not sure they’re related (although…)

On the overview :

`Some headers are not set correctly on your instance - The `Strict-Transport-Security` HTTP header is not set to at least `15552000` seconds (current value: `0`). For enhanced security, it is recommended to use a long HSTS policy.`

–> this is by design so to speak, I read the possible challenges using HSTS, so I’d rather not “activate” the whole thing, BUT I just saw that it’s active on the cloudflare side, could this be an issue ?

I also have PHP warning in the logs :

dns_get_record(): A temporary server error occurred. at /var/www/html/lib/private/Http/Client/DnsPinMiddleware.php#99
Cannot modify header information - headers already sent by (output started at /var/www/html/3rdparty/deepdiver/zipstreamer/src/ZipStreamer.php:325) at /var/www/html/3rdparty/sabre/http/lib/Sapi.php#70

Nginx

Both Nginx (the main one → to nextcloud VM and the nextcloud one) : all entries shows 200 status, except the notification one :
GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.0" 304

Configuration

Nextcloud

{
    "system": {
        "memcache.local": "\\OC\\Memcache\\APCu",
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "password": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "upgrade.disable-web": true,
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost",
            "edengarden.connexsens.org",
            "192.168.1.15",
            "192.168.1.41"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "31.0.9.1",
        "overwrite.cli.url": "https:\/\/edengarden.connexsens.org",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "maintenance_window_start": 1,
        "loglevel": 2,
        "maintenance": false,
        "default_phone_region": "FR",
        "app_install_overwrite": []
    }
}

Apps

Enabled:
  - activity: 4.0.0
  - app_api: 5.0.2
  - bruteforcesettings: 4.0.0
  - calendar: 5.5.10
  - circles: 31.0.0
  - cloud_federation_api: 1.14.0
  - comments: 1.21.0
  - contactsinteraction: 1.12.0
  - dashboard: 7.11.0
  - dav: 1.33.0
  - federatedfilesharing: 1.21.0
  - federation: 1.21.0
  - files: 2.3.1
  - files_downloadlimit: 4.0.0
  - files_external: 1.23.0
  - files_pdfviewer: 4.0.0
  - files_reminders: 1.4.0
  - files_sharing: 1.23.1
  - files_trashbin: 1.21.0
  - files_versions: 1.24.0
  - firstrunwizard: 4.0.0
  - logreader: 4.0.0
  - lookup_server_connector: 1.19.0
  - nextcloud_announcements: 3.0.0
  - notifications: 4.0.0
  - oauth2: 1.19.1
  - password_policy: 3.0.0
  - photos: 4.0.0
  - privacy: 3.0.0
  - profile: 1.0.0
  - provisioning_api: 1.21.0
  - recommendations: 4.0.0
  - related_resources: 2.0.0
  - richdocuments: 8.7.7
  - serverinfo: 3.0.0
  - settings: 1.14.0
  - sharebymail: 1.21.0
  - support: 3.0.0
  - survey_client: 3.0.0
  - systemtags: 1.21.1
  - text: 5.0.0
  - theming: 2.6.1
  - twofactor_backupcodes: 1.20.0
  - updatenotification: 1.21.0
  - user_status: 1.11.0
  - viewer: 4.0.0
  - webhook_listeners: 1.2.0
  - workflowengine: 2.13.0
Disabled:
  - admin_audit: 1.21.0
  - encryption: 2.19.0
  - suspicious_login: 9.0.1
  - twofactor_nextcloud_notification: 5.0.0
  - twofactor_totp: 13.0.0-dev.0
  - user_ldap: 1.22.0
  - weather_status: 1.11.0 (installed 1.11.0)
1 Like

Does it basically impact any app you install (at least the ones that create icons; so not richdocuments)?

Please post your Docker Compose file.

Well, thanks for asking for the docker compose file, the issue was there !!

In the container, there is :

/var/www/html/apps
/var/www/html/custom_apps

But I had bind mounted the custom_apps in a different folder, so I had something like :

- /path/to/nextcloud/data/html:/var/www/html
- /path/to/nextcloud/data/apps:/var/www/html/custom_apps

As soon as I moved the existing “custom_apps” folder on my machine to /path/to/nextcloud/data/html and remove the mount for custom_apps (+ fixing permissions and ownership), the calendar app worked !!

Now I can move to Nextcloud office (issue with built in CODE server and Collabora access, but that’ll be for another post).

Thanks !!