Join the community today
Register Now

Curl stop working on all servers - (probably after system update)

Discussion in 'Other Centmin Mod Installed software' started by pamamolf, May 12, 2018.

  1. pamamolf

    pamamolf Well-Known Member

    3,099
    293
    83
    May 31, 2014
    Ratings:
    +526
    Local Time:
    12:24 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit ?
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: i.e. 1.13.9
    • PHP Version Installed: 7.1.15
    • MariaDB MySQL Version Installed: 10.1.33
    • When was last time updated Centmin Mod code base ? : just now

    Hello

    Today all of my 4 servers has the same issue and start reports issues like:

    [​IMG]

    or

    So i thought that maybe there is a network issue as it can't connect but all was looking ok so i submit a ticket to IPB and they told me that Curl was not working with php.....

    I have the same issue on all 4 of my servers that are on different server providers...so it seems like a software issue....

    My system has:
    curl -V

    Don't know how the problem arrive (probably after system update) but i don't know how to fix it now :( Also i hope to not have to restart the servers to get that fixed...

    I was thinking to update to the latest version of php but don't know if that will solve the issue so i am waiting for some help please....

    Thank you
     
    Last edited: May 12, 2018
  2. JoeDer

    JoeDer New Member

    23
    7
    3
    Feb 22, 2015
    Ratings:
    +18
    Local Time:
    12:24 AM
    Nginx 1.13.x
    MariaDB 10.1.x
    Please fill in any relevant information that applies to you:
    • CentOS Version: 7.5.1804 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.13.12
    • PHP Version Installed: 7.2.5
    • MariaDB MySQL Version Installed: 10.1.33
    • When was last time updated Centmin Mod code base ? : 11 May 2018

    I have the same "curl" issue with elasticsearch. Even If it fixed when I restart elasticsearch (systemctl restart elasticsearch) after some time this issue come back.

    Capture.PNG

    curl -V
    Code:
    curl 7.59.0 (x86_64-redhat-linux-gnu) libcurl/7.59.0 NSS/3.28.4 zlib/1.2.7 libpsl/0.7.0 (+libicu/50.1.2) libssh2/1.8.0 nghttp2/1.31.1
    Release-Date: 2018-03-14
    Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
    Features: AsynchDNS IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz HTTP2 UnixSockets HTTPS-proxy PSL Metalink 
     
    • Agree Agree x 1
  3. eva2000

    eva2000 Administrator Staff Member

    34,253
    7,581
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,656
    Local Time:
    7:24 AM
    Nginx 1.13.x
    MariaDB 5.5
    Did you update to CentOS 7.5 ? Did you do a server reboot after updating to CentOS 7.5 ?

    What's output for these commands
    Code (Text):
    yum history list curl
    

    Code (Text):
    ldd $(which curl)
    

    Code (Text):
    ldd $(which php)
    

    Code (Text):
    lsof | grep php-fpm | awk '{print $1,$9}' | grep '.so' | egrep -v 'socket|modules' | sort | uniq
    

    Code (Text):
    lsof | grep nginx | awk '{print $1,$9}' | grep '.so' | egrep -v 'socket|modules' | sort |
    

    Code (Text):
    php --ri curl
    

    For posting code or output from commands to keep the formatting, you might want to use CODE tags for code How to use forum BBCODE code tags :)

    Also try recompiling PHP after CentOS 7.5 update + reboot.
     
  4. pamamolf

    pamamolf Well-Known Member

    3,099
    293
    83
    May 31, 2014
    Ratings:
    +526
    Local Time:
    12:24 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    yum history list curl
    ldd $(which curl)
    ldd $(which php)
    lsof | grep php-fpm | awk '{print $1,$9}' | grep '.so' | egrep -v 'socket|modules' | sort | uniq

    lsof | grep nginx | awk '{print $1,$9}' | grep '.so' | egrep -v 'socket|modules' | sort | uniq

    php --ri curl

    cat /etc/centos-release

    Didn't restart the server or recompile php...
     
    Last edited: May 13, 2018
  5. eva2000

    eva2000 Administrator Staff Member

    34,253
    7,581
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,656
    Local Time:
    7:24 AM
    Nginx 1.13.x
    MariaDB 5.5
    looks good there, so maybe related to your targets curl was running against could be dns resolver issue on your server and/or IPv6 vs IPv4 connectivity issues. Maybe on reboot, it messed with /etc/resolv.conf nameserver settings ?
    Code (Text):
    cat /etc/resolv.conf
    

    from libcurl - Error Codes
    check output for the 2 domains in your 1st post

    should return 404 error status
    Code (Text):
    curl -Isv www.googleapis.com
    

    Code (Text):
    curl -4Isv www.googleapis.com
    

    Code (Text):
    curl -6Isv www.googleapis.com
    

    should return 405 method not allowed status
    Code (Text):
    curl -Isv s3.us-east-2.amazonaws.com
    

    Code (Text):
    curl -4Isv s3.us-east-2.amazonaws.com
    

    Code (Text):
    curl -6Isv s3.us-east-2.amazonaws.com
    

    For posting code or output from commands to keep the formatting, you might want to use CODE tags for code How to use forum BBCODE code tags
     
  6. Revenge

    Revenge Active Member

    393
    84
    28
    Feb 21, 2016
    Portugal
    Ratings:
    +295
    Local Time:
    10:24 PM
    1.9.x
    10.1.x
    You need to restart the server after updating to Centos 7.5.

    I got similar issues that were resolved with the reboot, in all servers i control.
     
    • Informative Informative x 1
  7. eva2000

    eva2000 Administrator Staff Member

    34,253
    7,581
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,656
    Local Time:
    7:24 AM
    Nginx 1.13.x
    MariaDB 5.5
    ah i misread @pamamolf post as he restarted server after CentOS 7.5 update, but yes reboot server after CentOS 7.5 update for various yum package update reasons
     
  8. pamamolf

    pamamolf Well-Known Member

    3,099
    293
    83
    May 31, 2014
    Ratings:
    +526
    Local Time:
    12:24 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    @Revenge

    Did you recompile php after reboot of the servers ?
     
  9. JoeDer

    JoeDer New Member

    23
    7
    3
    Feb 22, 2015
    Ratings:
    +18
    Local Time:
    12:24 AM
    Nginx 1.13.x
    MariaDB 10.1.x
    My issue solved after a PHP recompile and a server reboot. I think only PHP recompile resolved my issue as I had already made the server reboot after the OS upgrade.
     
    • Informative Informative x 1
  10. eva2000

    eva2000 Administrator Staff Member

    34,253
    7,581
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,656
    Local Time:
    7:24 AM
    Nginx 1.13.x
    MariaDB 5.5
    everyone having issues, running curl updated via addons/customcurl.sh for curl 7.59 ?
    Code (Text):
    curl -V
    
     
  11. JoeDer

    JoeDer New Member

    23
    7
    3
    Feb 22, 2015
    Ratings:
    +18
    Local Time:
    12:24 AM
    Nginx 1.13.x
    MariaDB 10.1.x
    Yes, it was the 1st thing I did after the CMD installation.
    Code (Text):
    $cmdir
    $cd addons
    $./customcurl.sh
    
     
  12. pamamolf

    pamamolf Well-Known Member

    3,099
    293
    83
    May 31, 2014
    Ratings:
    +526
    Local Time:
    12:24 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    curl -V

    yes
     
  13. Revenge

    Revenge Active Member

    393
    84
    28
    Feb 21, 2016
    Portugal
    Ratings:
    +295
    Local Time:
    10:24 PM
    1.9.x
    10.1.x
    Nop, i use php from Remi repo.
     
..