Skip to content
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

ngx_http_auth_jwt_module.so" version 1024000 instead of 1026001 in /etc/nginx/nginx.conf:7 #130

Open
sscotti opened this issue Jun 14, 2024 · 3 comments
Labels

Comments

@sscotti
Copy link

sscotti commented Jun 14, 2024

I have an old Docker Build that was working 1 year ago, and I don't think I've changed anything in the configuration since then. I recently tried to rebuild my package and I am getting the error noted in the subject line:

The piece of code from the Docker file is below. I'll need to look through it more carefully, but any suggestions are appreciated.

`#__________________
RUN apt-get update && apt-get install -y libjwt-dev libjwt0 libjansson-dev libjansson4 libpcre2-dev zlib1g-dev libpcre3-dev
RUN mkdir -p /root/build/ngx-http-auth-jwt-module
ENV NGINX_VERSION 1.24.0
WORKDIR /root/build/ngx-http-auth-jwt-module
ADD ngx-http-auth-jwt-module-master/config ./
ADD ngx-http-auth-jwt-module-master/src/.h ngx-http-auth-jwt-module-master/src/.c ./src/
WORKDIR /root/build
RUN mkdir nginx
RUN curl -O http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz
RUN tar -xzf nginx-${NGINX_VERSION}.tar.gz --strip-components 1 -C nginx
WORKDIR /root/build/nginx
RUN ./configure --with-compat --add-dynamic-module=../ngx-http-auth-jwt-module --with-cc-opt=-DNGX_LINKED_LIST_COOKIES=1
RUN make modules

#__________________`

@sscotti
Copy link
Author

sscotti commented Jun 15, 2024

I upgraded my NGINX version to a later version, and now I get a similar but different error:

2024/06/15 02:03:59 [emerg] 118#118: module "/etc/nginx/modules/ngx_http_auth_jwt_module.so" version 1025005 instead of 1026001 in /etc/nginx/nginx.conf:7

@sscotti
Copy link
Author

sscotti commented Jun 16, 2024

If you need a little more information about that, the container I am trying to build is a combined:

FROM php:8.2.6-fpm-bullseye, with NGINX installed from the nginx.org repo. What happened is I have a newer version of NGINX that is not compatible with your module now ?

# nginx -v nginx version: nginx/1.26.1

# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:        11
Codename:     

Can I just build the appropriate .so from your repo instead of having it incorporated into my Docker Build ?

@JoshMcCullough
Copy link
Contributor

Try to grab a newer release from here: https://github.com/TeslaGov/ngx-http-auth-jwt-module/releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants