Copyright ©

Mongoose OS Forum


ESP32 GCP IOT error: The caller does not have permission

branco21branco21 Poland
edited February 22 in Mongoose OS


I'm getting error trying to create a new device on GCP IOT registry using mos command:

mos gcp-iot-setup --gcp-project pszpoton-iot --gcp-region europe-west1 --gcp-registry iot-registry

Using port COM4
Connecting to the device...
  esp32 30AEA4CC3CD0 running app2
Generating ECDSA private key

Certificate info:
  Subject : CN=esp32_CC3CD0
  Issuer  : CN=esp32_CC3CD0
  Serial  : 0
  Validity: 2019/02/22 - 2029/02/21
  Key algo: ECDSA
  Sig algo: ECDSA-SHA256
Writing public key to
Writing key to gcp-esp32_CC3CD0.key.pem...
Uploading gcp-esp32_CC3CD0.key.pem (227 bytes)...
Creating the device...
Trying to delete the device...
Error: googleapi: Error 403: The caller does not have permission, forbidden
/go/src/ failed to re-create device
/go/src/ gcp-iot-setup failed

However it is possible to create one on the same console, by using gcloud command with just the same args:
gcloud iot devices create my-es256-device --project=pszpoton-iot --region=europe-west1 --registry=iot-registry --public-key,type=es256

Created device [my-es256-device].

Could anyone help me to point out what kind of permission is needed or what might be missing in the command?


Sign In or Register to comment.