Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I unlock the app engine database when localhost runs?

Right now I get a blank page when localhost runs, but the deployed app is fine. The logs show the "database is locked". How do I "unlock" the database for localhost?

like image 968
mango Avatar asked Dec 14 '13 01:12

mango


2 Answers

This can happen if you're running multiple instances of dev_appserver without giving them distinct datastore files/directories. If you need to be running multiple instances, see dev_appserver.py --help and look at the options for specifying paths/files.

like image 65
Dave W. Smith Avatar answered Sep 18 '22 14:09

Dave W. Smith


Dave W. Smith has the right idea. I had this same issue and looking into the docs you need to set the --storage_path='some/path' to be different for each instance of the localhost.

From the Docs:

 --storage_path PATH      path to the data (datastore, blobstore, etc.)

Also, different port and admin_ports have to be set to run the two instances.

like image 34
Paul Bendevis Avatar answered Sep 18 '22 14:09

Paul Bendevis