Join the community today
Register Now

Sudden nginx error [ PCRE library does not support JIT ]

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by Liam W, Oct 12, 2016.

  1. hendry

    hendry Member

    59
    14
    8
    Sep 19, 2016
    Ratings:
    +18
    Local Time:
    2:22 PM
    nginx/1.11.4
    MariaDB 10
    yes I do it like usual. here is the output after update
    Code (Text):
     checking for YUM updates... please wait...
     no YUM updates available
    -------------------------------------------------------------
     Centmin Mod local code is up to date at /usr/local/src/centminmod
     no available updates at this time...
    -------------------------------------------------------------
    

    Sorry @eva2000 I don't understand this step because so many log here.
    Code (Text):
    -rw-r--r-- 1 root root   851 Oct 12 03:58 centminmod_1.2.3-eva2000.09.001_121016-035742_git_updatecur_branch.log
    -rw-r--r-- 1 root root   293 Oct 12 03:58 centminmod_1.2.3-eva2000.09.001_121016-035855_git_updatecur_branch.log
    -rw-r--r-- 1 root root   201 Oct 12 03:59 centminmod_1.2.3-eva2000.09.001_121016-035921_git_updatecur_branch.log
    -rw-r--r-- 1 root root   293 Oct 12 03:59 centminmod_1.2.3-eva2000.09.001_121016-035956_git_updatecur_branch.log
    -rw-r--r-- 1 root root   201 Oct 12 04:27 centminmod_1.2.3-eva2000.09.001_121016-042639_git_updatecur_branch.log
    -rw-r--r-- 1 root root   293 Oct 12 04:27 centminmod_1.2.3-eva2000.09.001_121016-042741_git_updatecur_branch.log
    


    Should I copy all content inside all logs and paste it to pastebin or just the log file without content. And in pastebin I don't know what should I fill, like Syntax Highlighting, Paste Name / Title and how you know if I have shared on pastebin. Sorry about this @eva2000 I'm very new here.
    pastebin.png
     
    Last edited: Oct 12, 2016
  2. eva2000

    eva2000 Administrator Staff Member

    45,982
    10,446
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,208
    Local Time:
    5:22 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    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

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

    eva2000 Administrator Staff Member

    45,982
    10,446
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,208
    Local Time:
    5:22 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    just leave syntax highlighting none, and give it title

    if you sign up for pastebin account, you can manage all your pastebin entries too :)
     
  4. hendry

    hendry Member

    59
    14
    8
    Sep 19, 2016
    Ratings:
    +18
    Local Time:
    2:22 PM
    nginx/1.11.4
    MariaDB 10
  5. hendry

    hendry Member

    59
    14
    8
    Sep 19, 2016
    Ratings:
    +18
    Local Time:
    2:22 PM
    nginx/1.11.4
    MariaDB 10
    should I recompile nginx again after update centminmod?
     
  6. eva2000

    eva2000 Administrator Staff Member

    45,982
    10,446
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,208
    Local Time:
    5:22 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    yes the fix you want is in the update as i see from the log, the nginx configure like has the bug which is fixed in centmin mod update
    Code (Text):
      -m64                                [enabled]
      -m80387                             [enabled]
      -m96bit-long-double                 [enabled]
      -mabm                               [enabled]
      -maes                               [enabled]
      -malign-stringops                   [enabled]
      -march=                             core2
      -mavx                               [enabled]
      -mbmi                               [enabled]
      -mcx16                              [enabled]
      -mfancy-math-387                    [enabled]
      -mfp-ret-in-387                     [enabled]
      -mfused-madd                        [enabled]
      -mglibc                             [enabled]
      -mhard-float                        [enabled]
      -mieee-fp                           [enabled]
      -mmovbe                             [enabled]
      -mpclmul                            [enabled]
      -mpopcnt                            [enabled]
      -mpush-args                         [enabled]
      -mred-zone                          [enabled]
      -msahf                              [enabled]
      -msse                               [enabled]
      -msse2                              [enabled]
      -msse3                              [enabled]
      -msse4                              [enabled]
      -msse4.1                            [enabled]
      -msse4.2                            [enabled]
      -mssse3                             [enabled]
      -mstackrealign                      [enabled]
      -mtls-direct-seg-refs               [enabled]
      -mtune=                             generic
    /svr-setup/nginx-1.11.5
    nginx configure options (alternate ordering):
    ./configure --with-ld-opt="-lrt -ljemalloc -lpcre -Wl,-z,relro  -Wl,-rpath,/usr/local/lib" --with-cc-opt="-m64 -mtune=native -mfpmath=sse -g -O3 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wno-sign-compare -Wno-string-plus-int -Wno-deprecated-declarations -Wno-unused-parameter -Wno-unused-const-variable -Wno-conditional-uninitialized -Wno-mismatched-tags -Wno-sometimes-uninitialized -Wno-parentheses-equality -Wno-tautological-compare -Wno-self-assign -Wno-deprecated-register -Wno-deprecated -Wno-invalid-source-encoding -Wno-pointer-sign -Wno-parentheses -Wno-enum-conversion -Wno-c++11-compat-deprecated-writable-strings -Wno-write-strings" --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-http_stub_status_module --with-http_secure_link_module --add-module=../nginx-module-vts --with-libatomic --with-http_gzip_static_module --with-http_sub_module --with-http_addition_module --with-http_image_filter_module=dynamic --with-http_geoip_module --with-stream_geoip_module --with-stream_realip_module --with-threads --with-stream=dynamic --with-stream_ssl_module --with-http_realip_module --add-dynamic-module=../ngx-fancyindex-0.4.0 --add-module=../ngx_cache_purge-2.3 --add-module=../ngx_devel_kit-0.3.0 --add-module=../set-misc-nginx-module-0.31 --add-module=../echo-nginx-module-0.60 --add-module=../redis2-nginx-module-0.13 --add-module=../ngx_http_redis-0.3.7 --add-module=../memc-nginx-module-0.17 --add-module=../srcache-nginx-module-0.31 --add-module=../headers-more-nginx-module-0.31 --with-pcre=../pcre-8.39 --with-pcre-jit --with-http_ssl_module --with-http_v2_module --with-openssl=../libressl-2.4.3

    bug is -lpcre should only be passed along and used if ORESTY_LUANGINX='y' for enabling lua nginx is set Beta Branch - fix nginx PCRE JIT error in 123.09beta01 | Centmin Mod Community and should be removed if not set i.e. default ORESTY_LUANGINX='n'
     
  7. hendry

    hendry Member

    59
    14
    8
    Sep 19, 2016
    Ratings:
    +18
    Local Time:
    2:22 PM
    nginx/1.11.4
    MariaDB 10
    Succeed

    Code (Text):
     checking for YUM updates... please wait...
     no YUM updates available
    -------------------------------------------------------------
     Centmin Mod local code is up to date at /usr/local/src/centminmod
     no available updates at this time...
    -------------------------------------------------------------
    [root@server1 centminmod]# ngxrestart
    nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
    nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
    Stopping nginx:                                            [  OK  ]
    Starting nginx:                                            [  OK  ]
     
  8. eva2000

    eva2000 Administrator Staff Member

    45,982
    10,446
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,208
    Local Time:
    5:22 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    excellent :D
     
  9. rdan

    rdan Well-Known Member

    5,018
    1,219
    113
    May 25, 2014
    Ratings:
    +1,847
    Local Time:
    3:22 PM
    Mainline
    10.2
    All fine now for me, Thanks a lot Eva!