-
Notifications
You must be signed in to change notification settings - Fork 21
go-pluginserver terminated when using custom Go plugin #22
Comments
me too |
2 similar comments
me too |
me too |
+1 |
I resolved this problem by change nginx user in kong.conf. This user must have permission to exec go-pluginserver. |
tried changing the nginx user also in kong.conf. Still the same error. Also the user has permission to execute go-pluginserver. |
I installed kong direct on vm and kong configuration folder at /usr/local/kong/ i did the same with the comment above but i failed. I found that process running kong process and sub process that is nobody user. i tried to switch to user nobody and run process go-pluginserver but i still get the failure, i saw a message about permission go_pluginserver.sock -> i change the permission chown nobody /usr/local/kong after that go-pluginserrver that is running normally. |
As pointed out, this is a permissioning issue (similar to point n. 2 here). The pluginserver needs to create a Unix domain socket in the Kong prefix; if it doesn't have permissions to do so (ie, its user ID differs from the Kong prefix owner), it will fail to start. Kong will try to restart the pluginserver, which continues failing to start, and this leads to the behavior described by the OP. Closing this, but feel free to reopen with more info if it doesn't work for you. |
hard to find ... |
Same bug here |
I spent a lot of time debugging this. Turned out that it was a Also, turns out My final debugging strategy end up writing PS: The plugin I wrote was based on the Embedded Server and not the |
Hello! I'm trying to use a custom Go plugin with my Kong, here are some details:
Kong Version:
2.0.2
Go Version:
go version go1.13.5 linux/amd64
go-pluginserver version:
Runtime Version: go1.13.5
I updated
kong.conf
to load my plugin, and Kong successfully starts. Although, when I execute a request to the service where my plugin is set, nothing happens, when I openderror.log
i got a lot of this message:And those last three lines go on forever:
Am I doing something wrong ? Any help would be appreciated.
The text was updated successfully, but these errors were encountered: