lua-resty-core icon indicating copy to clipboard operation
lua-resty-core copied to clipboard

Failed on IBM Z/S390x

Open minmemory opened this issue 2 years ago • 1 comments

Compile Openresty for IBM Z/S390x but unable to start due the following issue :

nginx: [error] failed to run the Lua code for coroutine_api: 4397552097696: coroutine_api:2: attempt to call global 'require' (a nil value) nginx: [alert] failed to load the 'resty.core' module (https://github.com/openresty/lua-resty-core); ensure you are using an OpenResty release from https://openresty.org/en/download.html (reason: /usr/local/openresty/lualib/resty/core.lua:3: attempt to index global 'ngx' (a nil value)) in /usr/local/openresty/nginx/conf/nginx.conf:117

[root@s390x ~]# /usr/local/openresty/bin/resty -e 'print(require("resty.core").version)'

nginx: [error] failed to run the Lua code for coroutine_api: 4397719345576: coroutine_api:2: attempt to call global 'require' (a nil value)
nginx: [alert] failed to load the 'resty.core' module (https://github.com/openresty/lua-resty-core); ensure you are using an OpenResty release from https://openresty.org/en/download.html (reason: /usr/local/openresty/lualib/resty/core.lua:3: attempt to index global 'ngx' (a nil value)) in /tmp/resty_LTmwPicPrs/conf/nginx.conf:50

[root@s390x ~]# /usr/local/openresty/nginx/sbin/nginx -V

nginx version: openresty/1.19.9.1 built by gcc 8.5.0 20210514 (Red Hat 8.5.0-4) (GCC) built with OpenSSL 1.1.1k FIPS 25 Mar 2021 TLS SNI support enabled configure arguments: --prefix=/usr/local/openresty/nginx --with-cc-opt=-O2 --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.32 --add-module=../form-input-nginx-module-0.12 --add-module=../encrypted-session-nginx-module-0.08 --add-module=../srcache-nginx-module-0.32 --add-module=../ngx_lua-0.10.20 --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.7 --add-module=../rds-json-nginx-module-0.15 --add-module=../rds-csv-nginx-module-0.09 --add-module=../ngx_stream_lua-0.0.10 --with-ld-opt=-Wl,-rpath,/usr/local/openresty/luajit/lib --with-pcre-jit --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_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-compat --with-stream --with-stream_ssl_module --with-http_ssl_module

[root@s390x ~]# uname -a

Linux s390x 4.18.0-305.12.1.el8_4.s390x #1 SMP Mon Jul 26 07:40:30 EDT 2021 s390x s390x s390x GNU/Linux

[root@antinous ~]# cat /etc/os-release

NAME="Red Hat Enterprise Linux" VERSION="8.5 (Ootpa)" ID="rhel" ID_LIKE="fedora" VERSION_ID="8.5" PLATFORM_ID="platform:el8" PRETTY_NAME="Red Hat Enterprise Linux 8.5 (Ootpa)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos" HOME_URL="https://www.redhat.com/" DOCUMENTATION_URL="https://access.redhat.com/documentation/red_hat_enterprise_linux/8/" BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8" REDHAT_BUGZILLA_PRODUCT_VERSION=8.5 REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux" REDHAT_SUPPORT_PRODUCT_VERSION="8.5"

minmemory avatar Dec 15 '21 05:12 minmemory

the lua-resty-core and lua-nginx-module should be matched. you can use the latest version of the lua-resty-core and lua-nginx-module .

zhuizhuhaomeng avatar Apr 14 '22 07:04 zhuizhuhaomeng