The requested uri() cannot be processed by the script '/var/www/nextcloud/cron.php')

Nextcloud version: 22.0.0
Operating system and version: Ubuntu 20.04 LTS
Apache or nginx version: 2.4.21
PHP version: 7.4

The issue you are facing:

I keep seeing the below error in my logs. It pops up every five minutes when cron runs, or a similar one pops up when I attempt to do something with occ.

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

The output of your Nextcloud log in Admin > Logging:

{"reqId":"SVibv8xpKeURVqz7UHyG","level":4,"time":"2021-08-03T16:30:01+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Could not boot riotchat: The requested uri() cannot be processed by the script '/var/www/nextcloud/cron.php')","userAgent":"--","version":"22.0.0.11","exception":{"Exception":"Exception","Message":"The requested uri() cannot be processed by the script '/var/www/nextcloud/cron.php')","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Request.php","line":796,"function":"getRawPathInfo","class":"OC\\AppFramework\\Http\\Request","type":"->"},{"file":"/var/www/nextcloud/apps/riotchat/lib/AppInfo/Application.php","line":66,"function":"getPathInfo","class":"OC\\AppFramework\\Http\\Request","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":178,"function":"boot","class":"OCA\\RiotChat\\AppInfo\\Application","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":205,"function":"bootApp","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":139,"function":"loadApp","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/cron.php","line":54,"function":"loadApps","class":"OC_App","type":"::"}],"File":"/var/www/nextcloud/lib/private/AppFramework/Http/Request.php","Line":770,"CustomMessage":"Could not boot riotchat: The requested uri() cannot be processed by the script '/var/www/nextcloud/cron.php')"},"id":"61096fe098bee"}

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


$CONFIG = array (
  'instanceid' => 'x',
  'passwordsalt' => 'x',
  'secret' => 'x',
  'trusted_domains' =>
  array (
    0 => 'nextcloud.mydomain.com',
  ),
  'datadirectory' => '/ncdata/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '22.0.0.11',
  'overwrite.cli.url' => 'https://nextcloud.mydomain.com/',
  'htaccess.RewriteBase' => '/',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'x',
  'dbpassword' => 'x',
  'installed' => true,
  'default_phone_region' => 'x',
  'default_language' => 'en',
  'force_language' => 'en',
  'default_locale' => 'x',
  'filelocking.enabled' => true,
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '127.0.0.1',
    'port' => 6379,
    'dbindex' => 0,
    'password' => 'x',
    'timeout' => 0.0,
  ),
  'app_install_overwrite' =>
  array (
    0 => 'keeweb',
  ),
  'twofactor_enforced' => 'true',
  'twofactor_enforced_groups' =>
  array (
    0 => 'admin',
  ),
  'twofactor_enforced_excluded_groups' =>
  array (
  ),
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
);

i’m getting the same error

i’m running 21.04

{“reqId”:“CdafnFte7ATnFaGJ5XIP”,“level”:4,“time”:“2021-08-30T21:25:01+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“no app in context”,“method”:“”,“url”:“–”,“message”:{“Exception”:“Exception”,“Message”:“The requested uri() cannot be processed by the script ‘/var/www/nextcloud/cron.php’)”,“Code”:0,“Trace”:[{“file”:“/var/www/nextcloud/lib/private/AppFramework/Http/Request.php”,“line”:810,“function”:“getRawPathInfo”,“class”:“OC\AppFramework\Http\Request”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/sociallogin/lib/AppInfo/Application.php”,“line”:118,“function”:“getPathInfo”,“class”:“OC\AppFramework\Http\Request”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php”,“line”:178,“function”:“boot”,“class”:“OCA\SocialLogin\AppInfo\Application”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/legacy/OC_App.php”,“line”:205,“function”:“bootApp”,“class”:“OC\AppFramework\Bootstrap\Coordinator”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/legacy/OC_App.php”,“line”:138,“function”:“loadApp”,“class”:“OC_App”,“type”:“::”},{“file”:“/var/www/nextcloud/cron.php”,“line”:55,“function”:“loadApps”,“class”:“OC_App”,“type”:“::”}],“File”:“/var/www/nextcloud/lib/private/AppFramework/Http/Request.php”,“Line”:784,“CustomMessage”:“Could not boot socialloginThe requested uri() cannot be processed by the script ‘/var/www/nextcloud/cron.php’)”},“userAgent”:“–”,“version”:“21.0.4.1”,“id”:“612d503cc743e”}

Same error. Waiting for solution. Thanks.