nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.5k stars 4.08k forks source link

Import of Calendar produces many log entries #26373

Closed CWBudde closed 3 years ago

CWBudde commented 3 years ago

How to use GitHub

Steps to reproduce

  1. Create a new calendar
  2. Import any (big) Calendar as .ics file
  3. Import takes ages and logs about one entry per item in the calendar

Expected behaviour

The import should be done in a couple of minutes

Actual behaviour

Currently, it takes ages and the log is flooded. The output reads:

Deprecated event type for \OCA\DAV\CalDAV\CalDavBackend::createCalendarObject: Symfony\Component\EventDispatcher\GenericEvent is used

Server configuration

Operating system: Ubuntu 20.04

Web server: Apache2

Database: MySQL 8.0

PHP version: 7.4

Nextcloud version: (see Nextcloud admin page) 21

Updated from an older Nextcloud/ownCloud or fresh install: Updated from 20

Where did you install Nextcloud from: Website

Signing status:

Signing status ``` No errors have been found. ```

List of activated apps:

App list ``` Enabled: - accessibility: 1.7.0 - activity: 2.14.3 - admin_audit: 1.11.0 - analytics: 3.4.1 - audioplayer: 3.1.0 - calendar: 2.2.0 - cloud_federation_api: 1.4.0 - comments: 1.11.0 - contacts: 3.5.1 - contactsinteraction: 1.2.0 - dashboard: 7.1.0 - dav: 1.17.1 - external: 3.8.1 - extract: 1.3.1 - federatedfilesharing: 1.11.0 - federation: 1.11.0 - files: 1.16.0 - files_antivirus: 3.2.0 - files_markdown: 2.3.3 - files_pdfviewer: 2.1.0 - files_rightclick: 1.0.0 - files_sharing: 1.13.1 - files_trashbin: 1.11.0 - files_versions: 1.14.0 - files_videoplayer: 1.10.0 - firstrunwizard: 2.10.0 - groupfolders: 9.0.0 - logreader: 2.6.0 - lookup_server_connector: 1.9.0 - mail: 1.9.4 - nextcloud_announcements: 1.10.0 - notifications: 2.9.0 - oauth2: 1.9.0 - password_policy: 1.11.0 - passwords: 2021.3.0 - photos: 1.3.0 - polls: 1.8.1 - privacy: 1.5.0 - provisioning_api: 1.11.0 - ransomware_protection: 1.10.0 - recommendations: 1.0.0 - richdocuments: 4.0.4 - richdocumentscode: 6.4.705 - serverinfo: 1.11.0 - settings: 1.3.0 - sharebymail: 1.11.0 - spreed: 11.1.1 - support: 1.4.0 - survey_client: 1.9.0 - systemtags: 1.11.0 - talk_matterbridge: 1.22.1 - tasks: 0.13.6 - text: 3.2.0 - theming: 1.12.0 - theming_customcss: 1.8.0 - twofactor_backupcodes: 1.10.0 - twofactor_u2f: 6.1.0 - updatenotification: 1.11.0 - user_status: 1.1.1 - video_converter: 1.0.1 - viewer: 1.5.0 - weather_status: 1.1.0 - workflowengine: 2.3.0 Disabled: - apporder - encryption - files_external - files_trackdownloads - flowupload - music - nextbackup - occweb - ocdownloader - ojsxc - user_ldap ```

Nextcloud configuration:

Config report ``` { "system": { "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "vmd56788.contaboserver.net", "cloud.norddeutsche-tanzwerkstatt.com", "cloud.norddeutsche-tanzwerkstatt.de", "cloud.tanzpunkthannover.de" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "mysql", "version": "21.0.0.18", "overwrite.cli.url": "http:\/\/cloud.norddeutsche-tanzwerkstatt.de\/", "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, "theme": "", "loglevel": 1, "memcache.local": "\\OC\\Memcache\\APCu", "mail_smtpmode": "smtp", "mail_smtpsecure": "tls", "mail_sendmailmode": "smtp", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtpauthtype": "LOGIN", "mail_smtpauth": 1, "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "587", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "default_phone_region": "DE", "updater.release.channel": "beta", "app_install_overwrite": [ "occweb" ] } } ```

Are you using external storage, if yes which one: no

Are you using encryption: no

Are you using an external user-backend, if yes which one: no

Client configuration

Browser: Firefox

Operating system: Windows

Logs

Web server error log

Web server error log ``` nothing relevant in the given time span ```

Nextcloud log (data/nextcloud.log)

Nextcloud log ``` see error message above. In Detail: {"reqId":"M9yoDdzm3YJYXMJM2QKl","level":1,"time":"2021-03-30T11:07:13+00:00","remoteAddr":"80.143.230.93","user":"Admin","app":"no app in context","method":"PUT","url":"/remote.php/dav/calendars/Admin/online-stundenplan/0B1F5176-C707-48BE-9B7B-E3E79919B8F2.ics","message":"Deprecated event type for \\OCA\\DAV\\CalDAV\\CalDavBackend::createCalendarObject: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:87.0) Gecko/20100101 Firefox/87.0","version":"21.0.0.18"} ```

Browser log

Browser log ``` [INFO] calendar: Initial settings: - AppVersion: 2.2.0 - EventLimit: true - FirstRun: true - ShowWeekNumbers: false - ShowTasks: true - ShowWeekends: true - SkipPopover: false - SlotDuration: 00:30:00 - TalkEnabled: true - TasksEnabled: true - Timezone: automatic Object { app: "calendar", uid: "Admin" } ConsoleLogger.js:46:10 [DEBUG] calendar: The calendar app is using version 2.2019c of the timezone database Object { app: "calendar", uid: "Admin" } ConsoleLogger.js:42:10 [INFO] calendar: Updated moment locale: de Object { app: "calendar", uid: "Admin" } ConsoleLogger.js:46:10 session heartbeat polling started session-heartbeat.js:97:9 Files_PDFViewer initialized for public page Object { isPublicPage: null, canDownload: true, isSecureViewerAvailable: false } ```
szaimen commented 3 years ago

Hi, thanks for your report! Since "loglevel": 1 is used for info messages, I suppose your issue is solved by setting loglevel to 2 as recommended in the admin manual. Please report if that already solves your issue, thanks!

ghost commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions.