nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.46k stars 4.08k forks source link

Required parameter $internalPath follows optional parameter $mountId at /usr/share/webapps/nextcloud/lib/private/Files/Config/CachedMountFileInfo.php#34 #26670

Closed steadybright closed 3 years ago

steadybright commented 3 years ago

How to use GitHub

Steps to reproduce

  1. Run Nextcloud 21 on nginx and PHP 8.
  2. Check Nextcloud log.
  3. Note numerous instances of this error in the Nextcloud log file.

Expected behaviour

I do not expect this error to occur.

Actual behaviour

The Nextcloud log file contains numerous as described in the title. Nextcloud appears to work normally otherwise.

Server configuration

Operating system: Arch Linux 5.11.15.arch1-2 Web server: NGINX nginx-mainline 1.19.10-1 Database: MariaDB 10.5.9-1 PHP version: PHP 8.0.3-2 Nextcloud version: Nextcloud 21.0.1 Updated from an older Nextcloud/ownCloud or fresh install: Fresh install Where did you install Nextcloud from: Arch Linux repos Signing status:

Signing status ``` No errors have been found. ```

List of activated apps:

App list ``` PHP Warning: Version warning: Imagick was compiled against ImageMagick version 1802 but version 1803 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0 Enabled: - accessibility: 1.7.0 - activity: 2.14.3 - admin_audit: 1.11.0 - calendar: 2.2.0 - cloud_federation_api: 1.4.0 - comments: 1.11.0 - contacts: 3.5.1 - contactsinteraction: 1.2.0 - dashboard: 7.1.0 - dav: 1.17.1 - extract: 1.3.1 - federatedfilesharing: 1.11.0 - federation: 1.11.0 - files: 1.16.0 - files_external: 1.12.0 - files_pdfviewer: 2.1.0 - files_rightclick: 1.0.0 - files_sharing: 1.13.1 - files_trashbin: 1.11.0 - files_versions: 1.14.0 - files_videoplayer: 1.10.0 - firstrunwizard: 2.10.0 - logreader: 2.6.0 - lookup_server_connector: 1.9.0 - nextcloud_announcements: 1.10.0 - notes: 4.0.4 - notifications: 2.9.0 - oauth2: 1.9.0 - password_policy: 1.11.0 - photos: 1.3.0 - privacy: 1.5.0 - provisioning_api: 1.11.0 - recommendations: 1.0.0 - richdocuments: 4.0.4 - serverinfo: 1.11.0 - settings: 1.3.0 - sharebymail: 1.11.0 - support: 1.4.0 - survey_client: 1.9.0 - systemtags: 1.11.0 - tasks: 0.13.6 - text: 3.2.0 - theming: 1.12.0 - twofactor_backupcodes: 1.10.0 - twofactor_totp: 6.0.0 - updatenotification: 1.11.0 - user_status: 1.1.1 - viewer: 1.5.0 - weather_status: 1.1.0 - workflowengine: 2.3.0 Disabled: - bruteforcesettings - encryption - user_ldap ```

Nextcloud configuration:

Config report ``` PHP Warning: Version warning: Imagick was compiled against ImageMagick version 1802 but version 1803 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0 { "system": { "datadirectory": "***REMOVED SENSITIVE VALUE***", "log_type": "file", "logfile": "\/var\/log\/nextcloud.log", "logfilemode": 416, "loglevel": 3, "logdateformat": "F d, Y H:i:s", "logtimezone": "America\/Chicago", "apps_paths": [ { "path": "\/usr\/share\/webapps\/nextcloud\/apps", "url": "\/apps", "writable": false }, { "path": "\/var\/lib\/nextcloud\/apps", "url": "\/wapps", "writable": true } ], "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "my.domain.com" ], "dbtype": "mysql", "version": "21.0.1.1", "overwrite.cli.url": "https:\/\/my.domain.com", "check_for_working_htaccess": false, "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "mysql.utf8mb4": true, "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "force_language": "en", "default_phone_region": "US", "force_locale": "en_US", "mail_smtpmode": "smtp", "mail_smtpsecure": "ssl", "mail_sendmailmode": "smtp", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtpauthtype": "LOGIN", "mail_smtpauth": 1, "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "465", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "memcache.local": "\\OC\\Memcache\\APCu", "memcache.locking": "\\OC\\Memcache\\Redis", "redis": { "host": "***REMOVED SENSITIVE VALUE***", "port": 0, "dbindex": 0, "password": "***REMOVED SENSITIVE VALUE***", "timeout": 1.5 }, "app_install_overwrite": [ "richdocuments" ], "maintenance": false } } ```

Are you using external storage, if yes which one: No Are you using encryption: No Are you using an external user-backend, if yes which one: No

Client configuration

Browser: Multiple: Firefox and Opera (current versions) Operating system: Windows 10 and Arch Linux

