apache / apisix-go-plugin-runner

Go Plugin Runner for APISIX
https://apisix.apache.org/
Apache License 2.0
167 stars 69 forks source link

request help: APISIX 无法正确启动go-runner #152

Closed snowleopard331 closed 7 months ago

snowleopard331 commented 7 months ago

Issue description

go-runner可以被apisix找到,但是却一直报错,报错信息如下:

`2023-12-06 16:32:52 2023/12/06 08:32:52 [warn] 59#59: *45 [lua] init.lua:961: /usr/local/apisix-go-plugin-runner/bin/go-runner: 1: ����8: not found

2023-12-06 16:32:52 , context: ngx.timer

2023-12-06 16:32:52 2023/12/06 08:32:52 [warn] 59#59: *45 [lua] init.lua:961: /usr/local/apisix-go-plugin-runner/bin/go-runner: 3: Syntax error: "(" unexpected

2023-12-06 16:32:52 , context: ngx.timer

2023-12-06 16:32:52 2023/12/06 08:32:52 [warn] 59#59: *45 [lua] init.lua:967: runner exited with reason: exit, status: 2, context: ngx.timer

2023-12-06 16:32:52 2023/12/06 08:32:52 [warn] 59#59: *45 [lua] init.lua:387: flush_token(): flush conf token in shared dict, context: ngx.timer

2023-12-06 16:32:52 2023/12/06 08:32:52 [warn] 59#59: *45 [lua] init.lua:866: flush conf token lrucache, context: ngx.timer`

Environment

thinkdb1 commented 7 months ago

感觉是你自定义代码里面有错误编译通过但执行就出现问题,可以本地写个test试试,或者在中间输出些东西定位下

snowleopard331 commented 7 months ago

感觉是你自定义代码里面有错误编译通过但执行就出现问题,可以本地写个test试试,或者在中间输出些东西定位下

已经找到问题,我实在mac上编译的 拿到了linux上去用导致的