Welcome to Centmin Mod Community
Become a Member

Install Installer Broken?

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Ryuzzaki, Jan 16, 2015.

  1. Ryuzzaki

    Ryuzzaki New Member

    3
    1
    3
    Jan 16, 2015
    Ratings:
    +1
    Local Time:
    12:19 AM
    It's my first time trying to install Centmin and honestly, it's my first time doing anything with my VPS so it's been a bit of a learning curve but I believe I've hit an issue that isn't down to me being a noob.

    During the install phase, when libevent is being downloaded and then extracted, I get an error.
    Code:
    Download release-2.0.21-stable.tar.gz ...
    Error: release-2.0.21-stable.tar.gz not found !!! Download now......
    2014-12-31 17:56:02 URL:https://codeload.github.com/libevent/libevent/tar.gz/release-2.0.21-stable [509357/509357] -> "release-2.0.21-stable" [1]
    Download done.
    tar: release-2.0.21-stable.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors
    Error: release-2.0.21-stable.tar.gz extraction failed.
    check Centmin Mod log for details at /root/centminlogs/
    Aborting script...
    Did a bit of investigating on my own and it seems that the file that is downloaded from GitHub comes through with the name libevent-release-2.0.21-stable.tar, whereas the installer is expecting the file name without the lib event prefix (edit: and possibly with .gz?)

    I realise this can probably be edited in inc/downloadlinks.inc but what's the best way of doing this? Have done my own little edit for now which I'll see if it works and post up if it does, otherwise I hope someone can give their input.

    ~Ryuzzaki


    EDIT: What I tried didn't work...
     
    Last edited: Jan 16, 2015
  2. eva2000

    eva2000 Administrator Staff Member

    30,168
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,138
    Local Time:
    9:19 AM
    Nginx 1.13.x
    MariaDB 5.5
    Hi @Ryuzzaki I assume you're using .07 stable release of Centmin Mod.

    For .07 stable the relevant download location url is from line 94-96 of inc/downloadlinks.inc and the actual download routine is from line 915 of inc/downloads.inc. The actual libevent install routine takes into account the libevent- prefix on line 137 of inc/memcached_install.inc.

    So basically, the error you see is incomplete wget download of the tarball named = release-2.0.21-stable.tar.gz. My installer checks for validity of downloaded tarball sources by extracting the tarball and checking for errors. If an incomplete tarball download is made i.e. lost connection or problems at source web site i.e. github.com, then my installer will abort the install and give you message you see above telling you that the tarball extraction failed.

    You can just remove the incomplete download at /svr-setup/release-2.0.21-stable.tar.gz and then re-run method option 1 in centmin.sh to try installing again. This is way I do 99% of all downloads at beginning of installer so I can check for download issues first. Better to prevent the issue from cascading further down the installation rountine :)

    If that doesn't work, then it could be that github.com has issues with the mirror it served you with for https://github.com/libevent/libevent/archive/release-2.0.21-stable.tar.gz. So you can also try manual download to /svr-setup and then re-run method option 1 in centmin.sh to try installing again.

    Code:
    rm -rf /svr-setup/release-*
    rm -rf /svr-setup/libevent-release*
    wget --no-check-certificate -O /svr-setup/release-2.0.21-stable.tar.gz https://github.com/libevent/libevent/archive/release-2.0.21-stable.tar.gz 
     
    Last edited: Jan 16, 2015
    • Like Like x 1
  3. Ryuzzaki

    Ryuzzaki New Member

    3
    1
    3
    Jan 16, 2015
    Ratings:
    +1
    Local Time:
    12:19 AM
    Thanks for the quick reply @eva2000! Don't know what was going on when the installer was trying to download it but sure enough, your suggestion to manually download it worked perfectly! Very happy to have everything up and running now!

    Thanks so much!

    ~Ryuzzaki
     
    • Like Like x 1
  4. eva2000

    eva2000 Administrator Staff Member

    30,168
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,138
    Local Time:
    9:19 AM
    Nginx 1.13.x
    MariaDB 5.5
    Glad to hear :D