Finding the filepath based on redis keys?

Nextcloud version: 19.0.4
Operating system and version: Synology DSM 6.2.3-25426 Update 2
Apache or nginx version: Apache 2.4.43
PHP version: 7.3

I’m not looking for a fix for my specific Nextcloud instance. I have a general problem with file locking in redis.

I can’t do a full “occ files:scan --all” because I get a file locking error. Redis shows me two keys of lockfiles. If I flush redis, files:scan works. However, redis seems to continue to lock files afterwards without me opening files.

Is there any way for me to know the exact file that is causing the problems based on the redis keys? Do I need a key or something else to get to the filepath based on the keys?

I would really like to find out what exact files cause the problems so that I can reproduce the problem or just simply delete them. But right now all I have is a sequence of letters and numbers.

Any help is appreciated. Thanks!

If you know the file id you can search the oc_filecache table to find the associated file name.