Die Benachrichtigung aus Nextclud/Kalender/Event funktioniert nicht und wirft einen Fehler:
cron-job ist eingetragen:
*/5 * * * * php -f /var/www/html/nextcloud/occ dav:send-event-reminders
occ-caomand ausgeführt (als apache):
sudo -u apache php occ config:app:set dav sendEventRemindersMode --value occ
Fehler:
From apache@tplkdesk.tplk.loc Mon Aug 31 14:25:02 2020
Return-Path: apache@tplkdesk.tplk.loc
X-Original-To: apache
Delivered-To: apache@tplkdesk.tplk.loc
From: “(Cron Daemon)” apache@tplkdesk.tplk.loc
To: apache@tplkdesk.tplk.loc
Subject: Cron apache@tplkdesk php -f /var/www/html/nextcloud/occ dav:send-event-reminders
Content-Type: text/plain; charset=UTF-8
Auto-Submitted: auto-generated
Precedence: bulk
X-Cron-Env: <XDG_SESSION_ID=17212>
X-Cron-Env: <XDG_RUNTIME_DIR=/run/user/48>
X-Cron-Env: <LANG=de_DE.UTF-8>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/usr/share/httpd>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=apache>
X-Cron-Env: <USER=apache>
Date: Mon, 31 Aug 2020 14:25:02 +0200 (CEST)
Status: R
An unhandled exception has been thrown:
TypeError: Argument 2 passed to OCA\Circles\Db\CirclesRequest::getCircle() must be of the type string, null given, called in /var/www/html/nextcloud/apps/circles/lib/Se
rvice/CirclesService.php on line 271 and defined in /var/www/html/nextcloud/apps/circles/lib/Db/CirclesRequest.php:192
Stack trace:
#0 /var/www/html/nextcloud/apps/circles/lib/Service/CirclesService.php(271): OCA\Circles\Db\CirclesRequest->getCircle(‘36c9bf2e53b322’, NULL, 1, ‘’, true)
#1 /var/www/html/nextcloud/apps/circles/lib/Api/v1/Circles.php(266): OCA\Circles\Service\CirclesService->detailsCircle(‘36c9bf2e53b322’, true)
#2 /var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Principal.php(480): OCA\Circles\Api\v1\Circles::detailsCircle(‘36c9bf2e53b322’, true)
#3 /var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Principal.php(178): OCA\DAV\Connector\Sabre\Principal->circleToPrincipal(‘36c9bf2e53b322’)
#4 /var/www/html/nextcloud/apps/dav/lib/DAV/Sharing/Backend.php(200): OCA\DAV\Connector\Sabre\Principal->getPrincipalByPath(‘principals/circ…’)
#5 /var/www/html/nextcloud/apps/dav/lib/CalDAV/CalDavBackend.php(2316): OCA\DAV\DAV\Sharing\Backend->getShares(171)
#6 /var/www/html/nextcloud/apps/dav/lib/CalDAV/Reminder/ReminderService.php(496): OCA\DAV\CalDAV\CalDavBackend->getShares(171)
#7 /var/www/html/nextcloud/apps/dav/lib/CalDAV/Reminder/ReminderService.php(142): OCA\DAV\CalDAV\Reminder\ReminderService->getAllUsersWithWriteAccessToCalendar(171)
#8 /var/www/html/nextcloud/apps/dav/lib/Command/SendEventReminders.php(83): OCA\DAV\CalDAV\Reminder\ReminderService->processReminders()
#9 /var/www/html/nextcloud/3rdparty/symfony/console/Command/Command.php(255): OCA\DAV\Command\SendEventReminders->execute(Object(Symfony\Component\Console\Input\ArgvInp
ut), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /var/www/html/nextcloud/3rdparty/symfony/console/Application.php(1012): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvIn
put), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /var/www/html/nextcloud/3rdparty/symfony/console/Application.php(272): Symfony\Component\Console\Application->doRunCommand(Object(OCA\DAV\Command\SendEventReminders
), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /var/www/html/nextcloud/3rdparty/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput
), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /var/www/html/nextcloud/lib/private/Console/Application.php(215): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Obje
ct(Symfony\Component\Console\Output\ConsoleOutput))
#14 /var/www/html/nextcloud/console.php(100): OC\Console\Application->run()
#15 /var/www/html/nextcloud/occ(11): require_once(’/var/www/html/n…’)
#16 {main}
Das seht in nextcloud.log:
{“reqId”:“X0zt@obQZJyGmwPoTkiycwAAAAc”,“level”:4,“time”:“2020-08-31T12:32:58+00:00”,“remoteAddr”:“192.168.135.14”,“user”:“01E22247-90D0-41C6-BD5D-B8BBCE58A45A”,“app”:“webdav”,“method”:“PUT”,“url”:"/nextcloud/remote.php/dav/calendars/01E22247-90D0-41C6-BD5D-B8BBCE58A45A/covid/23BDF036-F113-4947-991D-C0929324D815.ics",“message”:{“Exception”:“Sabre\DAV\Exception\UnsupportedMediaType”,“Message”:“Validation error in iCalendar: The value type (DATE or DATE-TIME) must be identical for DUE and DTSTART”,“Code”:0,“Trace”:[{“file”:"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/CalDAV/Plugin.php",“line”:750,“function”:“validateICalendar”,“class”:“Sabre\CalDAV\Plugin”,“type”:"->",“args”:["*** sensitive parameter replaced "," sensitive parameter replaced ",false,{“class”:“Sabre\HTTP\Request”},{“class”:“Sabre\HTTP\Response”},false]},{“file”:"/var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",“line”:89,“function”:“beforeWriteContent”,“class”:“Sabre\CalDAV\Plugin”,“type”:"->",“args”:[" sensitive parameter replaced ",{“class”:“OCA\DAV\CalDAV\CalendarObject”}," sensitive parameter replaced ",false]},{“file”:"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",“line”:1139,“function”:“emit”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:[“beforeWriteContent”,[" sensitive parameter replaced ",{“class”:“OCA\DAV\CalDAV\CalendarObject”}," sensitive parameter replaced ",false]]},{“file”:"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",“line”:515,“function”:“updateFile”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:[" sensitive parameters replaced ***"]},{“file”:"/var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",“line”:89,“function”:“httpPut”,“class”:“Sabre\DAV\CorePlugin”,“type”:"->",“args”:[{“class”:“Sabre\HTTP\Request”},{“class”:“Sabre\HTTP\Response”}]},{“file”:"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",“line”:474,“function”:“emit”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:[“method:PUT”,[{“class”:“Sabre\HTTP\Request”},{“class”:“Sabre\HTTP\Response”}]]},{“file”:"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",“line”:251,“function”:“invokeMethod”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:[{“class”:“Sabre\HTTP\Request”},{“class”:“Sabre\HTTP\Response”}]},{“file”:"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",“line”:319,“function”:“start”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:[]},{“file”:"/var/www/html/nextcloud/apps/dav/lib/Server.php",“line”:320,“function”:“exec”,“class”:“Sabre\DAV\Server”,“type”:"->",“args”:[]},{“file”:"/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php",“line”:35,“function”:“exec”,“class”:“OCA\DAV\Server”,“type”:"->",“args”:[]},{“file”:"/var/www/html/nextcloud/remote.php",“line”:167,“args”:["/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php"],“function”:“require_once”}],“File”:"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/CalDAV/Plugin.php",“Line”:885,“CustomMessage”:"–"},“userAgent”:“okhttp/4.6.0”,“version”:“19.0.2.2”,“id”:“5f4cf0b47c99c”}
Ich habe jetzt den cron job und die ooc wieder zurückgestellt:
sudo -u apache php occ config:app:delete dav sendEventRemindersMode
Fehler bleibt, es werden keine reminder per Email verschickt!
SabreDav folgender Fehler sobald der trigger ansetzt um den Reminder per Email zu verschicken:
Sabre\DAV\Exception\UnsupportedMediaType: Validation error in iCalendar: The value type (DATE or DATE-TIME) must be identical for DUE and DTSTART
Oder:
TypeError: Argument 2 passed to OCA\Circles\Db\CirclesRequest::getCircle() must be of the type string, null given,