ERROR with ipfs key export

I create a IPNS key.

ipfs key gen testkey

Why do I get an error trying to export it?

ipfs key export testkey
Error: lock /home/xbian/.ipfs/repo.lock: someone else has the lock

You probably need to stop your ipfs daemon first.

Thanks, this is it!
So it is a “cold key export” function

I have sumbitted a bug report regarding the confusing error message to the go-ipfs repository. It can be tracked here: https://github.com/ipfs/go-ipfs/issues/7814

thank you @teknomunk