在Kong中加载Golang和Lua插件时出现错误。

huangapple go评论70阅读模式
英文:

Error loading Golang and Lua plugins in Kong

问题

我正在尝试安装一个新的 Kong 实例,但在尝试启动服务时遇到以下错误:

stat /tmp/go-plugins/lua_plugin.so: 没有那个文件或目录

安装应该会安装一个使用 Golang 构建的插件和一个仍然使用 Lua 编写的插件。如果我移除 Lua 插件,服务就可以正常启动。让我困惑的是,为什么 Kong 假设这两个插件都是用 Golang 编写的?其他安装都正常工作,所以现在它为什么会这样做,让人很困惑。

英文:

I'm trying to install a new instance of Kong, but I'm getting the following error trying to start the service:

stat /tmp/go-plugins/lua_plugin.so: no such file or directory

The installation is supposed to install a plugin built using Golang and a plugin that is still written in Lua. If I remove the Lua plugin, the service starts up fine. The part that's confusing me is why is Kong assuming that both plugins are written in Golang? Other installations have worked fine, so it's very confusing why it's doing it now.

答案1

得分: 0

问题是我挂载的目录中包含的lua插件没有正确地挂载到容器中。具体来说,是卷定义的主机路径有问题,修复这个问题解决了该问题。

英文:

The issue was the directory I was mounting in containing the lua plugins was not being mounted into the container properly. Specifically, the host path for the volume definitions, so fixing that resolved the issue.

huangapple
  • 本文由 发表于 2022年1月15日 02:55:38
  • 转载请务必保留本文链接:https://go.coder-hub.com/70715321.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定