Another process is already scanning '/xxx'

Hi, I have killed the command

sudo -u www-data php occ files:scan --all

with ctrl + c.

Now I obtain the error:

$sudo -u www-data php occ files:scan --all

Starting scan for user 1 out of 3 (usera)

Another process is already scanning ‘/usera’

Starting scan for user 2 out of 3 (user)

Another process is already scanning ‘/userb’

Starting scan for user 3 out of 3 (users)

Another process is already scanning ‘/userc’

±--------±------±----±--------±--------±-------±-------------+

| Folders | Files | New | Updated | Removed | Errors | Elapsed time |

±--------±------±----±--------±--------±-------±-------------+

| 0 | 0 | 0 | 0 | 0 | 0 | 00:00:00 |

±--------±------±----±--------±--------±-------±-------------+

How can I solve?

  • Nextcloud Server version (e.g., 29.x.x):
    • 34.0.1
  • Operating system and version (e.g., Ubuntu 24.04):
    • Debian 13.5
  • Web server and version (e.g, Apache 2.4.25):
    • Apache 2 2.4.67-1~deb13u3
  • PHP version (e.g, 8.3):
    • 8.4
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • I caused it (see first lines)
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Bare metal on apache + phpmod
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • no

Solved with this SQL command and recreating the list

TRUNCATE TABLE oc_file_locks;