Error in journal after upgrade Nextcloud to 24.0.12

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 24.0.12
Operating system and version (eg, Ubuntu 20.04): Debian 11
Apache or nginx version (eg, Apache 2.4.25): nginx/1.22.1
PHP version (eg, 7.4): PHP 8.0.24

The issue you are facing:

Is this the first time you’ve seen this error? Y:

Steps to replicate it:

  1. the error appeared after updating nextcloud to version 24.0.12

The output of your Nextcloud log in Admin > Logging:

[analytics] Критическая ошибка: Error: Call to undefined method OCP\AppFramework\Bootstrap\IRegistrationContext@anonymous::registerReferenceProvider() at <<closure>>

0. /var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php line 136
   OCA\Analytics\AppInfo\Application->register()
1. /var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php line 91
   OC\AppFramework\Bootstrap\Coordinator->registerApps()
2. /var/www/nextcloud/lib/base.php line 661
   OC\AppFramework\Bootstrap\Coordinator->runInitialRegistration()
3. /var/www/nextcloud/lib/base.php line 1111
   OC::init()
4. /var/www/nextcloud/index.php line 34
   require_once("/var/www/nextcloud/lib/base.php")

GET /apps/logreader/poll?lastReqId=xxx
from 192.168.1.1 at 2023-06-08T04:00:04+00:00```

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => '...',
  'passwordsalt' => '...',
  'secret' => '...',
  'trusted_domains' => 
  array (
    0 => '...',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '24.0.12.1',
  'overwrite.cli.url' => '...',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => '...',
  'installed' => true,
  'mail_from_address' => '...',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => '...',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpsecure' => 'ssl',
  'mail_smtpauth' => 1,
  'mail_smtphost' => '...',
  'mail_smtpport' => '465',
  'mail_smtpname' => '...',
  'mail_smtppassword' => '...',
  'twofactor_enforced' => 'true',
  'twofactor_enforced_groups' => 
  array (
    0 => 'ddd',
    1 => 'admin',
  ),
  'twofactor_enforced_excluded_groups' => 
  array (
  ),
  'enabledPreviewProviders' => 
  array (
    0 => 'OC\\Preview\\Illustrator',
    1 => 'OC\\Preview\\HEIC',
    2 => 'OC\\Preview\\Movie',
    3 => 'OC\\Preview\\MSOffice2003',
    4 => 'OC\\Preview\\MSOffice2007',
    5 => 'OC\\Preview\\MSOfficeDoc',
    6 => 'OC\\Preview\\PDF',
    7 => 'OC\\Preview\\Photoshop',
    8 => 'OC\\Preview\\Postscript',
    9 => 'OC\\Preview\\StarOffice',
    10 => 'OC\\Preview\\SVG',
    11 => 'OC\\Preview\\TIFF',
    12 => 'OC\\Preview\\Font',
    13 => 'OC\\Preview\\PNG',
    14 => 'OC\\Preview\\JPEG',
    15 => 'OC\\Preview\\GIF',
    16 => 'OC\\Preview\\BMP',
    17 => 'OC\\Preview\\XBitmap',
    18 => 'OC\\Preview\\MP3',
    19 => 'OC\\Preview\\MP4',
    20 => 'OC\\Preview\\TXT',
    21 => 'OC\\Preview\\MarkDown',
    22 => 'OC\\Preview\\OpenDocument',
    23 => 'OC\\Preview\\Krita',
  ),
  'default_phone_region' => 'ru',
  'default_locale' => 'en_US.UTF-8',
  'force_locale' => 'en_US.UTF-8',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'redis' => 
  array (
    'host' => 'localhost',
    'port' => 6379,
  ),
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'app_install_overwrite' => 
  array (
    0 => 'previewgenerator',
  ),
  'updater.secret' => '...',
);

What upgrade method did you use?

What NC version did you upgrade from?

Is that a one-time error message or recurring?

Are you experiencing any other issues with Nextcloud?

Please always provide the full (raw) stack trace when asking for help. It’s necessary typically to get to the bottom of things.

You can do so like this:

  • If you can access the Web UI: From the Admin->Logging area, look for the entry of interest then move the cursor over to the right of it until the clipboard icon appears. Then click Copy raw.

  • If you cannot access the Web UI: find the relevant entry or entries in your nextcloud.log file located in your datadirectory.

Then share the stack trace here with the preformatted option selected in your post for that text.

What upgrade method did you use?

Upgrade via web interface

What NC version did you upgrade from?

24.0.7.1 → 24.0.12.1

Is that a one-time error message or recurring?

Recurring. 8 - 10 error messages in seconds.

Are you experiencing any other issues with Nextcloud?

No. I don’t experience any other problems.

Please always provide the full (raw) stack trace when asking for help. It’s necessary typically to get to the bottom of things.

{
	"reqId": "...",
	"level": 4,
	"time": "2023-06-08T17:54:04+00:00",
	"remoteAddr": "192.168.1.1",
	"user": "--",
	"app": "analytics",
	"method": "PROPFIND",
	"url": "/remote.php/dav/files/astashov/",
	"message": "Error during app service registration: Call to undefined method OCP\\AppFramework\\Bootstrap\\IRegistrationContext@anonymous::registerReferenceProvider()",
	"userAgent": "Mozilla/5.0 (Windows) mirall/3.8.2stable-Win64 (build 20230516) (Nextcloud, windows-10.0.22621 ClientArchitecture: x86_64 OsArchitecture: x86_64)",
	"version": "24.0.12.1",
	"exception": {
		"Exception": "Error",
		"Message": "Call to undefined method OCP\\AppFramework\\Bootstrap\\IRegistrationContext@anonymous::registerReferenceProvider()",
		"Code": 0,
		"Trace": [
			{
				"file": "/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php",
				"line": 136,
				"function": "register",
				"class": "OCA\\Analytics\\AppInfo\\Application",
				"type": "->"
			},
			{
				"file": "/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php",
				"line": 91,
				"function": "registerApps",
				"class": "OC\\AppFramework\\Bootstrap\\Coordinator",
				"type": "->"
			},
			{
				"file": "/var/www/nextcloud/lib/base.php",
				"line": 661,
				"function": "runInitialRegistration",
				"class": "OC\\AppFramework\\Bootstrap\\Coordinator",
				"type": "->"
			},
			{
				"file": "/var/www/nextcloud/lib/base.php",
				"line": 1111,
				"function": "init",
				"class": "OC",
				"type": "::"
			},
			{
				"file": "/var/www/nextcloud/remote.php",
				"line": 118,
				"args": [
					"/var/www/nextcloud/lib/base.php"
				],
				"function": "require_once"
			}
		],
		"File": "/var/www/nextcloud/apps/analytics/lib/AppInfo/Application.php",
		"Line": 48,
		"message": "Error during app service registration: Call to undefined method OCP\\AppFramework\\Bootstrap\\IRegistrationContext@anonymous::registerReferenceProvider()",
		"exception": {},
		"CustomMessage": "Error during app service registration: Call to undefined method OCP\\AppFramework\\Bootstrap\\IRegistrationContext@anonymous::registerReferenceProvider()"
	}
}

The issue is with the Analytics app.

From the looks of it I think this change may have introduced an incompatibility with older NC installations. It implements Smart Picker support in the Analytics app. But the Smart Picker requires >=NC26.

You may need to file a a bug report Issue with the developer of that app:

1 Like

fixed

1 Like