App: files_sharing, message:"... Migrate everything from app.php to the Application class."

Nextcloud version: [Nextcloud Hub II] (23.0.0)
Operating system and version: Raspian Buster
Apache version: Apache/2.4.38 (Raspbian)
PHP version: 7.3.31-1~deb10u1

The issue you are facing:

Uploading images from iPhone client fails.
For each try and each image i find messages

{"reqId":"...","level":3,"time":"2022-01-03T20:08:51+00:00","remoteAddr":"some-ip","user":"uid","app":"files_sharing","method":"PUT","url":"/nextcloud/remote.php/dav/files/uid/Photos/2022/01/file-name.jpg","message":"/appinfo/app.php is not loaded when \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class is used. Migrate everything from app.php to the Application class.","userAgent":"Mozilla/5.0 (iOS) Nextcloud-iOS/4.1.0","version":"23.0.0.10"}
{"reqId":"...","level":3,"time":"2022-01-03T20:21:51+00:00","remoteAddr":"some-ip","user":"uid","app":"files_sharing","method":"PUT","url":"/nextcloud/remote.php/dav/files/uid/Photos/2022/01/file-name.jpg","message":"/appinfo/app.php is not loaded when \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class is used. Migrate everything from app.php to the Application class.","userAgent":"Mozilla/5.0 (iOS) Nextcloud-iOS/4.1.0","version":"23.0.0.10"}
{"reqId":"...","level":3,"time":"2022-01-03T20:22:12+00:00","remoteAddr":"some-ip","user":"uid","app":"files_sharing","method":"PUT","url":"/nextcloud/remote.php/dav/files/uid/Photos/2022/01/file-name.jpg","message":"/appinfo/app.php is not loaded when \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class is used. Migrate everything from app.php to the Application class.","userAgent":"Mozilla/5.0 (iOS) Nextcloud-iOS/4.1.0","version":"23.0.0.10"}

What does is mean “Migrate everything from app.php to the Application class”? What am i supposed to do?

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

Steps to replicate it:

  1. Just start Nextcloud for iPhone to upload images

The output of your Nextcloud log in Admin > Logging:

Fehler	files_sharing	/appinfo/app.php is not loaded when \OCP\AppFramework\Bootstrap\IBootstrap on the application class is used. Migrate everything from app.php to the Application class.	
2022-01-05T21:25:15+0100
Fehler	files_sharing	/appinfo/app.php is not loaded when \OCP\AppFramework\Bootstrap\IBootstrap on the application class is used. Migrate everything from app.php to the Application class.	
2022-01-05T21:25:07+0100
Fehler	files_sharing	/appinfo/app.php is not loaded when \OCP\AppFramework\Bootstrap\IBootstrap on the application class is used. Migrate everything from app.php to the Application class.	
2022-01-05T21:25:02+0100

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

<?php
$CONFIG = array (
...
  'dbtype' => 'mysql',
  'version' => '23.0.0.10',
...
  'dbtableprefix' => 'oc_',
...
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'mysql.utf8mb4' => true,
  'app_install_overwrite' =>
  array (
    0 => 'ocr',
  ),
  'default_phone_region' => 'DE',
);

The output of your Apache/nginx/system log in /var/log/____:

[Wed Jan 05 20:31:48.597633 2022] [mpm_prefork:notice] [pid 25047] AH00169: caught SIGTERM, shutting down
[Wed Jan 05 20:31:49.067350 2022] [mpm_prefork:notice] [pid 27540] AH00163: Apache/2.4.38 (Raspbian) OpenSSL/1.1.1d configured -- resuming normal operations
[Wed Jan 05 20:31:49.067511 2022] [core:notice] [pid 27540] AH00094: Command line: '/usr/sbin/apache2'
[Wed Jan 05 20:33:30.591719 2022] [core:info] [pid 27611] [client 89.104.101.117:46749] AH00128: File does not exist: /var/www/html/favicon.ico
[Wed Jan 05 20:39:36.416967 2022] [reqtimeout:info] [pid 27599] [client ... :55892] AH01382: Request header read timeout
[Wed Jan 05 20:44:37.367532 2022] [reqtimeout:info] [pid 28665] [client ... :56086] AH01382: Request header read timeout
[Wed Jan 05 20:54:57.667495 2022] [reqtimeout:info] [pid 28833] [client ... :64992] AH01382: Request body read timeout
[Wed Jan 05 20:54:57.681322 2022] [reqtimeout:info] [pid 28831] [client ... :64993] AH01382: Request body read timeout

I checked the logs for when these messages appeared the first time.
It looks like they appear since i suffered a file system damage and had to fix nc by reinstalling v22.2.3.0 manually.
I deactivated File Sharing and then the messages don’t show up any more. But then i can’t upload no more files via app.
Can somebody please give me a hint, what these messages mean, so i have a chance to fix it?

Thanks. Fixed it by myself.

Hello zardoz1937,
I have the same problem.
nextcloud.log:

{"reqId":"8iqaEv82sfzHaCkyx3ko","level":3,"time":"2022-05-09T15:26:49+00:00","remoteAddr":"xxx","user":"--","app":"support","method":"POST","url":"/nextcloud/index.php/heartbeat","message":"/appinfo/app.php is not loaded when \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class is used. Migrate everything from app.php to the Application class.","userAgent":"xxx"}

php occ status gives:

php8.0 occ status
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
  - installed: true
  - version: 23.0.4.1
  - versionstring: 23.0.4
  - edition: 
  - maintenance: false
  - needsDbUpgrade: true
  - productname: Nextcloud
  - extendedSupport: false

The needsDbUpgrade is not going away, no matter what I try…
You write you solved the problem. But how did you solve it?

Best regards

In my case the error came from the federatedfilesharing app.
I didnt found a fix yet - but a circumvention:
I backup the my nextcloud files, do the regular update and afterwards overwrite nextcloud_backup/apps/federatedfilesharing/* from the previous backup with the new nextcloud/apps/federatedfilesharing/*
Its a shitty solution, but I have no idea how to fix it and it works since two major releases :smiley:

For me somehow the error went away when I updated to Nextcloud version 24.