cesanta / mongoose-os

Mongoose OS - an IoT Firmware Development Framework. Supported microcontrollers: ESP32, ESP8266, CC3220, CC3200, STM32F4, STM32L4, STM32F7. Amazon AWS IoT, Microsoft Azure, Google IoT Core integrated. Code in C or JavaScript.
https://mongoose-os.com
Other
2.5k stars 427 forks source link

Server Error: {"error":"gcloud device create: : exit status 1"} #402

Open mebohac opened 6 years ago

mebohac commented 6 years ago

hi, i created a new project following this tutorial: https://mongoose-os.com/docs/cloud_integrations/gcp.html

and setup the gcp cloud side fine, but upon setting up the device side to register esp32 on cloud iot core, I got this error:
> Server Error: {"error":"gcloud device create: : exit status 1"}

Code: `[Feb 9 00:29:03.953] Tick uptime: 58.570246 {"free_ram":141412,"total_ram":229632}

[Feb 9 00:29:04.953] Tock uptime: 59.570258 {"free_ram":141412,"total_ram":229632}

[Feb 9 00:29:05.935] Connecting to the device...

[Feb 9 00:29:05.953] Tick uptime: 60.569948 {"free_ram":141408,"total_ram":229628}

[Feb 9 00:29:06.200] esp32 30AEA43758BC running demo-js

[Feb 9 00:29:06.758] gcp-esp32_3758BC.priv.pem gcp-esp32_3758BC.pub.pem exist, skipping generation

[Feb 9 00:29:06.758] (Re)creating the cloud device...

[Feb 9 00:29:06.953] Tock uptime: 61.570114 {"free_ram":141420,"total_ram":229628}

[Feb 9 00:29:07.952] Tick uptime: 62.570004 {"free_ram":141412,"total_ram":229632}

[Feb 9 00:29:08.652] gcloud device deletion:

[Feb 9 00:29:08.954] Tock uptime: 63.570977 {"free_ram":141412,"total_ram":229632}

[Feb 9 00:29:09.953] Tick uptime: 64.569948 {"free_ram":141412,"total_ram":229632}

Server Error: {"error":"gcloud device create: : exit status 1"}

[Feb 9 00:29:10.952] Tock uptime: 65.569994 {"free_ram":141412,"total_ram":229632}

[Feb 9 00:29:11.953] Tick uptime: 66.569966 {"free_ram":141412,"total_ram":229632}

`

wondering where the best place is to start to troubleshoot?

thank you!

christianmue1980a commented 6 years ago

I have exactly the same issue.

lanslans commented 6 years ago

Same issue here. I've done tons of searching on this, and can't figure it out. Suggestions?

mebohac commented 6 years ago

yes! funny you asked. just finished writing a blog about it today. hope it helps!

https://myventureintogcp.blogspot.com/

WS2133 commented 6 years ago

gcloud components install beta you can check the logs in AppData\Roaming\gcloud\logs if it doesn't fix it

mathias4github commented 6 years ago

same issue with me, "cloud components install beta" does not help.