Docker Microgateway Failing to Initialize Router Plugin

Getting following in the log while starting Docker Microgateway in CentOS Host (no K8, GCP or AKS, CF, OS).

using pluginDir

using plugin dir /opt/apigee/plugins

sequenced plugin not found: router

command I am using

sudo docker run -P -p 8000:8000 -d --name edgemicro -v /volume/mount:/opt/apigee/plugins -v /var/tmp:/opt/apigee/logs -e EDGEMICRO_PROCESS=4 -e EDGEMICRO_ORG=myorg -e EDGEMICRO_ENV=prod -e EDGEMICRO_KEY=correct_key -e EDGEMICRO_SECRET=correct_secret -e EDGEMICRO_CONFIG="$EDGEMICRO_CONFIG" -e SERVICE_NAME=edgemicro --security-opt=no-new-privileges --cap-drop=ALL gcr.io/apigee-microgateway/edgemicro:latest

I have done git pull of router plugin

[centos@ip plugins]$ pwd

/usr/lib/node_modules/edgemicro/plugins

[centos@ip plugins]$ sudo git clone https://github.com/srinandan/router.git

Cloning into 'router'...

remote: Enumerating objects: 38, done.

remote: Total 38 (delta 0), reused 0 (delta 0), pack-reused 38

Unpacking objects: 100% (38/38), done.

0 8 361
8 REPLIES 8

@srinandans @Srinandan Sridhar this is really urgent for me, if you can help me resolve this. That will be great help.

Thanks.

Former Community Member
Not applicable

Hello Sandy, If you docker exec to the container, do you see the plugin appearing in the right folder? It should be in "/opt/apigee/plugins/router"

Hi Srinandan, I get following outout,

[centos@ip opt]$ sudo docker exec 49872934h234 ls -la /opt/apigee/plugins/router

ls: /opt/apigee/plugins/router: No such file or directory

Here is the another docker exec at plugins directory,

[centos@ip-opt]$ sudo docker exec 49872934h234 ls -la /opt/apigee/plugins

total 0

drwxr-xr-x 2 root root 6 Dec 19 20:01 .

drwxr-sr-x 1 apigee apigee 49 Dec 20 07:07 ..

Former Community Member
Not applicable

Looks like the mount hasn't worked correctly. Can you please look at the mount point?

mount point is empty,

[centos@ip-mount]$ pwd

/volume/mount

[centos@ip-mount]$ ls -la

total 0

drwxr-xr-x. 2 root root 6 Dec 19 20:01 .

drwxr-xr-x. 3 root root 19 Dec 19 20:01 ..

Also, here is snippet from the docker inspect for this container, i can see host mount bindings there,

"HostConfig":

{ "Binds": [

"/var/tmp:/opt/apigee/logs",

"/volume/mount:/opt/apigee/plugins"

@srinandans did you get chance to look into this?