Copyright © https://mongoose-os.com

Mongoose OS Forum

frame

IOT Device Registry failing....don't know the reason?Can somebody help?

Pourush1Pourush1 Pennsylvania

I tried to register my device, using the following command in the MOS termial

mos gcp-iot-setup --gcp-project pourush0123 --gcp-region us-central1 --gcp-registry iot-registry

The following was displayed

2018-02-12 01:12:51,132 DEBUG root Loaded Command Group: ['gcloud', 'beta', 'iot']
2018-02-12 01:12:51,132 DEBUG root Loaded Command Group: ['gcloud', 'beta', 'iot', 'devices']
2018-02-12 01:12:51,454 DEBUG root Loaded Command Group: ['gcloud', 'beta', 'iot', 'devices', 'create']
2018-02-12 01:12:51,470 DEBUG root Running [gcloud.beta.iot.devices.create] with arguments: [--project: "pourush0123", --public-key: "[{'path': 'gcp-esp32_30844C.pub.pem', 'type': 'es256'}]", --region: "us-central1", --registry: "iot-registry", DEVICE: "esp32_30844C"]
2018-02-12 01:12:51,486 DEBUG root (gcloud.beta.iot.devices.create) Could not read key file [gcp-esp32_30844C.pub.pem]:

[Errno 2] No such file or directory: 'gcp-esp32_30844C.pub.pem'
Traceback (most recent call last):
File "C:\Users\Pourush\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\calliope\cli.py", line 797, in Execute
resources = calliope_command.Run(cli=self, args=args)
File "C:\Users\Pourush\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\calliope\backend.py", line 757, in Run
resources = command_instance.Run(args)
File "C:\Users\Pourush\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\surface\iot\devices\create.py", line 45, in Run
messages=client.messages)
File "C:\Users\Pourush\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\command_lib\iot\util.py", line 235, in ParseCredentials
key.get('expiration-time'), messages=messages))
File "C:\Users\Pourush\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\command_lib\iot\util.py", line 178, in ParseCredential
contents = _ReadKeyFileFromPath(path)
File "C:\Users\Pourush\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\command_lib\iot\util.py", line 171, in _ReadKeyFileFromPath
path, err))
InvalidKeyFileError: Could not read key file [gcp-esp32_30844C.pub.pem]:

[Errno 2] No such file or directory: 'gcp-esp32_30844C.pub.pem'
2018-02-12 01:12:51,486 ERROR root (gcloud.beta.iot.devices.create) Could not read key file [gcp-esp32_30844C.pub.pem]:

[Errno 2] No such file or directory: 'gcp-esp32_30844C.pub.pem'
2018-02-12 01:12:51,621 DEBUG root Metrics reporting process started...

I have attached the log file.

Sign In or Register to comment.