Giter Club home page Giter Club logo

Comments (5)

MiteshShah avatar MiteshShah commented on May 30, 2024

On Fail

TASK [bootstrap : Checking Network Connection, Hold on...] *********************
fatal: [AnsiPress.local]: FAILED! => {"changed": true, "cmd": "ping -c2 google.com", "delta": "0:00:00.002761", "end": "2017-02-19 19:10:08.115510", "failed": true, "rc": 2, "start": "2017-02-19 19:10:08.112749", "stderr": "ping: unknown host google.com", "stdout": "", "stdout_lines": [], "warnings": []}
	to retry, use: --limit @/Users/neo/Github/AnsiPress/setup.retry

PLAY RECAP *********************************************************************
AnsiPress.local            : ok=2    changed=0    unreachable=0    failed=1   

On Success:

TASK [bootstrap : Checking Network Connection, Hold on...] *********************
changed: [AnsiPress.local] => {"changed": true, "cmd": "ping -c2 google.com", "delta": "0:00:01.077720", "end": "2017-02-19 19:10:59.070715", "rc": 0, "start": "2017-02-19 19:10:57.992995", "stderr": "", "stdout": "PING google.com (172.217.26.206) 56(84) bytes of data.\n64 bytes from maa03s23-in-f14.1e100.net (172.217.26.206): icmp_seq=1 ttl=63 time=19.3 ms\n64 bytes from maa03s23-in-f14.1e100.net (172.217.26.206): icmp_seq=2 ttl=63 time=17.7 ms\n\n--- google.com ping statistics ---\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\nrtt min/avg/max/mdev = 17.775/18.537/19.300/0.774 ms", "stdout_lines": ["PING google.com (172.217.26.206) 56(84) bytes of data.", "64 bytes from maa03s23-in-f14.1e100.net (172.217.26.206): icmp_seq=1 ttl=63 time=19.3 ms", "64 bytes from maa03s23-in-f14.1e100.net (172.217.26.206): icmp_seq=2 ttl=63 time=17.7 ms", "", "--- google.com ping statistics ---", "2 packets transmitted, 2 received, 0% packet loss, time 1002ms", "rtt min/avg/max/mdev = 17.775/18.537/19.300/0.774 ms"], "warnings": []}

TASK [bootstrap : Setup FQDN, Hold on...] **************************************
changed: [AnsiPress.local] => {"ansible_facts": {"ansible_domain": "local", "ansible_fqdn": "AnsiPress.local", "ansible_hostname": "AnsiPress", "ansible_nodename": "AnsiPress.local"}, "changed": true, "name": "AnsiPress.local"}

TASK [bootstrap : Set Timezone to UTC, Hold on...] *****************************
ok: [AnsiPress.local] => {"changed": false}

from ansipress.

MiteshShah avatar MiteshShah commented on May 30, 2024

@harshadyeola Verify this and close this issue

from ansipress.

harshadyeola avatar harshadyeola commented on May 30, 2024

@MiteshShah Your step ran but did not fix issue.

root@AnsiPress:~# ls
root@AnsiPress:~# cat /etc/resolv
cat: /etc/resolv: No such file or directory
root@AnsiPress:~# cat /etc/resolv.conf 
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 10.0.2.3

Verifies that task did run

TASK [setup] *******************************************************************
ok: [AnsiPress.local]

TASK [bootstrap : Executing ping command, Hold on...] **************************
ok: [AnsiPress.local]

from ansipress.

MiteshShah avatar MiteshShah commented on May 30, 2024

@harshadyeola Can you explain bit more here.

from ansipress.

MiteshShah avatar MiteshShah commented on May 30, 2024

@harshadyeola I'd added check which checks the network/internet connection was present or not.
If ping google.com failed AnsiPress stop at that points and user have to manually check and fix network issue

Some ISP/Hosting provider block Google DNS and nameservers and its always better don't mess with it so user can fix the issue and run AnsiPress again

from ansipress.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.