ericsyh commented on issue #56:
URL:
https://github.com/apache/apisix-go-plugin-runner/issues/56#issuecomment-1001295605
> Does any error log in the `error.log`? We can check if the go plugin
runner is running, and the `./conf/apisix-xxx.sock` is connectable by APISIX.
Note that the APISIX & the plugin runner should run in the same network
namespace, if you run them inside docker.
Thanks a lot, it should be the permission issue. I installed the apisix by
RPM, and clone and build the go-plugin-runner under `/home` directory.
As i check the `error.log`, i found this error and seems apisix coud not
create the sock file under the `go-runner` directory.
```
2021-12-27T02:08:44.908Z WARN server/server.go:190 listening to
/home/ericsyh/apisix-go-plugin-runner-master/conf/apisix-17338.sock
2021-12-27T02:08:44.908Z FATAL server/server.go:205 listen
/home/ericsyh/apisix-go-plugin-runner-master/conf/apisix-17338.sock: listen
unix /home/ericsyh/apisix-go-plugin-runner-master/conf/apisix-17338.sock: bind:
no such file or directory
github.com/apache/apisix-go-plugin-runner/internal/server.Run
/home/ericsyh/apisix-go-plugin-runner-master/internal/server/server.go:205
github.com/apache/apisix-go-plugin-runner/pkg/runner.Run
/home/ericsyh/apisix-go-plugin-runner-master/pkg/runner/runner.go:43
main.newRunCommand.func1
/home/ericsyh/apisix-go-plugin-runner-master/cmd/go-runner/main.go:134
github.com/spf13/cobra.(*Command).execute
/root/go/pkg/mod/github.com/spf13/[email protected]/command.go:856
github.com/spf13/cobra.(*Command).ExecuteC
/root/go/pkg/mod/github.com/spf13/[email protected]/command.go:960
github.com/spf13/cobra.(*Command).Execute
/root/go/pkg/mod/github.com/spf13/[email protected]/command.go:897
main.main
/home/ericsyh/apisix-go-plugin-runner-master/cmd/go-runner/main.go:160
runtime.main
/usr/lib/golang/src/runtime/proc.go:204
, context: ngx.timer
```
After moving the `go-runner` binary to the `/usr/local/apisix/apisix`, it
works now. I can see the socket file under `/usr/local/apisix/conf`.
--
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]