Closed lord0gnome closed 1 day ago
The put request tries to create an event in the tasks calendar.
You should also have a personal calendar. Does it work if you create an event there?
The put request tries to create an event in the tasks calendar.
You should also have a personal calendar. Does it work if you create an event there?
Do you mean that you can't create in one Calendar file a Task event at same time that a Calendar event? You can't have together Tasks and Events into de same Calendar?
I have the same problem
You are both correct. I was trying to add an event in the tasks calendar. It works just fine when I use a calendar created inside of the calendar app. Thank you. :)
You can also do it by adding in MySQL data base on the table "oc_calendars" inside the value of "components" the instruction VTODO or VEVENT depending on which is missing.
I've re-opened this because even on events created within the calendars app, I am getting the same error in my logs. I have not yet identified the cause.
I'm having the same problem.
Edit: I've solved it, I went to the calendar settings and changed the default calendar to one created within the app!
The workarounds mentioned are not working for me. Multiple users having the same problem. Calenders not syncing anymore and creating new calender events in the calendar app results in errors...
Currenly on Nextcloud 29.01.
What I tried so far:
Does anyone have a failing ics for me please? You can extract it from the network tab in your browser console
Erroring code is here: https://github.com/sabre-io/dav/blob/master/lib/CalDAV/Plugin.php#L819C1-L841C10
I'm having the same problem.
Edit: I've solved it, I went to the calendar settings and changed the default calendar to one created within the app!
Thanks, this worked for me! Couldn't figure out how to set the default, so I updated the database entry for my preferred calendar to be -1
instead of 0
to default to it.
In my case, an additional error appeared in the logs when I accidentally tried to change the calendar order:
{
"reqId": "DxCPM2xVnT0byqkUixKi",
"level": 3,
"time": "2024-06-04T13:57:22+00:00",
"remoteAddr": "189.225.36.0",
"user": "admin",
"app": "webdav",
"method": "PROPPATCH",
"url": "/remote.php/dav/calendars/admin/aufgaben/",
"message": "An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_at' in 'field list'",
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36",
"version": "29.0.1.1",
"exception": {
"Exception": "OC\\DB\\Exceptions\\DbalException",
"Message": "An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_at' in 'field list'",
"Code": 1054,
"Trace": [
{
<...>
"File": "/var/www/html/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php",
"Line": 130
}
]
},
"message": "An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_at' in 'field list'",
"exception": [],
"CustomMessage": "An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_at' in 'field list'"
},
"id": "665f1d4bdfdec"
When I created the created_at
column in the oc_calendarchanges
table, I was immediately able to change the calendar order and create new appointments in the calendar app. Additionally, CalDAV sync is now working properly again.
SQL command to create the missing column:
ALTER TABLE `oc_calendarchanges` ADD `created_at` INT(11) NULL DEFAULT '0' ;
The migration for oc_calendarchanges.created_at was part of https://github.com/nextcloud/server/pull/44075. Is oc_addressbookchanges.created_at also missing and do you see "1025Date20240308063933" in oc_miagrations?
The migration for oc_calendarchanges.created_at was part of #44075. Is oc_addressbookchanges.created_at also missing and do you see "1025Date20240308063933" in oc_miagrations?
Thank you @kesselb. Indeed oc_addressbookchanges.created_at
was also missing and I added it manually now.
There is no entry 1025Date20240308063933
listed in oc_migrations
.
I worked a bit on this issue and there are now 3 fixes/improvements to prevent this situation in the future:
⚠️ This issue respects the following points: ⚠️
Bug description
I have installed both the Tasks app, and the Calendar app, versions of both are: Tasks: 0.15.0 Calendar 4.7.4
I cannot create new events from the calendar app. (From tasks app it works just fine)
Steps to reproduce
Expected behavior
I would expect it not to throw an error when I try to create a new calendar event.
Installation method
Community Manual installation with Archive
Nextcloud Server version
29
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Apache (supported)
Database engine version
MySQL
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
PUT https://mycloud.tld/remote.php/dav/calendars/UID/tasks/8ABB8456-7E73-4FDC-A278-200DF6C9A971.ics 403 (Forbidden)