Get the most out of your Centmin Mod LEMP stack
Become a Member

Error when recompiling Nginx

Discussion in 'Install & Upgrades or Pre-Install Questions' started by BamaStangGuy, Aug 28, 2018.

  1. BamaStangGuy

    BamaStangGuy Active Member

    537
    163
    43
    May 25, 2014
    Ratings:
    +216
    Local Time:
    5:13 AM
    Code:
    checking for socklen_t ... found
    checking for in_addr_t ... found
    checking for in_port_t ... found
    checking for rlim_t ... found
    checking for uintptr_t ... uintptr_t found
    checking for system byte ordering ... little endian
    checking for size_t size ... 8 bytes
    checking for off_t size ... 8 bytes
    checking for time_t size ... 8 bytes
    checking for AF_INET6 ... found
    checking for setproctitle() ... not found
    checking for pread() ... found
    checking for pwrite() ... found
    checking for pwritev() ... found
    checking for sys_nerr ... found
    checking for localtime_r() ... found
    checking for clock_gettime(CLOCK_MONOTONIC) ... found
    checking for posix_memalign() ... found
    checking for memalign() ... found
    checking for mmap(MAP_ANON|MAP_SHARED) ... found
    checking for mmap("/dev/zero", MAP_SHARED) ... found
    checking for System V shared memory ... found
    checking for POSIX semaphores ... not found
    checking for POSIX semaphores in libpthread ... found
    checking for struct msghdr.msg_control ... found
    checking for ioctl(FIONBIO) ... found
    checking for struct tm.tm_gmtoff ... found
    checking for struct dirent.d_namlen ... not found
    checking for struct dirent.d_type ... found
    checking for sysconf(_SC_NPROCESSORS_ONLN) ... found
    checking for sysconf(_SC_LEVEL1_DCACHE_LINESIZE) ... found
    checking for openat(), fstatat() ... found
    checking for getaddrinfo() ... found
    configuring additional modules
    adding module in ../
    ./configure: error: no ..//config was found
    Trying to go to 1.13.12 to 1.15.2
     
  2. eva2000

    eva2000 Administrator Staff Member

    36,867
    8,069
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,427
    Local Time:
    9:13 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Seems like a while since you updated. Maybe ran into old zlib bug and need to do workaround to recompile ccache outlined in 2nd post at 123.09beta01 Updated Nginx zlib routine with optional Cloudflare zlib support. If that isn't the issue, the need nginx upgrade log and more details.

    To troubleshoot, you need to check the full nginx upgrade log at /root/centminlogs and instructions under Sharing logs and errors heading for using Pastebin.com or Gists to share a sanitised version of the contents of the nginx_upgrade.log log. You can see full details at How to troubleshoot Centmin Mod initial install issues

    also what's output of
    Code (Text):
    nginx -t

    when you run centmin.sh menu option 4 there's a nginx upgrade log timestamped at /root/centminlogs

    if you type this command it lists all logs in date ascending order so latest log at bottom
    Code (Text):
    ls -lArt /root/centminlogs

    so copy the entire contents of latest nginx_upgrade log to gist.github.com or pastebin.com

    you can use grep to filter the logs, i.e. look for nginx_upgrade in log name
    Code (Text):
    ls -lahrt /root/centminlogs/ | grep nginx_upgrade
    -rw-r--r--  1 root root 3.2M Oct 11 15:55 centminmod_1.2.3-eva2000.09.001_111016-155345_nginx_upgrade.log
    -rw-r--r--  1 root root 672K Oct 11 22:06 centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log

    So the last nginx upgrade log was named centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log and located at /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log

    then use cat command to output the contents of that log

    clear your ssh window buffer/screen and type
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log

    then select and copy and paste output to pastebin.com or gist.github.com file to share. If your SSH client's scroll buffer isn't large enough using cat might not output the entire log file contents, so you may need to download the log and use local text editor to open and copy and paste.

    so only need content of one specific log, in this case most recent nginx_upgrade.log log
     
  3. BamaStangGuy

    BamaStangGuy Active Member

    537
    163
    43
    May 25, 2014
    Ratings:
    +216
    Local Time:
    5:13 AM
    Attached.
     

    Attached Files:

  4. eva2000

    eva2000 Administrator Staff Member

    36,867
    8,069
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,427
    Local Time:
    9:13 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    what's outpu for your persistent config file contents
    Code (Text):
    cat /etc/centminmod/custom_config.inc
    

    looks like you have corrupted nginx module download tar.gz files
    Code (Text):
    tar (child): /svr-setup/set-misc-nginx-module_v0.32.tar.gz: Cannot open: No such file or directory
    tar (child): Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error is not recoverable: exiting now
    tar (child): /svr-setup/redis2-nginx-module_v0.15.tar.gz: Cannot open: No such file or directory
    tar (child): Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error is not recoverable: exiting now
    

    or you did what @Alex Y did and set in persistent config file /etc/centminmod/custom_config.inc to disable openresty nginx modules = NGINX_OPENRESTY='n' which will prevent those 2 set-misc and redis2 openresty nginx modules from compiling Nginx - Failed nginx 1.15.2 upgrade - download tar.gz broken

    looks like from configure line you disable alot of Centmin Mod Nginx modules, one or more maybe causing the issues
    for instance --add-module=../headers-more-nginx-module-0.33 and --add-dynamic-module=../echo-nginx-module-0.61 are openresty module (which evolved to must have for Centmin Mod to function so probably need to revise what can be disabled) but setting NGINX_OPENRESTY='n' would prevent it's download of the source IIRC

    I would remove NGINX_OPENRESTY='n' from persistent config file and try recompiling.

    edit: going to have to update 123.09beta01 to force NGINX_OPENRESTY='y' as some of their modules are no longer optional and required for centmin mod nginx i.e. wordpress cache configuration etc
     
    Last edited: Aug 29, 2018
  5. rdan

    rdan Premium Member Premium Member

    4,367
    1,053
    113
    May 25, 2014
    Ratings:
    +1,523
    Local Time:
    7:13 PM
    Mainline
    10.2
    What if I don't use Wordpress at all :(, and want a simplified Nginx install.
     
  6. eva2000

    eva2000 Administrator Staff Member

    36,867
    8,069
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,427
    Local Time:
    9:13 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Not just wordpress other nginx web configs may use openresty nginx modules for set/echo directives too. Unfortunately, that would mean every user who runs into issues will need my help with errors like @BamaStangGuy or when they nginx rules don't work as they're missing those nginx modules. Thus increasing my support work load :( But yes will look at fixing up the routines so you can disable them properly later on.
     
    • Like Like x 1
    • Friendly Friendly x 1
..