Logs

Web server error log

Web server error log ``` NGINX log file is empty ```

Nextcloud log (data/nextcloud.log)

Nextcloud log ``` Note that I recently cleared my log files. {"reqId":"YRNoOnx2AnYm2o29FcPa","level":3,"time":"April 20, 2021 11:42:17","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":{"Exception":"Error","Message":"filesize(): stat failed for /var/lib/nextcloud/data/flow.log at /usr/share/webapps/nextcloud/lib/public/Log/RotationTrait.php#62","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/usr/share/webapps/nextcloud/lib/public/Log/RotationTrait.php","line":62,"function":"filesize"},{"file":"/usr/share/webapps/nextcloud/apps/workflowengine/lib/BackgroundJobs/Rotate.php","line":49,"function":"shouldRotateBySize","class":"OCA\\WorkflowEngine\\BackgroundJobs\\Rotate","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/BackgroundJob/Job.php","line":52,"function":"run","class":"OCA\\WorkflowEngine\\BackgroundJobs\\Rotate","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/BackgroundJob/TimedJob.php","line":59,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->"},{"file":"/usr/share/webapps/nextcloud/cron.php","line":128,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","type":"->"}],"File":"/usr/share/webapps/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"--","version":"21.0.1.1"} {"reqId":"2kIHQUX1iLpbJRYTbd4n","level":3,"time":"April 20, 2021 11:59:10","remoteAddr":"123.123.123.123","user":"myUser","app":"PHP","method":"GET","url":"/apps/richdocuments/template/preview/17929?y=297&x=210","message":"Required parameter $mode follows optional parameter $a at /var/lib/nextcloud/apps/richdocuments/lib/Controller/TemplatesController.php#196","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36 OPR/75.0.3969.171","version":"21.0.1.1"} {"reqId":"6byw32EkbWKHK7E6JqvI","level":3,"time":"April 20, 2021 14:43:57","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":{"Exception":"Error","Message":"filesize(): stat failed for /var/lib/nextcloud/data/flow.log at /usr/share/webapps/nextcloud/lib/public/Log/RotationTrait.php#62","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/usr/share/webapps/nextcloud/lib/public/Log/RotationTrait.php","line":62,"function":"filesize"},{"file":"/usr/share/webapps/nextcloud/apps/workflowengine/lib/BackgroundJobs/Rotate.php","line":49,"function":"shouldRotateBySize","class":"OCA\\WorkflowEngine\\BackgroundJobs\\Rotate","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/BackgroundJob/Job.php","line":52,"function":"run","class":"OCA\\WorkflowEngine\\BackgroundJobs\\Rotate","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/BackgroundJob/TimedJob.php","line":59,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->"},{"file":"/usr/share/webapps/nextcloud/cron.php","line":128,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","type":"->"}],"File":"/usr/share/webapps/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"--","version":"21.0.1.1"} {"reqId":"p5c1oxHfxltuUwcGWKcM","level":3,"time":"April 20, 2021 17:35:36","remoteAddr":"63.149.110.34","user":"myUser","app":"PHP","method":"GET","url":"/core/preview?fileId=2872&x=32&y=32","message":"Required parameter $internalPath follows optional parameter $mountId at /usr/share/webapps/nextcloud/lib/private/Files/Config/CachedMountFileInfo.php#34","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36 OPR/75.0.3969.171","version":"21.0.1.1"} {"reqId":"ahahojZZEfpF0c1SNjyp","level":3,"time":"April 20, 2021 17:43:59","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":{"Exception":"Error","Message":"filesize(): stat failed for /var/lib/nextcloud/data/flow.log at /usr/share/webapps/nextcloud/lib/public/Log/RotationTrait.php#62","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/usr/share/webapps/nextcloud/lib/public/Log/RotationTrait.php","line":62,"function":"filesize"},{"file":"/usr/share/webapps/nextcloud/apps/workflowengine/lib/BackgroundJobs/Rotate.php","line":49,"function":"shouldRotateBySize","class":"OCA\\WorkflowEngine\\BackgroundJobs\\Rotate","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/BackgroundJob/Job.php","line":52,"function":"run","class":"OCA\\WorkflowEngine\\BackgroundJobs\\Rotate","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/BackgroundJob/TimedJob.php","line":59,"function":"execute","class":"OC\\BackgroundJob\\Job","type":"->"},{"file":"/usr/share/webapps/nextcloud/cron.php","line":128,"function":"execute","class":"OC\\BackgroundJob\\TimedJob","type":"->"}],"File":"/usr/share/webapps/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"--","version":"21.0.1.1"} ```

Browser log

Browser log ``` Unknown ```
kesselb commented 3 years ago

Duplicate of https://github.com/nextcloud/server/issues/25806