Support intro
Nextcloud version 17.0.0.9
Operating system and version FreeNAS 11.2(FreeBSD)
Apache or nginx version Apache 2.4
PHP version 7.2
The issue you are facing:
Is this the first time you’ve seen this error? (Y):
Steps to replicate it:
- Go to shell jail where Nextcloud is installed
- Upgrade from NC 16.0.4 to 17.0.0.9 with command line
- pkg update
- pkg upgrade nextcloud-php72
- cd /usr/local/www/nextcloud
- su -m www -c “php ./occ upgrade”
- go to WebUI https://cloud.DOMAINE.fr
- enter username et password
This picture show the first page after successful login, the login page where I enter my username and password don’t have this problem.
The output of your Nextcloud log in Admin > Logging:
Can't acces
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'apps_paths' =>
array (
0 =>
array (
'path' => '/usr/local/www/nextcloud/apps',
'url' => '/apps',
'writable' => true,
),
1 =>
array (
'path' => '/usr/local/www/nextcloud/apps-pkg',
'url' => '/apps-pkg',
'writable' => false,
),
),
'logfile' => '/var/log/nextcloud/nextcloud.log',
'memcache.local' => '\\OC\\Memcache\\APCu',
'instanceid' => 'XXXXXXXX',
'passwordsalt' => 'XXXXXXXX',
'secret' => 'XXXXXXXX',
'trusted_domains' =>
array (
0 => 'local ip',
1 => 'cloud.DOMAINE.fr',
2 => 'office.DOMAINE.fr',
),
'datadirectory' => '/mnt/data',
'dbtype' => 'mysql',
'version' => '17.0.0.9',
'overwrite.cli.url' => 'http://localIP',
'dbname' => 'nextcloud',
'dbhost' => 'localhost:/tmp/mysql.sock',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'XXXXXXXX',
'dbpassword' => 'XXXXXXXX',
'installed' => true,
'redis' =>
array (
'host' => '/tmp/redis.sock',
'port' => 0,
),
'memcache.locking' => '\\OC\\Memcache\\Redis',
'enable_previews' => true,
'preview_max_x' => NULL,
'preview_max_y' => NULL,
'preview_max_scale_factor' => NULL,
'maintenance' => false,
'loglevel' => 2,
'mail_smtpmode' => 'sendmail',
'mail_sendmailmode' => 'smtp',
'mail_from_address' => 'nextcloud_service',
'mail_domain' => 'DOMAINE.fr',
'default_language' => 'fr',
'default_locale' => 'fr_FR',
'logtimezone' => 'Europe/Paris',
'theme' => '',
);
The output of your Apache/nginx/system log in /var/log/____
:
nextcloud.log
...
{"reqId":"U71HRSRuKGUTeRxcrtHT","level":3,"time":"2019-10-08T15:06:15+02:00","remoteAddr":"83.154.227.37","user":"REGULAR USER","app":"no app in context","method":"GET","url":"\/ocs\/v2.php\/core\/navigation\/apps?absolute=true&format=json","message":{"Exception":"OCP\\AutoloadNotAllowedException","Message":"Autoload path not allowed: \/usr\/local\/www\/nextcloud\/apps\/files_external\/lib\/config.php","Code":0,"Trace":[{"file":"\/usr\/local\/www\/nextcloud\/lib\/autoloader.php","line":162,"function":"isValidPath","class":"OC\\Autoloader","type":"->","args":["\/usr\/local\/www\/nextcloud\/apps\/files_external\/lib\/config.php"]},{"function":"load","class":"OC\\Autoloader","type":"->","args":["OC_Mount_Config"]},{"file":"\/usr\/local\/www\/nextcloud\/apps\/files_external\/appinfo\/app.php","line":36,"function":"spl_autoload_call","args":["OC_Mount_Config"]},{"file":"\/usr\/local\/www\/nextcloud\/lib\/private\/legacy\/app.php","line":260,"args":["\/usr\/local\/www\/nextcloud\/apps\/files_external\/appinfo\/app.php"],"function":"require_once"},{"file":"\/usr\/local\/www\/nextcloud\/lib\/private\/legacy\/app.php","line":154,"function":"requireAppFile","class":"OC_App","type":"::","args":["files_external"]},{"file":"\/usr\/local\/www\/nextcloud\/lib\/private\/legacy\/app.php","line":127,"function":"loadApp","class":"OC_App","type":"::","args":["files_external"]},{"file":"\/usr\/local\/www\/nextcloud\/ocs\/v1.php","line":56,"function":"loadApps","class":"OC_App","type":"::","args":[]},{"file":"\/usr\/local\/www\/nextcloud\/ocs\/v2.php","line":24,"args":["\/usr\/local\/www\/nextcloud\/ocs\/v1.php"],"function":"require_once"}],"File":"\/usr\/local\/www\/nextcloud\/lib\/autoloader.php","Line":137,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Macintosh) mirall\/2.5.3release (build 20190724) (Nextcloud)","version":"17.0.0.9"}
{"reqId":"U71HRSRuKGUTeRxcrtHT","level":3,"time":"2019-10-08T15:06:15+02:00","remoteAddr":"83.154.227.37","user":"REGULAR USER","app":"no app in context","method":"GET","url":"\/ocs\/v2.php\/core\/navigation\/apps?absolute=true&format=json","message":{"Exception":"InvalidArgumentException","Message":"Notifier Statistiques d'utilisation (id: survey_client) is not considered because it is using the old way to register.","Code":0,"Trace":[{"file":"\/usr\/local\/www\/nextcloud\/apps\/survey_client\/appinfo\/app.php","line":37,"function":"registerNotifier","class":"OC\\Notification\\Manager","type":"->","args":[{"__class__":"Closure"},{"__class__":"Closure"}]},{"file":"\/usr\/local\/www\/nextcloud\/lib\/private\/legacy\/app.php","line":260,"args":["\/usr\/local\/www\/nextcloud\/apps\/survey_client\/appinfo\/app.php"],"function":"require_once"},{"file":"\/usr\/local\/www\/nextcloud\/lib\/private\/legacy\/app.php","line":154,"function":"requireAppFile","class":"OC_App","type":"::","args":["survey_client"]},{"file":"\/usr\/local\/www\/nextcloud\/lib\/private\/legacy\/app.php","line":127,"function":"loadApp","class":"OC_App","type":"::","args":["survey_client"]},{"file":"\/usr\/local\/www\/nextcloud\/ocs\/v1.php","line":56,"function":"loadApps","class":"OC_App","type":"::","args":[]},{"file":"\/usr\/local\/www\/nextcloud\/ocs\/v2.php","line":24,"args":["\/usr\/local\/www\/nextcloud\/ocs\/v1.php"],"function":"require_once"}],"File":"\/usr\/local\/www\/nextcloud\/lib\/private\/Notification\/Manager.php","Line":86,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Macintosh) mirall\/2.5.3release (build 20190724) (Nextcloud)","version":"17.0.0.9"}
{"reqId":"U71HRSRuKGUTeRxcrtHT","level":3,"time":"2019-10-08T15:06:15+02:00","remoteAddr":"83.154.227.37","user":"REGULAR USER","app":"no app in context","method":"GET","url":"\/ocs\/v2.php\/core\/navigation\/apps?absolute=true&format=json","message":{"Exception":"OCP\\AutoloadNotAllowedException","Message":"Autoload path not allowed: \/usr\/local\/www\/nextcloud\/apps\/files_external\/lib\/config.php","Code":0,"Trace":[{"file":"\/usr\/local\/www\/nextcloud\/lib\/autoloader.php","line":162,"function":"isValidPath","class":"OC\\Autoloader","type":"->","args":["\/usr\/local\/www\/nextcloud\/apps\/files_external\/lib\/config.php"]},{"function":"load","class":"OC\\Autoloader","type":"->","args":["OC_Mount_Config"]},{"file":"\/usr\/local\/www\/nextcloud\/apps-pkg\/files_external\/appinfo\/routes.php","line":32,"function":"spl_autoload_call","args":["OC_Mount_Config"]},{"file":"\/usr\/local\/www\/nextcloud\/lib\/private\/Route\/Router.php","line":351,"args":["\/usr\/local\/www\/nextcloud\/apps-pkg\/files_external\/appinfo\/routes.php"],"function":"include_once"},{"file":"\/usr\/local\/www\/nextcloud\/lib\/private\/Route\/Router.php","line":151,"function":"requireRouteFile","class":"OC\\Route\\Router","type":"->","args":["\/usr\/local\/www\/nextcloud\/apps-pkg\/files_external\/appinfo\/routes.php","files_external"]},{"file":"\/usr\/local\/www\/nextcloud\/lib\/private\/Route\/Router.php","line":331,"function":"loadRoutes","class":"OC\\Route\\Router","type":"->","args":[]},{"file":"\/usr\/local\/www\/nextcloud\/lib\/private\/Route\/CachingRouter.php","line":60,"function":"generate","class":"OC\\Route\\Router","type":"->","args":["theming.Theming.getStylesheet",{"v":"1"},false]},{"file":"\/usr\/local\/www\/nextcloud\/lib\/private\/URLGenerator.php","line":79,"function":"generate","class":"OC\\Route\\CachingRouter","type":"->","args":["theming.Theming.getStylesheet",{"v":"1"}]},{"file":"\/usr\/local\/www\/nextcloud\/apps\/theming\/appinfo\/app.php","line":34,"function":"linkToRoute","class":"OC\\URLGenerator","type":"->","args":["theming.Theming.getStylesheet",{"v":"1"}]},{"file":"\/usr\/local\/www\/nextcloud\/lib\/private\/legacy\/app.php","line":260,"args":["\/usr\/local\/www\/nextcloud\/apps\/theming\/appinfo\/app.php"],"function":"require_once"},{"file":"\/usr\/local\/www\/nextcloud\/lib\/private\/legacy\/app.php","line":154,"function":"requireAppFile","class":"OC_App","type":"::","args":[{"__class__":"OCP\\AppFramework\\App"}]},{"file":"\/usr\/local\/www\/nextcloud\/lib\/private\/legacy\/app.php","line":127,"function":"loadApp","class":"OC_App","type":"::","args":["theming"]},{"file":"\/usr\/local\/www\/nextcloud\/ocs\/v1.php","line":56,"function":"loadApps","class":"OC_App","type":"::","args":[]},{"file":"\/usr\/local\/www\/nextcloud\/ocs\/v2.php","line":24,"args":["\/usr\/local\/www\/nextcloud\/ocs\/v1.php"],"function":"require_once"}],"File":"\/usr\/local\/www\/nextcloud\/lib\/autoloader.php","Line":137,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Macintosh) mirall\/2.5.3release (build20190724) (Nextcloud)","version":"17.0.0.9"}