I have imported an outdated production Drupal 6.9 site to my development machine. Then, I upgraded all modules to 6.24. After a while, I imported the database of the production site (to have new nodes). The site appears to work properly on the front end. But now it does not update neither form drush, nor by calling update.php from browser. At drush I get:
An error occurred at function : drush_pm_post_pm_update [error] WD php: Table 'mysitedb.semaphore' doesn't exist [error] query: DELETE FROM main_semaphore WHERE value = '31092233150575fa189b4d9.09364052' in /path/to/mysite/includes/lock.inc on line 224.
On Google Chrome, I get just a "Server error" page.
Update: I created semaphore table using this answer but it did not resolve the problem.