Closed letic closed 1 year ago
The slice keys added by JuiceFS must be a Redis list. You may find the invalid keys with:
for k in `redis-cli --scan --pattern 'c*_*'`; do t=`redis-cli type $k`; if [ $t != 'list' ]; then echo $k $t; fi; done
Hey @SandyXSD ,
Thank you so much for your reactivity!
The redis key was the chunk "ca6b19fb2021894a35ddbf17caf40357/imagePath-1fba7e075940fa8e318b8efcc0782d2b-user_status-app.svg" id. Deleting it with the redis-cli solved it.
I don't know if you want to keep this issue open to handle these kind of errors more gracefully, or is it the expected behaviour ?
Thanks letic
We'd better log more information to simplify the troubleshooting.
What happened: Trying to gc or fsck end in redis error.
What you expected to happen: That it would delete the bad chunk, or handle this kind of error in redis. How is it possible to get the redis key that make it crash ? This way I can just delete and re-run a gc/fsck. This is only used for backups so I can loose this chunk. How to reproduce it (as minimally and precisely as possible): I just need to run juicefs gc or fsck to make it crash
Environment: