Error: No such command "redis-cache"


A long time since my last post.

It all has been going very smoothly since then, thank you ERPNext developers!

But 2 days ago, my host provider had a problem and the main node where my VPS was, broke, so they had to change node of my VPS.

Since then, I only get 502 bad gateways errors, and trying to get back to normal, I think I have make all worst.

At the moment, I have a problem with redis-cache, I think. I am trying to reinstall components, but when I arrive to redis-cache, I get:

bench setup redis-cache

Usage: bench setup [OPTIONS] COMMAND [ARGS]...

Error: No such command "redis-cache".

Error: No such command “redis-cache”.

Does anyone has a hint that can help me, because at the moment I am totally at lost?

At some point I had to reinstall nodejs and npm.

Many thanks and kind regards from Spain,


Well, I have given up.

I restored an old backup, recovered last database dump with mysqldump, and restored with bench and migrated afterwards.

It seems it came out well.

Thanks and regards,


1 Like

@pagliaso this command was probably bench setup redis

Maybe try upgrading on a separate VM. A lots of new updates are worth it!

Hi rmehta,

Thank you for your reply, and sorry for my slow reply.

I restored a backup at the end, but it is good to know the updated commands.

Yes, I don’t like to not be updated with all nice features and improvements you are coming out with!

Thanks and kind regards from Spain,