Repository navigation
[18.0.0 Beta1] Deprecated event type for OCP\IPreview:PreviewRequested #18331
Description
Activity
- added0. Needs triagePending check for reproducibility or if it fits our roadmapPending check for reproducibility or if it fits our roadmap
on Dec 10, 2019 Actually such logs show up when accessing several other apps/pages as well. Is this intended, e.g. during Beta phase?
Accessing logs:
[no app in context] Info: Deprecated event type for OCP\AppFramework\Http\TemplateResponse::loadAdditionalScripts: null GET /nextcloud/settings/admin/logging from 95.81.18.51 by Micha at 2019-12-10T14:03:03+01:00 ... [no app in context] Info: Deprecated event type for OCP\AppFramework\Http\TemplateResponse::loadAdditionalScriptsLoggedIn: null GET /nextcloud/settings/admin/logging from 95.81.18.51 by Micha at 2019-12-10T14:03:03+01:00Accessing Activity:
[no app in context] Info: Deprecated event type for OCP\AppFramework\Http\TemplateResponse::loadAdditionalScripts: null GET /nextcloud/apps/activity/ from 95.81.18.51 by Micha at 2019-12-10T13:55:49+01:00On Tasks and users page as well...
Ah just found the PR which most likely resolves this? #18225
EDIT: Nope!Probably it is best to omit those logs, so they do not flood the log file?
Hi there, I am affected by this Log.info flood as well
{"reqId":"plymVIQqkJ08Y914rcg4","level":1,"time":"2020-01-14T13:23:15+00:00", "remoteAddr":"IP","user":"twinkybot","app":"no app in context", "method":"GET","url":"/index.php/apps/logreader/poll?lastReqId=sKmjNtrkt8O67wefDQm1", "message": "Deprecated event type for OCA\\User_LDAP\\User\\User::postLDAPBackendAdded: null", "userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0","version":"18.0.0.9","id":"5e1dc0c38fd21"}Nextcloud version: 18.0.0 RC2
and LDAP user and group backend version: 1.8.0@twinkybot
Jep, everyone is affected, expectedly. Not a state which should be released IMO, especially since currently there are still Nextcloud-internal/core apps affected, but not my decision...$this->logger->info( Feel free to open a pull request and suggest to use
$this->logger->debug;)- added a commit that references this issue
on Jan 18, 2020 PR is up: #18966
- added3. to reviewWaiting for reviewsWaiting for reviewsand removed0. Needs triagePending check for reproducibility or if it fits our roadmapPending check for reproducibility or if it fits our roadmap
on Jan 18, 2020 - added a commit that references this issue
on Jan 18, 2020 - linked a pull request that will close this issue[stable18] Reduce legacy event log level to debug #19118
on Feb 20, 2020 PR merged, log level for those kind of messages reduced to debug. This is no solution but the issue is known and it is task of app devs to migrate used event types. I mark this hence as closed.
Anyone with a solution to stop this flood of errors in log?
Deprecated event type for \OCP\Files::postCreate: Symfony\Component\EventDispatcher\GenericEvent Deprecated event type for \OCP\Files::postWrite: Symfony\Component\EventDispatcher\GenericEvent Deprecated event type for \OCP\Files::preCreate: Symfony\Component\EventDispatcher\GenericEvent Deprecated event type for \OCP\Files::preWrite: Symfony\Component\EventDispatcher\GenericEventReacted by daveknave, roboticsalign, Christian Rapp and AndyPircherSame here.
20.0.7 and a lot of at Log Level of "Info"
[no app in context] Info: Deprecated event type for OCP\IPreview:PreviewRequested: Symfony\Component\EventDispatcher\GenericEvent is usedPlease update to Beta 8, at least it helped in my case.
Well, I disabled previews and found that this is generic error for other things:
OCA\\Files::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent is used" OCA\\Files_Sharing::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent is used" OCP\\IDBConnection::CHECK_MISSING_COLUMNS: Symfony\\Component\\EventDispatcher\\GenericEvent is used" OCP\\IDBConnection::CHECK_MISSING_INDEXES: Symfony\\Component\\EventDispatcher\\GenericEvent is used" OCP\\IDBConnection::CHECK_MISSING_PRIMARY_KEYS: Symfony\\Component\\EventDispatcher\\GenericEvent is used" OCP\\IPreview:PreviewRequested: Symfony\\Component\\EventDispatcher\\GenericEvent is used" OCP\\IUser::changeUser: Symfony\\Component\\EventDispatcher\\GenericEvent is used" OC\\AccountManager::userUpdated: Symfony\\Component\\EventDispatcher\\GenericEvent is used" \\OCA\\DAV\\CalDAV\\CalDavBackend::createCalendarObject: Symfony\\Component\\EventDispatcher\\GenericEvent is used" \\OCA\\DAV\\CalDAV\\CalDavBackend::updateCalendar: Symfony\\Component\\EventDispatcher\\GenericEvent is used" \\OCA\\DAV\\CalDAV\\CalDavBackend::updateCalendarObject: Symfony\\Component\\EventDispatcher\\GenericEvent is used" \\OCA\\DAV\\CardDAV\\CardDavBackend::updateCard: Symfony\\Component\\EventDispatcher\\GenericEvent is used" {\"[object] (OCP\\SabrePluginEvent)\":{\"*statusCode\":200Setting
'loglevel' => 2,
helped in my case.Ah I totally forgot that I did the same on my system. I can verify the massive deprecation logs (debug and info level) of various types and across various apps.
Could you please open a new issue about those? If related to a specific app, at best at the individual apps repository. On a closed issue this will not get attention, when not being subscribed to it already (like me).
Steps to reproduce
17.0.1.1to18.0.0 Beta1via web-based updaterExpected behaviour
Actual behaviour
But I cannot see further issues that seem to be related.
Server configuration
Operating system: Raspbian Bullseye
Web server: Apache/2.4.41
Database: MariaDB 10.3.20
PHP version: 7.3.12-1
Nextcloud version: 18.0.0 Beta1
Updated from an older Nextcloud/ownCloud or fresh install: 17.0.1.1
Where did you install Nextcloud from: download.nextcloud.com + web-based updater
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report
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: Opera developer 67.0.3523.0
Operating system: Windows 10 Pro N 1909 build 18363.476
Logs
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
Browser log
Browser log