Learn about Centmin Mod LEMP Stack today
Become a Member

Cannot download from github Bad Zip

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Shaiffulnizam Mohamad, Jun 21, 2016.

  1. Shaiffulnizam Mohamad

    Shaiffulnizam Mohamad New Member

    29
    8
    3
    Jun 6, 2014
    Ratings:
    +9
    Local Time:
    3:42 PM
    1.7.0
    5.5
    Error encounter : Bad zip
    [root@apasaja src]# unzip ${branchname}.zip
    Archive: 123.09beta01.zip
    4fe56111be3f9a19bfda999830c717138fa170d2
    warning [123.09beta01.zip]: 98 extra bytes at beginning or within zipfile
    (attempting to process anyway)
    file #1: bad zipfile offset (local header sig): 98
    (attempting to re-compensate)
    file #1: bad zipfile offset (local header sig): 98
    file #2: bad zipfile offset (local header sig): 63
    (attempting to re-compensate)
    file #2: bad zipfile offset (local header sig): 63
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,841
    6,903
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,393
    Local Time:
    5:42 PM
    Nginx 1.13.x
    MariaDB 5.5
    Tried git clone method or curl installer method on 123.09beta01 thread's 1st post?

    Try deleting the bad zip and redownloading again?
    Code (Text):
    wget -O /usr/local/src/${branchname}.zip https://github.com/centminmod/centminmod/archive/${branchname}.zip
    --2016-06-21 01:59:36--  https://github.com/centminmod/centminmod/archive/123.09beta01.zip
    Resolving github.com (github.com)... 192.30.252.128
    Connecting to github.com (github.com)|192.30.252.128|:443... connected.
    HTTP request sent, awaiting response... 302 Found
    Location: https://codeload.github.com/centminmod/centminmod/zip/123.09beta01 [following]
    --2016-06-21 01:59:36--  https://codeload.github.com/centminmod/centminmod/zip/123.09beta01
    Resolving codeload.github.com (codeload.github.com)... 192.30.253.121
    Connecting to codeload.github.com (codeload.github.com)|192.30.253.121|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 20349915 (19M) [application/zip]
    Saving to: ‘/usr/local/src/123.09beta01.zip’
    
    100%[==>] 20,349,915   713KB/s   in 25s
    
    2016-06-21 02:00:01 (782 KB/s) - ‘/usr/local/src/123.09beta01.zip’ saved [20349915/20349915][/CODE]
    

    test
    Code (Text):
    zip -T /usr/local/src/123.09beta01.zip
    test of /usr/local/src/123.09beta01.zip OK
     
    Last edited: Jun 21, 2016
  3. Shaiffulnizam Mohamad

    Shaiffulnizam Mohamad New Member

    29
    8
    3
    Jun 6, 2014
    Ratings:
    +9
    Local Time:
    3:42 PM
    1.7.0
    5.5
    Will try it again. Tq Eva. Will let you know
     
  4. Shaiffulnizam Mohamad

    Shaiffulnizam Mohamad New Member

    29
    8
    3
    Jun 6, 2014
    Ratings:
    +9
    Local Time:
    3:42 PM
    1.7.0
    5.5
    Ok, it seems the problem is intermittent, have try it on 3 server, but its ok, since I have a good one, so I use the good one, but new problem. After finish running the installation,

    I run php -v and

    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/memcached.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131226/memcached.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP 5.6.22 (cli) (built: Jun 21 2016 19:16:18)
    Copyright (c) 1997-2016 The PHP Group
    Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

    On 3 new fresh vps, and it seems to be there for all three new vps.

    How to fix this? I even try to upgrade and downgrade. But it seems still appear, how to fix?
    Thanks
     
  5. eva2000

    eva2000 Administrator Staff Member

    30,841
    6,903
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,393
    Local Time:
    5:42 PM
    Nginx 1.13.x
    MariaDB 5.5
    If install was within past 12 hrs there was a bug fix update so if you try again fresh install should be fine or update existing install via centmin.sh menu option 23 then exit centmin.sh and rerun centmin.sh menu option 10
     
  6. Shaiffulnizam Mohamad

    Shaiffulnizam Mohamad New Member

    29
    8
    3
    Jun 6, 2014
    Ratings:
    +9
    Local Time:
    3:42 PM
    1.7.0
    5.5
    Just update through git, just now
    Recompile php and run menu 10 and run menu 10, recompile php both give this new error,

    [root@svr centminmod]# php -v
    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/memcached.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131226/memcached.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP 5.6.22 (cli) (built: Jun 21 2016 21:56:43)
    Copyright (c) 1997-2016 The PHP Group
    Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v5.1.2, Copyright (c) 2002-2016, by ionCube Ltd.
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
     
  7. eva2000

    eva2000 Administrator Staff Member

    30,841
    6,903
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,393
    Local Time:
    5:42 PM
    Nginx 1.13.x
    MariaDB 5.5
    Be sure to exit centmin.sh after menu option 23 update and then re-run centmin.sh menu options 5 and/or 10

    Every centmin.sh menu option has a full server log created with time stamped file name at /root/centminlogs. You can check that specific php upgrade log for clues or copy and paste log contents and post to pastebin.com or gist.github.com for sharing.

    Use this command to list all logs in /root/centminlogs in date descending order so most recent logs are at bottom
    Code:
    ls -lAhrt /root/centminlogs
    For example
    Code:
    ls -lAhrt /root/centminlogs
    total 16M
    -rw-r--r-- 1 root root 9.8K Sep 18 13:47 centminmod_1.2.3-eva2000.08_180915-094703_yuminstall_centos6.log
    -rw-r--r-- 1 root root 52K Sep 18 13:48 centminmod_yumtimes_180915-094703.log
    -rw-r--r-- 1 root root 37 Sep 18 13:48 centminmod_profiletimes_180915-094703.log
    -rw-r--r-- 1 root root 234K Sep 18 13:48 centminmod_downloadtimes_180915-094703.log
    -rw-r--r-- 1 root root 199 Sep 18 13:48 securedtmp.log
    -rw-r--r-- 1 root root 44 Sep 18 13:50 centminmod_libresslinstalltime_180915-094703.log
    -rw-r--r-- 1 root root 1.2K Sep 18 13:50 gcc_native.log
    -rw-r--r-- 1 root root 939K Sep 18 13:52 centminmod_ngxinstalltime_180915-094703.log
    -rw-r--r-- 1 root root 58 Sep 18 13:55 centminmod_phpinstalltime_180915-094703.log
    -rw-r--r-- 1 root root 25K Sep 18 13:59 centminmod_1.2.3-eva2000.08_180915-094703_yum-log.log
    -rw-r--r-- 1 root root 20 Sep 18 13:59 install.utc.time.log
    -rw-r--r-- 1 root root 2.6M Sep 18 13:59 centminmod_1.2.3-eva2000.08_180915-094703_install.log
    -rw-r--r-- 1 root root 49 Sep 18 13:59 firstyum_installtime_180915-094252.log
    -rw-r--r-- 1 root root 12K Sep 18 14:02 centminmod_1.2.3-eva2000.08_180915-140110_nginx_addvhost.log
    -rw-r--r-- 1 root root 1.8M Sep 19 05:58 centminmod_1.2.3-eva2000.08_190915-055517_php_upgrade.log
    -rw-r--r-- 1 root root 1.8M Sep 19 06:22 centminmod_1.2.3-eva2000.08_190915-061910_php_upgrade.log
    -rw-r--r-- 1 root root 939K Sep 19 06:28 centminmod_1.2.3-eva2000.08_190915-062728_php_upgrade.log
    -rw-r--r-- 1 root root 1.8M Sep 19 06:32 centminmod_1.2.3-eva2000.08_190915-062943_php_upgrade.log
    -rw-r--r-- 1 root root 1.8M Sep 19 06:53 centminmod_1.2.3-eva2000.08_190915-065026_php_upgrade.log
    -rw-r--r-- 1 root root 1.8M Sep 19 07:14 centminmod_1.2.3-eva2000.08_190915-065820_php_upgrade.log
    -rw-r--r-- 1 root root 381 Sep 19 07:15 zendopcache_passfile.txt
    -rw-r--r-- 1 root root 23K Sep 19 07:15 centminmod_1.2.3-eva2000.08_190915-065820_zendopcache_install_submenu.log
    -rw-r--r-- 1 root root 1.5K Sep 19 08:20 centminmod_1.2.3-eva2000.08_190915-081959_git_envsetup.log
    -rw-r--r-- 1 root root 3.6K Sep 19 08:22 centminmod_1.2.3-eva2000.08_190915-082216_git_updatenew_branch.log
    -rw-r--r-- 1 root root 1.8M Sep 19 08:26 centminmod_1.2.3-eva2000.09_190915-082435_php_upgrade.log
    -rw-r--r-- 1 root root 7.8K Sep 20 17:17 centminmod_200915-171650_nginx_addvhost_nv.log
    -rw-r--r-- 1 root root 8.7K Sep 20 19:40 centminmod_1.2.3-eva2000.09_200915-193955_nginx_addvhost.log
    -rw-r--r-- 1 root root 9.3K Sep 20 20:04 centminmod_200915-200339_nginx_addvhost_nv.log
     
  8. Shaiffulnizam Mohamad

    Shaiffulnizam Mohamad New Member

    29
    8
    3
    Jun 6, 2014
    Ratings:
    +9
    Local Time:
    3:42 PM
    1.7.0
    5.5
    How about this error eva?
    gzip: stdin: not in gzip format
    tar: Child returned status 1
    tar: Error is not recoverable: exiting now
    Error: memcached-1.4.26.tar.gz extraction failed.
    check Centmin Mod log for details at /root/centminlogs/
    Aborting script...

    I have delete the file from folder svr-setup which download new files,
    But still
    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/memcached.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131226/memcached.so: cannot open shared object file: No such file or directory in Unknown on line 0
     
    Last edited: Jun 22, 2016
  9. eva2000

    eva2000 Administrator Staff Member

    30,841
    6,903
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,393
    Local Time:
    5:42 PM
    Nginx 1.13.x
    MariaDB 5.5
    2 separate errors one for memcached server and one for memcached php extension related to 2 separate routines
    would be fixed in latest 123.09beta01 otherwise also post memcached_reinstall.log log from /root/centminlogs

    as to memcached php extension failed install need php upgrade log post to pastebin.com or gist.github.com for sharing
     
    Last edited: Jun 22, 2016
  10. eva2000

    eva2000 Administrator Staff Member

    30,841
    6,903
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,393
    Local Time:
    5:42 PM
    Nginx 1.13.x
    MariaDB 5.5
  11. Shaiffulnizam Mohamad

    Shaiffulnizam Mohamad New Member

    29
    8
    3
    Jun 6, 2014
    Ratings:
    +9
    Local Time:
    3:42 PM
    1.7.0
    5.5
    Thanks, will do os reload. :)
     
  12. eva2000

    eva2000 Administrator Staff Member

    30,841
    6,903
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,393
    Local Time:
    5:42 PM
    Nginx 1.13.x
    MariaDB 5.5
    ah problem is official site memcached.org version of download is not 100% valid see below screenshot the one at 1600KB is memcached.org downloaded one and below is one i redid a tar + gzip on

    upload_2016-6-22_9-59-10.png

    IIRC, this is not the first time memcached.org has served up invalid tarball

    latest 123.09beta01 has added detection for such and redownloads from local centminmod.com mirror if detected as invalid Beta Branch - fallback checks if memcached routine tarballs extracted properly in 123.09beta01 | Centmin Mod Community

    but for you that is separate issue from memcached php extension unable to load from php