Join the community today
Become a Member

Nginx PageSpeed I can't upgrade nginx_ngx_pagespeed

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by give1ngaymai, Sep 7, 2018.

  1. give1ngaymai

    give1ngaymai New Member

    2
    0
    1
    Sep 7, 2018
    vietnam
    Ratings:
    +0
    Local Time:
    7:13 AM
    1.15.3
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.15.3
    • PHP Version Installed: 7.2.9
    • MariaDB MySQL Version Installed: 10.2.xx
    • When was last time updated Centmin Mod code base ? : run centmin.sh menu option 4
    • Persistent Config: Error show:
      Code (Text):
      NGX_DYNAMICCHECK nginx_upgrade.inc
      /svr-setup
      
      nginx dynamic module support detected
      
      Check for old ngx_pagespeed master branch existence
      Check for missing nginx modules
      Check for pagespeed nginx module download file
      Download release-1.13.35.2-stable.tar.gz ...
      wget -c4 --progress=bar https://github.com/pagespeed/ngx_pagespeed/archive/master.tar.gz -O release-1.13.35.2-stable.tar.gz --tries=3
      --2018-09-06 17:36:44--  https://github.com/pagespeed/ngx_pagespeed/archive/master.tar.gz
      Resolving github.com... 13.xxx.xxx.xxx, 52.xxx.xxx.xxx, 13.xxx.xxx.xxx
      Connecting to github.com|13.250.177.223|:443... connected.
      HTTP request sent, awaiting response... 301 Moved Permanently
      Location: https://github.com/apache/incubator-pagespeed-ngx/archive/master.tar.gz [following]
      --2018-09-06 17:36:44--  https://github.com/apache/incubator-pagespeed-ngx/archive/master.tar.gz
      Reusing existing connection to github.com:443.
      HTTP request sent, awaiting response... 302 Found
      Location: https://codeload.github.com/apache/incubator-pagespeed-ngx/tar.gz/master [following]
      --2018-09-06 17:36:44--  https://codeload.github.com/apache/incubator-pagespeed-ngx/tar.gz/master
      Resolving codeload.github.com... 13.xxx.xxx.133, 54.xxx.xxx.56, 13.xxx.xxx.0
      Connecting to codeload.github.com|13.xxx.xxx.133|:443... connected.
      HTTP request sent, awaiting response... 200 OK
      Length: unspecified [application/x-gzip]
      Saving to: ‘release-1.13.35.2-stable.tar.gz’
      
           0K .......... .......... .......... .......... .......... 6.39M
          50K .......... .......... .......... .......... .......... 35.8M
         100K .......... .........                                   27.2M=0.01s
      
      2018-09-06 17:36:44 (12.0 MB/s) - ‘release-1.13.35.2-stable.tar.gz’ saved [122791]
      
      Download done.
      Download release-1.13.35.2-stable.tar.gz ...
      release-1.13.35.2-stable.tar.gz Archive found, skipping download...
      release-1.13.35.2-stable.tar.gz valid file.
      
      cp: cannot stat ‘ngx_pagespeed-master’: No such file or directory
      Download 1.13.35.2.tar.gz PSOL Library...
      inc/downloads.inc: line 877: scripts/format_binary_url.sh: No such file or directory
      wget: missing URL
      Usage: wget [OPTION]... [URL]...
      
      Try `wget --help' for more options.
      Error:  download failed.
      
      ----------------------------------------------------------------------------------
      check Centmin Mod log for details at /root/centminlogs/
      Aborting script...
      ----------------------------------------------------------------------------------
      basename: missing operand
      Try 'basename --help' for more information.
      tar (child): : 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
      Error: 1.13.35.2.tar.gz extraction failed.
      
      ----------------------------------------------------------------------------------
      check Centmin Mod log for details at /root/centminlogs/
      Aborting script...
      
      
      

      Post output in CODE tags.
    Please help me.
     
  2. eva2000

    eva2000 Administrator Staff Member

    41,291
    9,264
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,215
    Local Time:
    10:13 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    what is contents of your persistent config file /etc/centminmod/custom_config.inc ?

    do you have persistent config file /etc/centminmod/custom_config.inc with variable set to
    Code (Text):
    NGINX_PAGESPEEDGITMASTER='y'
    

    ?

    If you do, remove NGINX_PAGESPEEDGITMASTER='y' and re-run centmin.sh menu option 4 as master github branch usage needs a bug fix update for 123.09beta01 so keep an eye for that

    Looks like github master branch usage no longer likes using nginx pagespeed PSOL binary that is same release nginx version and needs to be built manually
    Code (Text):
    scripts/format_binary_url.sh PSOL_BINARY_URL
    In a release this file would contain the URL to download the pre-compiled PSOL
    binary, but on development branches (like this one) you have to build PSOL from
    source yourself.  See:
      https://github.com/apache/incubator-pagespeed-ngx/wiki/Building-PSOL-From-Source
    

    which makes it less useful to set NGINX_PAGESPEEDGITMASTER='y' to build ngx_pagespeed from github master, so remove NGINX_PAGESPEEDGITMASTER='y' and just use release versions
     
    Last edited: Sep 7, 2018