Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Expecting an OCP\Files\Folder object as the fourth argument, but it received null. #37926

Closed
6 of 9 tasks
mustafaatatuzun opened this issue Apr 25, 2023 · 1 comment
Closed
6 of 9 tasks
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug

Comments

@mustafaatatuzun
Copy link

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
  • Nextcloud Server is running on 64bit capable CPU, PHP and OS.
  • I agree to follow Nextcloud's Code of Conduct.

Bug description

in the log files we see

{"reqId":"sMHk6gTAGoRslhFnEFqb","level":3,"time":"2023-04-25T00:38:24+03:00","remoteAddr":"192.168.42.10","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\Files\Service\TagService::__construct>
{"reqId":"hLmexJt3toNlXCTF38hh","level":3,"time":"2023-04-25T00:38:24+03:00","remoteAddr":"192.168.42.10","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\Files\Service\TagService::__construct>
{"reqId":"1nck8W4xN9fECIaxfp7G","level":3,"time":"2023-04-25T00:39:05+03:00","remoteAddr":"192.168.200.18","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\Files\Service\TagService::__construc>
{"reqId":"sehCd8Y2R1UL2T6DIrT9","level":3,"time":"2023-04-25T00:39:24+03:00","remoteAddr":"192.168.42.10","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\Files\Service\TagService::__construct>
{"reqId":"0srre8H3qlkwWgAFpO3f","level":3,"time":"2023-04-25T00:39:24+03:00","remoteAddr":"192.168.42.10","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\Files\Service\TagService::__construct>
{"reqId":"R4ua6AQGLFOUPONRqZqQ","level":3,"time":"2023-04-25T00:39:24+03:00","remoteAddr":"192.168.42.10","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\Files\Service\TagService::__construct>
{"reqId":"2nIFHekkO6vybUVRtyUN","level":3,"time":"2023-04-25T00:40:05+03:00","remoteAddr":"192.168.200.18","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\Files\Service\TagService::__construc>
{"reqId":"hzWu2NDFcpA1A9keUl4I","level":3,"time":"2023-04-25T00:40:24+03:00","remoteAddr":"192.168.42.10","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\Files\Service\TagService::__construct>
{"reqId":"dE5FeJLGn7CH6MIotKNk","level":3,"time":"2023-04-25T00:40:24+03:00","remoteAddr":"192.168.42.10","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\Files\Service\TagService::__construct>
{"reqId":"Gdv2Da4ZTCKsIk5TIvpW","level":3,"time":"2023-04-25T00:40:24+03:00","remoteAddr":"192.168.42.10","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\Files\Service\TagService::__construct>
{"reqId":"9swRW3NcMHw30tksVWBR","level":3,"time":"2023-04-25T00:41:05+03:00","remoteAddr":"192.168.200.18","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\Files\Service\TagService::__construc>
{"reqId":"6G6nK5sXYZOGIUJ3aXqv","level":3,"time":"2023-04-25T00:41:24+03:00","remoteAddr":"192.168.42.10","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\Files\Service\TagService::__construct>
{"reqId":"6z0XF8sr7wUdZXBTTPfI","level":3,"time":"2023-04-25T00:41:24+03:00","remoteAddr":"192.168.42.10","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\Files\Service\TagService::__construct>
{"reqId":"QdgysIB3KI7S9KqemhNT","level":3,"time":"2023-04-25T00:41:24+03:00","remoteAddr":"192.168.42.10","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\Files\Service\TagService::__construct>
{"reqId":"vG3BMphAoEGwt0Bz72Hw","level":3,"time":"2023-04-25T00:42:05+03:00","remoteAddr":"192.168.200.18","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\Files\Service\TagService::__construc>
{"reqId":"TFcH84ILeb3IZN060fL4","level":3,"time":"2023-04-25T00:42:24+03:00","remoteAddr":"192.168.42.10","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\Files\Service\TagService::__construct>
{"reqId":"2Dz61mcBjP3ZY7ua2aRo","level":3,"time":"2023-04-25T00:42:24+03:00","remoteAddr":"192.168.42.10","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\Files\Service\TagService::__construct>
{"reqId":"ugUK4YXwhP4CP7RfUNRb","level":3,"time":"2023-04-25T00:42:24+03:00","remoteAddr":"192.168.42.10","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\Files\Service\TagService::__construct>
{"reqId":"ONigTTRvG3vXyvtbnthH","level":3,"time":"2023-04-25T00:43:05+03:00","remoteAddr":"192.168.200.18","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\Files\Service\TagService::__construc>
{"reqId":"CB52aqlIRbsXHYtMDO0s","level":3,"time":"2023-04-25T00:43:24+03:00","remoteAddr":"192.168.42.10","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\Files\Service\TagService::__construct>

Steps to reproduce

  1. Just check the log

Expected behavior

dont know why there is log like this

Installation method

Community VM appliance

Nextcloud Server version

26

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.1

Web server

Nginx

Database engine version

MySQL

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "nextcloud",
            "nextcloud.semra.com.tr"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "26.0.1.1",
        "overwrite.cli.url": "https:\/\/nextcloud.semra.com.tr",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "activity_expire_days": 14,
        "auth.bruteforce.protection.enabled": true,
        "blacklisted_files": [
            ".htaccess",
            "Thumbs.db",
            "thumbs.db"
        ],
        "cron_log": true,
        "default_phone_region": "TR",
        "enable_previews": true,
        "enabledPreviewProviders": [
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\BMP",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\Movie",
            "OC\\Preview\\PDF",
            "OC\\Preview\\MP3",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown"
        ],
        "filesystem_check_changes": 0,
        "filelocking.enabled": "true",
        "htaccess.RewriteBase": "\/",
        "integrity.check.disabled": false,
        "knowledgebaseenabled": false,
        "log_rotate_size": 104857600,
        "logfile": "\/var\/log\/nextcloud\/nextcloud.log",
        "loglevel": 2,
        "logtimezone": "Europe\/Helsinki",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "overwriteprotocol": "https",
        "preview_max_x": 1024,
        "preview_max_y": 768,
        "preview_max_scale_factor": 1,
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 0
        },
        "quota_include_external_storage": false,
        "share_folder": "\/Releases",
        "skeletondirectory": "",
        "trashbin_retention_obligation": "auto, 7",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
        "maintenance": false,
        "theme": "",
        "updater.release.channel": "stable",
        "app_install_overwrite": [
            "scanner",
            "impersonate",
            "files_archive",
            "transfer",
            "files_fulltextsearch"
        ]
    }
}
root@nextcloud:/var/www/nextcloud# php occ config:list system
Console has to be executed with the user that owns the file config/config.php
Current user id: 0
Owner id of config.php: 33
Try adding 'sudo -u #33' to the beginning of the command (without the single quotes)
If running with 'docker exec' try adding the option '-u 33' to the docker command (without the single quotes)
root@nextcloud:/var/www/nextcloud# ./occ config:list system
bash: ./occ: Permission denied
root@nextcloud:/var/www/nextcloud# sudo -u www-data php occ config:list system
{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "nextcloud",
            "nextcloud.semra.com.tr"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "26.0.1.1",
        "overwrite.cli.url": "https:\/\/nextcloud.semra.com.tr",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "activity_expire_days": 14,
        "auth.bruteforce.protection.enabled": true,
        "blacklisted_files": [
            ".htaccess",
            "Thumbs.db",
            "thumbs.db"
        ],
        "cron_log": true,
        "default_phone_region": "TR",
        "enable_previews": true,
        "enabledPreviewProviders": [
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\BMP",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\Movie",
            "OC\\Preview\\PDF",
            "OC\\Preview\\MP3",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown"
        ],
        "filesystem_check_changes": 0,
        "filelocking.enabled": "true",
        "htaccess.RewriteBase": "\/",
        "integrity.check.disabled": false,
        "knowledgebaseenabled": false,
        "log_rotate_size": 104857600,
        "logfile": "\/var\/log\/nextcloud\/nextcloud.log",
        "loglevel": 2,
        "logtimezone": "Europe\/Helsinki",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "overwriteprotocol": "https",
        "preview_max_x": 1024,
        "preview_max_y": 768,
        "preview_max_scale_factor": 1,
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 0
        },
        "quota_include_external_storage": false,
        "share_folder": "\/Releases",
        "skeletondirectory": "",
        "trashbin_retention_obligation": "auto, 7",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
        "maintenance": false,
        "theme": "",
        "updater.release.channel": "stable",
        "app_install_overwrite": [
            "scanner",
            "impersonate",
            "files_archive",
            "transfer",
            "files_fulltextsearch"
        ]
    }

List of activated Apps

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "nextcloud",
            "nextcloud.semra.com.tr"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "26.0.1.1",
        "overwrite.cli.url": "https:\/\/nextcloud.semra.com.tr",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "activity_expire_days": 14,
        "auth.bruteforce.protection.enabled": true,
        "blacklisted_files": [
            ".htaccess",
            "Thumbs.db",
            "thumbs.db"
        ],
        "cron_log": true,
        "default_phone_region": "TR",
        "enable_previews": true,
        "enabledPreviewProviders": [
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\BMP",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\Movie",
            "OC\\Preview\\PDF",
            "OC\\Preview\\MP3",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown"
        ],
        "filesystem_check_changes": 0,
        "filelocking.enabled": "true",
        "htaccess.RewriteBase": "\/",
        "integrity.check.disabled": false,
        "knowledgebaseenabled": false,
        "log_rotate_size": 104857600,
        "logfile": "\/var\/log\/nextcloud\/nextcloud.log",
        "loglevel": 2,
        "logtimezone": "Europe\/Helsinki",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "overwriteprotocol": "https",
        "preview_max_x": 1024,
        "preview_max_y": 768,
        "preview_max_scale_factor": 1,
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 0
        },
        "quota_include_external_storage": false,
        "share_folder": "\/Releases",
        "skeletondirectory": "",
        "trashbin_retention_obligation": "auto, 7",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
        "maintenance": false,
        "theme": "",
        "updater.release.channel": "stable",
        "app_install_overwrite": [
            "scanner",
            "impersonate",
            "files_archive",
            "transfer",
            "files_fulltextsearch"
        ]

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

{"reqId":"sMHk6gTAGoRslhFnEFqb","level":3,"time":"2023-04-25T00:38:24+03:00","remoteAddr":"192.168.42.10","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\\Files\\Service\\TagService::__construct>
{"reqId":"hLmexJt3toNlXCTF38hh","level":3,"time":"2023-04-25T00:38:24+03:00","remoteAddr":"192.168.42.10","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\\Files\\Service\\TagService::__construct>
{"reqId":"1nck8W4xN9fECIaxfp7G","level":3,"time":"2023-04-25T00:39:05+03:00","remoteAddr":"192.168.200.18","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\\Files\\Service\\TagService::__construc>
{"reqId":"sehCd8Y2R1UL2T6DIrT9","level":3,"time":"2023-04-25T00:39:24+03:00","remoteAddr":"192.168.42.10","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\\Files\\Service\\TagService::__construct>
{"reqId":"0srre8H3qlkwWgAFpO3f","level":3,"time":"2023-04-25T00:39:24+03:00","remoteAddr":"192.168.42.10","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\\Files\\Service\\TagService::__construct>
{"reqId":"R4ua6AQGLFOUPONRqZqQ","level":3,"time":"2023-04-25T00:39:24+03:00","remoteAddr":"192.168.42.10","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\\Files\\Service\\TagService::__construct>
{"reqId":"2nIFHekkO6vybUVRtyUN","level":3,"time":"2023-04-25T00:40:05+03:00","remoteAddr":"192.168.200.18","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\\Files\\Service\\TagService::__construc>
{"reqId":"hzWu2NDFcpA1A9keUl4I","level":3,"time":"2023-04-25T00:40:24+03:00","remoteAddr":"192.168.42.10","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\\Files\\Service\\TagService::__construct>
{"reqId":"dE5FeJLGn7CH6MIotKNk","level":3,"time":"2023-04-25T00:40:24+03:00","remoteAddr":"192.168.42.10","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\\Files\\Service\\TagService::__construct>
{"reqId":"Gdv2Da4ZTCKsIk5TIvpW","level":3,"time":"2023-04-25T00:40:24+03:00","remoteAddr":"192.168.42.10","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\\Files\\Service\\TagService::__construct>
{"reqId":"9swRW3NcMHw30tksVWBR","level":3,"time":"2023-04-25T00:41:05+03:00","remoteAddr":"192.168.200.18","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\\Files\\Service\\TagService::__construc>
{"reqId":"6G6nK5sXYZOGIUJ3aXqv","level":3,"time":"2023-04-25T00:41:24+03:00","remoteAddr":"192.168.42.10","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\\Files\\Service\\TagService::__construct>
{"reqId":"6z0XF8sr7wUdZXBTTPfI","level":3,"time":"2023-04-25T00:41:24+03:00","remoteAddr":"192.168.42.10","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\\Files\\Service\\TagService::__construct>
{"reqId":"QdgysIB3KI7S9KqemhNT","level":3,"time":"2023-04-25T00:41:24+03:00","remoteAddr":"192.168.42.10","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\\Files\\Service\\TagService::__construct>
{"reqId":"vG3BMphAoEGwt0Bz72Hw","level":3,"time":"2023-04-25T00:42:05+03:00","remoteAddr":"192.168.200.18","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\\Files\\Service\\TagService::__construc>
{"reqId":"TFcH84ILeb3IZN060fL4","level":3,"time":"2023-04-25T00:42:24+03:00","remoteAddr":"192.168.42.10","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\\Files\\Service\\TagService::__construct>
{"reqId":"2Dz61mcBjP3ZY7ua2aRo","level":3,"time":"2023-04-25T00:42:24+03:00","remoteAddr":"192.168.42.10","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\\Files\\Service\\TagService::__construct>
{"reqId":"ugUK4YXwhP4CP7RfUNRb","level":3,"time":"2023-04-25T00:42:24+03:00","remoteAddr":"192.168.42.10","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\\Files\\Service\\TagService::__construct>
{"reqId":"ONigTTRvG3vXyvtbnthH","level":3,"time":"2023-04-25T00:43:05+03:00","remoteAddr":"192.168.200.18","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\\Files\\Service\\TagService::__construc>
{"reqId":"CB52aqlIRbsXHYtMDO0s","level":3,"time":"2023-04-25T00:43:24+03:00","remoteAddr":"192.168.42.10","user":"--","app":"index","method":"GET","url":"/apps/files/api/v1/stats","message":"OCA\\Files\\Service\\TagService::__construct>

Additional info

No response

@mustafaatatuzun mustafaatatuzun added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Apr 25, 2023
@kesselb
Copy link
Contributor

kesselb commented Apr 25, 2023

Thanks for your bug report.

The error is fixed with Nextcloud 26.0.2.

As reference: #37826

@kesselb kesselb closed this as completed Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug
Projects
None yet
Development

No branches or pull requests

2 participants