Get the most out of your Centmin Mod LEMP stack
Become a Member

PHP-FPM Stuck on Axel command

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Doni, Jan 28, 2017.

  1. Doni

    Doni New Member

    29
    1
    3
    Aug 23, 2014
    Ratings:
    +3
    Local Time:
    12:33 PM
    nginx/1.7.4
    mysql Ver 15.1 Distrib 5.5.39-MariaDB, for Linux (x86_64) using readline 5.1
    I just installed centmin on my VPS, but when i try to update the PHP, the process is stuck. I do ps aux to check the process, and it seems it stuck on axel command when try to download PHP. I try to manually execuate the command and it also stuck. Can you help me with this?

    Code (Text):
    root      1505  0.0  0.1 347356  2548 pts/0    Sl+  15:47   0:00 axel http://php.net/get/php-5.6.30.tar.gz/from/this/mirror -o php-5.6.30.tar.gz

    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: i.e. 1.11.9
    • When was last time updated Centmin Mod code base ? : Today

     
  2. eva2000

    eva2000 Administrator Staff Member

    30,910
    6,908
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,404
    Local Time:
    3:33 PM
    Nginx 1.13.x
    MariaDB 5.5
    could be network connectivity issues or slowness between your server and php

    You'll need to post on the forums with the following info
    • Server or VPS details ? XEN, KVM, OpenVZ, VMWare or dedicated server ? OS ? CentOS 6.7 or 7.2 ? 32bit or 64bit ?
    • What version of Centmin Mod ? .07 stable or 08 stable or .09 beta01 or another branch version ?
    • Was it fresh install or upgrade ?
    • Method of install ? Via centmin.sh menu option 1, Git install or curl one liner install as outlined at centminmod.com/download.html ?
    • How long ago did you install Centmin Mod ?
    • There's numerous code changes, bug fixes over time, so ensure you have latest Centmin Mod code installed by upgrading your Centmin Mod code as instructed below.

    Troubleshooting Initial Install



    To troubleshoot initial installation, you need to check the initial install log at /root/centminlogs and instructions under Sharing logs and errors heading for using Pastebin.com or Gists to share a sanitised version of the contents of the initial install log. You can see full details at How to troubleshoot Centmin Mod initial install issues

    Example list /root/centminlogs files in date ascending order and grep for install.log
    Code (Text):
    ls -lahrt /root/centminlogs | grep install.log
    

    example output returns install log at /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_install.log
    Code (Text):
    ls -lahrt /root/centminlogs | grep install.log
    -rw-r--r--  1 root root 2.2M Oct 11 01:40 centminmod_1.2.3-eva2000.09.001_111016-112321_install.log
    

    in SSH use cat to ouput contents of /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_install.log. Clear your SSH client window/buffer so only output is the contents of the file
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_install.log
    

    Then copy and paste into Pastebin.com or Gists entry. If your SSH window scroll buffer isn't that large to get the whole contents of the install log, you can download file manually and copy and paste contents. But makes sure it's sanitised version of the contents of the initial install log as outlined at How to troubleshoot Centmin Mod initial install issues
     
  3. eva2000

    eva2000 Administrator Staff Member

    30,910
    6,908
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,404
    Local Time:
    3:33 PM
    Nginx 1.13.x
    MariaDB 5.5
    also what do you get for output for this command
    Code (Text):
    curl -I http://php.net/get/php-5.6.30.tar.gz/from/this/mirror
    

    i.e.
    Code (Text):
    curl -I http://php.net/get/php-5.6.30.tar.gz/from/this/mirror
    HTTP/1.1 302 Found
    Server: nginx/1.6.2
    Date: Fri, 27 Jan 2017 17:04:30 GMT
    Content-Type: text/html; charset=utf-8
    Connection: keep-alive
    X-Powered-By: PHP/5.6.29-0+deb8u1
    Content-language: en
    X-Frame-Options: SAMEORIGIN
    Set-Cookie: COUNTRY=NA%2C100.11.11.11; expires=Fri, 03-Feb-2017 17:04:30 GMT; Max-Age=604800; path=/; domain=.php.net
    X-PHP-Load: 2.39, 2.56, 2.84
    Status: 302 Found
    Location: http://php.net/distributions/php-5.6.30.tar.gz
     
  4. Doni

    Doni New Member

    29
    1
    3
    Aug 23, 2014
    Ratings:
    +3
    Local Time:
    12:33 PM
    nginx/1.7.4
    mysql Ver 15.1 Distrib 5.5.39-MariaDB, for Linux (x86_64) using readline 5.1
    Its CentOS 7 64 bit with OpenVZ virtualisation
    123.09beta01
    I upgrade from 08 stable because when i try to install .09 directly from one liner command, it also stuck when downloading the PHP
    .08 was installed using one liner curl
    A couple hours ago

    and this is the log from my instalation:
    Code (Text):
    https://gist.github.com/anonymous/e8623dadb0dd82277a6d02c738a3c84b[CODEB]
     
  5. Doni

    Doni New Member

    29
    1
    3
    Aug 23, 2014
    Ratings:
    +3
    Local Time:
    12:33 PM
    nginx/1.7.4
    mysql Ver 15.1 Distrib 5.5.39-MariaDB, for Linux (x86_64) using readline 5.1
     
  6. eva2000

    eva2000 Administrator Staff Member

    30,910
    6,908
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,404
    Local Time:
    3:33 PM
    Nginx 1.13.x
    MariaDB 5.5
    from install log seems you have a few locale issues in server and/or derived from your local system/ssh client

    what is the operating system and ssh client you using to connect to the server from ? MacOS, Windows, Linux ? is your local pc that you run ssh client from non-english language based ?

    Code (Text):
    This software comes with no warranty of any kind. You are free to use
    it for both personal and commercial use as licensed under the GPL.
     
    Please read the included readme.txt before using this script.
     
    useradd: group '500' does not exist
    removing any i686 packages installed by default
    Failed to set locale, defaulting to C
    

    Code (Text):
    --------------------------------------------------------
    Check CSF Firewall Version:
    --------------------------------------------------------
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_CTYPE = "UTF-8",
        LANG = "en_US.UTF-8"
        are supported and installed on your system.
    perl: warning: Falling back to the standard locale ("C").
    You have an unresolved error when starting csf:
    Error: FASTSTART: (Packet Filter IPv4) [] [iptables-restore: line 14 failed]. Try restarting csf with FASTSTART disabled, at line 5046 in /usr/sbin/csf
    
    You need to restart csf successfully to remove this warning, or delete /etc/csf/csf.error
    

    Code (Text):
    --------------------------------------------------------
    Check mysqlreport version:
    --------------------------------------------------------
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_CTYPE = "UTF-8",
        LANG = "en_US.UTF-8"
        are supported and installed on your system.
    perl: warning: Falling back to the standard locale ("C").
    mysqlreport v3.5-maria11 Jul 4 2013
    


    what's output in ssh for your server for command
    Code (Text):
    locale
    

    and
    Code (Text):
    localectl status
    

    maybe unrelated to php download issue though
     
  7. Doni

    Doni New Member

    29
    1
    3
    Aug 23, 2014
    Ratings:
    +3
    Local Time:
    12:33 PM
    nginx/1.7.4
    mysql Ver 15.1 Distrib 5.5.39-MariaDB, for Linux (x86_64) using readline 5.1
    Hi Eva,

    I'm using terminal in OSX to connect to my server. The setting are attached below.

    This is the output for locale command

    Code (Text):
    [root@hifo centminmod]# locale
    LANG=C
    LC_CTYPE="C"
    LC_NUMERIC="C"
    LC_TIME="C"
    LC_COLLATE="C"
    LC_MONETARY="C"
    LC_MESSAGES="C"
    LC_PAPER="C"
    LC_NAME="C"
    LC_ADDRESS="C"
    LC_TELEPHONE="C"
    LC_MEASUREMENT="C"
    LC_IDENTIFICATION="C"
    LC_ALL=C


    And this is for localectl status
    Code (Text):
    [root@hifo centminmod]# localectl status
       System Locale: LANG=C
           VC Keymap: n/a
          X11 Layout: n/a
     

    Attached Files:

    • Informative Informative x 1
  8. Doni

    Doni New Member

    29
    1
    3
    Aug 23, 2014
    Ratings:
    +3
    Local Time:
    12:33 PM
    nginx/1.7.4
    mysql Ver 15.1 Distrib 5.5.39-MariaDB, for Linux (x86_64) using readline 5.1
    Hi eva, you are right, the problem is on the locale. I try to list locale on my VPS using
    Code (Text):
    locale -a

    And from that list i set the locale via .bashrc until it look like this
    Code (Text):
    [root@hifo ~]# locale
    LANG=en_US.utf8
    LC_CTYPE="en_US.utf8"
    LC_NUMERIC="en_US.utf8"
    LC_TIME="en_US.utf8"
    LC_COLLATE="en_US.utf8"
    LC_MONETARY="en_US.utf8"
    LC_MESSAGES="en_US.utf8"
    LC_PAPER="en_US.utf8"
    LC_NAME="en_US.utf8"
    LC_ADDRESS="en_US.utf8"
    LC_TELEPHONE="en_US.utf8"
    LC_MEASUREMENT="en_US.utf8"
    LC_IDENTIFICATION="en_US.utf8"
    LC_ALL=en_US.utf8


    Logout and re-login to my VPS and now the axel command are run smoothly.

    Thank you
     
    • Informative Informative x 1
  9. eva2000

    eva2000 Administrator Staff Member

    30,910
    6,908
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,404
    Local Time:
    3:33 PM
    Nginx 1.13.x
    MariaDB 5.5
    Great work. Looking good then :D