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

Can't unlock file with TTL = 0 #198

Open
camlafit opened this issue Dec 19, 2023 · 1 comment
Open

Can't unlock file with TTL = 0 #198

camlafit opened this issue Dec 19, 2023 · 1 comment
Labels
bug Something isn't working needs info

Comments

@camlafit
Copy link

Hi

We have different files stored in oc_files_lock table with this pattern :

id user_id file_id token creation type scope ttl owner
1876 one@ccount 2042608 files_lock/965f5b0d-de31-4b57-9b89-68d697120853 1695049796 0 0 0

Looks permanent and can't be removed/cleaned with occ cli :

/occ files:lock 2042608 --unlock
unlocking File #2042608

In FileService.php line 73:
                                 
  [OCP\Files\NotFoundException]  
                                 
files:lock [--output [OUTPUT]] [-u|--unlock] [--uninstall] [-s|--status] [--] [<file_id> [<user_id>]]

Is it possible to clean them ?

@joshtrichards
Copy link
Member

Probably similar to #451

Try specifying the user_id as well.

@joshtrichards joshtrichards added bug Something isn't working needs info labels Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs info
Projects
None yet
Development

No branches or pull requests

2 participants