nextcloud / nextcloud/calendar

Automatic upgrade to version 5.5.12 on Nextcloud 30.0.7 does not install the app at the right place

Open
#7,847 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs info
Dominant language
JavaScript
Stars
1.2k
Forks
332
Avg merge
16h 13m
Merged PRs (30d)
137

Description

Steps to reproduce
  1. After automatic upgrade to 5.5.12, the code of the app was in the apps/calendar/calendar. It causes a crash of the whole Nextcloud since it cannot find the apps' files.
Expected behavior

The code of the apps should be in the apps/calendar

Actual behavior

Nextcloud crashes, in the Nextcloud logs we can see:

{"reqId":"I0yMHbA7WRTd5HHCQLKh","level":3,"time":"2026-01-12T12:55:58+00:00","remoteAddr":"123.123.123.123","user":"MyUser","app":"index","method":"GET","url":"/apps/dashboard/",
"message":"image not found: image:calendar-dark.svg webroot: serverroot:/path/to/nextcloud","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:146.0) Gecko/20100101 Firefox/146.0","version":"30.0.7.2",
"exception":{"Exception":"RuntimeException","Message":"image not found: image:calendar-dark.svg webroot: serverroot:/path/to/nextcloud","Code":0,"Trace":[
{"file":"path/to/nextcloud/apps/calendar/lib/Dashboard/CalendarWidget.php","line":106,"function":"imagePath","class":"OC\\URLGenerator","type":"->"}
...
...
Calendar app version

5.5.12

CalDAV-clients used

not relevant here

Browser

all browsers

Client operating system

all OS

Server operating system

Debian 11 Bullseye

Web server

Apache

Database engine version

MySQL

PHP engine version

PHP 8.3

Nextcloud version

30.0.7

Updated from an older installed version or fresh install

Updated from an older version

List of activated apps
Enabled:                                                                                                                                                     
  - activity: 3.0.0                                                                                                                                          
  - admin_audit: 1.20.0                                                                                                                                      
  - announcementcenter: 7.2.2                                                                                                                                
  - app_api: 4.0.6                                                                                                                                           
  - appointments: 2.4.6                                                                                                                                      
  - audioplayer: 3.7.0                                                                                                                                       
  - bruteforcesettings: 3.0.0                                                                                                                                
  - calendar: 5.5.12                                                                                                                                         
  - circles: 30.0.0                                                                                                                                          
  - cloud_federation_api: 1.13.0                                                                                                                             
  - collectives: 3.4.0                                                                                                                                       
  - comments: 1.20.1                                                                                                                                         
  - contacts: 7.3.10                                                                                                                                         
  - dashboard: 7.10.0                                                                                                                                        
  - dav: 1.31.1 
  - deck: 1.14.8            
  - drawio: 3.0.9        
  - external: 5.5.2 
  - federatedfilesharing: 1.20.0
  - federation: 1.20.0
  - files: 2.2.0       
  - files_downloadlimit: 3.0.0
  - files_external: 1.22.0
  - files_pdfviewer: 3.0.0
  - files_reminders: 1.3.0
  - files_sharing: 1.22.0
  - files_trashbin: 1.20.1
  - files_versions: 1.23.0
  - firstrunwizard: 3.0.0        
  - forms: 5.2.3              
  - fulltextsearch: 30.0.2
  - groupfolders: 18.1.10    
  - impersonate: 1.17.1
  - integration_mattermost: 2.1.1
  - integration_notion: 1.3.1   
  - logreader: 3.0.0      
  - lookup_server_connector: 1.18.0
  - mail: 5.5.15                                                              
  - memories: 7.7.0   
  - notes: 4.12.4                                                             
  - notifications: 3.0.0
  - oauth2: 1.18.1                                                            
  - ownershiptransfer: 1.2.1                                                  
  - password_policy: 2.0.0          
  - photos: 3.0.2          
  - previewgenerator: 5.11.0                                                  
  - privacy: 2.0.0                                                            
  - provisioning_api: 1.20.0 
  - qownnotesapi: 25.8.0
  - recommendations: 3.0.0
  - related_resources: 1.5.0
  - richdocuments: 8.5.13
  - riotchat: 0.20.0
  - serverinfo: 2.0.0
  - settings: 1.13.0
  - sharebymail: 1.20.0
  - spreed: 20.1.11
  - survey_client: 2.0.0
  - systemtags: 1.20.0
  - tables: 1.0.2
  - tasks: 0.16.1
  - text: 4.1.0
  - theming: 2.6.0
  - twofactor_backupcodes: 1.19.0
  - updatenotification: 1.20.0
  - user_status: 1.10.0
  - user_usage_report: 1.14.0
  - viewer: 3.0.0
  - weather_status: 1.10.0
  - webhook_listeners: 1.1.0-dev
  - workflowengine: 2.12.0
Disabled:
  - contactsinteraction: 1.11.0 (installed 1.8.0)
  - encryption: 2.18.0
  - fileslibreofficeedit: 2.0.1 (installed 2.0.1)
  - hedgenext: 0.0.15
  - nextcloud_announcements: 2.0.0 (installed 1.16.0)
  - snappymail: 2.38.2 (installed 2.38.2)
  - support: 2.0.0 (installed 2.0.0)
  - suspicious_login: 8.0.0
  - timetracker: 0.0.86 (installed 0.0.86)
  - twofactor_nextcloud_notification: 4.0.0
  - twofactor_totp: 12.0.0-dev
  - user_ldap: 1.21.0
Nextcloud configuration
{                                                                                                                                                            
    "system": {                                                                                                                                              
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",                                                                                                     
        "secret": "***REMOVED SENSITIVE VALUE***",                                                                                                           
        "trusted_domains": [                                                                                                                                 
            "localhost",                                                                                                                                     
            "myserver.org"                                                                                                                            
        ],                                                                                                                                                   
        "activity_expire_days": 90,                                                                                                                          
        "datadirectory": "***REMOVED SENSITIVE VALUE***",                                                                                                    
        "dbtype": "mysql",                                                                                                                                   
        "version": "30.0.7.2",                                                                                                                               
        "overwrite.cli.url": "http:\/\/myserver.org\/",                                                                                               
        "dbname": "***REMOVED SENSITIVE VALUE***",                                                                                                           
        "dbhost": "***REMOVED SENSITIVE VALUE***",                                                                                                           
        "dbport": "",                                                                                                                                        
        "dbtableprefix": "nc_",                                                                                                                              
        "dbuser": "***REMOVED SENSITIVE VALUE***",                                                                                                           
        "dbpassword": "***REMOVED SENSITIVE VALUE***",                                                                                                       
        "default_language": "fr",                                                                                                                            
        "installed": true,                                                                                                                                   
        "instanceid": "***REMOVED SENSITIVE VALUE***",                                                                                                       
        "htaccess.RewriteBase": "\/",                                                                                                                        
        "memcache.locking": "\\OC\\Memcache\\Redis",                                                                                                         
        "memcache.local": "\\OC\\Memcache\\Redis",                                                                                                           
        "redis": {                                                                                                                                           
            "host": "***REMOVED SENSITIVE VALUE***",                                                                                                         
            "port": "6379"                                                                                                                                   
        },
        "mail_smtpmode": "sendmail",                                                                                                                         
        "mail_smtpauthtype": "LOGIN",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "loglevel": 2,
        "log.condition": {
            "apps": [
                "admin_audit"
            ]
        },
        "updater.release.channel": "stable",
        "mysql.utf8mb4": true,
        "app_install_overwrite": [
            "admin_notifications",
            "impersonate",
            "sharingpath",
            "cms_pico",
            "talk_simple_poll",
            "hedgenext"
        ],
        "simpleSignUpLink.shown": false,
        "theme": "",
        "preview_max_memory": "1280",
        "trashbin_retention_obligation": "auto, 21",
        "skeletondirectory": "\/path\/to\/nextcloud\/squelette",
        "mail_sendmailmode": "smtp",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "maintenance_window_start": 1,
        "memories.db.triggers.fcu": true,
        "memories.exiftool": "\/path\/to\/nextcloud\/apps\/memories\/bin-ext\/exiftool-amd64-glibc",
        "memories.vod.path": "\/path\/to\/nextcloud\/apps\/memories\/bin-ext\/go-vod-amd64"
    }
}
Web server error log
not relevant in this case
Log file
{"reqId":"I0yMHbA7WRTd5HHCQLKh","level":3,"time":"2026-01-12T12:55:58+00:00","remoteAddr":"123.123.123.123","user":"MyUser","app":"index","method":"GET","url":"/apps/dashboard/",
"message":"image not found: image:calendar-dark.svg webroot: serverroot:/path/to/nextcloud","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:146.0) Gecko/20100101 Firefox/146.0","version":"30.0.7.2",
"exception":{"Exception":"RuntimeException","Message":"image not found: image:calendar-dark.svg webroot: serverroot:/path/to/nextcloud","Code":0,"Trace":[
{"file":"path/to/nextcloud/apps/calendar/lib/Dashboard/CalendarWidget.php","line":106,"function":"imagePath","class":"OC\\URLGenerator","type":"->"}
...
...
Browser log
not relevant in this case
Additional info

The fix is just to move the code of the app at the right place:

mv /path/to/nextcloud/apps/calendar/ $HOME/calendar
mv $/HOME/calendar/calendar /path/to/nextcloud/apps/calendar

It's a Nextcloud 30 which is no longer supported, so this is probably a "won't fix" but I think it's worth documenting it in case someone else has the same problem.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by examining the reported apps/calendar/calendar and apps/calendar paths, then inspect apps/calendar/lib/Dashboard/CalendarWidget.php around line 106 and the automatic upgrade result. Reproduce the upgrade from an older installation if possible and verify that version 5.5.12 places the app files directly in apps/calendar without causing the reported missing-image crash.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
release
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.