deploying edgemicro-auth app giving - Error: Error uploading policy: 400

While setting up edgemicro with Edge Private cloud ver 4.16.09.04 I am getting below error

$ edgemicro private configure -o redacted -e dev -u redacted -r https://vhost-alias -m http://mgmt:8080 -v default
current nodejs version is v8.11.0
current edgemicro version is 2.5.19-beta
delete cache config
deleted /Users/userid/.edgemicro/xxx-dev-config.yaml
init config
file doesn't exist, setting up
Proxy edgemicro-internal is already deployed
deploying  edgemicro-auth  app
Give me a minute or two... this can take a while...
Error: Error uploading policy: 400
    at Request._callback (/usr/local/lib/node_modules/edgemicro/node_modules/apigeetool/lib/commands/deployproxy.js:397:18)
    at Request.self.callback (/usr/local/lib/node_modules/edgemicro/node_modules/request/request.js:185:22)
    at emitTwo (events.js:126:13)
    at Request.emit (events.js:214:7)
    at Request.<anonymous> (/usr/local/lib/node_modules/edgemicro/node_modules/request/request.js:1157:10)
    at emitOne (events.js:116:13)
    at Request.emit (events.js:211:7)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/edgemicro/node_modules/request/request.js:1079:12)
    at Object.onceWrapper (events.js:313:30)
    at emitNone (events.js:111:20)

The edgemicro-auth api-proxy is empty without any policies.

Is there any way to turn on debug logging to see why its failing?

0 4 551
4 REPLIES 4

I was able to install using edgemicro ver 2.3.5 but now I am getting below error

edgemicro verify -o org -e dev -k key -s secret
current nodejs version is v8.11.0

current edgemicro version is 2.3.5

warning: products download from https://xyz/edgemicro-auth/products returned 404 Not Found 

warning: error downloading config, please check bootstrap configuration Error: Not Found

    at _loadStatus (/usr/local/lib/node_modules/edgemicro/node_modules/microgateway-config/lib/network.js:205:8)

    at Request._callback (/usr/local/lib/node_modules/edgemicro/node_modules/microgateway-config/lib/network.js:117:9)

    at Request.self.callback (/usr/local/lib/node_modules/edgemicro/node_modules/request/request.js:188:22)

    at emitTwo (events.js:126:13)

    at Request.emit (events.js:214:7)

    at Request.<anonymous> (/usr/local/lib/node_modules/edgemicro/node_modules/request/request.js:1171:10)

    at emitOne (events.js:116:13)

    at Request.emit (events.js:211:7)

    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/edgemicro/node_modules/request/request.js:1091:12)

    at Object.onceWrapper (events.js:313:30)

    at emitNone (events.js:111:20)

    at IncomingMessage.emit (events.js:208:7)

    at endReadableNT (_stream_readable.js:1064:12)

    at _combinedTickCallback (internal/process/next_tick.js:138:11)

    at process._tickCallback (internal/process/next_tick.js:180:9)

/usr/local/lib/node_modules/edgemicro/node_modules/microgateway-config/lib/io.js:118

  Object.keys(config).forEach(function (key) {

         ^




TypeError: Cannot convert undefined or null to object

    at Function.keys (<anonymous>)

    at IO.save (/usr/local/lib/node_modules/edgemicro/node_modules/microgateway-config/lib/io.js:118:10)

    at IO.saveSync (/usr/local/lib/node_modules/edgemicro/node_modules/microgateway-config/lib/io.js:102:8)

    at Object.save (/usr/local/lib/node_modules/edgemicro/node_modules/microgateway-config/index.js:42:25)

    at /usr/local/lib/node_modules/edgemicro/cli/lib/verify.js:222:16

    at /usr/local/lib/node_modules/edgemicro/node_modules/microgateway-config/lib/network.js:52:14

    at /usr/local/lib/node_modules/edgemicro/node_modules/microgateway-config/lib/network.js:135:14

    at /usr/local/lib/node_modules/edgemicro/node_modules/async/lib/async.js:726:13

    at /usr/local/lib/node_modules/edgemicro/node_modules/async/lib/async.js:52:16

    at done (/usr/local/lib/node_modules/edgemicro/node_modules/async/lib/async.js:241:17)

    at /usr/local/lib/node_modules/edgemicro/node_modules/async/lib/async.js:44:16

    at /usr/local/lib/node_modules/edgemicro/node_modules/async/lib/async.js:723:17

    at /usr/local/lib/node_modules/edgemicro/node_modules/async/lib/async.js:167:37

    at _loadStatus (/usr/local/lib/node_modules/edgemicro/node_modules/microgateway-config/lib/network.js:205:5)

    at Request._callback (/usr/local/lib/node_modules/edgemicro/node_modules/microgateway-config/lib/network.js:117:9)

    at Request.self.callback (/usr/local/lib/node_modules/edgemicro/node_modules/request/request.js:188:22)

Former Community Member
Not applicable
@Vineet Bhatia

OPDK 4.16.09 is not in support and has not been tested with 2.5.19 (NOTE: you're using a beta version).

Also, MG 2.3.5 is also no longer supported.

It looks like the first edgemicro configure failed, but partially created some objects. Try cleaning them up and trying again.

Thank you @srinandans. Yes, we are in the process upgrading on-prem Apigee Edge.

What is the version of Apigee Edge Private Cloud required for Microgateway?

The release note https://docs.apigee.com/release/notes/edge-microgateway-release-notes-0#version24x says "Note: This version of Edge Microgateway works on Apigee Edge Private Cloud version 4.16.01 and later versions."

Former Community Member
Not applicable

Yes, those are the release notes for 2.4.X. Apigee's support policy on OPDK (including MG) is 12 months.

I recommend two options: try installing the latest 2.4.X version (npm install -g edgemicro@2.4.6). See if that works for 16.09.

Looks like you already have plans to upgrade to 18.0X (at which time, you should be able to try with 2.5.19/20).