Welcome to Centmin Mod Community
Become a Member

Nginx (RESOLVED)Problem with lua

Discussion in 'Bug Reports' started by EckyBrazzz, Oct 17, 2019.

  1. EckyBrazzz

    EckyBrazzz Active Member

    916
    189
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +362
    Local Time:
    11:53 PM
    Latest
    Latest
    nginx: [error] lua_load_resty_core failed to load the resty.core module from https://github.com/openresty/lua-resty-core; ensure you are using an OpenResty release from OpenResty - Download (rc: 2, reason: module 'resty.core' not found:
    no field package.preload['resty.core']
    no file './resty/core.lua'
    no file '/usr/local/share/luajit-2.1.0-beta3/resty/core.lua'
    no file '/usr/local/share/lua/5.1/resty/core.lua'
    no file '/usr/local/share/lua/5.1/resty/core/init.lua'
    no file './resty/core.so'
    no file '/usr/local/lib/lua/5.1/resty/core.so'
    no file '/usr/local/lib/lua/5.1/loadall.so'
    no file './resty.so'
    no file '/usr/local/lib/lua/5.1/resty.so'
    no file '/usr/local/lib/lua/5.1/loadall.so')

     
  2. eva2000

    eva2000 Administrator Staff Member

    54,546
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    12:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    need contents of your /etc/centminmod/custom_config.inc persistent config file and how you using lua or where you got this error from ? on nginx restart ?

    and output for
    Code (Text):
    nginx -V

    and output for
    Code (Text):
    ls -lah /usr/local/lib/lua/resty/

    examples

    ensure nginx modules highlighed in bold exist
    Code (Text):
    ls -lah /usr/local/lib/lua/resty/
    total 380K
    drwxr-xr-x 2 root root 4.0K May 28 19:21 .
    drwxr-xr-x 5 root root 4.0K Apr  9  2017 ..
    -rwxr-xr-x 1 root root 6.0K May 28 19:21 aes.lua
    -rwxr-xr-x 1 root root 2.3K May 28 19:21 base64.lua
    -rwxr-xr-x 1 root root 5.1K May 28 19:21 base.lua
    -rwxr-xr-x 1 root root 7.8K May 28 19:21 client.lua
    -rwxrwxr-x 1 root root 5.2K Jan  8  2015 cookie.lua
    -rwxr-xr-x 1 root root  642 May 28 19:21 core.lua
    -rwxr-xr-x 1 root root 1.9K May 28 19:21 ctx.lua
    -rwxr-xr-x 1 root root 1.1K May 28 19:21 exit.lua
    -rwxr-xr-x 1 root root 1.9K May 28 19:21 hash.lua
    -rwxr-xr-x 1 root root  18K May 28 19:21 healthcheck.lua
    -rwxr-xr-x 1 root root 4.6K May 28 19:21 lock.lua
    -rwxr-xr-x 1 root root 5.7K May 28 19:21 lrucache.lua
    -rwxr-xr-x 1 root root 1.2K May 28 19:21 md5.lua
    -rwxr-xr-x 1 root root  15K May 28 19:21 memcached.lua
    -rwxr-xr-x 1 root root 4.9K May 28 19:21 misc.lua
    -rwxr-xr-x 1 root root  22K May 28 19:21 mysql.lua
    -rwxr-xr-x 1 root root 2.1K May 28 19:21 ndk.lua
    -rwxr-xr-x 1 root root 1.2K May 28 19:21 phase.lua
    -rwxr-xr-x 1 root root 8.5K May 28 19:21 protocol.lua
    -rwxr-xr-x 1 root root  18K May 28 19:21 pureffi.lua
    -rwxr-xr-x 1 root root  616 May 28 19:21 random.lua
    -rwxr-xr-x 1 root root 9.1K May 28 19:21 redis.lua
    -rwxr-xr-x 1 root root  34K May 28 19:21 regex.lua
    -rwxr-xr-x 1 root root 8.7K May 28 19:21 request.lua
    -rwxr-xr-x 1 root root  23K May 28 19:21 resolver.lua
    -rwxr-xr-x 1 root root 4.3K May 28 19:21 response.lua
    -rwxr-xr-x 1 root root 4.9K May 28 19:21 server.lua
    -rwxr-xr-x 1 root root 1.2K May 28 19:21 sha1.lua
    -rwxr-xr-x 1 root root 1.1K May 28 19:21 sha224.lua
    -rwxr-xr-x 1 root root 1.2K May 28 19:21 sha256.lua
    -rwxr-xr-x 1 root root 1.1K May 28 19:21 sha384.lua
    -rwxr-xr-x 1 root root 1.4K May 28 19:21 sha512.lua
    -rwxr-xr-x 1 root root  236 May 28 19:21 sha.lua
    -rwxr-xr-x 1 root root  16K May 28 19:21 shdict.lua
    -rwxrwxr-x 1 root root  12K Feb  9  2015 socket.lua
    -rwxr-xr-x 1 root root  698 May 28 19:21 string.lua
    -rwxr-xr-x 1 root root 4.1K May 28 19:21 time.lua
    -rwxr-xr-x 1 root root 5.1K May 28 19:21 upload.lua
    -rwxr-xr-x 1 root root 1.5K May 28 19:21 uri.lua
    -rwxr-xr-x 1 root root  874 May 28 19:21 utils.lua
    -rwxr-xr-x 1 root root 3.1K May 28 19:21 var.lua
    -rwxr-xr-x 1 root root  723 May 28 19:21 worker.lua
    
     
  3. EckyBrazzz

    EckyBrazzz Active Member

    916
    189
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +362
    Local Time:
    11:53 PM
    Latest
    Latest
    Code (Text):
    cat /etc/centminmod/custom_config.inc
    MARCH_TARGETNATIVE_ALWAYS='y'   # force native compiler to override smarter vps detection routine
    ALERTEMAIL=<<SNIPPED>>
    #WP_FASTCGI_CACHE='y'            # Enable beta option 22-4
    PHP_OVERWRITECONF='n'           # Prevents stupid mistakes ;)
    VHOSTCTRL_CLOUDFLAREINC='y'     # add VHOSTCTRL_CLOUDFLAREINC & VHOSTCTRL_AUTOPROTECTINC
    RCLONE_ENABLE='y'               # Must have entry to enable rclone addon
    #####################################################
    
    #####################################################
    # Nginx Dynamic Module Switches
    NGINX_DYNAMICTLS='y'
    NGXDYNAMIC_GEOIPTWOLITE='y'
    NGXDYNAMIC_BROTLI='y'
    NGXDYNAMIC_HEADERSMORE='y'
    NGXDYNAMIC_SETMISC='y'
    NGXDYNAMIC_ECHO='y'
    NGXDYNAMIC_IMAGEFILTER='y'
    NGXDYNAMIC_VHOSTSTATS='n'
    
    #####################################################
    NGINX_HPACK='y'
    NGINX_GEOIPTWOLITE='y'          # https://github.com/leev/ngx_http_geoip2_module
    NGINX_REALIP='y'                # http://nginx.org/en/docs/http/ngx_http_realip_module.html
    NGINX_LIBBROTLI='y'
    NGINX_OPENRESTY='y'             # https://community.centminmod.com/threads/update-openresty-lua-resty-core-requirements-in-123-09beta01.15954/
    ORESTY_LUANGINX='y'             # https://community.centminmod.com/threads/update-openresty-lua-resty-core-requirements-in-123-09beta01.15954/
    NGX_LUASTREAM_FORCED='y'        # openresty stream-lua-nginx module https://github.com/openresty/stream-lua-nginx-module
    NGINX_IOURING_PATCH='y'         # Nginx 1.17.0+ and Linux Kernel 5.1 usage only 'y'
    NGINX_MODSECURITY='n'           # https://community.centminmod.com/threads/update-prep-for-modsecurity-v3-0.12453/
    NGINX_MODSECURITY_MAXMIND='n'   # https://community.centminmod.com/threads/update-inc-mod_security-inc-fix-for-geoip2-conflict-in-123-09beta01.17370/
    NGINX_VHOSTSTATS='n'            #
    NGINX_ZLIBCUSTOM='y'            # Use custom zlib instead of system version
    NGINX_ZLIBVER='1.2.11'          # http://www.zlib.net/ Latest 1.2.11 ZLIB, January 15, 2017
    NGINX_ZERODT='y'                # enable nginx zero downtime on the fly nginx binary upgrades
    AUTOTUNE_CLIENTMAXBODY='y'      # auto tune client_max_body_size option in nginx.conf
    NGINX_HTTPCONCAT='y'            # add  --add-module=../nginx-http-concat-master if set to y
    NGINX_STUBSTATUS='y'
    NGINX_SUB='y' 
    NGINX_VIDEO='y'                 # https://community.centminmod.com/threads/add-nginx_video-control-variable-in-123-09beta01.15540/
    NGINX_SLICE='y'
    NGINX_RTMP='y'
    NGINX_FLV='y'
    NGINX_MP4='y'
    
    
    #####################################################
    # PHP
    PHP_PGO='y'
    STRIPPHP='y'                    # set 'y' to strip PHP binary to reduce size
    PHP_INSTALL='y'                 # Install PHP /w Fast Process Manager
    PHP_MEMCACHE='y'                # memcache PHP extension
    PHP_PATCH='y'                   # Apply PHP patches if they exist
    PHP_TUNING='y'                  # initial php-fpm install auto tuning
    PHP_BROTLI='y'                  # brotli php extension https://github.com/kjdev/php-ext-brotli
    PHP_LZFOUR='y'                  # lz4 php extension https://github.com/kjdev/php-ext-lz4
    PHP_LZF='y'                     # lzf php extension https://github.com/php/pecl-file_formats-lzf php-ext-lzf
    PHP_ZSTD='y'                    # zstd php extension https://github.com/kjdev/php-ext-zstd
    PHP_CUSTOMSSL='n'               # compile php-fpm against openssl 1.0.2+ or libressl 2.3+ whichever nginx uses
    PHPFINFO='y'                    # Disable or Enable PHP File Info extension
    PHPPCNTL='y'                    # Disable or Enable PHP Process Control extension
    PHPINTL='y'                     # Disable or Enable PHP intl extension
    PHPRECODE=n                     # Disable or Enable PHP Recode extension
    PHPIMAGICK='y'                  # Disable or Enable PHP ImagicK extension
    AUTODETECPHP_OVERRIDE='y'       # when enabled, php updates will always reinstall all php extensions even if minor php version
    PHPIONCUBE='y'                  #
    MEMCACHED_INSTALL='y'           # Install Memcached
    PHPREDIS='y'                    # redis PHP extension install
    AUTODETECPHP_OVERRIDE='n'       # skip recompiles for minor versions set to'y' when compile to majoir version updates
    GCCINTEL_PHP='y'                # enable PHP-FPM GCC compiler with Intel cpu optimizations
    DEVTOOLSET_PHP='y'              # use devtoolset GCC for GCCINTEL_PHP='y'
    #####################################################
    
    #####################################################
    # Open SSL
    DISABLE_TLSONEZERO_PROTOCOL='y' # disable TLS 1.0 protocol by default industry is moving to deprecate for security
    NOSOURCEOPENSSL='n'             # set to 'y' to disable OpenSSL source compile for system default YUM package setup
    OPENSSL_TLSONETHREE='y'         # whether OpenSSL 1.1.1 builds enable TLSv1.3
    #####################################################
    
    ZSTD_LOGROTATE_NGINX='y'
    ZSTD_LOGROTATE_PHPFPM='y'
    LETSENCRYPT_DETECT='y'
    DUALCERTS='y'                   # dual RSA+ECDSA ssl certs https://centminmod.com/acmetool/
    AUDITD_ENABLE='y'
    
    #####################################################
    # MariaDB
    MARIADB_INSTALLTENTWO='n'       # MariaDB 10.2 YUM default install if set to yes
    MARIADB_INSTALLTENTHREE='y'     # MariaDB 10.3 YUM default install if set to yes
    MARIADB_INSTALLTENFOUR='n'      # MariaDB 10.4 YUM default install if set to yes
    #####################################################
    


    Error appears when I just do ]
    Code (Text):
     nginx
    nginx: [error] lua_load_resty_core failed to load the resty.core module from https://github.com/openresty/lua-resty-core; ensure you are using an OpenResty release from https://openresty.org/en/download.html (rc: 2, reason: module 'resty.core' not found:
            no field package.preload['resty.core']
            no file './resty/core.lua'
            no file '/usr/local/share/luajit-2.1.0-beta3/resty/core.lua'
            no file '/usr/local/share/lua/5.1/resty/core.lua'
            no file '/usr/local/share/lua/5.1/resty/core/init.lua'
            no file './resty/core.so'
            no file '/usr/local/lib/lua/5.1/resty/core.so'
            no file '/usr/local/lib/lua/5.1/loadall.so'
            no file './resty.so'
            no file '/usr/local/lib/lua/5.1/resty.so'
            no file '/usr/local/lib/lua/5.1/loadall.so')
    
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,546
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    12:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    i updated previous post with additional output listing for directory as well

    are you activately using lua nginx code in nginx vhosts ?
     
  5. eva2000

    eva2000 Administrator Staff Member

    54,546
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    12:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    not able to reproduce your error on my installs with lua nginx module enabled example test

    Code (Text):
         location /lua_content {
             # MIME type determined by default_type:
             default_type 'text/plain';
             content_by_lua_block {
                 ngx.say('Hello,world!')
             }
         }
    

    Code (Text):
    curl -s https://domain.com.com/lua_content/
    Hello,world!
    
     
  6. EckyBrazzz

    EckyBrazzz Active Member

    916
    189
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +362
    Local Time:
    11:53 PM
    Latest
    Latest
    Code (Text):
    ls -lah /usr/local/lib/lua/resty/
    ls: cannot access /usr/local/lib/lua/resty/: No such file or directory
    


    So missing
     
  7. eva2000

    eva2000 Administrator Staff Member

    54,546
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    12:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    check if ngx devel kit was downloaded and extracted into directory
    Code (Text):
    ls -lah /svr-setup/ | grep -i devel | grep ng

    example output
    Code (Text):
    ls -lah /svr-setup/ | grep -i devel | grep ng
    -rw-r--r--.   1 root      root        65K May 19  2016 nginx-develkit_v0.3.0.tar.gz
    drwxrwxr-x    9 root      root       4.0K May  9  2016 ngx_devel_kit-0.3.0
    

    also can check all your nginx_upgrade logs to see when it was last downloaded
    Code (Text):
    grep -rin 'nginx-develkit' /root/centminlogs/ | grep nginx_upgrade

    Code (Text):
    grep -rin 'nginx-develkit' /root/centminlogs/ | grep nginx_upgrade
    /root/centminlogs/centminmod_123.09beta01.b290_171019-123018_nginx_upgrade.log:88:Download nginx-develkit_v0.3.0.tar.gz ...
    /root/centminlogs/centminmod_123.09beta01.b290_171019-123018_nginx_upgrade.log:89:nginx-develkit_v0.3.0.tar.gz Archive found, skipping download...
    /root/centminlogs/centminmod_123.09beta01.b290_171019-123018_nginx_upgrade.log:90:nginx-develkit_v0.3.0.tar.gz valid file.
    /root/centminlogs/centminmod_123.09beta01.b211_240719-045536_nginx_upgrade.log:177:Download nginx-develkit_v0.3.0.tar.gz ...
    /root/centminlogs/centminmod_123.09beta01.b211_240719-045536_nginx_upgrade.log:178:nginx-develkit_v0.3.0.tar.gz Archive found, skipping download...
    /root/centminlogs/centminmod_123.09beta01.b211_240719-045536_nginx_upgrade.log:179:nginx-develkit_v0.3.0.tar.gz valid file.
    

    for me first time downloaded was
    /root/centminlogs/centminmod_123.09beta01.b211_240719-045536_nginx_upgrade.log so 123.09beta01 build 211 on 24/7/19 around 4:55 am server time during centmin.sh menu option 4 upgrade run. And last time was /root/centminlogs/centminmod_123.09beta01.b290_171019-123018_nginx_upgrade.log which was just today to check if all is working on 123.09beta01 build 290
     
  8. EckyBrazzz

    EckyBrazzz Active Member

    916
    189
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +362
    Local Time:
    11:53 PM
    Latest
    Latest
    Code (Text):
    ls -lah /svr-setup/ | grep -i devel | grep ng
    -rw-r--r--   1 root      root        65K Feb 24  2018 nginx-develkit_v0.3.0.tar.gz
    drwxrwxr-x   9 root      root        221 May  9  2016 ngx_devel_kit-0.3.0
    


    Code (Text):
    grep -rin 'nginx-develkit' /root/centminlogs/ | grep nginx_upgrade
    /root/centminlogs/centminmod_123.09beta01.b286_031019-025857_nginx_upgrade.log:1161:Download nginx-develkit_v0.3.0.tar.gz ...
    /root/centminlogs/centminmod_123.09beta01.b286_031019-025857_nginx_upgrade.log:1162:nginx-develkit_v0.3.0.tar.gz Archive found, skipping download...
    /root/centminlogs/centminmod_123.09beta01.b286_031019-025857_nginx_upgrade.log:1163:nginx-develkit_v0.3.0.tar.gz valid file.
    /root/centminlogs/centminmod_123.09beta01.b290_061019-190936_nginx_upgrade.log:1119:Download nginx-develkit_v0.3.0.tar.gz ...
    /root/centminlogs/centminmod_123.09beta01.b290_061019-190936_nginx_upgrade.log:1120:nginx-develkit_v0.3.0.tar.gz Archive found, skipping download...
    /root/centminlogs/centminmod_123.09beta01.b290_061019-190936_nginx_upgrade.log:1121:nginx-develkit_v0.3.0.tar.gz valid file.
    /root/centminlogs/centminmod_123.09beta01.b290_061019-193342_nginx_upgrade.log:108:Download nginx-develkit_v0.3.0.tar.gz ...
    /root/centminlogs/centminmod_123.09beta01.b290_061019-193342_nginx_upgrade.log:109:nginx-develkit_v0.3.0.tar.gz Archive found, skipping download...
    /root/centminlogs/centminmod_123.09beta01.b290_061019-193342_nginx_upgrade.log:110:nginx-develkit_v0.3.0.tar.gz valid file.
    


    What is the next step?

    Did I forget something in my /etc/centminmod/custom_config.inc file?
     
  9. EckyBrazzz

    EckyBrazzz Active Member

    916
    189
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +362
    Local Time:
    11:53 PM
    Latest
    Latest
  10. eva2000

    eva2000 Administrator Staff Member

    54,546
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    12:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    try deleting nginx-develkit_v0.3.0.tar.gz and ngx_devel_kit-0.3.0 from /svr-setup and then run cmupdate, then re-run centmin.sh menu option 4 so it can redownload them
    Code (Text):
    cd /svr-setup
    rm -rf nginx-develkit_v0.3.0.tar.gz ngx_devel_kit-0.3.0
    
     
  11. EckyBrazzz

    EckyBrazzz Active Member

    916
    189
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +362
    Local Time:
    11:53 PM
    Latest
    Latest
    Hi @eva2000 I did what you asked, but soon I received

    nprestart was ok, only a real reboot saved it.

    But the error is still there when I run only nginx without any other command.

    Code (Text):
    nginx
    nginx: [error] lua_load_resty_core failed to load the resty.core module from https://github.com/openresty/lua-resty-core; ensure you are using an OpenResty release from https://openresty.org/en/download.html (rc: 2, reason: module 'resty.core' not found:
            no field package.preload['resty.core']
            no file './resty/core.lua'
            no file '/usr/local/share/luajit-2.1.0-beta3/resty/core.lua'
            no file '/usr/local/share/lua/5.1/resty/core.lua'
            no file '/usr/local/share/lua/5.1/resty/core/init.lua'
            no file './resty/core.so'
            no file '/usr/local/lib/lua/5.1/resty/core.so'
            no file '/usr/local/lib/lua/5.1/loadall.so'
            no file './resty.so'
            no file '/usr/local/lib/lua/5.1/resty.so'
            no file '/usr/local/lib/lua/5.1/loadall.so')
    


    And nginx-develkit_v0.3.0.tar.gz is back again.

    Code (Text):
    grep -rin 'nginx-develkit' /root/centminlogs/ | grep nginx_upgrade
    /root/centminlogs/centminmod_123.09beta01.b286_031019-025857_nginx_upgrade.log:1161:Download nginx-develkit_v0.3.0.tar.gz ...
    /root/centminlogs/centminmod_123.09beta01.b286_031019-025857_nginx_upgrade.log:1162:nginx-develkit_v0.3.0.tar.gz Archive found, skipping download...
    /root/centminlogs/centminmod_123.09beta01.b286_031019-025857_nginx_upgrade.log:1163:nginx-develkit_v0.3.0.tar.gz valid file.
    /root/centminlogs/centminmod_123.09beta01.b292_231019-024546_nginx_upgrade.log:123:Download nginx-develkit_v0.3.0.tar.gz ...
    /root/centminlogs/centminmod_123.09beta01.b292_231019-024546_nginx_upgrade.log:124:nginx-develkit_v0.3.0.tar.gz Archive found, skipping download...
    /root/centminlogs/centminmod_123.09beta01.b292_231019-024546_nginx_upgrade.log:125:nginx-develkit_v0.3.0.tar.gz valid file.
    /root/centminlogs/centminmod_123.09beta01.b290_061019-190936_nginx_upgrade.log:1119:Download nginx-develkit_v0.3.0.tar.gz ...
    /root/centminlogs/centminmod_123.09beta01.b290_061019-190936_nginx_upgrade.log:1120:nginx-develkit_v0.3.0.tar.gz Archive found, skipping download...
    /root/centminlogs/centminmod_123.09beta01.b290_061019-190936_nginx_upgrade.log:1121:nginx-develkit_v0.3.0.tar.gz valid file.
    /root/centminlogs/centminmod_123.09beta01.b290_061019-193342_nginx_upgrade.log:108:Download nginx-develkit_v0.3.0.tar.gz ...
    /root/centminlogs/centminmod_123.09beta01.b290_061019-193342_nginx_upgrade.log:109:nginx-develkit_v0.3.0.tar.gz Archive found, skipping download...
    /root/centminlogs/centminmod_123.09beta01.b290_061019-193342_nginx_upgrade.log:110:nginx-develkit_v0.3.0.tar.gz valid file.
    /root/centminlogs/centminmod_123.09beta01.b294_231019-083717_nginx_upgrade.log:124:Download nginx-develkit_v0.3.0.tar.gz ...
    /root/centminlogs/centminmod_123.09beta01.b294_231019-083717_nginx_upgrade.log:125:Error: nginx-develkit_v0.3.0.tar.gz not found!!! Downloading now......
    /root/centminlogs/centminmod_123.09beta01.b294_231019-083717_nginx_upgrade.log:126:wget -c4 --progress=bar https://github.com/simpl/ngx_devel_kit/archive/v0.3.0.tar.gz -O nginx-develkit_v0.3.0.tar.gz --tries=3
    /root/centminlogs/centminmod_123.09beta01.b294_231019-083717_nginx_upgrade.log:141:Saving to: ‘nginx-develkit_v0.3.0.tar.gz’
    /root/centminlogs/centminmod_123.09beta01.b294_231019-083717_nginx_upgrade.log:146:2019-10-23 08:38:02 (223 KB/s) - ‘nginx-develkit_v0.3.0.tar.gz’ saved [66455]
    /root/centminlogs/centminmod_123.09beta01.b294_231019-083717_nginx_upgrade.log:149:nginx-develkit_v0.3.0.tar.gz valid file.
    /root/centminlogs/centminmod_123.09beta01.b294_231019-084804_nginx_upgrade.log:125:Download nginx-develkit_v0.3.0.tar.gz ...
    /root/centminlogs/centminmod_123.09beta01.b294_231019-084804_nginx_upgrade.log:126:Error: nginx-develkit_v0.3.0.tar.gz not found!!! Downloading now......
    /root/centminlogs/centminmod_123.09beta01.b294_231019-084804_nginx_upgrade.log:127:wget -c4 --progress=bar https://github.com/simpl/ngx_devel_kit/archive/v0.3.0.tar.gz -O nginx-develkit_v0.3.0.tar.gz --tries=3
    /root/centminlogs/centminmod_123.09beta01.b294_231019-084804_nginx_upgrade.log:142:Saving to: ‘nginx-develkit_v0.3.0.tar.gz’
    /root/centminlogs/centminmod_123.09beta01.b294_231019-084804_nginx_upgrade.log:147:2019-10-23 08:48:40 (228 KB/s) - ‘nginx-develkit_v0.3.0.tar.gz’ saved [66455]
    /root/centminlogs/centminmod_123.09beta01.b294_231019-084804_nginx_upgrade.log:150:nginx-develkit_v0.3.0.tar.gz valid file.
    
     
    Last edited: Oct 23, 2019
  12. eva2000

    eva2000 Administrator Staff Member

    54,546
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    12:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    that is the key problem, those directories aren't being created or populated for whatever reason

    example of working lua nginx enabled Centmin Mod Nginx server
    Code (Text):
    ls -lah /usr/local/lib/lua/resty/
    total 380K
    drwxr-xr-x 2 root root 4.0K May 28 19:21 .
    drwxr-xr-x 5 root root 4.0K Apr  9  2017 ..
    -rwxr-xr-x 1 root root 6.0K May 28 19:21 aes.lua
    -rwxr-xr-x 1 root root 2.3K May 28 19:21 base64.lua
    -rwxr-xr-x 1 root root 5.1K May 28 19:21 base.lua
    -rwxr-xr-x 1 root root 7.8K May 28 19:21 client.lua
    -rwxrwxr-x 1 root root 5.2K Jan  8  2015 cookie.lua
    -rwxr-xr-x 1 root root  642 May 28 19:21 core.lua
    -rwxr-xr-x 1 root root 1.9K May 28 19:21 ctx.lua
    -rwxr-xr-x 1 root root 1.1K May 28 19:21 exit.lua
    -rwxr-xr-x 1 root root 1.9K May 28 19:21 hash.lua
    -rwxr-xr-x 1 root root  18K May 28 19:21 healthcheck.lua
    -rwxr-xr-x 1 root root 4.6K May 28 19:21 lock.lua
    -rwxr-xr-x 1 root root 5.7K May 28 19:21 lrucache.lua
    -rwxr-xr-x 1 root root 1.2K May 28 19:21 md5.lua
    -rwxr-xr-x 1 root root  15K May 28 19:21 memcached.lua
    -rwxr-xr-x 1 root root 4.9K May 28 19:21 misc.lua
    -rwxr-xr-x 1 root root  22K May 28 19:21 mysql.lua
    -rwxr-xr-x 1 root root 2.1K May 28 19:21 ndk.lua
    -rwxr-xr-x 1 root root 1.2K May 28 19:21 phase.lua
    -rwxr-xr-x 1 root root 8.5K May 28 19:21 protocol.lua
    -rwxr-xr-x 1 root root  18K May 28 19:21 pureffi.lua
    -rwxr-xr-x 1 root root  616 May 28 19:21 random.lua
    -rwxr-xr-x 1 root root 9.1K May 28 19:21 redis.lua
    -rwxr-xr-x 1 root root  34K May 28 19:21 regex.lua
    -rwxr-xr-x 1 root root 8.7K May 28 19:21 request.lua
    -rwxr-xr-x 1 root root  23K May 28 19:21 resolver.lua
    -rwxr-xr-x 1 root root 4.3K May 28 19:21 response.lua
    -rwxr-xr-x 1 root root 4.9K May 28 19:21 server.lua
    -rwxr-xr-x 1 root root 1.2K May 28 19:21 sha1.lua
    -rwxr-xr-x 1 root root 1.1K May 28 19:21 sha224.lua
    -rwxr-xr-x 1 root root 1.2K May 28 19:21 sha256.lua
    -rwxr-xr-x 1 root root 1.1K May 28 19:21 sha384.lua
    -rwxr-xr-x 1 root root 1.4K May 28 19:21 sha512.lua
    -rwxr-xr-x 1 root root  236 May 28 19:21 sha.lua
    -rwxr-xr-x 1 root root  16K May 28 19:21 shdict.lua
    -rwxrwxr-x 1 root root  12K Feb  9  2015 socket.lua
    -rwxr-xr-x 1 root root  698 May 28 19:21 string.lua
    -rwxr-xr-x 1 root root 4.1K May 28 19:21 time.lua
    -rwxr-xr-x 1 root root 5.1K May 28 19:21 upload.lua
    -rwxr-xr-x 1 root root 1.5K May 28 19:21 uri.lua
    -rwxr-xr-x 1 root root  874 May 28 19:21 utils.lua
    -rwxr-xr-x 1 root root 3.1K May 28 19:21 var.lua
    -rwxr-xr-x 1 root root  723 May 28 19:21 worker.lua
    


    check if lua-resty-core is being downloaded and extracted in /svr-steup

    example
    Code (Text):
    ls -lah /svr-setup/ | grep lua-resty-core

    Code (Text):
    ls -lah /svr-setup/ | grep lua-resty-core
    drwxrwxr-x    5 root      root       4.0K Feb 22  2019 lua-resty-core-0.1.16
    drwxrwxr-x    5 root      root       4.0K May  7 23:35 lua-resty-core-0.1.17
    -rw-r--r--    1 root      root        75K Apr  9  2017 lua-resty-core_v0.1.11.tar.gz
    -rw-r--r--    1 root      root        80K May 10  2017 lua-resty-core_v0.1.12rc1.tar.gz
    -rw-r--r--    1 root      root        84K May 14  2017 lua-resty-core_v0.1.12rc3.tar.gz
    -rw-r--r--    1 root      root        84K May 26  2017 lua-resty-core_v0.1.12rc5.tar.gz
    -rw-r--r--    1 root      root        86K Jul  1  2017 lua-resty-core_v0.1.12rc7.tar.gz
    -rw-r--r--    1 root      root        87K Aug 10  2017 lua-resty-core_v0.1.12.tar.gz
    -rw-r--r--    1 root      root        88K Oct  3  2017 lua-resty-core_v0.1.13rc1.tar.gz
    -rw-r--r--    1 root      root        94K Nov  5  2017 lua-resty-core_v0.1.13.tar.gz
    -rw-r--r--    1 root      root       144K May  2 19:54 lua-resty-core_v0.1.16.tar.gz
    -rw-r--r--    1 root      root       148K May 19 04:37 lua-resty-core_v0.1.17.tar.gz
    -rw-r--r--.   1 root      root        75K Nov 15  2016 lua-resty-core_v0.1.9.tar.gz
    
     
  13. eva2000

    eva2000 Administrator Staff Member

    54,546
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    12:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    You can check the last nginx_upgrade logs lua-resty-core routine to see what happened via command
    Code (Text):
    grep -C80 -rin 'ls -lahR /usr/local/lib/lua' $(ls -rt /root/centminlogs/ | grep nginx_upgrade | tail -1)

    example
    Code (Text):
    grep -C80 -rin 'ls -lahR /usr/local/lib/lua' $(ls -rt /root/centminlogs/ | grep nginx_upgrade | tail -1)
    
    1681-make: *** No rule to make target `clean'.  Stop.
    1682-install -d //usr/local/lib/lua/5.1/resty
    1683-install lib/resty/*.lua //usr/local/lib/lua/5.1/resty
    1684-make: *** No rule to make target `clean'.  Stop.
    1685-install -d //usr/local/lib/lua/5.1/resty
    1686-install lib/resty/*.lua //usr/local/lib/lua/5.1/resty
    1687-make: *** No rule to make target `clean'.  Stop.
    1688-install -d /usr/local/lib/lua/5.1/resty
    1689-install lib/resty/*.lua /usr/local/lib/lua/5.1/resty
    1690-make: *** No rule to make target `clean'.  Stop.
    1691-install -d //usr/local/lib/lua/5.1/resty/dns
    1692-install lib/resty/dns/*.lua //usr/local/lib/lua/5.1/resty/dns/
    1693-make: *** No rule to make target `clean'.  Stop.
    1694-install -d //usr/local/lib/lua/5.1/resty
    1695-install lib/resty/*.lua //usr/local/lib/lua/5.1/resty
    1696-make: *** No rule to make target `clean'.  Stop.
    1697-install -d //usr/local/lib/lua/5.1/resty/websocket
    1698-install lib/resty/websocket/*.lua //usr/local/lib/lua/5.1/resty/websocket/
    1699-make: *** No rule to make target `clean'.  Stop.
    1700-install -d //usr/local/lib/lua/5.1/resty/
    1701-install lib/resty/*.lua //usr/local/lib/lua/5.1/resty/
    1702-make: *** No rule to make target `clean'.  Stop.
    1703-install -d //usr/local/lib/lua/5.1/resty
    1704-install lib/resty/*.lua //usr/local/lib/lua/5.1/resty
    1705-rm -f *.so *.o redis/*.so
    1706-gcc -c -g -O -Wall -fpic -I/usr/local/include   -o redis-parser.o redis-parser.c
    1707-gcc -shared -o parser.so redis-parser.o
    1708-install -d /usr/local/lib/lua/5.1/redis
    1709-install parser.so /usr/local/lib/lua/5.1/redis
    1710-make: *** No rule to make target `clean'.  Stop.
    1711-install -d //usr/local/lib/lua/5.1/resty/upstream/
    1712-install lib/resty/upstream/*.lua //usr/local/lib/lua/5.1/resty/upstream/
    1713-make: *** No rule to make target `clean'.  Stop.
    1714-make: *** No rule to make target `install'.  Stop.
    1715-rm -f *.o cjson.so
    1716-gcc -c -O3 -Wall -pedantic -DNDEBUG  -I/usr/local/include -fpic -o lua_cjson.o lua_cjson.c
    1717-gcc -c -O3 -Wall -pedantic -DNDEBUG  -I/usr/local/include -fpic -o strbuf.o strbuf.c
    1718-gcc -c -O3 -Wall -pedantic -DNDEBUG  -I/usr/local/include -fpic -o fpconv.o fpconv.c
    1719-gcc  -shared -o cjson.so lua_cjson.o strbuf.o fpconv.o
    1720-mkdir -p /usr/local/lib/lua/5.1
    1721-rm -f /usr/local/lib/lua/5.1/cjson.so
    1722-cp cjson.so /usr/local/lib/lua/5.1
    1723-chmod 755 /usr/local/lib/lua/5.1/cjson.so
    1724-make: *** No rule to make target `clean'.  Stop.
    1725-install -d //usr/local/lib/lua/5.1/resty/lrucache
    1726-install lib/resty/*.lua //usr/local/lib/lua/5.1/resty/
    1727-install lib/resty/lrucache/*.lua //usr/local/lib/lua/5.1/resty/lrucache/
    1728-make: *** No rule to make target `clean'.  Stop.
    1729-install -d /usr/local/lib/lua/5.1/resty/core/
    1730-install -d /usr/local/lib/lua/5.1/ngx/
    1731-install -d /usr/local/lib/lua/5.1/ngx/ssl
    1732-install lib/resty/*.lua /usr/local/lib/lua/5.1/resty/
    1733-install lib/resty/core/*.lua /usr/local/lib/lua/5.1/resty/core/
    1734-install lib/ngx/*.lua /usr/local/lib/lua/5.1/ngx/
    1735-install lib/ngx/ssl/*.lua /usr/local/lib/lua/5.1/ngx/ssl/
    1736-
    1737:ls -lahR /usr/local/lib/lua/5.1/resty/
    1738-/usr/local/lib/lua/5.1/resty/:
    1739-total 164K
    1740-drwxr-xr-x 7 root root 4.0K Oct 19 19:47 .
    1741-drwxr-xr-x 5 root root 4.0K Oct 19 19:47 ..
    1742--rwxr-xr-x 1 root root 6.0K Oct 19 19:47 aes.lua
    1743-drwxr-xr-x 2 root root 4.0K Oct 19 19:47 core
    1744--rwxr-xr-x 1 root root  642 Oct 19 19:47 core.lua
    1745-drwxr-xr-x 2 root root 4.0K Oct 19 19:47 dns
    1746--rwxr-xr-x 1 root root 4.6K Oct 19 19:47 lock.lua
    1747-drwxr-xr-x 2 root root 4.0K Oct 19 19:47 lrucache
    1748--rwxr-xr-x 1 root root 5.7K Oct 19 19:47 lrucache.lua
    1749--rwxr-xr-x 1 root root 1.2K Oct 19 19:47 md5.lua
    1750--rwxr-xr-x 1 root root  15K Oct 19 19:47 memcached.lua
    1751--rwxr-xr-x 1 root root  22K Oct 19 19:47 mysql.lua
    1752--rwxr-xr-x 1 root root  616 Oct 19 19:47 random.lua
    1753--rwxr-xr-x 1 root root 9.1K Oct 19 19:47 redis.lua
    1754--rwxr-xr-x 1 root root 1.2K Oct 19 19:47 sha1.lua
    1755--rwxr-xr-x 1 root root 1.1K Oct 19 19:47 sha224.lua
    1756--rwxr-xr-x 1 root root 1.2K Oct 19 19:47 sha256.lua
    1757--rwxr-xr-x 1 root root 1.1K Oct 19 19:47 sha384.lua
    1758--rwxr-xr-x 1 root root 1.4K Oct 19 19:47 sha512.lua
    1759--rwxr-xr-x 1 root root  236 Oct 19 19:47 sha.lua
    1760--rwxrwxr-x 1 root root  12K Feb  9  2015 socket.lua
    1761--rwxr-xr-x 1 root root  698 Oct 19 19:47 string.lua
    1762--rwxr-xr-x 1 root root 5.1K Oct 19 19:47 upload.lua
    1763-drwxr-xr-x 2 root root 4.0K Oct 19 19:47 upstream
    1764-drwxr-xr-x 2 root root 4.0K Oct 19 19:47 websocket
    1765-
    1766-/usr/local/lib/lua/5.1/resty/core:
    1767-total 144K
    1768-drwxr-xr-x 2 root root 4.0K Oct 19 19:47 .
    1769-drwxr-xr-x 7 root root 4.0K Oct 19 19:47 ..
    1770--rwxr-xr-x 1 root root 2.3K Oct 19 19:47 base64.lua
    1771--rwxr-xr-x 1 root root 5.1K Oct 19 19:47 base.lua
    1772--rwxr-xr-x 1 root root 1.9K Oct 19 19:47 ctx.lua
    1773--rwxr-xr-x 1 root root 1.1K Oct 19 19:47 exit.lua
    1774--rwxr-xr-x 1 root root 1.9K Oct 19 19:47 hash.lua
    1775--rwxr-xr-x 1 root root 4.9K Oct 19 19:47 misc.lua
    1776--rwxr-xr-x 1 root root 2.1K Oct 19 19:47 ndk.lua
    1777--rwxr-xr-x 1 root root 1.2K Oct 19 19:47 phase.lua
    1778--rwxr-xr-x 1 root root  34K Oct 19 19:47 regex.lua
    1779--rwxr-xr-x 1 root root 8.7K Oct 19 19:47 request.lua
    1780--rwxr-xr-x 1 root root 4.3K Oct 19 19:47 response.lua
    1781--rwxr-xr-x 1 root root  16K Oct 19 19:47 shdict.lua
    1782--rwxr-xr-x 1 root root 4.1K Oct 19 19:47 time.lua
    1783--rwxr-xr-x 1 root root 1.5K Oct 19 19:47 uri.lua
    1784--rwxr-xr-x 1 root root  874 Oct 19 19:47 utils.lua
    1785--rwxr-xr-x 1 root root 3.1K Oct 19 19:47 var.lua
    1786--rwxr-xr-x 1 root root  723 Oct 19 19:47 worker.lua
    1787-
    1788-/usr/local/lib/lua/5.1/resty/dns:
    1789-total 32K
    1790-drwxr-xr-x 2 root root 4.0K Oct 19 19:47 .
    1791-drwxr-xr-x 7 root root 4.0K Oct 19 19:47 ..
    1792--rwxr-xr-x 1 root root  23K Oct 19 19:47 resolver.lua
    1793-
    1794-/usr/local/lib/lua/5.1/resty/lrucache:
    1795-total 28K
    1796-drwxr-xr-x 2 root root 4.0K Oct 19 19:47 .
    1797-drwxr-xr-x 7 root root 4.0K Oct 19 19:47 ..
    1798--rwxr-xr-x 1 root root  18K Oct 19 19:47 pureffi.lua
    1799-
    1800-/usr/local/lib/lua/5.1/resty/upstream:
    1801-total 28K
    1802-drwxr-xr-x 2 root root 4.0K Oct 19 19:47 .
    1803-drwxr-xr-x 7 root root 4.0K Oct 19 19:47 ..
    1804--rwxr-xr-x 1 root root  18K Oct 19 19:47 healthcheck.lua
    1805-
    1806-/usr/local/lib/lua/5.1/resty/websocket:
    1807-total 36K
    1808-drwxr-xr-x 2 root root 4.0K Oct 19 19:47 .
    1809-drwxr-xr-x 7 root root 4.0K Oct 19 19:47 ..
    1810--rwxr-xr-x 1 root root 7.8K Oct 19 19:47 client.lua
    1811--rwxr-xr-x 1 root root 8.5K Oct 19 19:47 protocol.lua
    1812--rwxr-xr-x 1 root root 4.9K Oct 19 19:47 server.lua
    1813-
    1814-/usr/lib64/libatomic_ops.a found
    1815-gcc (GCC) 9.2.1 20191012
    1816-Copyright (C) 2019 Free Software Foundation, Inc.
    1817-This is free software; see the source for copying conditions.  There is NO
    

    The output shows the installation and directory/file listing for lua nginx modules after install
     
  14. EckyBrazzz

    EckyBrazzz Active Member

    916
    189
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +362
    Local Time:
    11:53 PM
    Latest
    Latest
    Did the two you asked above, here are the results.
    Code (Text):
    ls -lah /svr-setup/ | grep lua-resty-core
    drwxrwxr-x   5 root      root        199 May  7 23:35 lua-resty-core-0.1.17
    -rw-r--r--   1 root      root        86K Feb 24  2018 lua-resty-core_v0.1.12rc7.tar.gz
    -rw-r--r--   1 root      root       148K Oct  2 19:16 lua-resty-core_v0.1.17.tar.gz
    


    Code (Text):
    grep -C80 -rin 'ls -lahR /usr/local/lib/lua' $(ls -rt /root/centminlogs/ | grep nginx_upgrade | tail -1)
    grep: centminmod_123.09beta01.b294_231019-101517_nginx_upgrade.log: No such file or directory
    


    So litte wierd, have lua-resty-core-0.1.17 and so, but no log
     
  15. eva2000

    eva2000 Administrator Staff Member

    54,546
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    12:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    oh run the 2nd command after you cange into /root/centminlogs directory
    Code (Text):
    cd /root/centminlogs
    grep -C80 -rin 'ls -lahR /usr/local/lib/lua' $(ls -rt /root/centminlogs/ | grep nginx_upgrade | tail -1)
    
     
  16. EckyBrazzz

    EckyBrazzz Active Member

    916
    189
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +362
    Local Time:
    11:53 PM
    Latest
    Latest
    oops, long list
    Code (Text):
    grep -C80 -rin 'ls -lahR /usr/local/lib/lua' $(ls -rt /root/centminlogs/ | grep nginx_upgrade | tail -1)
    4391-1017004
    4392-
    4393-get latest updates nginx-rtmp-module from github
    4394-/svr-setup/nginx-rtmp-module /svr-setup/nginx-1.17.4 ~
    4395-No local changes to save
    4396-Already up-to-date.
    4397-commit 791b6136f02bc9613daf178723ac09f4df5a3bbf
    4398-Merge: 43f1e42 716d3c8
    4399-Author: Roman Arutyunyan <arutyunyan.roman@gmail.com>
    4400-Date:   Wed Nov 29 13:47:32 2017 +0300
    4401-
    4402-    Merge pull request #1125 from martynjarvis/fall-through-comments
    4403-  
    4404-    Add  "fall through" comments to stop GCC 7 complaining
    4405-
    4406-/svr-setup/nginx-1.17.4 ~
    4407-1017004
    4408-/usr/local/src/centminmod
    4409-15
    4410-18
    4411-/svr-setup/redis2-nginx-module-0.15/src
    4412-/svr-setup/memc-nginx-module-0.18/src
    4413-1017004
    4414-1017004
    4415-make: *** No rule to make target `clean'.  Stop.
    4416-install -d //usr/local/lib/lua/5.1/resty
    4417-install lib/resty/*.lua //usr/local/lib/lua/5.1/resty
    4418-make: *** No rule to make target `clean'.  Stop.
    4419-install -d //usr/local/lib/lua/5.1/resty
    4420-install lib/resty/*.lua //usr/local/lib/lua/5.1/resty
    4421-make: *** No rule to make target `clean'.  Stop.
    4422-install -d /usr/local/lib/lua/5.1/resty
    4423-install lib/resty/*.lua /usr/local/lib/lua/5.1/resty
    4424-make: *** No rule to make target `clean'.  Stop.
    4425-install -d //usr/local/lib/lua/5.1/resty/dns
    4426-install lib/resty/dns/*.lua //usr/local/lib/lua/5.1/resty/dns/
    4427-make: *** No rule to make target `clean'.  Stop.
    4428-install -d //usr/local/lib/lua/5.1/resty
    4429-install lib/resty/*.lua //usr/local/lib/lua/5.1/resty
    4430-make: *** No rule to make target `clean'.  Stop.
    4431-install -d //usr/local/lib/lua/5.1/resty/websocket
    4432-install lib/resty/websocket/*.lua //usr/local/lib/lua/5.1/resty/websocket/
    4433-make: *** No rule to make target `clean'.  Stop.
    4434-install -d //usr/local/lib/lua/5.1/resty/
    4435-install lib/resty/*.lua //usr/local/lib/lua/5.1/resty/
    4436-make: *** No rule to make target `clean'.  Stop.
    4437-install -d //usr/local/lib/lua/5.1/resty
    4438-install lib/resty/*.lua //usr/local/lib/lua/5.1/resty
    4439-rm -f *.so *.o redis/*.so
    4440-cc -c -g -O -Wall -fpic -I/usr/local/include   -o redis-parser.o redis-parser.c
    4441-cc -shared -o parser.so redis-parser.o
    4442-install -d /usr/local/lib/lua/5.1/redis
    4443-install parser.so /usr/local/lib/lua/5.1/redis
    4444-make: *** No rule to make target `clean'.  Stop.
    4445-install -d //usr/local/lib/lua/5.1/resty/upstream/
    4446-install lib/resty/upstream/*.lua //usr/local/lib/lua/5.1/resty/upstream/
    4447-make: *** No rule to make target `clean'.  Stop.
    4448-make: *** No rule to make target `install'.  Stop.
    4449-rm -f *.o cjson.so
    4450-cc -c -O3 -Wall -pedantic -DNDEBUG  -I/usr/local/include -fpic -o lua_cjson.o lua_cjson.c
    4451-cc -c -O3 -Wall -pedantic -DNDEBUG  -I/usr/local/include -fpic -o strbuf.o strbuf.c
    4452-cc -c -O3 -Wall -pedantic -DNDEBUG  -I/usr/local/include -fpic -o fpconv.o fpconv.c
    4453-cc  -shared -o cjson.so lua_cjson.o strbuf.o fpconv.o
    4454-mkdir -p /usr/local/lib/lua/5.1
    4455-rm -f /usr/local/lib/lua/5.1/cjson.so
    4456-cp cjson.so /usr/local/lib/lua/5.1
    4457-chmod 755 /usr/local/lib/lua/5.1/cjson.so
    4458-make: *** No rule to make target `clean'.  Stop.
    4459-install -d //usr/local/lib/lua/5.1/resty/lrucache
    4460-install lib/resty/*.lua //usr/local/lib/lua/5.1/resty/
    4461-install lib/resty/lrucache/*.lua //usr/local/lib/lua/5.1/resty/lrucache/
    4462-make: *** No rule to make target `clean'.  Stop.
    4463-install -d /usr/local/lib/lua/5.1/resty/core/
    4464-install -d /usr/local/lib/lua/5.1/ngx/
    4465-install -d /usr/local/lib/lua/5.1/ngx/ssl
    4466-install lib/resty/*.lua /usr/local/lib/lua/5.1/resty/
    4467-install lib/resty/core/*.lua /usr/local/lib/lua/5.1/resty/core/
    4468-install lib/ngx/*.lua /usr/local/lib/lua/5.1/ngx/
    4469-install lib/ngx/ssl/*.lua /usr/local/lib/lua/5.1/ngx/ssl/
    4470-
    4471:ls -lahR /usr/local/lib/lua/5.1/resty/
    4472-/usr/local/lib/lua/5.1/resty/:
    4473-total 140K
    4474-drwxr-xr-x 7 root root 4.0K Oct 23 10:31 .
    4475-drwxr-xr-x 5 root root   59 Oct 23 10:31 ..
    4476--rwxr-xr-x 1 root root 6.0K Oct 23 10:31 aes.lua
    4477-drwxr-xr-x 2 root root  290 Oct 23 10:31 core
    4478--rwxr-xr-x 1 root root  642 Oct 23 10:31 core.lua
    4479-drwxr-xr-x 2 root root   26 Oct 23 10:31 dns
    4480--rwxr-xr-x 1 root root 4.6K Oct 23 10:31 lock.lua
    4481-drwxr-xr-x 2 root root   25 Oct 23 10:31 lrucache
    4482--rwxr-xr-x 1 root root 5.7K Oct 23 10:31 lrucache.lua
    4483--rwxr-xr-x 1 root root 1.2K Oct 23 10:31 md5.lua
    4484--rwxr-xr-x 1 root root  15K Oct 23 10:31 memcached.lua
    4485--rwxr-xr-x 1 root root  22K Oct 23 10:31 mysql.lua
    4486--rwxr-xr-x 1 root root  616 Oct 23 10:31 random.lua
    4487--rwxr-xr-x 1 root root 9.1K Oct 23 10:31 redis.lua
    4488--rwxr-xr-x 1 root root 1.2K Oct 23 10:31 sha1.lua
    4489--rwxr-xr-x 1 root root 1.1K Oct 23 10:31 sha224.lua
    4490--rwxr-xr-x 1 root root 1.2K Oct 23 10:31 sha256.lua
    4491--rwxr-xr-x 1 root root 1.1K Oct 23 10:31 sha384.lua
    4492--rwxr-xr-x 1 root root 1.4K Oct 23 10:31 sha512.lua
    4493--rwxr-xr-x 1 root root  236 Oct 23 10:31 sha.lua
    4494--rwxrwxr-x 1 root root  12K Feb  9  2015 socket.lua
    4495--rwxr-xr-x 1 root root  698 Oct 23 10:31 string.lua
    4496--rwxr-xr-x 1 root root 5.1K Oct 23 10:31 upload.lua
    4497-drwxr-xr-x 2 root root   29 Oct 23 10:31 upstream
    4498-drwxr-xr-x 2 root root   62 Oct 23 10:31 websocket
    4499-
    4500-/usr/local/lib/lua/5.1/resty/core:
    4501-total 140K
    4502-drwxr-xr-x 2 root root  290 Oct 23 10:31 .
    4503-drwxr-xr-x 7 root root 4.0K Oct 23 10:31 ..
    4504--rwxr-xr-x 1 root root 2.3K Oct 23 10:31 base64.lua
    4505--rwxr-xr-x 1 root root 5.1K Oct 23 10:31 base.lua
    4506--rwxr-xr-x 1 root root 1.9K Oct 23 10:31 ctx.lua
    4507--rwxr-xr-x 1 root root 1.1K Oct 23 10:31 exit.lua
    4508--rwxr-xr-x 1 root root 1.9K Oct 23 10:31 hash.lua
    4509--rwxr-xr-x 1 root root 4.9K Oct 23 10:31 misc.lua
    4510--rwxr-xr-x 1 root root 2.1K Oct 23 10:31 ndk.lua
    4511--rwxr-xr-x 1 root root 1.2K Oct 23 10:31 phase.lua
    4512--rwxr-xr-x 1 root root  34K Oct 23 10:31 regex.lua
    4513--rwxr-xr-x 1 root root 8.7K Oct 23 10:31 request.lua
    4514--rwxr-xr-x 1 root root 4.3K Oct 23 10:31 response.lua
    4515--rwxr-xr-x 1 root root  16K Oct 23 10:31 shdict.lua
    4516--rwxr-xr-x 1 root root 4.1K Oct 23 10:31 time.lua
    4517--rwxr-xr-x 1 root root 1.5K Oct 23 10:31 uri.lua
    4518--rwxr-xr-x 1 root root  874 Oct 23 10:31 utils.lua
    4519--rwxr-xr-x 1 root root 3.1K Oct 23 10:31 var.lua
    4520--rwxr-xr-x 1 root root  723 Oct 23 10:31 worker.lua
    4521-
    4522-/usr/local/lib/lua/5.1/resty/dns:
    4523-total 28K
    4524-drwxr-xr-x 2 root root   26 Oct 23 10:31 .
    4525-drwxr-xr-x 7 root root 4.0K Oct 23 10:31 ..
    4526--rwxr-xr-x 1 root root  23K Oct 23 10:31 resolver.lua
    4527-
    4528-/usr/local/lib/lua/5.1/resty/lrucache:
    4529-total 24K
    4530-drwxr-xr-x 2 root root   25 Oct 23 10:31 .
    4531-drwxr-xr-x 7 root root 4.0K Oct 23 10:31 ..
    4532--rwxr-xr-x 1 root root  18K Oct 23 10:31 pureffi.lua
    4533-
    4534-/usr/local/lib/lua/5.1/resty/upstream:
    4535-total 24K
    4536-drwxr-xr-x 2 root root   29 Oct 23 10:31 .
    4537-drwxr-xr-x 7 root root 4.0K Oct 23 10:31 ..
    4538--rwxr-xr-x 1 root root  18K Oct 23 10:31 healthcheck.lua
    4539-
    4540-/usr/local/lib/lua/5.1/resty/websocket:
    4541-total 32K
    4542-drwxr-xr-x 2 root root   62 Oct 23 10:31 .
    4543-drwxr-xr-x 7 root root 4.0K Oct 23 10:31 ..
    4544--rwxr-xr-x 1 root root 7.8K Oct 23 10:31 client.lua
    4545--rwxr-xr-x 1 root root 8.5K Oct 23 10:31 protocol.lua
    4546--rwxr-xr-x 1 root root 4.9K Oct 23 10:31 server.lua
    4547-
    4548-/usr/lib64/libatomic_ops.a found
    4549-gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)
    4550-Copyright (C) 2017 Free Software Foundation, Inc.
    4551-This is free software; see the source for copying conditions.  There is NO
    


    Think he likes email with Btc payment arutyunyan.roman@gmail.com :)
     
  17. eva2000

    eva2000 Administrator Staff Member

    54,546
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    12:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    that actually looks correct and checked with my test servers and looks identical so nginx should be working

    my test server only has persistent config variables enabled for
    Code (Text):
    NGINX_GEOIPTWOLITE='y'
    NGXDYNAMIC_GEOIPTWOLITE='y'
    NGXDYNAMIC_LUA='y'
    ORESTY_LUANGINX='y'
    

    what does contents of /usr/local/nginx/conf/dynamic-modules.conf look like ?

    example from test server /usr/local/nginx/conf/dynamic-modules.conf
    Code (Text):
    # place custom load_module lines in this dynamic-modules-includes.conf
    # file so that they persistent i.e. for manually dropped in dynamic modules
    include /usr/local/nginx/conf/dynamic-modules-includes.conf;
    load_module "modules/ngx_http_image_filter_module.so";
    load_module "modules/ngx_http_headers_more_filter_module.so";
    load_module "modules/ndk_http_module.so";
    load_module "modules/ngx_http_set_misc_module.so";
    load_module "modules/ngx_http_echo_module.so";
    load_module "modules/ngx_http_lua_module.so";
    load_module "modules/ngx_http_fancyindex_module.so";
    load_module "modules/ngx_http_geoip2_module.so";
    

    and output for command
    Code (Text):
    grep dynamic-modules.conf /usr/local/nginx/conf/nginx.conf
    

    example
    Code (Text):
    grep dynamic-modules.conf /usr/local/nginx/conf/nginx.conf
    include /usr/local/nginx/conf/dynamic-modules.conf;
    
     
  18. EckyBrazzz

    EckyBrazzz Active Member

    916
    189
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +362
    Local Time:
    11:53 PM
    Latest
    Latest
    Code (Text):
    cat /usr/local/nginx/conf/dynamic-modules.conf
    # place custom load_module lines in this dynamic-modules-includes.conf
    # file so that they persistent i.e. for manually dropped in dynamic modules
    include /usr/local/nginx/conf/dynamic-modules-includes.conf;
    load_module "modules/ngx_http_image_filter_module.so";
    load_module "modules/ngx_http_headers_more_filter_module.so";
    load_module "modules/ndk_http_module.so";
    load_module "modules/ngx_http_set_misc_module.so";
    load_module "modules/ngx_http_echo_module.so";
    load_module "modules/ngx_http_lua_module.so";
    load_module "modules/ngx_http_fancyindex_module.so";
    load_module "modules/ngx_http_brotli_filter_module.so";
    load_module "modules/ngx_http_brotli_static_module.so";
    load_module "modules/ngx_http_geoip2_module.so";
    


    That looks good. And the other is as well correct.
    Code (Text):
    grep dynamic-modules.conf /usr/local/nginx/conf/nginx.conf
    include /usr/local/nginx/conf/dynamic-modules.conf;
    


    But remember, it only happens if I give
    Code (Text):
    nginx

    without any flag.

    And nginx -V give correct output

     
  19. eva2000

    eva2000 Administrator Staff Member

    54,546
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    12:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    oh i see in that case no issue at all, when you run nginx with no flags you are in fact loading nginx server without nginx.conf config file and that config file tells nginx where lua nginx module/lua files are located normally

    why are you running nginx without any flags ? there's no reason you'd ever need to do that
     
  20. EckyBrazzz

    EckyBrazzz Active Member

    916
    189
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +362
    Local Time:
    11:53 PM
    Latest
    Latest
    It was accidental, and bumped into this error. Sorry.:banghead:

    But I showed it before in the code block, just gave a like to a post and the post before that shows it.