QNAP TimeMachine .AppleDB folder

Are you a QNAP user? Ever got the error “The operation couldn’t be completed. (OSStatus error 2.)” out of the blue after months of smooth backup operations on your Mac OSX?

If you have tried disabling/re-enabling afp, the TimeMachine service, deleted your sparsebundle and all kind of other stuff in the hope of fixing the problem but not. Try the following to clear up metadata:

* ssh to your qnap box (in my case a slow TS412)
* cd /share/MD0_DATA/.timemachine
* rm -rf .AppleDB

Then launch your TimeMachine backup again. That should solve the issue.