Skip to content

[Bug]: occ files:scan can't be cancelled #42562

@mio-19

Description

@mio-19

⚠️ This issue respects the following points: ⚠️

Bug description

ooc files:scan can't be cancelled

Steps to reproduce

  1. docker exec --user www-data -it nextcloud-aio-nextcloud php occ files:scan --all
  2. press Ctrl+C
^CError during scan: Invalid callback OCA\Files\Command\Scan::cancelOperation, cannot access protected method OCA\Files\Command\Scan::cancelOperation()
^CError during scan: Invalid callback OCA\Files\Command\Scan::cancelOperation, cannot access protected method OCA\Files\Command\Scan::cancelOperation()
^CError during scan: Invalid callback OCA\Files\Command\Scan::cancelOperation, cannot access protected method OCA\Files\Command\Scan::cancelOperation()
^C^CError during scan: Invalid callback OCA\Files\Command\Scan::cancelOperation, cannot access protected method OCA\Files\Command\Scan::cancelOperation()
^CError during scan: Invalid callback OCA\Files\Command\Scan::cancelOperation, cannot access protected method OCA\Files\Command\Scan::cancelOperation()
^CError during scan: Invalid callback OCA\Files\Command\Scan::cancelOperation, cannot access protected method OCA\Files\Command\Scan::cancelOperation()
^C^C^CError during scan: Invalid callback OCA\Files\Command\Scan::cancelOperation, cannot access protected method OCA\Files\Command\Scan::cancelOperation()
^CError during scan: Invalid callback OCA\Files\Command\Scan::cancelOperation, cannot access protected method OCA\Files\Command\Scan::cancelOperation()
^CError during scan: Invalid callback OCA\Files\Command\Scan::cancelOperation, cannot access protected method OCA\Files\Command\Scan::cancelOperation()
^CError during scan: Invalid callback OCA\Files\Command\Scan::cancelOperation, cannot access protected method OCA\Files\Command\Scan::cancelOperation()
^C^C^C^C^CError during scan: Invalid callback OCA\Files\Command\Scan::cancelOperation, cannot access protected method OCA\Files\Command\Scan::cancelOperation()

Expected behavior

It can be cancelled so that I can run the command in a screen instead of unstable bare ssh.

Installation method

Official All-in-One appliance

Nextcloud Server version

27

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

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

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmap27-feedbackbug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions