HW-1.4 setup script fails

In HW 1.4 the setup script ‘setup-hw-1.4.sh’ fails. Looks like it fails at download part. I have tried multiple times, but no luck.
Please help.

Error Message:

Could not resolve host: downloads.mongodb.com

############################################################

vagrant@database:~/shared$ ./setup-hw-1.4.sh
Reading package lists… Done
Building dependency tree
Reading state information… Done
libsasl2-2 is already the newest version.
libgssapi-krb5-2 is already the newest version.
libssl1.0.0 is already the newest version.
libstdc++6 is already the newest version.
snmp is already the newest version.
snmp set to manually installed.
The following packages were automatically installed and are no longer required:
acl at-spi2-core colord dconf-gsettings-backend dconf-service fontconfig
fontconfig-config fonts-dejavu-core hicolor-icon-theme libasound2
libasound2-data libatk-bridge2.0-0 libatk1.0-0 libatk1.0-data libatspi2.0-0
libavahi-client3 libavahi-common-data libavahi-common3 libcairo-gobject2
libcairo2 libcanberra-gtk3-0 libcanberra-gtk3-module libcanberra0 libcolord1
libcolorhug1 libcups2 libdatrie1 libdconf1 libdrm-intel1 libdrm-nouveau2
libdrm-radeon1 libexif12 libfontconfig1 libfontenc1 libgd3
libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common libgl1-mesa-dri libgl1-mesa-glx
libglapi-mesa libgphoto2-6 libgphoto2-l10n libgphoto2-port10 libgraphite2-3
libgtk-3-0 libgtk-3-bin libgtk-3-common libgudev-1.0-0 libgusb2
libharfbuzz0b libice6 libieee1284-3 libjasper1 libjbig0 libjpeg-turbo8
libjpeg8 liblcms2-2 libllvm3.4 libltdl7 libnotify-bin libnotify4 libogg0
libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpciaccess0
libpixman-1-0 libsane libsane-common libsm6 libtdb1 libthai-data libthai0
libtiff5 libtxc-dxtn-s2tc0 libv4l-0 libv4lconvert0 libvorbis0a
libvorbisfile3 libvpx1 libwayland-client0 libwayland-cursor0 libx11-xcb1
libxaw7 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0
libxcb-render0 libxcb-shm0 libxcb-sync1 libxcomposite1 libxcursor1
libxdamage1 libxfixes3 libxfont1 libxi6 libxinerama1 libxkbcommon0
libxkbfile1 libxmu6 libxpm4 libxrandr2 libxrender1 libxshmfence1 libxt6
libxtst6 libxxf86vm1 notification-daemon sound-theme-freedesktop x11-common
x11-xkb-utils xfonts-base xfonts-encodings xfonts-utils xserver-common
xserver-xorg-core
Use ‘apt-get autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- 0:00:19 --:–:-- 0curl: (6) Could not resolve host: downloads.mongodb.com
tar: /home/vagrant/M310-HW-1.4/tmp/mongodb-linux-x86_64-enterprise-ubuntu1404-2.6.11.tgz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
./setup-hw-1.4.sh: line 37: /home/vagrant/M310-HW-1.4/tmp/mongodb-linux-x86_64-enterprise-ubuntu1404-2.6.11/bin/mongod: No such file or directory
MongoDB shell version: 3.2.22
connecting to: test
2019-12-18T14:20:31.302+0000 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(checking socket for error after poll), reason: errno:111 Connection refused
2019-12-18T14:20:31.303+0000 E QUERY [thread1] Error: couldn’t connect to server 127.0.0.1:27017, connection attempt failed :
connect@src/mongo/shell/mongo.js:229:14
@(connect):1:6

exception: connect failed
about to fork child process, waiting until server is ready for connections.
forked process: 17950
child process started successfully, parent exiting

############################################################

Thanks,
SK

  1. Let’s see the outputs of:
    ping downloads.mongodb.com
    curl portquiz.net 80
    telnet portquiz.net 80
  2. Open VirtualBox
    – open the Settings for the database machine
    – click Network
    – under Adapter 1 and Adapter 2, click the Advanced button to expand it
    – take screenshots of Adapter 1 and Adapter 2

I was able to run the setup script successfully after changing Network.Adapter setting for the VM.

Thanks,
SK