Uncaught exception thrown in shutdown function.

PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database: DELETE FROM {semaphore} WHERE (value = :db_condition_placeholder_0) ; Array ( [:db_condition_placeholder_0] => 15297682226703ce19d77496.25378684 ) in lock_release_all() (line 269 of /home/lpryszcz/Public/zdg_lab_site/includes/lock.inc).