Hi all,
I have two issues with my fresh Nextcloud installation:
- Migrating files from Dropbox to Nextcloud is not working
- The Error Log gets flooded with entries
I installed NC via an image file on a root server. Since the NC, SQL, PHP, etc. were outdated I updated the SQL & Co via SSH (Putty) and for Nextcloud I used the web-updater.
Re issue 1:
Afterwards I installed the Dropbox integration and connected it (default Nextcloud Dropbox OAuth app). Unfortunately no files are being transferred. Its only showing me “Dropbox import process will begin soon”.
I also tried using a self created Dropbox OAuth app - same issue.
For cron.php I am using an external webcron service.
The errorlog is showing the following (excerpt):
{"reqId":"fJvscKBoLG5udRpO6J3N","level":1,"time":"2021-07-28T13:11:52+00:00","remoteAddr":"149.224.176.230","user":"admin","app":"no app in context","method":"GET","url":"/index.php/apps/files/","message":"Deprecated event type for OCA\\Files::loadAdditionalScripts: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36","version":"21.0.3.1"}
Re issue 2:
In addition to the log entries from the Dropbox App I get many other entries in the log file. Please find an example below:
{"reqId":"Zne4DN0vHNpOLZcuGQmS","level":1,"time":"2021-07-28T15:58:21+00:00","remoteAddr":"45.146.164.110","user":"--","app":"no app in context","method":"GET","url":"/index.php?s=/Index/\\think\\app/invokefunction&function=call_user_func_array&vars[0]=md5&vars[1][]=HelloThinkPHP21","message":{"Exception":"Symfony\\Component\\Routing\\Exception\\RouteNotFoundException","Message":"Unable to generate a URL for the named route \"theming.Theming.getImage\" as such route does not exist.","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":365,"function":"generate","class":"Symfony\\Component\\Routing\\Generator\\UrlGenerator","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/CachingRouter.php","line":60,"function":"generate","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/lib/private/URLGenerator.php","line":85,"function":"generate","class":"OC\\Route\\CachingRouter","type":"->"},{"file":"/var/www/nextcloud/apps/theming/lib/ThemingDefaults.php","line":260,"function":"linkToRoute","class":"OC\\URLGenerator","type":"->"},{"file":"/var/www/nextcloud/apps/theming/lib/Capabilities.php","line":90,"function":"getLogo","class":"OCA\\Theming\\ThemingDefaults","type":"->"},{"file":"/var/www/nextcloud/lib/private/CapabilitiesManager.php","line":72,"function":"getCapabilities","class":"OCA\\Theming\\Capabilities","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/JSConfigHelper.php","line":183,"function":"getCapabilities","class":"OC\\CapabilitiesManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/TemplateLayout.php","line":211,"function":"getConfig","class":"OC\\Template\\JSConfigHelper","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Template.php","line":183,"function":"__construct","class":"OC\\TemplateLayout","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":780,"function":"printPage","class":"OC\\Template\\Base","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":1076,"function":"init","class":"OC","type":"::"},{"file":"/var/www/nextcloud/index.php","line":35,"args":["/var/www/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/var/www/nextcloud/3rdparty/symfony/routing/Generator/UrlGenerator.php","Line":143,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36","version":"21.0.3.1"}
You can find the full log file here: https://anonpaste.org/hpddzymx8o
Nextcloud version: 21.0.3
Operating system and version: Ubuntu 18.04.5
Apache or nginx version: Apache 2.4.29
PHP version: 8.0.8
The output of your Nextcloud log in Admin > Logging:
https://anonpaste.org/hpddzymx8o
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
$CONFIG = array (
'passwordsalt' => '*',
'secret' => '*',
'trusted_domains' =>
array (
0 => 'localhost',
1 => 'v2202107152749159147.nicesrv.de',
2 => 'cloud.ellepuls.de',
),
'datadirectory' => '/var/www/nextcloud/data',
'dbtype' => 'mysql',
'version' => '21.0.3.1',
'overwrite.cli.url' => 'http://localhost',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',
'dbpassword' => '*',
'installed' => true,
'instanceid' => 'ochjkq7gnyhn',
'maintenance' => false,
'theme' => '',
'loglevel' => 1,
'log_type' => 'file',
'logfile' => '/var/log/nextcloud.log',
'mail_smtpmode' => 'smtp',
'mail_smtpsecure' => 'tls',
'mail_sendmailmode' => 'smtp',
'mail_from_address' => '*',
'mail_domain' => '*',
'mail_smtpauth' => 1,
'mail_smtphost' => '*',
'mail_smtpname' => '*',
'mail_smtppassword' => '*',
'memcache.local' => '\\OC\\Memcache\\APCu',
The output of your Apache/nginx/system log in /var/log/____
:
[Fri Jul 30 06:25:02.804415 2021] [mpm_prefork:notice] [pid 8755] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.1 configured -- resuming normal operations
[Fri Jul 30 06:25:02.804460 2021] [core:notice] [pid 8755] AH00094: Command line: '/usr/sbin/apache2'
[Fri Jul 30 13:30:09.990255 2021] [access_compat:error] [pid 26897] [client 192.196.199.199:65078] AH01797: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Fri Jul 30 13:45:04.673910 2021] [access_compat:error] [pid 25560] [client 192.196.199.199:60795] AH01797: client denied by server configuration: /var/www/nextcloud/data/.ocdata