Failed to cache rpm database (1)

What’s the fix for this zypper error? Thanks

Problem occured during or after installation or removal of packages:
Failed to cache rpm database (1)
rpm --rebuilddb

Got that off a German suse site, see if it works.