Datastore emulator message type mismatch

119 views
Skip to first unread message

Jagath Weerasinghe

unread,
Oct 9, 2020, 6:38:18 AM10/9/20
to Google App Engine
Hello, 

I tried to start the datastore emulator in my local dev environment (Java 8) and got the following error. Looks to me it happens because of a mismatch of protobuf versions. It would be great if you know of any workaround for this. Thanks. 

Jagath

Cloud SDK Version: 313. 
OS: macOS

$ gcloud beta emulators datastore start

Executing: /Users/w/Work/google-cloud/google-cloud-sdk/platform/cloud-datastore-emulator/cloud_datastore_emulator create --project_id=<aaaa> /Users/w/.config/gcloud/emulators/datastore

[datastore] Oct 09, 2020 12:28:45 PM com.google.cloud.datastore.emulator.CloudDatastore$CreateAction$1 apply

[datastore] INFO: Provided project_id to Cloud Datastore emulator create command, which is no longer necessary.

[datastore] Created new Cloud Datastore project in '/Users/w/.config/gcloud/emulators/datastore'.

Executing: /Users/w/Work/google-cloud/google-cloud-sdk/platform/cloud-datastore-emulator/cloud_datastore_emulator start --host=localhost --port=8081 --store_on_disk=True --consistency=0.9 --allow_remote_shutdown /Users/w/.config/gcloud/emulators/datastore

[datastore] Oct 09, 2020 12:28:45 PM com.google.cloud.datastore.emulator.CloudDatastore$FakeDatastoreAction$9 apply

[datastore] INFO: Provided --allow_remote_shutdown to start command which is no longer necessary.

[datastore] Oct 09, 2020 12:28:45 PM com.google.cloud.datastore.emulator.impl.LocalDatastoreFileStub <init>

[datastore] INFO: Local Datastore initialized:

[datastore] Type: High Replication

[datastore] Storage: /Users/w/.config/gcloud/emulators/datastore/WEB-INF/appengine-generated/local_db.bin

[datastore] Exiting due to exception: java.lang.IllegalArgumentException: Extension is for type "proto2.MethodOptions" which does not match message type "google.protobuf.MethodOptions".

barrado

unread,
Oct 12, 2020, 8:33:25 AM10/12/20
to Google App Engine
Could you retry the command with the --log-http and --verbosity=DEBUG wide flags enabled to see if it gives more information about the error?

Jagath Weerasinghe

unread,
Oct 12, 2020, 10:50:17 AM10/12/20
to Google App Engine
Unfortunately, not much data shown with the added flags. 

$ gcloud beta emulators datastore start --log-http --verbosity=debug

DEBUG: Running [gcloud.beta.emulators.datastore.start] with arguments: [--log-http: "true", --verbosity: "debug"]

WARNING: Reusing existing data in [/Users/w/.config/gcloud/emulators/datastore].

DEBUG: Found Cloud SDK root: /Users/w/Work/google-cloud/google-cloud-sdk


Executing: /Users/w/Work/google-cloud/google-cloud-sdk/platform/cloud-datastore-emulator/cloud_datastore_emulator start --host=localhost --port=8081 --store_on_disk=True --consistency=0.9 --allow_remote_shutdown /Users/w/.config/gcloud/emulators/datastore

[datastore] Oct 12, 2020 4:44:33 PM com.google.cloud.datastore.emulator.CloudDatastore$FakeDatastoreAction$9 apply


[datastore] INFO: Provided --allow_remote_shutdown to start command which is no longer necessary.

[datastore] Oct 12, 2020 4:44:33 PM com.google.cloud.datastore.emulator.impl.LocalDatastoreFileStub <init>


[datastore] INFO: Local Datastore initialized:

[datastore] Type: High Replication

[datastore] Storage: /Users/w/.config/gcloud/emulators/datastore/WEB-INF/appengine-generated/local_db.bin

[datastore] Exiting due to exception: java.lang.IllegalArgumentException: Extension is for type "proto2.MethodOptions" which does not match message type "google.protobuf.MethodOptions".

INFO: Display format: "default"

barrado

unread,
Oct 13, 2020, 10:19:22 AM10/13/20
to Google App Engine
Hi,

I recommend you to post this question in StackOverflow as it will have greater visibility and other user might be able to help you. 

Jagath Weerasinghe

unread,
Oct 13, 2020, 11:09:32 AM10/13/20
to google-a...@googlegroups.com
Done. Thanks.

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/43cb63d6-6f52-4310-addb-a1917ad4e14an%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages