Baikal
Baikal copied to clipboard
Lightning Error 80004005
I can create entries manually but whenever I accept an invitation using Lightning I receive a 80004005 error and the event is not created. I've searched the web and tried a few solutions with no success. Has anyone else experienced this that might have a solution?
Please fill out the issue template. If you have deleted it, you can find it again here: https://github.com/sabre-io/Baikal/blob/master/.github/ISSUE_TEMPLATE/bug_report.md
Do you have logs about that error, from Lightning and baikal?
I've done a bit more investigation and I'm thinking it might be more of a lightning issue but can't be sure. The Thunderbird error console shows CalDAV:Unexpected status adding item and then shows an error Assert failed: error on iTIP processing. Sometimes the invite is accepted correctly so it's as if Lightning is seeing the event on the calendar before it's fully written to the calendar. I'm on a shared host and have not seen an error through Cpanel but I also haven't located the Baikal log file. I just sent three meeting requests through our CRM software and two were accepted but the third failed.
To be honest, it is pretty hard to help if you are not able to access logs. Baikal logs to the normal apache/nginx error logs, which are often accessible even when using a shared host.
Baikal version 0.8.0 Expected behaviour: Lightning is able to correctly save the invitation. Current behaviour: Lightning can't save the invitation, and gets a 405 error.
Lightning logs:
Empty string passed to getElementById(). browser-custom-element.js:411:22
Lightning: iTIP method: REQUEST calItipUtils.jsm:193
Lightning: iTIP on REQUEST: no existing items. calItipUtils.jsm:1958
Lightning: iTIP operations: 1 calItipUtils.jsm:2019
Lightning: iTIP options on: REQUEST calItipUtils.jsm:371
Lightning: iTIP method: REQUEST calItipUtils.jsm:193
Layout was forced before the page was fully loaded. If stylesheets are not yet loaded this may cause a flash of unstyled content. contentAreaClick.js:82:6
Lightning: iTIP on REQUEST: no existing items. calItipUtils.jsm:1958
Lightning: iTIP operations: 1 calItipUtils.jsm:2019
Lightning: iTIP options on: REQUEST calItipUtils.jsm:371
Lightning: CalDAV: itemUri.spec = https://caldav.blackstar.nl/cal.php/calendars/bas.vermeulen/…UID%3A20210528T174058Z-%40synaps-web-54ff4cb96b-qdmxk%0A.ics CalDavCalendar.jsm:594
Lightning:
CalDAV: send: BEGIN:VCALENDAR
PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN
VERSION:2.0
BEGIN:VEVENT
LAST-MODIFIED:20210531T054958Z
DTSTAMP:20210531T054958Z
UID:UID:20210528T174058Z-@synaps-web-54ff4cb96b-qdmxk\n
SUMMARY:Afspraakbevestiging
ATTENDEE;CN=Name Redacted;PARTSTAT=ACCEPTED;ROLE=REQ-PARTICIPANT:mailto
:[email protected]
DTSTART:20210704T114500
DTEND:20210704T115000
DESCRIPTION:<html><body>\nbody redacted\n</body></html>\n
X-MOZ-RECEIVED-SEQUENCE:0
X-MOZ-RECEIVED-DTSTAMP:20210528T133230Z
END:VEVENT
END:VCALENDAR
CalDavCalendar.jsm:2367
Lightning:
CalDAV: send (PUT https://caldav.blackstar.nl/cal.php/calendars/bas.vermeulen/default/UID%3A20210528T174058Z-%40synaps-web-54ff4cb96b-qdmxk%0A.ics): BEGIN:VCALENDAR
PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN
VERSION:2.0
BEGIN:VEVENT
LAST-MODIFIED:20210531T054958Z
DTSTAMP:20210531T054958Z
UID:UID:20210528T174058Z-@synaps-web-54ff4cb96b-qdmxk\n
SUMMARY:Afspraakbevestiging
ATTENDEE;CN=Name Redacted;PARTSTAT=ACCEPTED;ROLE=REQ-PARTICIPANT:mailto
:[email protected]
DTSTART:20210704T114500
DTEND:20210704T115000
DESCRIPTION:<html><body>\nbody redacted…
CalDavRequest.jsm:121
PUThttps://caldav.blackstar.nl/cal.php/calendars/bas.vermeulen/default/UID%3A20210528T174058Z-%40synaps-web-54ff4cb96b-qdmxk%0A.ics
[HTTP/2 405 Method Not Allowed 9ms]
Lightning: CalDAV: recv: <html>
<head><title>405 Not Allowed</title></head>
<body bgcolor="white">
<center><h1>405 Not Allowed</h1></center>
<hr><center>nginx/1.14.1</center>
</body>
</html>
CalDavRequest.jsm:140
Lightning:
CalDAV: Unexpected status adding item to Blackstar Embedded Services: 405
BEGIN:VCALENDAR
PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN
VERSION:2.0
BEGIN:VEVENT
LAST-MODIFIED:20210531T054958Z
DTSTAMP:20210531T054958Z
UID:UID:20210528T174058Z-@synaps-web-54ff4cb96b-qdmxk\n
SUMMARY:Afspraakbevestiging
ATTENDEE;CN=Name Redacted;PARTSTAT=ACCEPTED;ROLE=REQ-PARTICIPANT:mailto
:[email protected]
DTSTART:20210704T114500
DTEND:20210704T115000
DESCRIPTION:<html><body>\nbody redacted…
CalDavCalendar.jsm:631
Assert failed: error on iTIP processing
calUtils.jsm:140
ASSERT resource:///modules/calendar/calUtils.jsm:140
onOperationComplete resource:///modules/calendar/utils/calItipUtils.jsm:1538
onOperationComplete resource:///components/calCachedCalendar.js:762
notifyPureOperationComplete resource:///modules/calendar/utils/calProviderUtils.jsm:551
notifyListener resource:///modules/CalDavCalendar.jsm:573
doAdoptItem resource:///modules/CalDavCalendar.jsm:650
nginx error log is empty, access log has the following:
2a10:3781:1f:1:2cc5:504d:ee92:38f6 - - [31/May/2021:07:38:17 +0200] "PUT /cal.php/calendars/bas.vermeulen/default/UID%3A20210528T174058Z-%40synaps-web-54ff4cb96b-qdmxk%0A.ics HTTP/2.0" 405 173 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1"
2a10:3781:1f:1:2cc5:504d:ee92:38f6 - - [31/May/2021:07:40:04 +0200] "PUT /cal.php/calendars/bas.vermeulen/default/UID%3A20210528T174058Z-%40synaps-web-54ff4cb96b-qdmxk%0A.ics HTTP/2.0" 405 173 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1"
2a10:3781:1f:1:2cc5:504d:ee92:38f6 - - [31/May/2021:07:41:05 +0200] "PUT /cal.php/calendars/bvermeul/default/522c2af8-d96d-4a69-8a03-eb4b404b0256.ics HTTP/2.0" 201 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1"
2a10:3781:1f:1:2cc5:504d:ee92:38f6 - - [31/May/2021:07:41:05 +0200] "REPORT /cal.php/calendars/bvermeul/default/ HTTP/2.0" 207 1222 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1"
2a10:3781:1f:1:2cc5:504d:ee92:38f6 - - [31/May/2021:07:41:16 +0200] "DELETE /cal.php/calendars/bvermeul/default/522c2af8-d96d-4a69-8a03-eb4b404b0256.ics HTTP/2.0" 204 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1"
I'm guessing the %0A and %3A in the UID might be a problem?
Looks like your nginx generates the error page before Baikal even gets to see the request. What nginx config do you use?
I use the following configuration for nginx:
server {
listen 80;
listen [::]:80;
server_name caldav.blackstar.nl;
return 301 https://$server_name:443$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2 ipv6only=on;
server_name caldav.blackstar.nl;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
root /var/lib/sabredav/html;
index index.php;
access_log /var/log/nginx/caldav.blackstar.nl_access_log;
error_log /var/log/nginx/caldav.blackstar.nl_error_log;
rewrite ^/.well-known/caldav /dav.php redirect;
rewrite ^/.well-known/carddav /dav.php redirect;
charset utf-8;
location ~ /(\.ht|Core|Specific) {
deny all;
return 404;
}
location ~ ^(.+.php)(.*)$ {
try_files $fastcgi_script_name =404;
include /etc/nginx/fastcgi_params;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass php-fpm;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
}
Hmm... Sorry, I don't know why this happens.
I did some testing with nextcloud calendar to see if I received the same error in Thunderbird and I did. The same invites that failed using Baikal failed for Nextcloud. After some research I found a workaround which was to add the quoted printable format to a config file inside Nextcloud. Now no invites fail. I'm not sure if this helps or not but wanted to add it to the thread in case it does. My nextcloud install is local and ideally I'd prefer to use Baikal as I have it on a shared webhost.
Could you please share the config file you changed to enable quoted printable support ?
This looks like a configuration issue, not like a Baikal issue.