Could not acquire a shared lock on the config file

Hi everyone!

I am having a problem here with my ownCloud 10 server. I had to move the HD into a new machine, which should have no impact on the ownCloud install, but when I tried to get it out of maintenance state, using occ, I was greeted with:

An unhandled exception has been thrown:
Exception: Could not acquire a shared lock on the config file /var/www/owncloud/config/config.php in /var/www/owncloud/lib/private/Config.php:262

I am running PHP as www-data user, and with the same user I am perfectly able to open and edit this config.php file, so I think I’ve got the right permissions:

-rw-r----- 1 www-data root 1.6K Sep 24 13:07 config.php

Any idea of a possible cause for this error?

Thanks!