not able to run edgemicro configure -o myOrg -e test -u myUser

I am trying to install and setup edgemicro on my laptop that is behind company proxy. Command edgemicro configure always failed for me. Can you please take a look and help me out? Many thanks!

Command line:

edgemicro configure -o helenhuang-eval -e test -u helen.huang@equifax.com

Result:

current nodejs version is v10.15.1 
current edgemicro version is 2.5.30 
password: 
file doesn't exist, setting up 
{ Error: connect ETIMEDOUT 54.175.12.79:443
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1104:14)
  errno: 'ETIMEDOUT',
  code: 'ETIMEDOUT',
  syscall: 'connect',
  address: '54.175.12.79',
  port: 443 }

Proxy settings in default.yaml: (tried both none of them worked)

(1)

http_proxy: myProxyServer/proxy.js

https_proxy: myProxyServer/proxy.js

proxy_tunnel: false

Full default.yaml file:


edge_config:
  bootstrap: https://apigee.net/edgemicro/bootstrap/organization/org/environment/env.
  jwt_public_key: http://apigee.net/edgemicro/publicKey.
  managementUri: https://api.enterprise.apigee.com
  vaultName: microgateway
  authUri: https://%s-%s.apigee.net/edgemicro-auth
  baseUri: https://edgemicroservices.apigee.net/edgemicro/%s/organization/%s/environment/%s
  bootstrapMessage: Please copy the following property to the edge micro agent config
  keySecretMessage: The following credentials are required to start edge micro
  http_proxy: myProxyServer/proxy.js
  https_proxy: myProxyServer/proxy.js
  proxy_tunnel: false
edgemicro:
  port: 8000
  max_connections: 1000
  config_change_poll_interval: 600
  logging:
    level: error
    dir: /var/tmp
    stats_log_interval: 60
    rotate_interval: 24
  plugins:
    sequence:
      - oauth


headers:
  x-forwarded-for: true
  x-forwarded-host: true
  x-request-id: true
  x-response-time: true
  via: true


oauth:
  allowNoAuthorization: false
  allowInvalidAuthorization: false


(2)

proxy: myProxyServer/proxy.js

proxy_tunnel: true

The default.yaml file:


edge_config:
  bootstrap: https://apigee.net/edgemicro/bootstrap/organization/org/environment/env.
  jwt_public_key: http://apigee.net/edgemicro/publicKey.
  managementUri: https://api.enterprise.apigee.com
  vaultName: microgateway
  authUri: https://%s-%s.apigee.net/edgemicro-auth
  baseUri: https://edgemicroservices.apigee.net/edgemicro/%s/organization/%s/environment/%s
  bootstrapMessage: Please copy the following property to the edge micro agent config
  keySecretMessage: The following credentials are required to start edge micro
  proxy: myProxyServer/proxy.js
  proxy_tunnel: true
edgemicro:
  port: 8000
  max_connections: 1000
  config_change_poll_interval: 600
  logging:
    level: error
    dir: /var/tmp
    stats_log_interval: 60
    rotate_interval: 24
  plugins:
    sequence:
      - oauth


headers:
  x-forwarded-for: true
  x-forwarded-host: true
  x-request-id: true
  x-response-time: true
  via: true


oauth:
  allowNoAuthorization: false
  allowInvalidAuthorization: false


1 4 284
4 REPLIES 4

I'm having the same trouble.

Actually we found a solution already. The following command lines worked for us.

set HTTP_PROXY=http://user:password@proxyserverip:port

set HTTPS_PROXY=http://user:password@proxyserverip:port

edgemicro configure -o org -eval -e test -u edg_user

Good job!!

I solved it setting env variables

set HTTP_PROXY=http://<user>:<pass>@ip:port
set HTTPS_PROXY=http://<user>:<pass>@ip:port