[Bug]: DAV Database Error, Calendar Not Working
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 36.9k
- Forks
- 5.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 713
Description
⚠️ This issue respects the following points: ⚠️
- This is not a troubleshooting question, general support matter, or webserver/proxy problem, but likely a bug (if unsure, ask the Community Help Forum).
- This issue is not already reported on Github OR solved at the Community Help Forum (I've searched!).
- I'm using a maintained major version of Nextcloud Server and tested against the latest patch level. (Supported major versions and current patch levels).
- I agree to follow Nextcloud's Code of Conduct.
- I've tried my best to provide clear reproduction steps that someone unfamiliar with this bug could use to reproduce it.
Bug description
Calendars which were previously created aren't showing in the Nextcloud Calendar app, and they're possibly not working in DAV connections either. There are errors in the logs related to DAV and database actions.
Steps to reproduce
- Open Nextcloud Calendar app in web version
Expected behavior
Calendars which were previously created by this user are shown.
Nextcloud Server version
34
Operating system
Debian/Ubuntu
PHP engine version
No response
Web server
Nginx
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
- Default user-backend (database)
- LDAP/ Active Directory
- SSO - SAML
- Other
Configuration report
{
"system": {
"htaccess.RewriteBase": "\/",
"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
}
],
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"REMOVED",
"REMOVED"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "34.0.3.2",
"overwrite.cli.url": "http:\/\/REMOVED",
"overwriteprotocol": "https",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"default_phone_region": "us",
"twofactor_enforced": "true",
"twofactor_enforced_groups": [],
"twofactor_enforced_excluded_groups": [],
"maintenance": false,
"preview_max_memory": 4096,
"preview_max_filesize_image": 256,
"memories.ffmpeg_path": "ffmpeg",
"memories.ffprobe_path": "ffprobe",
"memories.exiftool": "\/var\/www\/html\/custom_apps\/memories\/bin-ext\/exiftool-amd64-glibc",
"enabledPreviewProviders": [
"OC\\Preview\\Image",
"OC\\Preview\\HEIC",
"OC\\Preview\\TIFF"
],
"loglevel": 0,
"theme": "",
"memories.vod.path": "\/var\/www\/html\/custom_apps\/memories\/bin-ext\/go-vod-amd64",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_smtpmode": "smtp",
"mail_sendmailmode": "smtp",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtpsecure": "ssl",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "465",
"mail_smtpauth": 1,
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"opcache.memory_consumption": "256",
"app_install_overwrite": [
"news"
],
"filelocking.enabled": true,
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"password": "***REMOVED SENSITIVE VALUE***",
"port": 6379
},
"maintenance_window_start": 6,
"memcache.distributed": "\\OC\\Memcache\\Redis",
"updater.release.channel": "stable",
"allow_local_remote_servers": true,
"serverid": "0"
}
}
List of activated Apps
Enabled:
- activity: 7.0.0
- admin_audit: 1.24.0
- appstore: 1.0.0
- assistant: 3.5.0
- bruteforcesettings: 7.0.0
- calendar: 6.5.4
- cloud_federation_api: 1.18.0
- comments: 1.24.0
- contacts: 8.8.0
- contactsinteraction: 1.15.0
- dashboard: 7.14.0
- dav: 1.40.0
- encryption: 2.22.0
- federatedfilesharing: 1.24.0
- files: 2.6.0
- files_downloadlimit: 5.2.0
- files_lock: 34.0.1
- files_pdfviewer: 7.0.0-dev.0
- files_reminders: 1.7.0
- files_sharing: 1.26.0
- files_trashbin: 1.24.0
- files_versions: 1.27.0
- firstrunwizard: 7.0.0-dev.0
- integration_openai: 4.5.2
- logreader: 7.0.0
- lookup_server_connector: 1.22.0
- mail: 5.11.5
- news: 28.7.0
- nextcloud_announcements: 6.0.0
- notes: 6.0.2
- notifications: 7.0.0-dev.1
- oauth2: 1.22.0
- office: 1.0.0
- password_policy: 6.0.0-dev.0
- photos: 7.0.0
- privacy: 6.0.0-dev.1
- profile: 1.3.0
- provisioning_api: 1.24.0
- recommendations: 7.0.0
- related_resources: 5.0.0-dev.0
- richdocuments: 11.1.0
- serverinfo: 6.0.0
- settings: 1.17.0
- suspicious_login: 12.0.0-dev.0
- text: 8.0.0
- theming: 2.9.0
- twofactor_backupcodes: 1.23.0
- twofactor_totp: 16.0.0
- twofactor_webauthn: 2.7.0
- viewer: 7.0.0-dev.0
- weather_status: 1.14.0
- workflowengine: 2.16.0
Nextcloud Signing status
Technical information
=====================
The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
them.
Results
=======
- core
- INVALID_HASH
- core/js/mimetypelist.js
Raw output
==========
Array
(
[core] => Array
(
[INVALID_HASH] => Array
(
[core/js/mimetypelist.js] => Array
(
[expected] => cb945c6402e12d9e7d42d0359acf95a6e9a9b0c1f3bd8528f598a7fb1694e5ae34c80cf44ef6c8901eac1bfdd152de3315fc7eac007efee0f33f09ed3e518b6a
[current] => 6b290ba45e633706e1fe761ca21422053c113f17b2bb35f2351f2cf1c3b893aa543af6c594077ca213c755cfa0d002e22109bb1797bbadd8fb410ca839143e0e
)
)
)
)
Nextcloud Logs
[no app in context] Error: An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'state' in 'WHERE'
GET /ocs/v2.php/apps/dashboard/api/v2/widget-items?widgets%5B%5D=calendar
from 172.24.0.1 by [user] at Sep 2, 2026, 3:22:37 PM
[no app in context] Error: An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'state' in 'WHERE'
GET /ocs/v2.php/apps/dashboard/api/v2/widget-items?widgets%5B%5D=calendar
from 172.24.0.1 by [user] at Sep 2, 2026, 3:22:39 PM
[webdav] Error: An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'state' in 'WHERE'
PROPFIND /remote.php/dav/calendars/[user]/
from 172.24.0.1 by [user] at Sep 2, 2026, 3:22:43 PM
[no app in context] Error: Uncaught exception
PROPFIND /remote.php/dav/calendars/[user]/
from 172.24.0.1 by [user] at Sep 2, 2026, 3:22:43 PM
Additional info
The database is 12.3.3-MariaDB-ubu2404, which is above the version supported by Nextcloud. If this is outside the scope of development and this bug report needs to be closed as a result, I understand.
Running via Docker, not using the all-in-one container
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the logged dashboard calendar request and the WebDAV PROPFIND request, then inspect the database schema and the activated Calendar and DAV app versions. Determine why the queries reference the missing state column and reproduce the missing calendars in the web Calendar app or DAV connection. Done means the requests complete without the SQL error and previously created calendars are shown.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mariadb, php
- Domain
- api, backend, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100