The database lock file is not writable. To lock or unlock the database, this needs to be writable by the web server.
From McMaster Mechanical Engineering UG Lab Wiki
The database lock file is not writable. To lock or unlock the database, this needs to be writable by the web server.