openresty
openresty copied to clipboard
Request a new release for 1.21.4.x
The latest version (openresty 1.21.4.1) cannot run in the macOS m1 environment for https://github.com/openresty/lua-nginx-module/issues/2030.
Thanks for the report, we can send a minor update if necessary
@xiaocang a minor update for this would be much appreciated for https://github.com/internetarchive/openlibrary/issues/6316 so that people on M1 mac can build the image locally. Cheers!
Edit I see a release came out in May 2022, maybe that includes a fix. https://openresty.org/en/ann-1021004001.html
@RayBB it does not appear to resolve it for M2 mac maybe M1?
On m1 pro here and can't build images dependent on this. Could you do a release @xiaocang ?
#15 [12/47] RUN apt-get -y install openresty
#15 sha256:e262f73e0c324c5ec86c873a021a13257cc728c149379ee50ecc82c9b49d4122
#15 0.245 Reading package lists...
#15 0.496 Building dependency tree...
#15 0.556 Reading state information...
#15 0.605 E: Unable to locate package openresty
#15 ERROR: executor failed running [/bin/sh -c apt-get -y install openresty]: exit code: 100
@xiaocang still doesn't work on M1 macs, if you could please make a minor release so that we can get https://github.com/openresty/lua-nginx-module/pull/2037
Injected into openresty?
Hi @samhaque, We have made preparations for the release of the version, it should be released within the next week
@xiaocang it seems the new release on brew doesn't have the latest patches from the nginx-lua-module and thus openresty doesn't work in my M1 mac
According to: https://github.com/openresty/lua-nginx-module/pull/2037
The new release of openresty should have included the 3 PRs mentioned in the link above
Trying the latest brew build and still getting errors via M2 mac:
2023/03/01 10:13:13 [info] 8347#3353907: *3 kevent() reported that client 127.0.0.1 closed keepalive connection
2023/03/01 10:13:22 [error] 8346#3353906: *4 lua entry thread aborted: runtime error: ...Cellar/openresty/1.21.4.1_2/lualib/resty/core/shdict.l
ua:248: NYI: cannot call this C function (yet)
stack traceback:
coroutine 0:
[C]: in function 'ngx_lua_ffi_shdict_store'
...Cellar/openresty/1.21.4.1_2/lualib/resty/core/shdict.lua:248: in function 'set'
@taf2 Thanks for the report, I'll check if there is such problem.
+1 also still getting errors on m2:
2023/03/17 16:17:18 [error] 91944#3237511: *2 lua entry thread aborted: runtime error: ...Cellar/openresty/1.21.4.1_2/lualib/resty/core/shdict.lua:248: NYI: cannot call this C function (yet)
stack traceback:
coroutine 0:
[C]: in function 'ngx_lua_ffi_shdict_store'
...Cellar/openresty/1.21.4.1_2/lualib/resty/core/shdict.lua:248: in function 'set'
/Users/jndinh/work/ctm-pool/lib/ctm/helpers/session.lua:87: in function 'init'
/Users/jndinh/work/ctm-pool/lib/ctm/actions/form.lua:16: in main chunk, client: 127.0.0.1, server: tctm.dev, request: "GET /form/FRT472ABB2C5B9B141A1671BE49D257BCB5E2F70A0B9CC63150.html HTTP/2.0", host: "100554.ctmbizapp.co:4433", referrer: "http://unbouncepages.com/"
I just gave up getting it to run on M1 MacBook and keep rebuilding openresty docker image to do my development
+1 also getting the same error on m1:
2023/03/28 22:47:36 [error] 38336#9007349: *1 lua entry thread aborted: runtime error:
...Cellar/openresty/1.21.4.1_2/lualib/resty/core/shdict.lua:320: NYI: cannot call this C function (yet)
stack traceback:
coroutine 0:
[C]: in function 'ngx_lua_ffi_shdict_get'
...Cellar/openresty/1.21.4.1_2/lualib/resty/core/shdict.lua:320: in function 'get'
Curiosly, the set seems to work for shdict but not get ><
- also getting the same error on m2:
2023/04/04 21:49:20 [error] 36080#176733: *13 lua entry thread aborted: runtime error: ...llar/openresty/1.21.4.1_2/lualib/resty/core/response.lua:102: NYI: cannot call this C function (yet)
stack traceback:
coroutine 0:
[C]: in function 'ngx_http_lua_ffi_set_resp_header'
...llar/openresty/1.21.4.1_2/lualib/resty/core/response.lua:102: in function '__newindex'
/Users/guohao/workspace/apisix-mac/apisix/core/response.lua:129: in function 'set_header'
/Users/guohao/workspace/apisix-mac/apisix/core/response.lua:136: in function 'set_header'
/Users/guohao/workspace/apisix-mac/apisix/init.lua:877: in function 'http_admin'
content_by_lua(nginx.conf:218):2: in main chunk, client: 127.0.0.1, server: , request: "PUT /apisix/admin/routes/1 HTTP/1.1", host: "127.0.0.1:9180"
nginx version: openresty/1.21.4.1
built by clang 14.0.3 (clang-1403.0.22.14.1)
built with OpenSSL 1.1.1n 15 Mar 2022
TLS SNI support enabled
configure arguments: --prefix=/opt/homebrew/Cellar/openresty/1.21.4.1_2/nginx --with-cc-opt='-O2 -I/opt/homebrew/include -I/opt/homebrew/opt/pcre/include -I/opt/homebrew/opt/openresty-openssl111/include' --add-module=../ngx_devel_kit-0.3.1 --add-module=../echo-nginx-module-0.62 --add-module=../xss-nginx-module-0.06 --add-module=../ngx_coolkit-0.2 --add-module=../set-misc-nginx-module-0.33 --add-module=../form-input-nginx-module-0.12 --add-module=../encrypted-session-nginx-module-0.09 --add-module=../srcache-nginx-module-0.32 --add-module=../ngx_lua-0.10.21 --add-module=../ngx_lua_upstream-0.07 --add-module=../headers-more-nginx-module-0.33 --add-module=../array-var-nginx-module-0.05 --add-module=../memc-nginx-module-0.19 --add-module=../redis2-nginx-module-0.15 --add-module=../redis-nginx-module-0.3.9 --add-module=../ngx_stream_lua-0.0.11 --with-ld-opt='-Wl,-rpath,/opt/homebrew/Cellar/openresty/1.21.4.1_2/luajit/lib -L/opt/homebrew/lib -L/opt/homebrew/opt/pcre/lib -L/opt/homebrew/opt/openresty-openssl111/lib' --pid-path=/opt/homebrew/var/run/openresty.pid --lock-path=/opt/homebrew/var/run/openresty.lock --conf-path=/opt/homebrew/etc/openresty/nginx.conf --http-log-path=/opt/homebrew/var/log/nginx/access.log --error-log-path=/opt/homebrew/var/log/nginx/error.log --with-pcre-jit --with-ipv6 --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module --with-http_v2_module --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --with-http_stub_status_module --with-http_realip_module --with-http_addition_module --with-http_auth_request_module --with-http_secure_link_module --with-http_random_index_module --with-http_geoip_module --with-http_gzip_static_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-threads --with-stream --with-http_ssl_module