-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
not binary compatible #225
Comments
I'm currently struggling with this exact issue as well. I've attempted a few approaches... Binary installI was trying to install the binary in a Docker image like so (checking
And got this:
And I gathered from this issue: #72 that this is because the alpine is lacking some shared libs. I tried to install a few additional dependencies but it didn't seem resolvable without compiling from source, which I'd like to avoid. Docker multi-stage buildsFrom the same GitHub issue, I saw that there is now an alpine Docker image (as of ~1 month ago) so I attempted to use that via a multi-stage build approach:
But that resulted in this error:
I believe this is because the Nginx versions aren't the same between what ships with Kong and what's baked into the
...and tried the multi-stage build again but got the same error. I'm a bit stuck, but I've seen mention of loading modules dynamically for openresty, and I see there's an openresty-specific Dockerfile/image but it looks complicated and I don't know the openresty or Lua landscape well so I'm not sure what the best/simplest approach is. I'm hoping to find a minimally custom way to install this and ship APM to Datadog and would love some guidance, suggestions, or eyeballs on my examples here to point out if I'm missing something. |
@chrisforrette You would have to manually change https://github.com/opentracing-contrib/nginx-opentracing/blob/master/Dockerfile#L213 and https://github.com/opentracing-contrib/nginx-opentracing/blob/master/Dockerfile#L241 to If you change those two lines using the version you need, it should work (I haven't tested it) |
You can check how ingress-nginx is building: https://github.com/kubernetes/ingress-nginx/blob/main/images/nginx/rootfs/build.sh |
@lucacome Thanks for the info! I tried hard-coding the Nginx version to
A cursory google search tells me I need to remove I'm also wondering if it needs to be compiled and/or loaded differently with Lua... |
@miry Thanks for sharing that! I'm hoping to avoid building from scratch but I might end up there... |
@chrisforrette I tried building the module with this Dockerfile for Alpine from Openresty https://github.com/openresty/docker-openresty/blob/1.19.9.1-3/alpine/Dockerfile but still says that |
So since Kong = OpenResty + Lua + Nginx, and Thanks anyway for your help @lucacome! |
I did notice when we tried using the debian docker images they weren't built with the At the time of writing, only the The fix for us was simply to switch over to ubuntu builds and I suspect the same could be done for a kong build @zhongshan365 and @chrisforrette |
I want to integrate opentracing into kong. But i got follow error :
/usr/local/share/lua/5.1/kong/cmd/start.lua:24: nginx configuration is invalid (exit code 1):
nginx: [emerg] module "/usr/local/kong/nginx/modules/ngx_http_opentracing_module.so" is not binary compatible in /usr/local/kong/nginx.conf:10
nginx: configuration file /usr/local/kong/nginx.conf test failed
I use follow versions:
kong version: 2.6.0
nginx version: openresty/1.19.9.1
ngx_http_module: linux-amd64-nginx-1.19.9-ngx_http_module.so.tgz
Nginx version is same to ngx_http_module, but it's do not working.
Please help me. Thanks
The text was updated successfully, but these errors were encountered: