Easy-deve opened a new issue #48:
URL: https://github.com/apache/apisix-go-plugin-runner/issues/48
### Issue description
I use the official documents to deploy the go plug-in and mount the local
address of the go runner into the docker. After starting apisix through the
docker, I check the log and see that the plug-in execution fails.
My configured docker.yaml:
apisix:
image: apache/apisix:2.10.0-alpine
restart: always
privileged: true
volumes:
- ./apisix_log:/usr/local/apisix/logs
- ./apisix_conf/config.yaml:/usr/local/apisix/conf/config.yaml:ro
-
/Users/yzy/Desktop/work/apisix-go-plugin-runner:/path/to/apisix-go-plugin-runner
depends_on:
- etcd
##network_mode: host
ports:
- "9080:9080/tcp"
- "9091:9091/tcp"
- "9443:9443/tcp"
- "9092:9092/tcp"
networks:
apisix:
External plug-in configuration in apifix configuration:
ext-plugin:
cmd: ["/path/to/apisix-go-plugin-runner/go-runner", "run"]
Error.log info:
2021/11/26 02:19:26 [warn] 49#49: *316 [lua] init.lua:592: flush conf token
lrucache, context: ngx.timer
2021/11/26 02:19:29 [warn] 53#53: *80 [lua] init.lua:699: respawning new
runner..., context: ngx.timer
2021/11/26 02:19:29 [error] 53#61: lua pipe child execvp() failed while
executing /path/to/apisix-go-plugin-runner/go-runner (8: Exec format error)
2021/11/26 02:19:29 [warn] 53#53: *80 [lua] init.lua:687: runner exited with
reason: exit, status: 1, context: ngx.timer
2021/11/26 02:19:29 [warn] 53#53: *80 [lua] init.lua:592: flush conf token
lrucache, context: ngx.timer
2021/11/26 02:19:29 [warn] 53#53: *80 [lua] init.lua:697: respawn runner 3
seconds later with cmd:
["\/path\/to\/apisix-go-plugin-runner\/go-runner","run"], context: ngx.timer
2021/11/26 02:19:29 [warn] 49#49: *501 [lua] init.lua:592: flush conf token
lrucache, context: ngx.timer
2021/11/26 02:19:29 [warn] 47#47: *502 [lua] init.lua:592: flush conf token
lrucache, context: ngx.timer
2021/11/26 02:19:29 [warn] 50#50: *504 [lua] init.lua:592: flush conf token
lrucache, context: ngx.timer
2021/11/26 02:19:29 [warn] 48#48: *503 [lua] init.lua:592: flush conf token
lrucache, context: ngx.timer
2021/11/26 02:19:32 [warn] 53#53: *80 [lua] init.lua:699: respawning new
runner..., context: ngx.timer
### Environment
* APISIX Go Plugin Runner's version: 0.2.0
* APISIX version: 2.10.0-alpine
* Go version: go1.17.2 darwin/arm64
* Docker version: 20.10.8
* Operating system: MacBook Air (M1, 2020)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]