Welcome to Centmin Mod Community
Register Now

Centminmod problem or network issues?

Discussion in 'Install & Upgrades or Pre-Install Questions' started by pamamolf, Dec 26, 2014.

  1. pamamolf

    pamamolf Well-Known Member

    2,841
    254
    83
    May 31, 2014
    Ratings:
    +450
    Local Time:
    8:31 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Hi

    When i try to run centminmod i am getting this:

    [root@server centminmod-123.08centos7beta01]# ./centmin.sh

    Looking up download.fedoraproject.org
    Unable to locate remote host download.fedoraproject.org.
    Alert!: Unable to connect to remote host.

    Code:
    lynx: Can't access startfile http://download.fedoraproject.org/pub/epel/7/x86_64/repoview/epel-release.html
    :(
     
  2. pamamolf

    pamamolf Well-Known Member

    2,841
    254
    83
    May 31, 2014
    Ratings:
    +450
    Local Time:
    8:31 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    It seems that it tries to use ipv6 to connect :(

    This happen after updating to latest nginx yesterday and run yum update :(

    [root@server ~]# wget https://github.com/centminmod/centminmod/archive/123.08centos7beta01.zip
    --2014-12-26 01:29:03-- https://github.com/centminmod/centminmod/archive/123.08centos7beta01.zip
    Resolving github.com... failed: Temporary failure in name resolution.
    wget: unable to resolve host address “github.com”


    Yes ipv6 is the problem :(

    Using wget -4 https://github.com/centminmod/centminmod/archive/123.08centos7beta01.zip

    it works !!!!

    Any ideas how can i fix it?
     
    Last edited: Dec 26, 2014
  3. pamamolf

    pamamolf Well-Known Member

    2,841
    254
    83
    May 31, 2014
    Ratings:
    +450
    Local Time:
    8:31 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    I found also this on hosts file:

    ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

    and on nameservers i got a line:

    search ip-37-187-151.eu

    and i remove both so now i have:

    /etc/hosts:

    127.0.0.1 localhost localhost.localdomain
    37.187.xxx.xx server.mydomain.com server

    /etc/sysconfig/network:

    NETWORKING=yes
    HOSTNAME=server.mydomain.com
    GATEWAY=37.187.xxx.xxx


    /etc/resolv.conf
    # Generated by NetworkManager
    nameserver 8.8.8.8

    And then reboot the server but nothing :(

    also i have this:

    /etc/sysconfig/network-scripts/ifcfg-eth0

    DEVICE="eth0"
    BOOTPROTO="static"
    DNS1="8.8.8.8"
    GATEWAY="37.187.xxx.254"
    HWADDR="0C:C4:7A:02:CA:xx"
    IPADDR="37.187.xxx.xx"
    NETMASK="255.255.255.0"
    NM_CONTROLLED="no"
    ONBOOT="yes"
    TYPE="Ethernet"
    UUID="cb7ea12f-2ab7-45a1-896f-8ff948d7xxxx"

    and this:

    /etc/nsswitch.conf

    passwd: files
    shadow: files
    group: files

    #hosts: db files nisplus nis dns
    hosts: files dns

    bootparams: nisplus [NOTFOUND=return] files

    ethers: files
    netmasks: files
    networks: files
    protocols: files
    rpc: files
    services: files

    netgroup: nisplus

    publickey: nisplus

    automount: files nisplus
    aliases: files nisplus


    I also try to disable firewall running csfstop ....
     
    Last edited: Dec 26, 2014
  4. pamamolf

    pamamolf Well-Known Member

    2,841
    254
    83
    May 31, 2014
    Ratings:
    +450
    Local Time:
    8:31 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    [root@server ~]# nslookup google.com
    Server: 8.8.8.8
    Address: 8.8.8.8#53

    Non-authoritative answer:
    Name: google.com
    Address: 173.194.40.142
    Name: google.com
    Address: 173.194.40.130
    Name: google.com
    Address: 173.194.40.135
    Name: google.com
    Address: 173.194.40.132
    Name: google.com
    Address: 173.194.40.131
    Name: google.com
    Address: 173.194.40.128
    Name: google.com
    Address: 173.194.40.134
    Name: google.com
    Address: 173.194.40.129
    Name: google.com
    Address: 173.194.40.137
    Name: google.com
    Address: 173.194.40.133
    Name: google.com
    Address: 173.194.40.136


    and:

    dig @8.8.8.8 Google

    [root@server ~]# dig @8.8.8.8 Google

    ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.30.rc1.el6_6.1 <<>> @8.8.8.8 Google
    ; (1 server found)
    ;; global options: +cmd
    ;; connection timed out; no servers could be reached


    and:

    [root@server ~]# ping6 mirrors.fedoraproject.org
    PING mirrors.fedoraproject.org(2001:4178:2:1269::fed2) 56 data bytes
    From fe80::2ff:ffff:feff:fffe icmp_seq=25 Destination unreachable: Beyond scope of source address
     
    Last edited: Dec 26, 2014
  5. eva2000

    eva2000 Administrator Staff Member

    31,027
    6,928
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,434
    Local Time:
    4:31 AM
    Nginx 1.13.x
    MariaDB 5.5
    could be a problem at mirrors.fedoraproject.org end and nothing to do with your server.. the ipv6 address for mirrors.fedoraproject.org is different for me and works

    Code:
    ping6 -c4 mirrors.fedoraproject.org
    PING mirrors.fedoraproject.org(2607:f188::dead:beef:cafe:fed1) 56 data bytes
    64 bytes from 2607:f188::dead:beef:cafe:fed1: icmp_seq=1 ttl=55 time=30.8 ms
    64 bytes from 2607:f188::dead:beef:cafe:fed1: icmp_seq=2 ttl=55 time=29.4 ms
    64 bytes from 2607:f188::dead:beef:cafe:fed1: icmp_seq=3 ttl=55 time=28.9 ms
    64 bytes from 2607:f188::dead:beef:cafe:fed1: icmp_seq=4 ttl=55 time=28.8 ms
    
    --- mirrors.fedoraproject.org ping statistics ---
    4 packets transmitted, 4 received, 0% packet loss, time 3031ms
    rtt min/avg/max/mdev = 28.860/29.519/30.831/0.796 ms
    if you do not have ipv6 networking configured it should be be disabled in /etc/sysconfig/network
     
    Last edited: Dec 26, 2014
  6. pamamolf

    pamamolf Well-Known Member

    2,841
    254
    83
    May 31, 2014
    Ratings:
    +450
    Local Time:
    8:31 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    For me:

    [root@server ~]# ping6 -c4 mirrors.fedoraproject.org
    unknown host

    I am sure that this happen after running the centminmod nginx upgrade and select yes to run yum update first ....

    There is a problem 100% as maybe fedora mirrors has a problem but i have a problem also with github:

    [root@server ~]# wget https://github.com/centminmod/centminmod/archive/123.08centos7beta01.zip
    --2014-12-26 01:29:03-- https://github.com/centminmod/centminmod/archive/123.08centos7beta01.zip
    Resolving github.com... failed: Temporary failure in name resolution.
    wget: unable to resolve host address “github.com”

    On a second Centminmod server the ipv6 is enabled (default) as i never edit any related info and all the above commands are working.....

    On both servers i have the same output for ipv6:

    [root@server ~]# lsmod | grep ipv6
    nf_conntrack_ipv6 8337 67
    nf_defrag_ipv6 27236 1 nf_conntrack_ipv6
    nf_conntrack 80390 8 nf_conntrack_ipv6,xt_state,nf_nat_ftp,iptable_nat,nf_nat,nf_conntrack_ipv4,xt_conntrack,nf_conntrack_ftp
    ipv6 334740 42 nf_conntrack_ipv6,nf_defrag_ipv6

    Any help please?
     
    Last edited: Dec 26, 2014
  7. eva2000

    eva2000 Administrator Staff Member

    31,027
    6,928
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,434
    Local Time:
    4:31 AM
    Nginx 1.13.x
    MariaDB 5.5
    sounds like DNS not working, what do you get from the commands for host on github.com and mirrors.fedoraproject.org and google.com

    Code:
    host github.com
    
    github.com has address 192.30.252.128
    github.com mail is handled by 5 ALT1.ASPMX.L.GOOGLE.com.
    github.com mail is handled by 10 ALT3.ASPMX.L.GOOGLE.com.
    github.com mail is handled by 1 ASPMX.L.GOOGLE.com.
    github.com mail is handled by 5 ALT2.ASPMX.L.GOOGLE.com.
    github.com mail is handled by 10 ALT4.ASPMX.L.GOOGLE.com.
    
    Code:
    host mirrors.fedoraproject.org
    
    mirrors.fedoraproject.org is an alias for wildcard.fedoraproject.org.
    wildcard.fedoraproject.org has address 140.211.169.197
    wildcard.fedoraproject.org has address 209.132.181.16
    wildcard.fedoraproject.org has address 66.35.62.166
    wildcard.fedoraproject.org has address 66.135.62.201
    wildcard.fedoraproject.org has address 67.203.2.67
    wildcard.fedoraproject.org has address 152.19.134.146
    wildcard.fedoraproject.org has IPv6 address 2001:4178:2:1269::fed2
    wildcard.fedoraproject.org has IPv6 address 2607:f188::dead:beef:cafe:fed1
    wildcard.fedoraproject.org has IPv6 address 2610:28:3090:3001:dead:beef:cafe:fed4
    Code:
    host google.com
    
    google.com has address 173.194.33.163
    google.com has address 173.194.33.166
    google.com has address 173.194.33.167
    google.com has address 173.194.33.161
    google.com has address 173.194.33.160
    google.com has address 173.194.33.165
    google.com has address 173.194.33.168
    google.com has address 173.194.33.169
    google.com has address 173.194.33.164
    google.com has address 173.194.33.162
    google.com has address 173.194.33.174
    google.com has IPv6 address 2607:f8b0:400a:805::1003
    google.com mail is handled by 20 alt1.aspmx.l.google.com.
    google.com mail is handled by 40 alt3.aspmx.l.google.com.
    google.com mail is handled by 10 aspmx.l.google.com.
    google.com mail is handled by 30 alt2.aspmx.l.google.com.
    google.com mail is handled by 50 alt4.aspmx.l.google.com.
     
  8. pamamolf

    pamamolf Well-Known Member

    2,841
    254
    83
    May 31, 2014
    Ratings:
    +450
    Local Time:
    8:31 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Yes it seems like a dns problem but i have the 8.8.8.8 from google that i use also on my second Centminmod server without any issues...


    [root@server ~]# host github.com
    github.com has address 192.30.252.131
    ;; connection timed out; trying next origin
    ;; connection timed out; no servers could be reached
    You have new mail in /var/spool/mail/root

    [root@server ~]# host mirrors.fedoraproject.org
    mirrors.fedoraproject.org is an alias for wildcard.fedoraproject.org.
    wildcard.fedoraproject.org has address 85.236.55.6
    wildcard.fedoraproject.org has address 209.132.181.16
    wildcard.fedoraproject.org has address 213.175.193.206
    wildcard.fedoraproject.org has address 152.19.134.146
    ;; connection timed out; trying next origin
    ;; connection timed out; no servers could be reached

    [root@server ~]# host google.com
    ;; connection timed out; trying next origin
    ;; connection timed out; no servers could be reached


    Downloading of Centminmod using:

    Code:
    wget -4 https://github.com/centminmod/centminmod/archive/123.08centos7beta01.zip
    is working great that's why i am thinking that the problem is related to ipv6 (maybe default now?)...

    If you read my third post here you will see that something is activate ipv6 and some related settings to it :(

    Also i just notice that my second domain that i have on my Centminmod server that is redirecting to an internal folder of my first domain using http://www/seconddomain.com is not opening anymore....

    First domain is working (i just get a few double topics/posts)... from users :(

    I am sure that it is a global problem and not related to yum or wget .....
     
    Last edited: Dec 27, 2014
  9. pamamolf

    pamamolf Well-Known Member

    2,841
    254
    83
    May 31, 2014
    Ratings:
    +450
    Local Time:
    8:31 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Last edited: Dec 27, 2014
  10. eva2000

    eva2000 Administrator Staff Member

    31,027
    6,928
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,434
    Local Time:
    4:31 AM
    Nginx 1.13.x
    MariaDB 5.5
    You'd have to figure out what's wrong with DNS on your server.
     
  11. pamamolf

    pamamolf Well-Known Member

    2,841
    254
    83
    May 31, 2014
    Ratings:
    +450
    Local Time:
    8:31 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    ok but no idea how as i can ping my dns server and i use as nameservers the google one 8.8.8.8 that is ok .... :(

    I also try 8.8.4.4 and open dns but nothing....
     
    Last edited: Dec 27, 2014
  12. eva2000

    eva2000 Administrator Staff Member

    31,027
    6,928
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,434
    Local Time:
    4:31 AM
    Nginx 1.13.x
    MariaDB 5.5
    Probably need to hire someone to look into it as I only provide Centmin Mod as is and only provide basic support. And you did say it was working before so probably something with your server setup/networking misconfigured.
     
  13. pamamolf

    pamamolf Well-Known Member

    2,841
    254
    83
    May 31, 2014
    Ratings:
    +450
    Local Time:
    8:31 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Ok does anyone know any good system admin to hire? :) Low budget :(
     
  14. pamamolf

    pamamolf Well-Known Member

    2,841
    254
    83
    May 31, 2014
    Ratings:
    +450
    Local Time:
    8:31 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Problem solved :)
    I was have dns problem, because my resolvers have no udp connection (filtred/banned)

    Is csf do that? Do i need to adjust anything related?

    Is there any command to clear all related blocks at csf or iptables?

    How can i know if the block is from my datacenter or google servers?
     
    Last edited: Dec 28, 2014