I am having the problem with Datastore Viewer when working with emulator. http://localhost:8990/_ah/admin/datastore? displays "Datastore has no entities in the Empty namespace. You need to add data programatically before you can use this tool to view and edit it" but when I look into ...\WEB-INF\appengine-generated\local_db.bin file I see it was updated and the entities are there. So for some reasons console doesn't see them. I am using SDK 97.0.0 but the console shows SDK v1.9.27
0
votes
Did you try to restart the app/refresh the project?
– Andrei Volgin
I am running my app from Eclipse with Google plugin. I restarted it many times. The local datastore ...\WEB-INF\appengine-generated\local_db.bin is growing in size when I save entities but they don't show up in Datastore Viewer
– Pol99
No entities of any kind? Do you see any entities at all?
– Andrei Volgin
Nothing. Datastore Viewer in console comes empty. But when in my code I run ObjectifyService.ofy().load().type(MyEntety.class).list() (I am using Objectify) it comes up with all entities I created.
– Pol99
Copy this file somewhere else, then delete it and refresh the project. Restart your app. Was a new, empty file created?
– Andrei Volgin
1 Answers
0
votes
Check the location of your storage.bin when running the datastore emulator. Then use that storage path when running the dev_appserver.py:
dev_appserver.py test.yaml --storage_path=/path/.config/gcloud/emulators/datastore/WEB-INF/appengine-generated/local_db.bin
Also make sure to connect your appserver to the datastore emulator port.