ERPNext.com Frappe Cloud Support Partners Foundation Frappe School

ERPNext upgrade failed - WRONGTYPE Operation against a key holding the wrong kind of value

When i try to upgrade ErpNext i get error

redis.exceptions.ResponseError: WRONGTYPE Operation against a key holding the wrong kind of value

Here is the full error message

https://pastebin.com/raw/ZghutJnz

I am using

ERPNext: v12.1.6 (version-12)
Frappe Framework: v12.0.16 (version-12)

Any idea how to fix this error ?

Got above error fixed with command

redis-cli -p 13000 FLUSHALL

No wi get error

When u run “bench --site erp.grandeh.com migrate”, i get error

frappe.exceptions.DoesNotExistError: DocType E Invoice Settings not found

https://pastebin.com/raw/EgUvjewU

Getting same error when i run “bench update --reset”

https://pastebin.com/raw/zTX8M75B