Cannot create or update event with attendee

Hi,

Creating events with attendees is not possible on our instance. I opened an issue which was closed with the comment that this seems to be a configuration issue. Has anyone got an idea?

Steps to reproduce

  1. Create an event
  2. Write a username into Attendee and add them
  3. Click Save/Update

Expected behaviour

The event should be saved and visible for creator and attendee.

Actual behaviour

The update indicator is spinning indefinitely. Browser console throws error (see below). After reload, the event is not visible/updated.

Calendar app

Calendar app version: 2.0.3

CalDAV-clients used: -

Client configuration

Browser: 68.7.0esr, fresh profile without modification (user tested on another Firefox and Ungoogled Chrome as well)

Operating system: Debian 10

Server configuration

Operating system: Debian 10

Web server: nginx

Database: MariaDB

PHP version: 7.0.3

Nextcloud Version: 18.0.3

Updated from an older installed version or fresh install: First install NC 17

List of activated apps:

  • accessibility: 1.4.0
  • activity: 2.11.0
  • apporder: 0.9.0
  • calendar: 2.0.3
  • cloud_federation_api: 1.1.0
  • comments: 1.8.0
  • contacts: 3.3.0
  • dav: 1.14.0
  • documentserver_community: 0.1.5
  • federatedfilesharing: 1.8.0
  • federation: 1.8.0
  • files: 1.13.1
  • files_pdfviewer: 1.7.0
  • files_rightclick: 0.15.2
  • files_sharing: 1.10.1
  • files_trashbin: 1.8.0
  • files_versions: 1.11.0
  • files_videoplayer: 1.7.0
  • groupfolders: 6.0.5
  • logreader: 2.3.0
  • lookup_server_connector: 1.6.0
  • notifications: 2.6.0
  • oauth2: 1.6.0
  • onlyoffice: 4.1.4
  • password_policy: 1.8.0
  • privacy: 1.2.0
  • provisioning_api: 1.8.0
  • recommendations: 0.6.0
  • serverinfo: 1.8.0
  • settings: 1.0.0
  • sharebymail: 1.8.0
  • systemtags: 1.8.0
  • text: 2.0.0
  • theming: 1.9.0
  • twofactor_backupcodes: 1.7.0
  • updatenotification: 1.8.0
  • viewer: 1.2.0
  • workflowengine: 2.0.0

Nextcloud configuration:

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost",
            "XXXXX"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "18.0.3.0",
        "overwrite.cli.url": "https:\/\/XXXXX",
        "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,
        "activity_expire_days": 7,
        "skeletondirectory": "",
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpauth": 1,
        "mail_smtpsecure": "tls",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "theme": "",
        "loglevel": 2,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "defaultapp": "apporder"
    }
}

Logs

Web server error log (e.g. /var/log/apache)

Relevant line on update attempt:

XXXX::XXXX - - [20/Apr/2020:11:30:38 +0000] "PUT /remote.php/dav/calendars/XXX/personal/99B05407-661F-4A96-9783-D9EB457D718D.ics HTTP/2.0" 404 0 "-" "Mozilla/5.0 (X11; Linux i686; rv:68.0) Gecko/20100101 Firefox/68.0"

Log file (data/nextcloud.log)

No logs created for this event

Browser log

Console
JQMIGRATE: Migrate is installed, version 1.4.1 main.js:566:531
Proxying an event bus of version 1.1.2 with 0.2.1 notifications.js:21:13435
Handlebars is deprecated: please ship your own, this will be removed in Nextcloud 20 main.js:1082:57
Initial settings: 
Object { appVersion: "2.0.3", eventLimit: true, firstRun: true, showWeekends: true, showWeekNumbers: false, skipPopover: false, slotDuration: "00:30:00", talkEnabled: false, timezone: "automatic" }
calendar.js:2:2964570
[DEBUG] calendar: The calendar app is using version 2.2019c of the timezone database 
Object { app: "calendar", uid: "authenticated:XXX" }
calendar.js:2:2029245
falling back to english locale calendar.js:2:2665007
Fallback to locale en calendar.js:2:2653882
[DEBUG] calendar: Current user principal is /remote.php/dav/principals/users/XXX/ 
Object { app: "calendar", uid: "authenticated:XXX" }
calendar.js:2:2029245
Content Security Policy: Ignoring ‘x-frame-options’ because of ‘frame-ancestors’ directive.
Source map error: TypeError: NetworkError when attempting to fetch resource.
Resource URL: https://XXXXX/apps/notifications/js/notifications.js?v=7276145f-15
Source Map URL: notifications.js.map
Source map error: TypeError: NetworkError when attempting to fetch resource.
Resource URL: https://XXXXX/core/js/dist/main.js?v=7276145f-15
Source Map URL: main.js.map
Source map error: TypeError: NetworkError when attempting to fetch resource.
Resource URL: https://XXXXX/apps/calendar/js/calendar.js?v=7276145f-15
Source Map URL: calendar.js.map
NONE calendar.js:2:2860623
########## at this point hitting "Update" with the attendee
Error: ""
    D https://XXXXX/apps/calendar/js/calendar.js?v=7276145f-15:2
    r https://XXXXX/apps/calendar/js/calendar.js?v=7276145f-15:2
    t https://XXXXX/apps/calendar/js/calendar.js?v=7276145f-15:2
    t https://XXXXX/apps/calendar/js/calendar.js?v=7276145f-15:2
    t https://XXXXX/apps/calendar/js/calendar.js?v=7276145f-15:2
    onreadystatechange https://XXXXX/apps/calendar/js/calendar.js?v=7276145f-15:2
calendar.js:2:229968
    ze https://XXXXX/apps/calendar/js/calendar.js?v=7276145f-15:2
    Qe https://XXXXX/apps/calendar/js/calendar.js?v=7276145f-15:2
    Ge https://XXXXX/apps/calendar/js/calendar.js?v=7276145f-15:2
    Ze https://XXXXX/apps/calendar/js/calendar.js?v=7276145f-15:2
    _ https://XXXXX/apps/calendar/js/calendar.js?v=7276145f-15:2
    _ https://XXXXX/apps/calendar/js/calendar.js?v=7276145f-15:2
    l https://XXXXX/apps/calendar/js/calendar.js?v=7276145f-15:2
Source map error: TypeError: NetworkError when attempting to fetch resource.
Resource URL: https://XXXXX/apps/notifications/js/notifications.js?v=7276145f-15
Source Map URL: notifications.js.map
Source map error: TypeError: NetworkError when attempting to fetch resource.
Resource URL: https://XXXXX/core/js/dist/main.js?v=7276145f-15
Source Map URL: main.js.map
Source map error: TypeError: NetworkError when attempting to fetch resource.
Resource URL: https://XXXXX/apps/files_videoplayer/js/main.js?v=7276145f-15
Source Map URL: main.js.map
Source map error: TypeError: NetworkError when attempting to fetch resource.
Resource URL: https://XXXXX/apps/calendar/js/calendar.js?v=7276145f-15
Source Map URL: calendar.js.map
Network

Sent request:

PUT /remote.php/dav/calendars/XXX/personal/99B05407-661F-4A96-9783-D9EB457D718D.ics HTTP/1.1
Host: XXXXX
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:68.0) Gecko/20100101 Firefox/68.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
X-Requested-With: XMLHttpRequest
requesttoken: XXXX
Depth: 0
Content-Type: application/xml; charset=utf-8
X-NC-CalDAV-Webcal-Caching: On
If-Match: "XXXX"
Content-Length: 565
DNT: 1
Connection: keep-alive
Cookie: __Host-nc_sameSiteCookielax=true; __Host-nc_sameSiteCookiestrict=true; XX=XX; oc_sessionPassphrase=XXXXXXXXX

Response:

HTTP/2.0 404 Not Found
server: nginx/1.14.2
date: Mon, 20 Apr 2020 11:40:35 GMT
content-type: text/html; charset=UTF-8
location: https://XXXXX/
expires: Thu, 19 Nov 1981 08:52:00 GMT
cache-control: no-store, no-cache, must-revalidate
pragma: no-cache
content-security-policy: default-src 'self'; script-src 'self' 'nonce-XXXXX'; style-src 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:; media-src *; connect-src *; object-src 'none'; base-uri 'self';
strict-transport-security: max-age=31536000; includeSubDomains
x-frame-options: SAMEORIGIN
X-Firefox-Spdy: h2
1 Like

Same issue with Calendar app version: 2.0.4
Any idea?

1 Like

Sorry, it is my first time in this forum, I have no seen you have answered to the previous message. Yes, it is because of user name (I had spaces), I created another users with no spaces and it worked.

Thank you!

1 Like

I have the same issue, see Error updating event participation by invited attendees in calendar. Usernames have no spaces!