Edge micro gateway configuration : Not generating Key and Secret

For edgemicro 3.1.6 version.

On configuring edge micro gateway in Private APIGEE cloud used the following command

edgemicro private configure -o [org]-e [env]-u [username]-r [runtime_url]-m [mgmt_url]-v [virtual_host]

Getting error as : uploading credentials 301 undefined.

But at the end it shows edgemicro configuration complete! with out generating key and secret.

Attaching the screenshot for more details.

Please help to resolve the issue for key and secret generation.

0 4 323
4 REPLIES 4

Adding response:

C:\Users\****>edgemicro private configure -o apigeeorg-e dev -u ****@.com -p ****** -r https://#######:9443 -m http://#######:8080 -v default
2020-09-09T09:57:55.824Z [126552] [microgateway edgemicro] current nodejs version is v10.13.0
2020-09-09T09:57:55.826Z [126552] [microgateway edgemicro] current edgemicro version is 3.1.6
2020-09-09T09:57:59.394Z [127164] [microgateway private] delete cache config
2020-09-09T09:57:59.397Z [127164] [microgateway private] deleted C:\Users\****\.edgemicro\vendor-dev-config.yaml
2020-09-09T09:57:59.402Z [127164] [microgateway private] init config
2020-09-09T09:57:59.405Z [127164] [microgateway-config io] file doesn't exist, setting up
2020-09-09T09:58:02.307Z [127164] [microgateway private] Proxy edgemicro-internal is already deployed
2020-09-09T09:58:02.308Z [127164] [microgateway private] edgemicro-auth  is already deployed
2020-09-09T09:58:02.309Z [127164] [microgateway private] checking org for existing KVM
2020-09-09T09:58:03.173Z [127164] [microgateway private] error checking for cert. Installing new cert.
2020-09-09T09:58:03.623Z [127164] [microgateway cert lib] creating KVM
2020-09-09T09:58:03.625Z [127164] [microgateway cert lib] adding private_key
2020-09-09T09:58:03.625Z [127164] [microgateway cert lib] adding public_key
2020-09-09T09:58:04.537Z [127164] [microgateway private] generating keys
2020-09-09T09:58:05.620Z [127164] [microgateway private] error uploading credentials 301 undefined
2020-09-09T09:58:05.624Z [127164] []
2020-09-09T09:58:05.628Z [127164] [microgateway private] saving configuration information to: C:\Users\****\.edgemicro\vendor-dev-config.yaml
2020-09-09T09:58:05.631Z [127164] []
2020-09-09T09:58:05.632Z [127164] [microgateway private] edgemicro configuration complete!


Sounds like the runtime URL to upload the credentials to has returned a HTTP 301 (Moved) status code.

Whatever you passed in the -r option should match the 'default' virtualhost alias and port. The 'default' vhost is normally on HTTP whereas you specified a HTTPS URL. Try -v secure instead?

Also run it like below to get more information about why it failed.

DEBUG=* edgemicro private configure

Thanks a lot for the immediate response. I have provided -r run time URL as a combination of virtual host alias and port only. Tried with -v secure as well. Still getting the same issue:

error uploading credentials 301 undefined

sydub7
Participant IV

should your runtime URL have https or http ? is it possible that https://#######:9443 should be http://#######:9443 ?