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]: Too few arguments to function OCA\Collectives\BackgroundJob\ExpirePageTrash #830

Closed
4 of 8 tasks
maccarib opened this issue Aug 12, 2023 · 2 comments
Closed
4 of 8 tasks
Labels
0. Needs triage bug Something isn't working

Comments

@maccarib
Copy link

⚠️ This issue respects the following points: ⚠️

Bug description

Since the latest two updates (27.0.1 and 27.0.2) I get the following error when cron.php is called through a cron job:

ArgumentCountError: Too few arguments to function OCA\Collectives\BackgroundJob\ExpirePageTrash::__construct(), 0 passed in /home/www/maccloud/lib/private/BackgroundJob/JobList.php on line 322 and exactly 3 expected in /home/www/maccloud/apps/collectives/lib/BackgroundJob/ExpirePageTrash.php:18 Stack trace: #0 /home/www/maccloud/lib/private/BackgroundJob/JobList.php(322): OCA\Collectives\BackgroundJob\ExpirePageTrash->__construct() nextcloud/server#1 /home/www/maccloud/lib/private/BackgroundJob/JobList.php(227): OC\BackgroundJob\JobList->buildJob(Array) nextcloud/server#2 /home/www/maccloud/cron.php(145): OC\BackgroundJob\JobList->getNext(false) nextcloud/server#3 {main}

In the job list in the jobs table in my database I find the corresponding job with 0 given arguments as the error states correctly.

'nc_jobs' ('id', 'class', 'argument', 'last_run', 'last_checked', 'reserved_at', 'execution_duration', 'argument_hash', 'time_sensitive') : (5866, 'OCA\\Collectives\\BackgroundJob\\ExpirePageTrash', 'null', 0, 1691718366, 1691718366, 0, '37a6259cc0c1dae299a7866489dff0bd', 1),

Steps to reproduce

  1. Call cron.php as intended

Expected behavior

No job errors when cron.php is being executed

Installation method

Community Web installer on a VPS or web space

Nextcloud Server version

25

Operating system

None

PHP engine version

PHP 8.1

Web server

None

Database engine version

MariaDB

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

Updated from a MINOR version (ex. 22.1 to 22.2)

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": {
        "default_language": "de",
        "defaultapp": "calendar",
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "27.0.2.1",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "nc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "filesystem_check_changes": 1,
        "installed": true,
        "logfile": "\/data\/nextcloud.log",
        "loglevel": 0,
        "log_query": false,
        "maintenance": false,
        "trusted_domains": [
            "***REMOVED SENSITIVE VALUE***"
        ],
        "secret": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
        "overwriteprotocol": "https",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtpsecure": "ssl",
        "mail_smtpport": "465",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_sendmailmode": "smtp",
        "app_install_overwrite": [
            "keeweb",
            "occweb",
            "files_downloadactivity",
            "theming_customcss",
            "bookmarks",
            "bruteforcesettings",
            "richdocumentscode",
            "richdocuments"
        ],
        "mysql.utf8mb4": true,
        "theme": "",
        "updater.release.channel": "stable",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "default_phone_region": "DE",
        "updater.secret": "***REMOVED SENSITIVE VALUE***"
    }
}

List of activated Apps

Enabled
  - activity: 2.19.0
  - bookmarks: 13.0.1
  - bruteforcesettings: 2.7.0
  - calendar: 4.4.4
  - circles: 27.0.1
  - cloud_federation_api: 1.10.0
  - collectives: 2.7.0
  - comments: 1.17.0
  - contacts: 5.3.2
  - contactsinteraction: 1.8.0
  - dashboard: 7.7.0
  - dav: 1.27.0
  - deck: 1.10.0
  - federatedfilesharing: 1.17.0
  - federation: 1.17.0
  - files: 1.22.0
  - files_downloadactivity: 1.16.0
  - files_pdfviewer: 2.8.0
  - files_rightclick: 1.6.0
  - files_sharing: 1.19.0
  - files_versions: 1.20.0
  - keeweb: 0.6.13
  - logreader: 2.12.0
  - lookup_server_connector: 1.15.0
  - mail: 3.2.6
  - nextcloud_announcements: 1.16.0
  - notifications: 2.15.0
  - oauth2: 1.15.1
  - occweb: 0.1.0
  - password_policy: 1.17.0
  - photos: 2.3.0
  - privacy: 1.11.0
  - provisioning_api: 1.17.0
  - recommendations: 1.6.0
  - related_resources: 1.2.0
  - richdocuments: 8.1.1
  - serverinfo: 1.17.0
  - settings: 1.9.0
  - sharebymail: 1.17.0
  - support: 1.10.0
  - survey_client: 1.15.0
  - systemtags: 1.17.0
  - tasks: 0.15.0
  - text: 3.8.0
  - theming: 2.2.0
  - theming_customcss: 1.14.0
  - twofactor_backupcodes: 1.16.0
  - updatenotification: 1.17.0
  - user_status: 1.7.0
  - viewer: 2.1.0
  - weather_status: 1.7.0
  - workflowengine: 2.9.0
Disabled:
  - admin_audit: 1.17.0 (installed 1.9.0)
  - analytics: 4.9.4 (installed 4.9.4)
  - encryption: 2.15.0
  - files_external: 1.19.0 (installed 0.2.3)
  - files_trashbin: 1.17.0 (installed 0.6.3)
  - firstrunwizard: 2.16.0 (installed 1.1)
  - news: 22.0.0 (installed 22.0.0)
  - richdocumentscode: 23.5.202 (installed 23.5.202)
  - spreed: 17.0.3 (installed 17.0.3)
  - suspicious_login: 5.0.0
  - twofactor_totp: 9.0.0
  - user_ldap: 1.17.0

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

@maccarib maccarib added 0. Needs triage bug Something isn't working labels Aug 12, 2023
@szaimen szaimen transferred this issue from nextcloud/server Aug 12, 2023
@solracsf solracsf changed the title [Bug]: [Bug]: Too few arguments to function OCA\Collectives\BackgroundJob\ExpirePageTrash Aug 12, 2023
@juliushaertl
Copy link
Member

Closing as duplicate of #828

@juliushaertl juliushaertl closed this as not planned Won't fix, can't repro, duplicate, stale Aug 14, 2023
@moqmar
Copy link

moqmar commented Oct 12, 2023

For everyone who found this issue and is confused because they're already using the new version:

You must enable the "Deleted Files" app! 🙈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants