Not able to login and nextcloud logs shows /appinfo/app.php is deprecated error message

I am not able to login to my nextcloud and also experiencing it very slow.
I have seen few threads that were talking about the /appinfo/app.php before
I updated the nextcloud version but I checked log again today and still say these errors. how can I update those apps then. I think these deprecation messages also not letting me make video or audio call using nextcloud.

Are these errors coming from other apps ?

Nextcloud version (eg, 20.0.5): 20.0.7.1
Operating system and version (eg, Ubuntu 20.04): Ubuntu 18.04
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4
PHP version (eg, 7.4): 7.4

The issue you are facing: unable to login. credentials are correct but I am getting redirected to login again and again.

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. open nextcloud login page
  2. Enter credentials
  3. redirected back to login page.

The output of your Nextcloud log in Admin > Logging:

{"reqId":"VVQ1VlOzskzmamnXBL3j","level":0,"time":"2021-04-05T20:16:15+00:00","remoteAddr":"192.168.1.13","user":"--","app":"groupfolders","method":"GET","url":"/nextcloud/apps/theming/image/logo?v=3","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36","version":"20.0.7.1"}
{"reqId":"VVQ1VlOzskzmamnXBL3j","level":0,"time":"2021-04-05T20:16:15+00:00","remoteAddr":"192.168.1.13","user":"--","app":"richdocuments","method":"GET","url":"/nextcloud/apps/theming/image/logo?v=3","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36","version":"20.0.7.1"}
{"reqId":"VVQ1VlOzskzmamnXBL3j","level":0,"time":"2021-04-05T20:16:15+00:00","remoteAddr":"192.168.1.13","user":"--","app":"files_external","method":"GET","url":"/nextcloud/apps/theming/image/logo?v=3","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36","version":"20.0.7.1"}
{"reqId":"VVQ1VlOzskzmamnXBL3j","level":0,"time":"2021-04-05T20:16:15+00:00","remoteAddr":"192.168.1.13","user":"--","app":"files_sharing","method":"GET","url":"/nextcloud/apps/theming/image/logo?v=3","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36","version":"20.0.7.1"}
{"reqId":"VVQ1VlOzskzmamnXBL3j","level":0,"time":"2021-04-05T20:16:15+00:00","remoteAddr":"192.168.1.13","user":"--","app":"maps","method":"GET","url":"/nextcloud/apps/theming/image/logo?v=3","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36","version":"20.0.7.1"}
{"reqId":"VVQ1VlOzskzmamnXBL3j","level":0,"time":"2021-04-05T20:16:15+00:00","remoteAddr":"192.168.1.13","user":"--","app":"ransomware_protection","method":"GET","url":"/nextcloud/apps/theming/image/logo?v=3","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36","version":"20.0.7.1"}
{"reqId":"VVQ1VlOzskzmamnXBL3j","level":0,"time":"2021-04-05T20:16:15+00:00","remoteAddr":"192.168.1.13","user":"--","app":"socialsharing_email","method":"GET","url":"/nextcloud/apps/theming/image/logo?v=3","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36","version":"20.0.7.1"}
{"reqId":"VVQ1VlOzskzmamnXBL3j","level":0,"time":"2021-04-05T20:16:15+00:00","remoteAddr":"192.168.1.13","user":"--","app":"socialsharing_facebook","method":"GET","url":"/nextcloud/apps/theming/image/logo?v=3","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36","version":"20.0.7.1"}
{"reqId":"VVQ1VlOzskzmamnXBL3j","level":0,"time":"2021-04-05T20:16:15+00:00","remoteAddr":"192.168.1.13","user":"--","app":"socialsharing_twitter","method":"GET","url":"/nextcloud/apps/theming/image/logo?v=3","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36","version":"20.0.7.1"}

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

<?php
$CONFIG = array (
  'instanceid' => 'ocr2fw9pzn5a',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'filelocking.enabled' => 'true',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '192.168.1.10',
    'port' => 6379,
    'timeout' => 0.0,
    'password' => 'password',
    'dbindex' => 0,
  ),
  'passwordsalt' => '24QdCbKXo/MTnT2WZwK/G620EIM/',
  'secret' => 'HnyaVGitcBtN9i8dBneWxRTZo//Wjw3CNSLLG0dU8iRIqG',
  'trusted_domains' =>
  array (
    0 => '192.168.1.10',
  ),
  'datadirectory' => '/mnt/data',
  'dbtype' => 'mysql',
  'version' => '20.0.1.1',
  'overwriteprotocol' => 'https',
  'overwrite.cli.url' => 'https://192.168.1.10/nextcloud',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'dbuser',
  'dbpassword' => 'password!',
  'installed' => true,
  'session_lifetime' => 86400,
  'session_keepalive' => true,
  'has_rebuilt_cache' => true,
  'maintenance' => false,
  'theme' => '',
);

The listed messages are warnings and not errors, so they ususally couldn’t prevent you from logging into your system. The most often problems on updates are missing php modules, not runningor accessible database or redis servers. So check the log file again for any related errors.

I would like to get rid of these warning messages completely.

I have for time being taken out redis server config and it is still slow.
how can I troubleshoot what missing php modules might.

database is running on the same node , so I used local host for my msql nextcloud database.

Ok I figured out where the problem was :slightly_smiling_face:
in /etc/php/7.4/apache2/php.ini I had this line

session.save_path = "tcp://192.168.1.13:3679? where I needed to update the IP address of the redis. as now I am running redis as cluster behind haproxy.

updating IP address fixed the problem.

1 Like