server icon indicating copy to clipboard operation
server copied to clipboard

[core] Error: InvalidArgumentException: The given object id is invalid

Open junglira opened this issue 6 years ago • 1 comments

Steps to reproduce

Have calendar events with reminders

Expected behaviour

To recieve reminders and not have log filled up with errors

Actual behaviour

Calendar reminders are not triggered and instead a log is generated on every cron run

Server configuration detail

Operating system: Linux 4.19.75-v7l+ #1270 SMP Tue Sep 24 18:51:41 BST 2019 armv7l

Webserver: Apache/2.4.38 (Raspbian) (fpm-fcgi)

Database: mysql 10.3.17

PHP version:

7.3.11-1~deb10u1 Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, sodium, standard, cgi-fcgi, mysqlnd, PDO, xml, apcu, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, intl, json, exif, mysqli, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, apc, posix, pspell, readline, redis, shmop, SimpleXML, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, wikidiff2, xmlreader, xmlwriter, xsl, zip, Phar, Zend OPcache

Nextcloud version: 17.0.2 - 17.0.2.1

Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from: unknown

Signing status

Array ( )

List of activated apps
Enabled:
 - activity: 2.10.1
 - apporder: 0.9.0
 - bookmarks: 2.3.4
 - bruteforcesettings: 1.4.0
 - calendar: 1.7.1
 - checksum: 0.4.3
 - cloud_federation_api: 1.0.0
 - comments: 1.7.0
 - contacts: 3.1.6
 - cookbook: 0.5.7
 - dav: 1.13.0
 - deck: 0.7.0
 - external: 3.4.1
 - federatedfilesharing: 1.7.0
 - federation: 1.7.0
 - files: 1.12.0
 - files_accesscontrol: 1.7.0
 - files_automatedtagging: 1.7.0
 - files_pdfviewer: 1.6.0
 - files_rightclick: 0.15.1
 - files_sharing: 1.9.0
 - files_trashbin: 1.7.0
 - files_versions: 1.10.0
 - files_videoplayer: 1.6.0
 - firstrunwizard: 2.6.0
 - gallery: 18.4.0
 - groupfolders: 5.0.5
 - issuetemplate: 0.6.0
 - keeporsweep: 0.2.1
 - logreader: 2.2.0
 - lookup_server_connector: 1.5.0
 - mail: 0.21.1
 - maps: 0.1.2
 - metadata: 0.10.0
 - news: 14.1.0
 - nextbackup: 19.12.1
 - nextcloud_announcements: 1.6.0
 - notes: 3.1.1
 - notifications: 2.5.0
 - oauth2: 1.5.0
 - password_policy: 1.7.0
 - privacy: 1.1.0
 - provisioning_api: 1.7.0
 - recommendations: 0.5.0
 - serverinfo: 1.7.0
 - sharebymail: 1.7.0
 - social: 0.2.101
 - spreed: 7.0.2
 - support: 1.0.1
 - survey_client: 1.5.0
 - systemtags: 1.7.0
 - tasks: 0.11.3
 - text: 1.1.1
 - theming: 1.8.0
 - timetracker: 0.0.39
 - twofactor_backupcodes: 1.6.0
 - twofactor_totp: 4.1.2
 - twofactor_u2f: 5.0.2
 - updatenotification: 1.7.0
 - viewer: 1.2.0
 - weather: 1.6.4
 - workflowengine: 1.7.0
Disabled:
 - accessibility
 - admin_audit
 - announcementcenter
 - encryption
 - files_external
 - theming_customcss
 - unsplash
 - user_ldap

Configuration (config/config.php)
{
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "paracosm.ddns.net"
    ],
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "dbtype": "mysql",
    "version": "17.0.2.1",
    "overwrite.cli.url": "https:\/\/paracosm.ddns.net\/nextcloud",
    "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,
    "maintenance": false,
    "twofactor_enforced": "false",
    "twofactor_enforced_groups": [
        "admin"
    ],
    "twofactor_enforced_excluded_groups": [],
    "mail_smtpmode": "smtp",
    "mail_smtpsecure": "ssl",
    "mail_sendmailmode": "smtp",
    "memcache.local": "\\OC\\Memcache\\APCu"
}

Are you using external storage, if yes which one: local/smb/sftp/...

Are you using encryption:

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...

Client configuration

Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0

Operating system: Windows 10

Logs

Web server error log

Nextcloud log
{"reqId":"vkGTMvNA6KqX8A0wGeTn","level":3,"time":"2020-01-09T17:39:05+00:00","remoteAddr":"50.196.215.130","user":"dberggren","app":"PHP","method":"POST","url":"\/nextcloud\/index.php\/apps\/issuetemplate\/render","message":"Undefined index: client-detail at \/var\/www\/html\/nextcloud\/apps\/issuetemplate\/lib\/Detail.php#59","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko\/20100101 Firefox\/72.0","version":"17.0.2.1"}
{"reqId":"vkGTMvNA6KqX8A0wGeTn","level":3,"time":"2020-01-09T17:39:05+00:00","remoteAddr":"50.196.215.130","user":"dberggren","app":"PHP","method":"POST","url":"\/nextcloud\/index.php\/apps\/issuetemplate\/render","message":"Undefined index: client-detail at \/var\/www\/html\/nextcloud\/apps\/issuetemplate\/lib\/Detail.php#59","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko\/20100101 Firefox\/72.0","version":"17.0.2.1"}
{"reqId":"vkGTMvNA6KqX8A0wGeTn","level":3,"time":"2020-01-09T17:39:05+00:00","remoteAddr":"50.196.215.130","user":"dberggren","app":"PHP","method":"POST","url":"\/nextcloud\/index.php\/apps\/issuetemplate\/render","message":"Undefined index: log-detail at \/var\/www\/html\/nextcloud\/apps\/issuetemplate\/lib\/Detail.php#59","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko\/20100101 Firefox\/72.0","version":"17.0.2.1"}
{"reqId":"vkGTMvNA6KqX8A0wGeTn","level":3,"time":"2020-01-09T17:39:05+00:00","remoteAddr":"50.196.215.130","user":"dberggren","app":"PHP","method":"POST","url":"\/nextcloud\/index.php\/apps\/issuetemplate\/render","message":"Undefined index: log-detail at \/var\/www\/html\/nextcloud\/apps\/issuetemplate\/lib\/Detail.php#59","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko\/20100101 Firefox\/72.0","version":"17.0.2.1"}
{"reqId":"vkGTMvNA6KqX8A0wGeTn","level":3,"time":"2020-01-09T17:39:05+00:00","remoteAddr":"50.196.215.130","user":"dberggren","app":"PHP","method":"POST","url":"\/nextcloud\/index.php\/apps\/issuetemplate\/render","message":"Undefined index: log-detail at \/var\/www\/html\/nextcloud\/apps\/issuetemplate\/lib\/Detail.php#59","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko\/20100101 Firefox\/72.0","version":"17.0.2.1"}
{"reqId":"GpV3M3A5SKbNaDr3Lfc8","level":3,"time":"2020-01-09T17:39:12+00:00","remoteAddr":"50.196.215.130","user":"dberggren","app":"PHP","method":"POST","url":"\/nextcloud\/index.php\/apps\/issuetemplate\/render","message":"Undefined index: log-detail at \/var\/www\/html\/nextcloud\/apps\/issuetemplate\/lib\/Detail.php#59","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko\/20100101 Firefox\/72.0","version":"17.0.2.1"}
{"reqId":"GpV3M3A5SKbNaDr3Lfc8","level":3,"time":"2020-01-09T17:39:12+00:00","remoteAddr":"50.196.215.130","user":"dberggren","app":"PHP","method":"POST","url":"\/nextcloud\/index.php\/apps\/issuetemplate\/render","message":"Undefined index: log-detail at \/var\/www\/html\/nextcloud\/apps\/issuetemplate\/lib\/Detail.php#59","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko\/20100101 Firefox\/72.0","version":"17.0.2.1"}
{"reqId":"GpV3M3A5SKbNaDr3Lfc8","level":3,"time":"2020-01-09T17:39:12+00:00","remoteAddr":"50.196.215.130","user":"dberggren","app":"PHP","method":"POST","url":"\/nextcloud\/index.php\/apps\/issuetemplate\/render","message":"Undefined index: log-detail at \/var\/www\/html\/nextcloud\/apps\/issuetemplate\/lib\/Detail.php#59","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko\/20100101 Firefox\/72.0","version":"17.0.2.1"}
{"reqId":"OOkpEqI6AZx9soORWRfc","level":3,"time":"2020-01-09T17:39:45+00:00","remoteAddr":"50.196.215.130","user":"dberggren","app":"PHP","method":"POST","url":"\/nextcloud\/index.php\/apps\/issuetemplate\/render","message":"Undefined index: log-detail at \/var\/www\/html\/nextcloud\/apps\/issuetemplate\/lib\/Detail.php#59","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko\/20100101 Firefox\/72.0","version":"17.0.2.1"}
{"reqId":"OOkpEqI6AZx9soORWRfc","level":3,"time":"2020-01-09T17:39:45+00:00","remoteAddr":"50.196.215.130","user":"dberggren","app":"PHP","method":"POST","url":"\/nextcloud\/index.php\/apps\/issuetemplate\/render","message":"Undefined index: log-detail at \/var\/www\/html\/nextcloud\/apps\/issuetemplate\/lib\/Detail.php#59","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko\/20100101 Firefox\/72.0","version":"17.0.2.1"}
{"reqId":"OOkpEqI6AZx9soORWRfc","level":3,"time":"2020-01-09T17:39:45+00:00","remoteAddr":"50.196.215.130","user":"dberggren","app":"PHP","method":"POST","url":"\/nextcloud\/index.php\/apps\/issuetemplate\/render","message":"Undefined index: log-detail at \/var\/www\/html\/nextcloud\/apps\/issuetemplate\/lib\/Detail.php#59","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko\/20100101 Firefox\/72.0","version":"17.0.2.1"}
{"reqId":"nj6xAD80wG2Mnw43j5Pi","level":3,"time":"2020-01-09T17:39:46+00:00","remoteAddr":"50.196.215.130","user":"dberggren","app":"PHP","method":"POST","url":"\/nextcloud\/index.php\/apps\/issuetemplate\/render","message":"Undefined index: log-detail at \/var\/www\/html\/nextcloud\/apps\/issuetemplate\/lib\/Detail.php#59","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko\/20100101 Firefox\/72.0","version":"17.0.2.1"}
{"reqId":"nj6xAD80wG2Mnw43j5Pi","level":3,"time":"2020-01-09T17:39:46+00:00","remoteAddr":"50.196.215.130","user":"dberggren","app":"PHP","method":"POST","url":"\/nextcloud\/index.php\/apps\/issuetemplate\/render","message":"Undefined index: log-detail at \/var\/www\/html\/nextcloud\/apps\/issuetemplate\/lib\/Detail.php#59","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko\/20100101 Firefox\/72.0","version":"17.0.2.1"}
{"reqId":"nj6xAD80wG2Mnw43j5Pi","level":3,"time":"2020-01-09T17:39:46+00:00","remoteAddr":"50.196.215.130","user":"dberggren","app":"PHP","method":"POST","url":"\/nextcloud\/index.php\/apps\/issuetemplate\/render","message":"Undefined index: log-detail at \/var\/www\/html\/nextcloud\/apps\/issuetemplate\/lib\/Detail.php#59","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko\/20100101 Firefox\/72.0","version":"17.0.2.1"}
{"reqId":"mF0eJ2SkCyHYYOfFFKrK","level":3,"time":"2020-01-09T17:40:10+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":{"Exception":"InvalidArgumentException","Message":"The given object id is invalid","Code":0,"Trace":[{"file":"\/var\/www\/html\/nextcloud\/apps\/dav\/lib\/CalDAV\/Reminder\/NotificationProvider\/PushProvider.php","line":99,"function":"setObject","class":"OC\\Notification\\Notification","type":"->","args":["dav","040000008200E00074C5B7101A82E008000000005026064CAFC4D501000000000000000010000000D258EF9D0005FD45AA9103C4CD0B13E6"]},{"file":"\/var\/www\/html\/nextcloud\/apps\/dav\/lib\/CalDAV\/Reminder\/ReminderService.php","line":139,"function":"send","class":"OCA\\DAV\\CalDAV\\Reminder\\NotificationProvider\\PushProvider","type":"->","args":[{"name":"VEVENT","parent":{"name":"VCALENDAR","parent":null,"__class__":"Sabre\\VObject\\Component\\VCalendar"},"__class__":"Sabre\\VObject\\Component\\VEvent"},"Main",[{"__class__":"OC\\User\\User"}]]},{"file":"\/var\/www\/html\/nextcloud\/apps\/dav\/lib\/BackgroundJob\/EventReminderJob.php","line":62,"function":"processReminders","class":"OCA\\DAV\\CalDAV\\Reminder\\ReminderService","type":"->","args":[]},{"file":"\/var\/www\/html\/nextcloud\/lib\/private\/BackgroundJob\/Job.php","line":61,"function":"run","class":"OCA\\DAV\\BackgroundJob\\EventReminderJob","type":"->","args":[null]},{"file":"\/var\/www\/html\/nextcloud\/lib\/private\/BackgroundJob\/TimedJob.php","line":55,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"},{"__class__":"OC\\Log"}]},{"file":"\/var\/www\/html\/nextcloud\/cron.php","line":124,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","type":"->","args":[{"__class__":"OC\\BackgroundJob\\JobList"},{"__class__":"OC\\Log"}]}],"File":"\/var\/www\/html\/nextcloud\/lib\/private\/Notification\/Notification.php","Line":206,"CustomMessage":"Error while running background job (class: OCA\\DAV\\BackgroundJob\\EventReminderJob, arguments: )"},"userAgent":"--","version":"17.0.2.1"}

Browser log

junglira avatar Jan 09 '20 17:01 junglira

Please have a look at this other report https://github.com/nextcloud/server/issues/18688. Thanks for reporting :+1:

kesselb avatar Jan 09 '20 17:01 kesselb