Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

microgateway failed to deploy on openshift with "config does not exist" error

Hi,

When I try to deploy microgateway on openshift I'm getting below errors

1. Unable to change owner for config file

2. config doesn't exist error as it is looking in the wrong directory. As per below log it is looking for config file under /.edgemicro but config is present under /opt/apigee/.edgemicro

Log:

chown: /opt/apigee/.edgemicro/myorg-test-config.yaml: Operation not permitted
cd /opt/apigee && edgemicro start -o myorg -e test -k mykey -s mysecret -r 8000 -d /opt/apigee/plugins &
current nodejs version is v8.12.0
current edgemicro version is 2.5.28
config does not exist /.edgemicro/myorg-test-config.yaml
/usr/local/lib/node_modules/edgemicro/node_modules/microgateway-config/lib/io.js:73
    throw new Error('config does not exist');
    ^


Error: config does not exist
    at IO.loadSync (/usr/local/lib/node_modules/edgemicro/node_modules/microgateway-config/lib/io.js:73:11)
    at Loader.get (/usr/local/lib/node_modules/edgemicro/node_modules/microgateway-config/lib/network.js:95:35)
    at Object.get (/usr/local/lib/node_modules/edgemicro/node_modules/microgateway-config/index.js:16:30)
    at Gateway.start (/usr/local/lib/node_modules/edgemicro/cli/lib/gateway.js:60:16)
    at Command.commander.command.option.option.option.option.option.option.option.option.option.option.option.option.option.description.action (/usr/local/lib/node_modules/edgemicro/cli/cmd.js:243:21)
    at Command.listener (/usr/local/lib/node_modules/edgemicro/node_modules/commander/index.js:315:8)
    at emitTwo (events.js:126:13)
    at Command.emit (events.js:214:7)
    at Command.parseArgs (/usr/local/lib/node_modules/edgemicro/node_modules/commander/index.js:654:12)
    at Command.parse (/usr/local/lib/node_modules/edgemicro/node_modules/commander/index.js:474:21)
    at setup (/usr/local/lib/node_modules/edgemicro/cli/cmd.js:559:15)
    at Object.<anonymous> (/usr/local/lib/node_modules/edgemicro/cli/edgemicro:49:21)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)

Thanks,

Mohan Chippada

Solved Solved
0 15 1,203
1 ACCEPTED SOLUTION

Add a symlink in the dockerfile

RUN ln -s /opt/apigee/.edgemicro /.edgemicro 

View solution in original post

15 REPLIES 15
Top Solution Authors