Learn about Centmin Mod LEMP Stack today
Become a Member

Upgrade Problem updating update ccache version 3.3.3

Discussion in 'Install & Upgrades or Pre-Install Questions' started by jscott, Mar 8, 2017.

Tags:
  1. jscott

    jscott Member

    94
    14
    8
    Aug 13, 2015
    Ratings:
    +31
    Local Time:
    12:16 AM
    Please fill in any relevant information that applies to you:
    • CentOS Version: i.e. CentOS 6.8 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: i.e. 1.11.7
    • PHP Version Installed: i.e. 5.6.29
    • MariaDB MySQL Version Installed: i.e. 10.0.29
    • When was last time updated Centmin Mod code base ? : a few minutes before errors
    • Persistent Config: No

    I get this error every time I run centmin.sh now. It started after updated to todays current version of centmin...


    Code (Text):
    [14:59][root@mynode centminmod]# centmin
    /usr/local/src/centminmod /usr/local/src/centminmod
    update ccache version... one time task
    download ccache 3.3.3
    tar (child): ccache-3.3.3.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
    
    /etc/init.d /svr-setup
    /svr-setup
    --------------------------------------------------------
         Centmin Mod Menu 123.09beta01 centminmod.com    
    --------------------------------------------------------
    1).  Centmin Install
    
    


    Thanks!!
    -John
     
  2. eva2000

    eva2000 Administrator Staff Member

    31,022
    6,925
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,431
    Local Time:
    3:16 PM
    Nginx 1.13.x
    MariaDB 5.5
    could be corrupt ccache tarball download in /svr-setup try manually removing it via command
    Code (Text):
    cd /svr-setup
    rm -rf /svr-setup/ccache-3.3.3*
    

    then re-run centmin.sh

    also make sure you haven't run out of disk space
    Code (Text):
    df -hT
    
     
  3. jscott

    jscott Member

    94
    14
    8
    Aug 13, 2015
    Ratings:
    +31
    Local Time:
    12:16 AM

    Plenty of disk space. 8+GB free.

    However.. 3.3.3 does not show up at all..

    Code (Text):
    -rw-r--r--  1 root root    266229 Aug 21  2016 axel-2.6.tar.gz
    -rw-r--r--  1 root root     82596 Apr  8  2016 c-ares-1.10.0-5.0.cf.rhel6.i686.rpm
    -rw-r--r--  1 root root     81844 Apr  8  2016 c-ares-1.10.0-5.0.cf.rhel6.x86_64.rpm
    drwxr-xr-x  5 root root      4096 Apr  8  2016 ccache-3.2.2
    -rw-r--r--  1 root root    436913 Apr  8  2016 ccache-3.2.2.tar.gz
    -rw-r--r--  1 root root    396440 Apr  8  2016 ccache-3.2.4.tar.gz
    drwxrwxr-x  6 1000  1000     4096 Aug 21  2016 ccache-3.2.5
    -rw-r--r--  1 root root    444925 Apr 17  2016 ccache-3.2.5.tar.gz
    drwxrwxr-x  6 1000  1000     4096 Oct  6 12:27 ccache-3.3.2
    -rw-r--r--  1 root root    445945 Sep 28 16:47 ccache-3.3.2.tar.gz
    drwxr-xr-x 16 root root      4096 Apr  8  2016 csf
    -rw-r--r--  1 root root    644518 Apr  8  2016 csf.tgz
    -rw-r--r--  1 root root    397020 Apr  8  2016 curl-7.46.0-2.0.cf.rhel6.i686.rpm
    -rw-r--r--  1 root root    396240 Apr  8  2016 curl-7.46.0-2.0.cf.rhel6.x86_64.rpm
    -rw-r--r--  1 root root    398232 Apr  8  2016 curl-7.46.0-2.0.cf.rhel7.x86_64.rpm
    d
    


    Can I safely purge this directory? I notice is has old versions of some packages. I understand that if they are needed, they will be downloaded again.

    -John
     
  4. eva2000

    eva2000 Administrator Staff Member

    31,022
    6,925
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,431
    Local Time:
    3:16 PM
    Nginx 1.13.x
    MariaDB 5.5
    yes should be fine

    what if you do commands
    Code (Text):
    cd /usr/local/src/centminmod
    git pull
    ./centmin.sh
    

    if that doesn't work try manual download of the tarball
    Code (Text):
    cd /svr-setup
    wget https://centminmod.com/centminmodparts/ccache/ccache-3.3.3.tar.gz
    cd /usr/local/src/centminmod
    ./centmin.sh
    
     
  5. jscott

    jscott Member

    94
    14
    8
    Aug 13, 2015
    Ratings:
    +31
    Local Time:
    12:16 AM
    The first one returns....

    Code (Text):
    [15:47][root@mynode centminlogs]# cd /usr/local/src/centminmod
    You have new mail in /var/spool/mail/root
    [17:19][root@mynode centminmod]# git pull
    Already up-to-date.
    [17:19][root@mynode centminmod]# ./centmin.sh
    update ccache version... one time task
    download ccache 3.3.3
    tar (child): ccache-3.3.3.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
    
    /etc/init.d /svr-setup
    /svr-setup
    --------------------------------------------------------
         Centmin Mod Menu 123.09beta01 centminmod.com    
    --------------------------------------------------------
    


    And the second group returned

    Code (Text):
    [17:31][root@mynode centminmod]# cd /svr-setup
    [17:31][root@mynode svr-setup]# wget https://centminmod.com/centminmodparts/ccache/ccache-3.3.3.tar.gz
    --2017-03-07 17:31:44--  https://centminmod.com/centminmodparts/ccache/ccache-3.3.3.tar.gz
    Resolving centminmod.com... 45.63.18.5
    Connecting to centminmod.com|45.63.18.5|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 445931 (435K) [application/octet-stream]
    Saving to: ‘ccache-3.3.3.tar.gz’
    
    ccache-3.3.3.tar.gz                            100%[====================================================================================================>] 435.48K  --.-KB/s    in 0.04s 
    
    2017-03-07 17:31:44 (10.7 MB/s) - ‘ccache-3.3.3.tar.gz’ saved [445931/445931]
    
    [17:31][root@mynode svr-setup]# cd /usr/local/src/centminmod
    [17:31][root@mynode centminmod]# ./centmin.sh
    
    /etc/init.d /usr/local/src/centminmod
    /usr/local/src/centminmod
    --------------------------------------------------------
         Centmin Mod Menu 123.09beta01 centminmod.com   
    
    


    I don't see any messages about updating ccache or the one time task.
    But I don't get any errors either....

    Code (Text):
    [17:36][root@mynode centminmod]# centmin
    /usr/local/src/centminmod /usr/local/src/centminmod
    
    /etc/init.d /usr/local/src/centminmod
    /usr/local/src/centminmod
    --------------------------------------------------------
         Centmin Mod Menu 123.09beta01 centminmod.com   
    


    It download ccache-3.3.3.tar.gz but there is no directory of the same name, so I suspect it did not process it after downloading...
    -John
     
  6. jscott

    jscott Member

    94
    14
    8
    Aug 13, 2015
    Ratings:
    +31
    Local Time:
    12:16 AM
    I wiped the /svr-setup directory and ran centmin.sh.

    This is what I get now....

    Code (Text):
    svr-setup]# centmin
    /usr/local/src/centminmod /svr-setup
    update ccache version... one time task
    download ccache 3.3.3
    tar (child): ccache-3.3.3.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
    
    /etc/init.d /svr-setup
    /svr-setup
    --------------------------------------------------------
         Centmin Mod Menu 123.09beta01 centminmod.com  
    
    [CODEB]
    svr-setup]# ls -lah
    total 292K
    drwxr-xr-x  3 root root  12K Mar  7 17:44 .
    dr-xr-xr-x 26 root root 4.0K Mar  7 09:15 ..
    drwxrwxr-x  7 root root 4.0K Mar  7 17:43 axel-2.6
    -rw-r--r--  1 root root 260K Mar  7 17:43 axel-2.6.tar.gz
    -rwxr-xr-x  1 root root 6.9K Mar  7 17:44 ex_stats_print
    


    -John
     
  7. eva2000

    eva2000 Administrator Staff Member

    31,022
    6,925
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,431
    Local Time:
    3:16 PM
    Nginx 1.13.x
    MariaDB 5.5
    interesting

    what is output for these 2 commands
    Code (Text):
    which ccache
    ccache -V
    
     
  8. jscott

    jscott Member

    94
    14
    8
    Aug 13, 2015
    Ratings:
    +31
    Local Time:
    12:16 AM
    Code (Text):
    private]# which ccache
    /usr/local/bin/ccache
    You have new mail in /var/spool/mail/root
    [20:30][root@mynode private]# ccache -V
    ccache version 3.3.2
    
    Copyright (C) 2002-2007 Andrew Tridgell
    Copyright (C) 2009-2016 Joel Rosdahl
    
    This program is free software; you can redistribute it and/or modify it under
    the terms of the GNU General Public License as published by the Free Software
    Foundation; either version 3 of the License, or (at your option) any later
    version.
    
    


    -John
     
  9. eva2000

    eva2000 Administrator Staff Member

    31,022
    6,925
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,431
    Local Time:
    3:16 PM
    Nginx 1.13.x
    MariaDB 5.5
    ok so it's a valid trigger for ccache update as you are on older ccache 3.3.2

    so problem with downloaded ccache tarball file

    what do you get when you run below commands to download from actual ccache official download link. The centminmod.com hosted link you tried before is the fallback link for official. Could be your samba download source is corrupted for the tarball
    Code (Text):
    cd /svr-setup/
    rm -rf ccache-3.3.3*
    wget https://samba.org/ftp/ccache/ccache-3.3.3.tar.gz
    tar xvzf ccache-3.3.3.tar.gz
    
     
  10. jscott

    jscott Member

    94
    14
    8
    Aug 13, 2015
    Ratings:
    +31
    Local Time:
    12:16 AM
    Code (Text):
    [21:36][root@node1 ~]# cd /svr-setup/
    You have new mail in /var/spool/mail/root
    [21:37][root@node1 svr-setup]# rm -rf ccache-3.3.3*
    [21:37][root@node1 svr-setup]# wget https://samba.org/ftp/ccache/ccache-3.3.3.tar.gz
    --2017-03-07 21:37:33--  https://samba.org/ftp/ccache/ccache-3.3.3.tar.gz
    Resolving samba.org... 144.76.82.156, 2a01:4f8:192:486::443:2
    Connecting to samba.org|144.76.82.156|:443... failed: Connection timed out.
    Connecting to samba.org|2a01:4f8:192:486::443:2|:443... failed: Network is unreachable.
    [21:37][root@node1 svr-setup]# tar xvzf ccache-3.3.3.tar.gz
    tar (child): ccache-3.3.3.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
    [21:38][root@node1svr-setup]# 
    


    Ah! looks like samba.org is broken from Digital Ocean....

    Code (Text):
    svr-setup]# traceroute www.samba.org
    traceroute to www.samba.org (144.76.82.156), 30 hops max, 60 byte packets
     1  45.55.192.254 (45.55.192.254)  0.942 ms  0.943 ms 45.55.192.253 (45.55.192.253)  3.589 ms
     2  138.197.248.30 (138.197.248.30)  0.539 ms 138.197.248.34 (138.197.248.34)  0.624 ms 138.197.248.48 (138.197.248.48)  40.421 ms
     3  xe-1-1-0-0.nyk10.core-backbone.com (206.130.10.42)  1.278 ms 138.197.248.22 (138.197.248.22)  0.375 ms xe-1-1-0-0.nyk10.core-backbone.com (206.130.10.42)  1.193 ms
     4  * * *
     5  * * *
     6  * * *
     7  * * *
     8  * * *
     9  * * *
    10  * * *
    11  * * *
    12  * * *
    13  * * *
    14  * * *
    15  * * *
    16  * * *
    17  * * *
    18  * * *
    19  * * *
    20  * * *
    


    -John
     
  11. eva2000

    eva2000 Administrator Staff Member

    31,022
    6,925
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,431
    Local Time:
    3:16 PM
    Nginx 1.13.x
    MariaDB 5.5
    ah ha we're getting somewhere, looks like the IPv4 link

    for my server it's going through IPv6 version running wget with -d debug flag and download works
    Code (Text):
    wget -d https://samba.org/ftp/ccache/ccache-3.3.3.tar.gz
    DEBUG output created by Wget 1.19.1 on linux-gnu.
    
    Reading HSTS entries from /root/.wget-hsts
    Converted file name 'ccache-3.3.3.tar.gz' (UTF-8) -> 'ccache-3.3.3.tar.gz' (UTF-8)
    --2017-03-08 02:44:07--  https://samba.org/ftp/ccache/ccache-3.3.3.tar.gz
    Resolving samba.org... 2a01:4f8:192:486::443:2, 144.76.82.156
    Caching samba.org => 2a01:4f8:192:486::443:2 144.76.82.156
    Connecting to samba.org|2a01:4f8:192:486::443:2|:443... connected.
    


    I'll update centmin mod branches to switch back to default using my own centminmod.com mirrored version of ccache then !
     
  12. eva2000

    eva2000 Administrator Staff Member

    31,022
    6,925
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,431
    Local Time:
    3:16 PM
    Nginx 1.13.x
    MariaDB 5.5
    Just updated 123.09beta01 using centminmod.com local mirror ccache link and updated to ccache 3.3.4 :)
     
    • Like Like x 1
  13. jscott

    jscott Member

    94
    14
    8
    Aug 13, 2015
    Ratings:
    +31
    Local Time:
    12:16 AM
    OK. Looks like 3.3.4 is working.

    I put in a ticket at Digital Ocean to see what they can find out about the connection problem. I can download it fine over ipv4 from my pc.

    Thanks for you help sorting this out.
    -John