Encryption app filling log with /app/info/app.php is deprecated

Nextcloud version: 27.0.0
Operating system and version: Ubuntu 22.04
Apache or nginx version: nginx 1.24.0
PHP version: 8.2.8

I was looking at Administration settings > Logging and saw that the encryption app is filling my logs with “/appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.” a few times a second. The “Default encryption module” app is at the latest version, 2.15.0.

Is this the first time you’ve seen this error? (Y/N): Y … not sure how long its been going on since I just deleted logs.

Steps to replicate it:

  1. Run Nextcloud.

The output of your Nextcloud log in Admin > Logging:

This over and over a few times a second.

Level - App - Message
Debug encryption /appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.

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

$CONFIG = array (
  'instanceid' => '---',
  'passwordsalt' => '---',
  'secret' => '---',
  'trusted_domains' => 
  array (
    '---.com',
  ),
  'datadirectory' => '/usr/share/nginx/nextcloud/data',
  'overwrite.cli.url' => '---',
  'overwriteprotocol' => 'https',
  'dbtype' => 'mysql',
  'version' => '27.0.0.8',
  'logtimezone' => 'UTC',
  'installed' => true,
  'updater.release.channel' => 'stable',
  'loglevel' => 0,
  'theme' => '',
  'maintenance' => false,
  'forcessl' => true,
  'auth.bruteforce.protection.enabled' => true,
  'ratelimit.protection.enabled' => true,
  'dbname' => '---',
  'dbhost' => 'localhost',
  'dbuser' => '---',
  'dbpassword' => '---',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'mail_smtpdebug' => false,
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpsecure' => 'tls',
  'mail_domain' => '---',
  'mail_smtpauth' => 1,
  'mail_from_address' => '---',
  'mail_smtphost' => '---',
  'mail_smtpport' => '587',
  'mail_smtpname' => '---',
  'mail_smtppassword' => '---',
  'preview_max_x' => 1024,
  'preview_max_y' => 1024,
  'preview_max_scale_factor' => 1,
  'simpleSignUpLink.shown' => false,
  'versions_retention_obligation' => 'auto, 90',
  'mysql.utf8mb4' => true,
  'mail_sendmailmode' => 'smtp',
  'encryption.legacy_format_support' => false,
  'encryption.key_storage_migrated' => false,
  'default_phone_region' => 'US',
  'default_locale' => 'en_US',
  'auth.webauthn.enable' => true,
  'lost_password_link' => 'disabled',
  'trashbin_retention_obligation' => '25, 35',
  'knowledgebaseenabled' => false,
  'htaccess.RewriteBase' => '/',
  'htaccess.IgnoreFrontController' => false,
);

The output of your Apache/nginx/system log in /var/log/____:
error.log is empty and access.log has nothing relevant.

Output errors in nextcloud.log:

...
{"reqID":"---","level":0,"time":"2023-07-15T00:17:05+00:00","remoteAddr":"123.123.123.123","user":"user2","app":"encryption","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0","version":"27.0.0.8","data":{"app":"encryption"}}
{"reqID":"---","level":0,"time":"2023-07-15T00:17:19+00:00","remoteAddr":"123.123.123.123","user":"user1","app":"encryption","method":"PROPFIND","url":"/remote.php/dav/files/user1/","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Linux) mirall/3.4.2-1ubuntu1 (Nextcloud, ubuntu-5.15.0-76-generic ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"27.0.0.8","data":{"app":"encryption"}}
{"reqID":"---","level":0,"time":"2023-07-15T00:17:35+00:00","remoteAddr":"123.123.123.123","user":"user2","app":"encryption","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0","version":"27.0.0.8","data":{"app":"encryption"}}
{"reqID":"---","level":0,"time":"2023-07-15T00:17:48+00:00","remoteAddr":"123.123.123.123","user":"user1","app":"encryption","method":"PROPFIND","url":"/remote.php/dav/files/user1/","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Linux) mirall/3.4.2-1ubuntu1 (Nextcloud, ubuntu-5.15.0-76-generic ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"27.0.0.8","data":{"app":"encryption"}}
{"reqID":"---","level":0,"time":"2023-07-15T00:18:05+00:00","remoteAddr":"123.123.123.123","user":"user2","app":"encryption","method":"GET","url":"/apps/files/api/v1/stats","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0","version":"27.0.0.8","data":{"app":"encryption"}}
{"reqID":"---","level":0,"time":"2023-07-15T00:18:05+00:00","remoteAddr":"123.123.123.123","user":"user2","app":"encryption","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0","version":"27.0.0.8","data":{"app":"encryption"}}

How do you typically do your upgrades? Based on the recent version of NC you’re using and the app mentioned I highly suspect maybe a manual update took place along the way (maybe of just that or another app).

There shouldn’t be an /appinfo/app.php in any currently released app. When the transition happened away from app.php some folks discovered they had the file left even after upgrading to a newer app version without it.

I’d poke around your app folders and see if that file is there. The encryption app first obviously.

Make backups just in case, but you should be able to safely delete it from any app that has been updated going back to, well, a couple major releases from what I recall.

UPDATE: I was wrong. The encryption app still has app.php apparently.

Is it intended that you run nextcloud with loglevel set to debug? I would not do this when not needed

^^^ That too. :slight_smile:

I’m having the same problem with NC 25.0.9 and the encryption app.

Regarding the comment from @jtr :

There shouldn’t be an /appinfo/app.php in any currently released app.

That’s funny, because the file is included in the source. If you download nextcloud-25.0.9.zip (Index of /server/releases), you’ll find it right there:

And it’s still included in the most recent NC version 27.0.1:

You’re right @lieberjott. Apparently the shipped encryption app still has it. It should be one of the few.

In any case, the log entry will go away if you set a reasonable loglevel (i.e. not 0).

1 Like

Yes, in the end I’ve changed the loglevel in my config.php.

PS: One should NEVER delete the app.php file from the encryption app, as this will make the standard encryption module malfunctioning.