apache / apache/apisix-go-plugin-runner

request help: error reporting when deploying plug-ins in running mode

Open
#48 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
198
Forks
68
PR merge metrics
No merged PRs in 30d

Description

### 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)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.