Vagrant up --provision fails

A few fixes from the other discussions helped me get past some of the issues.
But have not been able to find a discussion to resolve the below.

mongod-m103: + update_repo
mongod-m103: + echo ‘Install MongoDB Enterprise Repository’
mongod-m103: + echo ‘deb [ arch=amd64 ] http://repo.mongodb.com/apt/ubuntu trusty/mongodb-enterprise/3.6 multiverse’ mongod-m103: + sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
mongod-m103: deb [ arch=amd64 ] http://repo.mongodb.com/apt/ubuntu trusty/mongodb-enterprise/3.6 multiverse
mongod-m103: + sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5
mongod-m103: Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.cQm0GyctkN --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d/ubuntu-advantage-esm-infra-trusty.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5
mongod-m103: gpg:
mongod-m103: requesting key 91FA4AD5 from hkp server keyserver.ubuntu.com
mongod-m103: gpg:
mongod-m103: key 91FA4AD5: public key “MongoDB 3.6 Release Signing Key packaging@mongodb.com” imported
mongod-m103: gpg:
mongod-m103: Total number processed: 1
mongod-m103: gpg:
mongod-m103: imported: 1
mongod-m103: (RSA: 1)
mongod-m103: + echo ‘Update Repositories’
mongod-m103: Update Repositories
mongod-m103: + sudo apt-get update -y
mongod-m103: Hit http://security.ubuntu.com trusty-security InRelease
mongod-m103: Ign http://repo.mongodb.com trusty/mongodb-enterprise/3.6 InRelease
mongod-m103: Ign http://archive.ubuntu.com trusty InRelease
mongod-m103: Get:1 https://esm.ubuntu.com trusty-infra-security InRelease
mongod-m103: Get:2 https://esm.ubuntu.com trusty-infra-updates InRelease
mongod-m103: Get:3 https://esm.ubuntu.com trusty-infra-security/main amd64 Packages
mongod-m103: Get:4 https://esm.ubuntu.com trusty-infra-security/main Translation-en_US
mongod-m103: Get:5 https://esm.ubuntu.com trusty-infra-updates/main Translation-en_US
mongod-m103: Ign https://esm.ubuntu.com trusty-infra-security/main Translation-en_US
mongod-m103: Ign https://esm.ubuntu.com trusty-infra-security/main Translation-en
mongod-m103: Ign https://esm.ubuntu.com trusty-infra-updates/main Translation-en_US
mongod-m103: Ign https://esm.ubuntu.com trusty-infra-updates/main Translation-en
mongod-m103: Get:6 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB]
mongod-m103: Err http://repo.mongodb.com trusty/mongodb-enterprise/3.6 Release.gpg
mongod-m103: Could not connect to repo.mongodb.com:80 (99.84.240.98), connection timed out [IP: 99.84.240.98 80]
mongod-m103: Ign http://archive.ubuntu.com trusty-updates InRelease
mongod-m103: Get:7 http://security.ubuntu.com trusty-security/main Sources [172 kB]
mongod-m103: Hit http://archive.ubuntu.com trusty-backports InRelease
mongod-m103: Get:8 http://security.ubuntu.com trusty-security/main Sources [172 kB]
mongod-m103: Hit http://archive.ubuntu.com trusty Release.gpg
mongod-m103: Err http://archive.ubuntu.com trusty-updates Release.gpg
mongod-m103: Could not connect to archive.ubuntu.com:80 (91.189.88.24), connection timed out [IP: 91.189.88.24 80]
mongod-m103: Err http://archive.ubuntu.com trusty Release
mongod-m103:
mongod-m103: Ign http://archive.ubuntu.com trusty/main amd64 Packages/DiffIndex
mongod-m103: Ign http://archive.ubuntu.com trusty/restricted amd64 Packages/DiffIndex
mongod-m103: Ign http://archive.ubuntu.com trusty/universe amd64 Packages/DiffIndex
mongod-m103: Ign http://archive.ubuntu.com trusty/multiverse amd64 Packages/DiffIndex
mongod-m103: Err http://archive.ubuntu.com trusty-backports/main Sources
mongod-m103: Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103: Err http://archive.ubuntu.com trusty-backports/restricted Sources
mongod-m103: Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103: Err http://archive.ubuntu.com trusty-backports/universe Sources
mongod-m103: Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103: Err http://archive.ubuntu.com trusty-backports/multiverse Sources
mongod-m103: Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103: Err http://archive.ubuntu.com trusty-backports/main amd64 Packages
mongod-m103: Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103: Err http://archive.ubuntu.com trusty-backports/restricted amd64 Packages
mongod-m103: Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103: Err http://archive.ubuntu.com trusty-backports/universe amd64 Packages
mongod-m103: Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103: Err http://archive.ubuntu.com trusty-backports/multiverse amd64 Packages
mongod-m103: Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103: Err http://archive.ubuntu.com trusty-backports/main Translation-en
mongod-m103: Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103: Err http://archive.ubuntu.com trusty-backports/multiverse Translation-en
mongod-m103: Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103: Err http://archive.ubuntu.com trusty-backports/restricted Translation-en
mongod-m103: Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103: Err http://archive.ubuntu.com trusty-backports/universe Translation-en
mongod-m103: Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103: Err http://archive.ubuntu.com trusty/main Sources
mongod-m103: Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103: Err http://archive.ubuntu.com trusty/restricted Sources
mongod-m103: Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103: Err http://archive.ubuntu.com trusty/universe Sources
mongod-m103: Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103: Err http://archive.ubuntu.com trusty/multiverse Sources
mongod-m103: Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103: Err http://archive.ubuntu.com trusty/main Translation-en_US
mongod-m103: Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103: Err http://archive.ubuntu.com trusty/main Translation-en
mongod-m103: Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103: Err http://archive.ubuntu.com trusty/multiverse Translation-en_US
mongod-m103: Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103: Err http://archive.ubuntu.com trusty/multiverse Translation-en
mongod-m103: Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103: Err http://archive.ubuntu.com trusty/restricted Translation-en_US
mongod-m103: Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103: Err http://archive.ubuntu.com trusty/restricted Translation-en
mongod-m103: Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103: Err http://archive.ubuntu.com trusty/universe Translation-en_US
mongod-m103: Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103: Err http://archive.ubuntu.com trusty/universe Translation-en
mongod-m103: Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103: Err http://archive.ubuntu.com trusty/main amd64 Packages
mongod-m103: Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103: Err http://archive.ubuntu.com trusty/restricted amd64 Packages
mongod-m103: Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103: Err http://archive.ubuntu.com trusty/universe amd64 Packages
mongod-m103: Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103: Err http://archive.ubuntu.com trusty/multiverse amd64 Packages
mongod-m103: Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103: Get:9 http://security.ubuntu.com trusty-security/main Sources [172 kB]
mongod-m103: Get:10 http://security.ubuntu.com trusty-security/universe Sources [102 kB]
mongod-m103: Get:11 http://security.ubuntu.com trusty-security/universe Sources [102 kB]
mongod-m103: Hit http://security.ubuntu.com trusty-security/main amd64 Packages
mongod-m103: Hit http://security.ubuntu.com trusty-security/universe amd64 Packages
mongod-m103: Hit http://security.ubuntu.com trusty-security/main Translation-en
mongod-m103: Hit http://security.ubuntu.com trusty-security/universe Translation-en
mongod-m103: Fetched 370 kB in 22min 3s (279 B/s)
mongod-m103: Reading package lists…
mongod-m103: W: Failed to fetch http://repo.mongodb.com/apt/ubuntu/dists/trusty/mongodb-enterprise/3.6/Release.gpg Could not connect to repo.mongodb.com:80 (99.84.240.98), connection timed out [IP: 99.84.240.98 80]
mongod-m103:
mongod-m103: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg Could not connect to archive.ubuntu.com:80 (91.189.88.24), connection timed out [IP: 91.189.88.24 80]
mongod-m103:
mongod-m103: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-backports/main/source/Sources Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103:
mongod-m103: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-backports/restricted/source/Sources Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103:
mongod-m103: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-backports/universe/source/Sources Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103:
mongod-m103: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-backports/multiverse/source/Sources Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103:
mongod-m103: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-backports/main/binary-amd64/Packages Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103:
mongod-m103: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-backports/restricted/binary-amd64/Packages Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103:
mongod-m103: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-backports/universe/binary-amd64/Packages Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103:
mongod-m103: W:
mongod-m103: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-backports/multiverse/binary-amd64/Packages Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103:
mongod-m103: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-backports/main/i18n/Translation-en Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103:
mongod-m103: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-backports/multiverse/i18n/Translation-en Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103:
mongod-m103: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-backports/restricted/i18n/Translation-en Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103:
mongod-m103: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-backports/universe/i18n/Translation-en Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103:
mongod-m103: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release
mongod-m103:
mongod-m103: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/main/source/Sources Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103:
mongod-m103: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/restricted/source/Sources Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103:
mongod-m103: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/universe/source/Sources Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103:
mongod-m103: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/multiverse/source/Sources Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103:
mongod-m103: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/main/i18n/Translation-en_US Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103:
mongod-m103: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/main/i18n/Translation-en Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103:
mongod-m103: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/multiverse/i18n/Translation-en_US Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103:
mongod-m103: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/multiverse/i18n/Translation-en Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103:
mongod-m103: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/restricted/i18n/Translation-en_US Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103:
mongod-m103: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/restricted/i18n/Translation-en Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103:
mongod-m103: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/universe/i18n/Translation-en_US Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103:
mongod-m103: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/universe/i18n/Translation-en Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103:
mongod-m103: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/main/binary-amd64/Packages Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103:
mongod-m103: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/restricted/binary-amd64/Packages Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103:
mongod-m103: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/universe/binary-amd64/Packages Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103:
mongod-m103: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/multiverse/binary-amd64/Packages Unable to connect to archive.ubuntu.com:http: [IP: 2001:67c:1360:8001::21 80]
mongod-m103:
mongod-m103: W: Some index files failed to download. They have been ignored, or old ones used instead.
mongod-m103: Installing MongoDB Enterprise Dependencies
mongod-m103: + echo ‘Installing MongoDB Enterprise Dependencies’
mongod-m103: + sudo apt-get install -y libgssapi-krb5-2 libsasl2-2 libssl1.0.0 libstdc++6 snmp
mongod-m103: Reading package lists…
mongod-m103: Building dependency tree…
mongod-m103: Reading state information…
mongod-m103: libsasl2-2 is already the newest version.
mongod-m103: libgssapi-krb5-2 is already the newest version.
mongod-m103: libssl1.0.0 is already the newest version.
mongod-m103: libstdc++6 is already the newest version.
mongod-m103: Suggested packages:
mongod-m103: lm-sensors snmp-mibs-downloader
mongod-m103: The following NEW packages will be installed:
mongod-m103: libperl5.18 libsensors4 libsnmp-base libsnmp30 snmp
mongod-m103: 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
mongod-m103: Need to get 1,167 kB of archives.
mongod-m103: After this operation, 4,676 kB of additional disk space will be used.
mongod-m103: WARNING: The following packages cannot be authenticated!
mongod-m103: libsensors4
mongod-m103: E
mongod-m103: :
mongod-m103: There are problems and -y was used without --force-yes
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

Please check this link.May help

Database Machine

thank you, the error on that post seems to be different.
Also verified the line change recommended on the post, is already present in the script I downloaded in the zip folder.

Hi @aks1,

Are you connected to any Corporate network / VPN network ?

In addition to that, please make sure the Firewall/ anti-virus on your system is not blocking the requests.

Can you please try to ping and telnet this address ?

ping repo.mongodb.com

telnet repo.mongodb.com 80

Thanks,
Shubham Ranjan
Curriculum Support Engineer

I’m able to ping and telnet, Ping results below.
Using home network.

C:\Development\mongolearn\m103\m103-vagrant-env>ping repo.mongodb.com

Pinging da151fp85xe5u.cloudfront.net [13.249.85.253] with 32 bytes of data:
Reply from 13.249.85.253: bytes=32 time=34ms TTL=242
Reply from 13.249.85.253: bytes=32 time=29ms TTL=242
Reply from 13.249.85.253: bytes=32 time=28ms TTL=242
Reply from 13.249.85.253: bytes=32 time=29ms TTL=242

Ping statistics for 13.249.85.253:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 28ms, Maximum = 34ms, Average = 30ms

Hi @aks1,

Please make the following changes in your provision-mongod file which is present in the m103-vagrant-env folder.

Go to the bottom of the file and comment out these two function calls and save the changes.

#update_repo
#install_mongod

cd into the m103-vagrant-env folder and run these commands.

vagrant destroy
vagrant up
vagrant provision
vagrant ssh

Once you are inside the m103 vagrant environment, please try to run the following command one more time and see if there is any difference.

Please run all the lines mentioned in the function update_repo and install_mongod one by one. If you get any error then please share the command and its output.

Thanks,
Shubham Ranjan
Curriculum Support Engineer

Commenting those 2 lines, got past the mongo error, but now on stuck on pymongo install

C:\Development\mongolearn\m103\m103-vagrant-env>vagrant destroy
mongod-m103: Are you sure you want to destroy the ‘mongod-m103’ VM? [y/N] y
==> mongod-m103: Destroying VM and associated drives…

C:\Development\mongolearn\m103\m103-vagrant-env>vagrant up
Bringing machine ‘mongod-m103’ up with ‘virtualbox’ provider…
==> mongod-m103: Importing base box ‘ubuntu/trusty64’…
==> mongod-m103: Matching MAC address for NAT networking…
==> mongod-m103: Setting the name of the VM: mongod-m103
==> mongod-m103: Clearing any previously set forwarded ports…
==> mongod-m103: Clearing any previously set network interfaces…
==> mongod-m103: Preparing network interfaces based on configuration…
mongod-m103: Adapter 1: nat
mongod-m103: Adapter 2: hostonly
==> mongod-m103: Forwarding ports…
mongod-m103: 22 (guest) => 2222 (host) (adapter 1)
==> mongod-m103: Running ‘pre-boot’ VM customizations…
==> mongod-m103: Booting VM…
==> mongod-m103: Waiting for machine to boot. This may take a few minutes…
mongod-m103: SSH address: 127.0.0.1:2222
mongod-m103: SSH username: vagrant
mongod-m103: SSH auth method: private key
mongod-m103: Warning: Connection aborted. Retrying…
mongod-m103:
mongod-m103: Vagrant insecure key detected. Vagrant will automatically replace
mongod-m103: this with a newly generated keypair for better security.
mongod-m103:
mongod-m103: Inserting generated public key within guest…
mongod-m103: Removing insecure key from the guest if it’s present…
mongod-m103: Key inserted! Disconnecting and reconnecting using new SSH key…
==> mongod-m103: Machine booted and ready!
==> mongod-m103: Checking for guest additions in VM…
mongod-m103: The guest additions on this VM do not match the installed version of
mongod-m103: VirtualBox! In most cases this is fine, but in rare cases it can
mongod-m103: prevent things such as shared folders from working properly. If you see
mongod-m103: shared folder errors, please make sure the guest additions within the
mongod-m103: virtual machine match the version of VirtualBox you have installed on
mongod-m103: your host and reload your VM.
mongod-m103:
mongod-m103: Guest Additions Version: 4.3.40
mongod-m103: VirtualBox Version: 6.0
==> mongod-m103: Setting hostname…
==> mongod-m103: Configuring and enabling network interfaces…
==> mongod-m103: Mounting shared folders…
mongod-m103: /shared => C:/Development/mongolearn/m103/m103-vagrant-env/shared
mongod-m103: /vagrant => C:/Development/mongolearn/m103/m103-vagrant-env
mongod-m103: /dataset => C:/Development/mongolearn/m103/m103-vagrant-env/dataset
==> mongod-m103: Running provisioner: shell…
mongod-m103: Running: C:/Users/AKSHAT~1/AppData/Local/Temp/vagrant-shell20191126-10592-1z0hayo
mongod-m103: + config
mongod-m103: + sudo su
mongod-m103: + echo -e never
mongod-m103: + echo -e never
mongod-m103: + sudo tee /etc/init/mongod.override
mongod-m103: + echo manual
mongod-m103: manual
mongod-m103: + ip_config
mongod-m103: ++ cut -d: -f2
mongod-m103: ++ grep -v 127.0.0.1
mongod-m103: ++ grep ‘inet addr:’
mongod-m103: ++ ifconfig
mongod-m103: ++ tail -1
mongod-m103: ++ awk ‘{ print $1}’
mongod-m103: + export CLIENT_IP_ADDR=192.168.103.100
mongod-m103: + CLIENT_IP_ADDR=192.168.103.100
mongod-m103: ++ hostname
mongod-m103: + export CLIENT_FQDN=m103
mongod-m103: + CLIENT_FQDN=m103
mongod-m103: ++ cut -d. -f 1
mongod-m103: ++ hostname
mongod-m103: ++ tr ‘[:upper:]’ ‘[:lower:]’
mongod-m103: + export CLIENT_NAME=m103
mongod-m103: Configuring /etc/hosts …
mongod-m103: + CLIENT_NAME=m103
mongod-m103: + echo ‘Configuring /etc/hosts …’
mongod-m103: + echo '127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ’
mongod-m103: + echo ‘::1 localhost localhost.localdomain localhost6 localhost6.localdomain6’
mongod-m103: + echo ‘fe00::0 ip6-localnet’
mongod-m103: + echo ‘ff00::0 ip6-mcastprefix’
mongod-m103: + echo ‘ff02::1 ip6-allnodes’
mongod-m103: + echo ‘ff02::2 ip6-allrouters’
mongod-m103: + echo ‘ff02::3 ip6-allhosts’
mongod-m103: + echo ‘192.168.103.100 m103 m103’
mongod-m103: + user_setup
mongod-m103: + sudo sh -c ‘killall mongod; true’
mongod-m103: mongod: no process found
mongod-m103: + sudo mkdir -p /data
mongod-m103: + sudo chmod -R 777 /data
mongod-m103: + mkdir -p /data/db
mongod-m103: + mkdir -p /home/vagrant/data
mongod-m103: + chmod -R 777 /home/vagrant/data
mongod-m103: + chown -R vagrant:vagrant /home/vagrant/data
mongod-m103: + mkdir -p /var/m103/validation
mongod-m103: + echo ‘Set LC_ALL=C to .profile’
mongod-m103: Set LC_ALL=C to .profile
mongod-m103: + sudo echo ‘export LC_ALL=C’
mongod-m103: + sudo echo PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/var/m103/validation
mongod-m103: + data_path
mongod-m103: + sudo mkdir -p /data
mongod-m103: + sudo chown -R vagrant:vagrant /data
mongod-m103: + install_pymongo
mongod-m103: + sudo apt-get -y install python-pip
mongod-m103: Reading package lists…
mongod-m103: Building dependency tree…
mongod-m103: Reading state information…
mongod-m103: The following extra packages will be installed:
mongod-m103: build-essential dpkg-dev g++ g+±4.8 libalgorithm-diff-perl
mongod-m103: libalgorithm-diff-xs-perl libalgorithm-merge-perl libdpkg-perl
mongod-m103: libfile-fcntllock-perl libstdc+±4.8-dev python-chardet-whl python-colorama
mongod-m103: python-colorama-whl python-distlib python-distlib-whl python-html5lib
mongod-m103: python-html5lib-whl python-pip-whl python-requests-whl python-setuptools
mongod-m103: python-setuptools-whl python-six-whl python-urllib3-whl python-wheel
mongod-m103: Suggested packages:
mongod-m103: debian-keyring g+±multilib g+±4.8-multilib gcc-4.8-doc libstdc++6-4.8-dbg
mongod-m103: libstdc+±4.8-doc python-genshi python-lxml
mongod-m103: Recommended packages:
mongod-m103: python-dev-all
mongod-m103: The following NEW packages will be installed:
mongod-m103: build-essential dpkg-dev g++ g+±4.8 libalgorithm-diff-perl
mongod-m103: libalgorithm-diff-xs-perl libalgorithm-merge-perl libdpkg-perl
mongod-m103: libfile-fcntllock-perl libstdc+±4.8-dev python-chardet-whl python-colorama
mongod-m103: python-colorama-whl python-distlib python-distlib-whl python-html5lib
mongod-m103: python-html5lib-whl python-pip python-pip-whl python-requests-whl
mongod-m103: python-setuptools python-setuptools-whl python-six-whl python-urllib3-whl
mongod-m103: python-wheel
mongod-m103: 0 upgraded, 25 newly installed, 0 to remove and 0 not upgraded.
mongod-m103: Need to get 21.7 MB of archives.
mongod-m103: After this operation, 47.9 MB of additional disk space will be used.
mongod-m103: Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libstdc+±4.8-dev amd64 4.8.4-2ubuntu1~14.04.4 [1,051 kB]
mongod-m103: Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main g+±4.8 amd64 4.8.4-2ubuntu1~14.04.4 [18.0 MB]
mongod-m103: Get:3 http://archive.ubuntu.com/ubuntu/ trusty/main g++ amd64 4:4.8.2-1ubuntu6 [1,490 B]
mongod-m103: Get:4 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libdpkg-perl all 1.17.5ubuntu5.8 [179 kB]
mongod-m103: Get:5 http://archive.ubuntu.com/ubuntu/ trusty-updates/main dpkg-dev all 1.17.5ubuntu5.8 [726 kB]
mongod-m103: Get:6 http://archive.ubuntu.com/ubuntu/ trusty/main build-essential amd64 11.6ubuntu6 [4,838 B]
mongod-m103: Get:7 http://archive.ubuntu.com/ubuntu/ trusty/main libalgorithm-diff-perl all 1.19.02-3 [50.0 kB]
mongod-m103: Get:8 http://archive.ubuntu.com/ubuntu/ trusty/main libalgorithm-diff-xs-perl amd64 0.04-2build4 [12.6 kB]
mongod-m103: Get:9 http://archive.ubuntu.com/ubuntu/ trusty/main libalgorithm-merge-perl all 0.08-2 [12.7 kB]
mongod-m103: Get:10 http://archive.ubuntu.com/ubuntu/ trusty/main libfile-fcntllock-perl amd64 0.14-2build1 [15.9 kB]
mongod-m103: Get:11 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe python-chardet-whl all 2.2.1-2~ubuntu1 [170 kB]
mongod-m103: Get:12 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe python-colorama all 0.2.5-0.1ubuntu2 [18.4 kB]
mongod-m103: Get:13 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe python-colorama-whl all 0.2.5-0.1ubuntu2 [18.2 kB]
mongod-m103: Get:14 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe python-distlib all 0.1.8-1ubuntu1 [113 kB]
mongod-m103: Get:15 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe python-distlib-whl all 0.1.8-1ubuntu1 [140 kB]
mongod-m103: Get:16 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python-html5lib all 0.999-3~ubuntu1 [83.5 kB]
mongod-m103: Get:17 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python-html5lib-whl all 0.999-3~ubuntu1 [109 kB]
mongod-m103: Get:18 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python-six-whl all 1.5.2-1ubuntu1.1 [10.6 kB]
mongod-m103: Get:19 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python-urllib3-whl all 1.7.1-1ubuntu4.1 [63.9 kB]
mongod-m103: Get:20 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python-requests-whl all 2.2.1-1ubuntu0.4 [228 kB]
mongod-m103: Get:21 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python-setuptools-whl all 3.3-1ubuntu2 [244 kB]
mongod-m103: Get:22 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe python-pip-whl all 1.5.4-1ubuntu4 [111 kB]
mongod-m103: Get:23 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python-setuptools all 3.3-1ubuntu2 [230 kB]
mongod-m103: Get:24 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe python-pip all 1.5.4-1ubuntu4 [97.3 kB]
mongod-m103: Get:25 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python-wheel all 0.24.0-1~ubuntu1.1 [44.7 kB]
mongod-m103: dpkg-preconfigure: unable to re-open stdin: No such file or directory
mongod-m103: Fetched 21.7 MB in 1min 57s (184 kB/s)
mongod-m103: Selecting previously unselected package libstdc+±4.8-dev:amd64.
mongod-m103: (Reading database … 63238 files and directories currently installed.)
mongod-m103: Preparing to unpack …/libstdc+±4.8-dev_4.8.4-2ubuntu1~14.04.4_amd64.deb …
mongod-m103: Unpacking libstdc+±4.8-dev:amd64 (4.8.4-2ubuntu1~14.04.4) …
mongod-m103: Selecting previously unselected package g+±4.8.
mongod-m103: Preparing to unpack …/g+±4.8_4.8.4-2ubuntu1~14.04.4_amd64.deb …
mongod-m103: Unpacking g+±4.8 (4.8.4-2ubuntu1~14.04.4) …
mongod-m103: Selecting previously unselected package g++.
mongod-m103: Preparing to unpack …/g++_4%3a4.8.2-1ubuntu6_amd64.deb …
mongod-m103: Unpacking g++ (4:4.8.2-1ubuntu6) …
mongod-m103: Selecting previously unselected package libdpkg-perl.
mongod-m103: Preparing to unpack …/libdpkg-perl_1.17.5ubuntu5.8_all.deb …
mongod-m103: Unpacking libdpkg-perl (1.17.5ubuntu5.8) …
mongod-m103: Selecting previously unselected package dpkg-dev.
mongod-m103: Preparing to unpack …/dpkg-dev_1.17.5ubuntu5.8_all.deb …
mongod-m103: Unpacking dpkg-dev (1.17.5ubuntu5.8) …
mongod-m103: Selecting previously unselected package build-essential.
mongod-m103: Preparing to unpack …/build-essential_11.6ubuntu6_amd64.deb …
mongod-m103: Unpacking build-essential (11.6ubuntu6) …
mongod-m103: Selecting previously unselected package libalgorithm-diff-perl.
mongod-m103: Preparing to unpack …/libalgorithm-diff-perl_1.19.02-3_all.deb …
mongod-m103: Unpacking libalgorithm-diff-perl (1.19.02-3) …
mongod-m103: Selecting previously unselected package libalgorithm-diff-xs-perl.
mongod-m103: Preparing to unpack …/libalgorithm-diff-xs-perl_0.04-2build4_amd64.deb …
mongod-m103: Unpacking libalgorithm-diff-xs-perl (0.04-2build4) …
mongod-m103: Selecting previously unselected package libalgorithm-merge-perl.
mongod-m103: Preparing to unpack …/libalgorithm-merge-perl_0.08-2_all.deb …
mongod-m103: Unpacking libalgorithm-merge-perl (0.08-2) …
mongod-m103: Selecting previously unselected package libfile-fcntllock-perl.
mongod-m103: Preparing to unpack …/libfile-fcntllock-perl_0.14-2build1_amd64.deb …
mongod-m103: Unpacking libfile-fcntllock-perl (0.14-2build1) …
mongod-m103: Selecting previously unselected package python-chardet-whl.
mongod-m103: Preparing to unpack …/python-chardet-whl_2.2.1-2~ubuntu1_all.deb …
mongod-m103: Unpacking python-chardet-whl (2.2.1-2~ubuntu1) …
mongod-m103: Selecting previously unselected package python-colorama.
mongod-m103: Preparing to unpack …/python-colorama_0.2.5-0.1ubuntu2_all.deb …
mongod-m103: Unpacking python-colorama (0.2.5-0.1ubuntu2) …
mongod-m103: Selecting previously unselected package python-colorama-whl.
mongod-m103: Preparing to unpack …/python-colorama-whl_0.2.5-0.1ubuntu2_all.deb …
mongod-m103: Unpacking python-colorama-whl (0.2.5-0.1ubuntu2) …
mongod-m103: Selecting previously unselected package python-distlib.
mongod-m103: Preparing to unpack …/python-distlib_0.1.8-1ubuntu1_all.deb …
mongod-m103: Unpacking python-distlib (0.1.8-1ubuntu1) …
mongod-m103: Selecting previously unselected package python-distlib-whl.
mongod-m103: Preparing to unpack …/python-distlib-whl_0.1.8-1ubuntu1_all.deb …
mongod-m103: Unpacking python-distlib-whl (0.1.8-1ubuntu1) …
mongod-m103: Selecting previously unselected package python-html5lib.
mongod-m103: Preparing to unpack …/python-html5lib_0.999-3~ubuntu1_all.deb …
mongod-m103: Unpacking python-html5lib (0.999-3~ubuntu1) …
mongod-m103: Selecting previously unselected package python-html5lib-whl.
mongod-m103: Preparing to unpack …/python-html5lib-whl_0.999-3~ubuntu1_all.deb …
mongod-m103: Unpacking python-html5lib-whl (0.999-3~ubuntu1) …
mongod-m103: Selecting previously unselected package python-six-whl.
mongod-m103: Preparing to unpack …/python-six-whl_1.5.2-1ubuntu1.1_all.deb …
mongod-m103: Unpacking python-six-whl (1.5.2-1ubuntu1.1) …
mongod-m103: Selecting previously unselected package python-urllib3-whl.
mongod-m103: Preparing to unpack …/python-urllib3-whl_1.7.1-1ubuntu4.1_all.deb …
mongod-m103: Unpacking python-urllib3-whl (1.7.1-1ubuntu4.1) …
mongod-m103: Selecting previously unselected package python-requests-whl.
mongod-m103: Preparing to unpack …/python-requests-whl_2.2.1-1ubuntu0.4_all.deb …
mongod-m103: Unpacking python-requests-whl (2.2.1-1ubuntu0.4) …
mongod-m103: Selecting previously unselected package python-setuptools-whl.
mongod-m103: Preparing to unpack …/python-setuptools-whl_3.3-1ubuntu2_all.deb …
mongod-m103: Unpacking python-setuptools-whl (3.3-1ubuntu2) …
mongod-m103: Selecting previously unselected package python-pip-whl.
mongod-m103: Preparing to unpack …/python-pip-whl_1.5.4-1ubuntu4_all.deb …
mongod-m103: Unpacking python-pip-whl (1.5.4-1ubuntu4) …
mongod-m103: Selecting previously unselected package python-setuptools.
mongod-m103: Preparing to unpack …/python-setuptools_3.3-1ubuntu2_all.deb …
mongod-m103: Unpacking python-setuptools (3.3-1ubuntu2) …
mongod-m103: Selecting previously unselected package python-pip.
mongod-m103: Preparing to unpack …/python-pip_1.5.4-1ubuntu4_all.deb …
mongod-m103: Unpacking python-pip (1.5.4-1ubuntu4) …
mongod-m103: Selecting previously unselected package python-wheel.
mongod-m103: Preparing to unpack …/python-wheel_0.24.0-1~ubuntu1.1_all.deb …
mongod-m103: Unpacking python-wheel (0.24.0-1~ubuntu1.1) …
mongod-m103: Processing triggers for man-db (2.6.7.1-1ubuntu1) …
mongod-m103: Setting up libstdc+±4.8-dev:amd64 (4.8.4-2ubuntu1~14.04.4) …
mongod-m103: Setting up g+±4.8 (4.8.4-2ubuntu1~14.04.4) …
mongod-m103: Setting up g++ (4:4.8.2-1ubuntu6) …
mongod-m103: update-alternatives:
mongod-m103: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
mongod-m103: Setting up libdpkg-perl (1.17.5ubuntu5.8) …
mongod-m103: Setting up dpkg-dev (1.17.5ubuntu5.8) …
mongod-m103: Setting up build-essential (11.6ubuntu6) …
mongod-m103: Setting up libalgorithm-diff-perl (1.19.02-3) …
mongod-m103: Setting up libalgorithm-diff-xs-perl (0.04-2build4) …
mongod-m103: Setting up libalgorithm-merge-perl (0.08-2) …
mongod-m103: Setting up libfile-fcntllock-perl (0.14-2build1) …
mongod-m103: Setting up python-chardet-whl (2.2.1-2~ubuntu1) …
mongod-m103: Setting up python-colorama (0.2.5-0.1ubuntu2) …
mongod-m103: Setting up python-colorama-whl (0.2.5-0.1ubuntu2) …
mongod-m103: Setting up python-distlib (0.1.8-1ubuntu1) …
mongod-m103: Setting up python-distlib-whl (0.1.8-1ubuntu1) …
mongod-m103: Setting up python-html5lib (0.999-3~ubuntu1) …
mongod-m103: Setting up python-html5lib-whl (0.999-3~ubuntu1) …
mongod-m103: Setting up python-six-whl (1.5.2-1ubuntu1.1) …
mongod-m103: Setting up python-urllib3-whl (1.7.1-1ubuntu4.1) …
mongod-m103: Setting up python-requests-whl (2.2.1-1ubuntu0.4) …
mongod-m103: Setting up python-setuptools-whl (3.3-1ubuntu2) …
mongod-m103: Setting up python-pip-whl (1.5.4-1ubuntu4) …
mongod-m103: Setting up python-setuptools (3.3-1ubuntu2) …
mongod-m103: Setting up python-pip (1.5.4-1ubuntu4) …
mongod-m103: Setting up python-wheel (0.24.0-1~ubuntu1.1) …
mongod-m103: + sudo pip install pymongo
mongod-m103: Downloading/unpacking pymongo
mongod-m103: Cannot fetch index base URL https://pypi.python.org/simple/
mongod-m103: Could not find any downloads that satisfy the requirement pymongo
mongod-m103: Cleaning up…
mongod-m103: No distributions at all found for pymongo
mongod-m103: Storing debug log for failure in /root/.pip/pip.log
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

Hi Shubham,

Me too had Vagrant up provision fails but NOT during MONGOD install steps…Failed during Python-pip installs. See error attached below and kindly provide a solution-

mongod-m103: The following NEW packages will be installed:
mongod-m103: build-essential dpkg-dev g++ g+±4.8 libalgorithm-diff-perl
mongod-m103: libalgorithm-diff-xs-perl libalgorithm-merge-perl libdpkg-perl
mongod-m103: libfile-fcntllock-perl libstdc+±4.8-dev python-chardet-whl python-colorama
mongod-m103: python-colorama-whl python-distlib python-distlib-whl python-html5lib
mongod-m103: python-html5lib-whl python-pip python-pip-whl python-requests-whl
mongod-m103: python-setuptools python-setuptools-whl python-six-whl python-urllib3-whl
mongod-m103: python-wheel
mongod-m103: 0 upgraded, 25 newly installed, 0 to remove and 0 not upgraded.
mongod-m103: Need to get 21.7 MB of archives.
mongod-m103: After this operation, 47.9 MB of additional disk space will be used.
mongod-m103: Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libstdc+±4.8-dev amd64 4.8.4-2ubuntu1~14.04.4 [1,051 kB]
mongod-m103: Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main g+±4.8 amd64 4.8.4-2ubuntu1~14.04.4 [18.0 MB]
mongod-m103: Get:3 http://archive.ubuntu.com/ubuntu/ trusty/main g++ amd64 4:4.8.2-1ubuntu6 [1,490 B]
mongod-m103: Get:4 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libdpkg-perl all 1.17.5ubuntu5.8 [179 kB]
mongod-m103: Get:5 http://archive.ubuntu.com/ubuntu/ trusty-updates/main dpkg-dev all 1.17.5ubuntu5.8 [726 kB]
mongod-m103: Get:6 http://archive.ubuntu.com/ubuntu/ trusty/main build-essential amd64 11.6ubuntu6 [4,838 B]
mongod-m103: Get:7 http://archive.ubuntu.com/ubuntu/ trusty/main libalgorithm-diff-perl all 1.19.02-3 [50.0 kB]
mongod-m103: Get:8 http://archive.ubuntu.com/ubuntu/ trusty/main libalgorithm-diff-xs-perl amd64 0.04-2build4 [12.6 kB]
mongod-m103: Get:9 http://archive.ubuntu.com/ubuntu/ trusty/main libalgorithm-merge-perl all 0.08-2 [12.7 kB]
mongod-m103: Get:10 http://archive.ubuntu.com/ubuntu/ trusty/main libfile-fcntllock-perl amd64 0.14-2build1 [15.9 kB]
mongod-m103: Get:11 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe python-chardet-whl all 2.2.1-2~ubuntu1 [170 kB]
mongod-m103: Get:12 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe python-colorama all 0.2.5-0.1ubuntu2 [18.4 kB]
mongod-m103: Get:13 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe python-colorama-whl all 0.2.5-0.1ubuntu2 [18.2 kB]
mongod-m103: Get:14 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe python-distlib all 0.1.8-1ubuntu1 [113 kB]
mongod-m103: Get:15 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe python-distlib-whl all 0.1.8-1ubuntu1 [140 kB]
mongod-m103: Get:16 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python-html5lib all 0.999-3~ubuntu1 [83.5 kB]
mongod-m103: Get:17 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python-html5lib-whl all 0.999-3~ubuntu1 [109 kB]
mongod-m103: Get:18 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python-six-whl all 1.5.2-1ubuntu1.1 [10.6 kB]
mongod-m103: Get:19 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python-urllib3-whl all 1.7.1-1ubuntu4.1 [63.9 kB]
mongod-m103: Get:20 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python-requests-whl all 2.2.1-1ubuntu0.4 [228 kB]
mongod-m103: Get:21 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python-setuptools-whl all 3.3-1ubuntu2 [244 kB]
mongod-m103: Get:22 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe python-pip-whl all 1.5.4-1ubuntu4 [111 kB]
mongod-m103: Get:23 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python-setuptools all 3.3-1ubuntu2 [230 kB]
mongod-m103: Err http://archive.ubuntu.com/ubuntu/ trusty-updates/universe python-pip all 1.5.4-1ubuntu4
mongod-m103: 502 Server Hangup [IP: 91.189.88.173 80]
mongod-m103: Get:24 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python-wheel all 0.24.0-1~ubuntu1.1 [44.7 kB]
mongod-m103: Fetched 21.6 MB in 1min 52s (193 kB/s)
mongod-m103: E
mongod-m103: :
mongod-m103: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/p/python-pip/python-pip_1.5.4-1ubuntu4_all.deb 502 Server Hangup [IP: 91.189.88.173 80]
mongod-m103: E
mongod-m103: :
mongod-m103: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

Thanks,
Sunder

1 Like

hi,

Sorry to bother you all…i just tried to RE-RUN vagrant provision cmd again one more time and it worked finally…thanks…may be other can also give a try…

C:\Users\HP\m103\m103-vagrant-env>vagrant provision
==> mongod-m103: Running provisioner: shell…
mongod-m103: Running: C:/Users/HP/AppData/Local/Temp/vagrant-shell20191127-2976-9v5r8c
mongod-m103: + config
mongod-m103: + sudo su
mongod-m103: + echo -e never
mongod-m103: + echo -e never
mongod-m103: + echo manual
mongod-m103: + sudo tee /etc/init/mongod.override
mongod-m103: manual
mongod-m103: + ip_config
mongod-m103: ++ ifconfig
mongod-m103: ++ tail -1
mongod-m103: ++ awk ‘{ print 1}' mongod-m103: ++ cut -d: -f2 mongod-m103: ++ grep -v 127.0.0.1 mongod-m103: ++ grep 'inet addr:' mongod-m103: + export CLIENT_IP_ADDR=192.168.103.100 mongod-m103: + CLIENT_IP_ADDR=192.168.103.100 mongod-m103: ++ hostname mongod-m103: + export CLIENT_FQDN=m103 mongod-m103: + CLIENT_FQDN=m103 mongod-m103: ++ hostname mongod-m103: ++ cut -d. -f 1 mongod-m103: ++ tr '[:upper:]' '[:lower:]' mongod-m103: + export CLIENT_NAME=m103 mongod-m103: + CLIENT_NAME=m103 mongod-m103: + echo 'Configuring /etc/hosts ...' mongod-m103: Configuring /etc/hosts ... mongod-m103: + echo '127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ' mongod-m103: + echo '::1 localhost localhost.localdomain localhost6 localhost6.localdomain6' mongod-m103: + echo 'fe00::0 ip6-localnet' mongod-m103: + echo 'ff00::0 ip6-mcastprefix' mongod-m103: + echo 'ff02::1 ip6-allnodes' mongod-m103: + echo 'ff02::2 ip6-allrouters' mongod-m103: + echo 'ff02::3 ip6-allhosts' mongod-m103: + echo '192.168.103.100 m103 m103' mongod-m103: + update_repo mongod-m103: + echo 'Install MongoDB Enterprise Repository' mongod-m103: Install MongoDB Enterprise Repository mongod-m103: + echo 'deb [ arch=amd64 ] http://repo.mongodb.com/apt/ubuntu trusty/mongodb-enterprise/3.6 multiverse' mongod-m103: + sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list mongod-m103: deb [ arch=amd64 ] http://repo.mongodb.com/apt/ubuntu trusty/mongodb-enterprise/3.6 multiverse mongod-m103: + sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 0C49F3730359A14518585931BC711F9BA15703C6 mongod-m103: Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.3Y6AGYmdNV --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d/ubuntu-advantage-esm-infra-trusty.gpg --keyserver keyserver.ubuntu.com --recv 0C49F3730359A14518585931BC711F9BA15703C6 mongod-m103: gpg: mongod-m103: requesting key A15703C6 from hkp server keyserver.ubuntu.com mongod-m103: gpg: mongod-m103: key A15703C6: "MongoDB 3.4 Release Signing Key <packaging@mongodb.com>" not changed mongod-m103: gpg: mongod-m103: Total number processed: 1 mongod-m103: gpg: mongod-m103: unchanged: 1 mongod-m103: + echo 'Update Repositories' mongod-m103: Update Repositories mongod-m103: + sudo apt-get update -y mongod-m103: Ign http://archive.ubuntu.com trusty InRelease mongod-m103: Hit http://archive.ubuntu.com trusty-updates InRelease mongod-m103: Hit http://security.ubuntu.com trusty-security InRelease mongod-m103: Hit http://archive.ubuntu.com trusty-backports InRelease mongod-m103: Ign http://repo.mongodb.com trusty/mongodb-enterprise/3.6 InRelease mongod-m103: Hit http://archive.ubuntu.com trusty Release.gpg mongod-m103: Get:1 http://repo.mongodb.com trusty/mongodb-enterprise/3.6 Release.gpg [801 B] mongod-m103: Hit http://security.ubuntu.com trusty-security/main Sources mongod-m103: Get:2 https://esm.ubuntu.com trusty-infra-security InRelease mongod-m103: Hit http://repo.mongodb.com trusty/mongodb-enterprise/3.6 Release mongod-m103: Ign http://repo.mongodb.com trusty/mongodb-enterprise/3.6 Release mongod-m103: Get:3 https://esm.ubuntu.com trusty-infra-updates InRelease mongod-m103: Hit http://archive.ubuntu.com trusty-updates/main Sources mongod-m103: Ign http://repo.mongodb.com trusty/mongodb-enterprise/3.6/multiverse amd64 Packages/DiffIndex mongod-m103: Hit https://esm.ubuntu.com trusty-infra-security/main amd64 Packages mongod-m103: Hit http://security.ubuntu.com trusty-security/universe Sources mongod-m103: Hit http://archive.ubuntu.com trusty-updates/restricted Sources mongod-m103: Get:4 https://esm.ubuntu.com trusty-infra-security/main Translation-en_US mongod-m103: Hit http://archive.ubuntu.com trusty-updates/universe Sources mongod-m103: Hit https://esm.ubuntu.com trusty-infra-updates/main amd64 Packages mongod-m103: Hit http://security.ubuntu.com trusty-security/main amd64 Packages mongod-m103: Get:5 https://esm.ubuntu.com trusty-infra-updates/main Translation-en_US mongod-m103: Hit http://archive.ubuntu.com trusty-updates/multiverse Sources mongod-m103: Hit http://security.ubuntu.com trusty-security/universe amd64 Packages mongod-m103: Hit http://archive.ubuntu.com trusty-updates/main amd64 Packages mongod-m103: Hit http://security.ubuntu.com trusty-security/main Translation-en mongod-m103: Hit http://archive.ubuntu.com trusty-updates/restricted amd64 Packages mongod-m103: Hit http://security.ubuntu.com trusty-security/universe Translation-en mongod-m103: Hit http://archive.ubuntu.com trusty-updates/universe amd64 Packages mongod-m103: Hit http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages mongod-m103: Hit http://archive.ubuntu.com trusty-updates/main Translation-en mongod-m103: Hit http://archive.ubuntu.com trusty-updates/multiverse Translation-en mongod-m103: Hit http://archive.ubuntu.com trusty-updates/restricted Translation-en mongod-m103: Ign https://esm.ubuntu.com trusty-infra-security/main Translation-en_US mongod-m103: Hit http://archive.ubuntu.com trusty-updates/universe Translation-en mongod-m103: Ign https://esm.ubuntu.com trusty-infra-security/main Translation-en mongod-m103: Ign https://esm.ubuntu.com trusty-infra-updates/main Translation-en_US mongod-m103: Hit http://archive.ubuntu.com trusty-backports/main Sources mongod-m103: Hit http://repo.mongodb.com trusty/mongodb-enterprise/3.6/multiverse amd64 Packages mongod-m103: Ign https://esm.ubuntu.com trusty-infra-updates/main Translation-en mongod-m103: Hit http://archive.ubuntu.com trusty-backports/restricted Sources mongod-m103: Ign http://repo.mongodb.com trusty/mongodb-enterprise/3.6/multiverse Translation-en_US mongod-m103: Ign http://repo.mongodb.com trusty/mongodb-enterprise/3.6/multiverse Translation-en mongod-m103: Hit http://archive.ubuntu.com trusty-backports/universe Sources mongod-m103: Hit http://archive.ubuntu.com trusty-backports/multiverse Sources mongod-m103: Hit http://archive.ubuntu.com trusty-backports/main amd64 Packages mongod-m103: Hit http://archive.ubuntu.com trusty-backports/restricted amd64 Packages mongod-m103: Hit http://archive.ubuntu.com trusty-backports/universe amd64 Packages mongod-m103: Hit http://archive.ubuntu.com trusty-backports/multiverse amd64 Packages mongod-m103: Hit http://archive.ubuntu.com trusty-backports/main Translation-en mongod-m103: Hit http://archive.ubuntu.com trusty-backports/multiverse Translation-en mongod-m103: Hit http://archive.ubuntu.com trusty-backports/restricted Translation-en mongod-m103: Hit http://archive.ubuntu.com trusty-backports/universe Translation-en mongod-m103: Hit http://archive.ubuntu.com trusty Release mongod-m103: Hit http://archive.ubuntu.com trusty/main Sources mongod-m103: Hit http://archive.ubuntu.com trusty/restricted Sources mongod-m103: Hit http://archive.ubuntu.com trusty/universe Sources mongod-m103: Hit http://archive.ubuntu.com trusty/multiverse Sources mongod-m103: Hit http://archive.ubuntu.com trusty/main amd64 Packages mongod-m103: Hit http://archive.ubuntu.com trusty/restricted amd64 Packages mongod-m103: Hit http://archive.ubuntu.com trusty/universe amd64 Packages mongod-m103: Hit http://archive.ubuntu.com trusty/multiverse amd64 Packages mongod-m103: Hit http://archive.ubuntu.com trusty/main Translation-en mongod-m103: Hit http://archive.ubuntu.com trusty/multiverse Translation-en mongod-m103: Hit http://archive.ubuntu.com trusty/restricted Translation-en mongod-m103: Hit http://archive.ubuntu.com trusty/universe Translation-en mongod-m103: Ign http://archive.ubuntu.com trusty/main Translation-en_US mongod-m103: Ign http://archive.ubuntu.com trusty/multiverse Translation-en_US mongod-m103: Ign http://archive.ubuntu.com trusty/restricted Translation-en_US mongod-m103: Ign http://archive.ubuntu.com trusty/universe Translation-en_US mongod-m103: Fetched 15.7 kB in 18s (834 B/s) mongod-m103: Reading package lists... mongod-m103: W mongod-m103: : mongod-m103: GPG error: http://repo.mongodb.com trusty/mongodb-enterprise/3.6 Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 58712A2291FA4AD5 mongod-m103: + echo 'Installing MongoDB Enterprise Dependencies' mongod-m103: Installing MongoDB Enterprise Dependencies mongod-m103: + sudo apt-get install -y libgssapi-krb5-2 libsasl2-2 libssl1.0.0 libstdc++6 snmp mongod-m103: Reading package lists... mongod-m103: Building dependency tree... mongod-m103: Reading state information... mongod-m103: libsasl2-2 is already the newest version. mongod-m103: libgssapi-krb5-2 is already the newest version. mongod-m103: libssl1.0.0 is already the newest version. mongod-m103: libstdc++6 is already the newest version. mongod-m103: snmp is already the newest version. mongod-m103: 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. mongod-m103: + install_mongod mongod-m103: + echo 'Install MongoDB Enterprise' mongod-m103: Install MongoDB Enterprise mongod-m103: + sudo apt-get install --force-yes -y mongodb-enterprise mongod-m103: Reading package lists... mongod-m103: Building dependency tree... mongod-m103: Reading state information... mongod-m103: mongodb-enterprise is already the newest version. mongod-m103: 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. mongod-m103: + mkdir -p /var/log/mongodb/ mongod-m103: + sudo chown vagrant:vagrant -R /var/log/mongodb mongod-m103: + sudo chown vagrant:vagrant -R /var/lib/mongodb mongod-m103: + sudo echo ' mongod-m103: security: mongod-m103: + sudo tee -a /etc/mongod.conf mongod-m103: authorization: enabled' mongod-m103: mongod-m103: security: mongod-m103: authorization: enabled mongod-m103: + echo 'Done installing MongoDB Enterprise' mongod-m103: Done installing MongoDB Enterprise mongod-m103: + user_setup mongod-m103: + sudo sh -c 'killall mongod; true' mongod-m103: mongod: no process found mongod-m103: + sudo mkdir -p /data mongod-m103: + sudo chmod -R 777 /data mongod-m103: + mkdir -p /data/db mongod-m103: + mkdir -p /home/vagrant/data mongod-m103: + chmod -R 777 /home/vagrant/data mongod-m103: + chown -R vagrant:vagrant /home/vagrant/data mongod-m103: + mkdir -p /var/m103/validation mongod-m103: + echo 'Set LC_ALL=C to .profile' mongod-m103: Set LC_ALL=C to .profile mongod-m103: + sudo echo 'export LC_ALL=C' mongod-m103: + sudo echo PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/var/m103/validation mongod-m103: + data_path mongod-m103: + sudo mkdir -p /data mongod-m103: + sudo chown -R vagrant:vagrant /data mongod-m103: + install_pymongo mongod-m103: + sudo apt-get -y install python-pip mongod-m103: Reading package lists... mongod-m103: Building dependency tree... mongod-m103: Reading state information... mongod-m103: The following extra packages will be installed: mongod-m103: build-essential dpkg-dev g++ g++-4.8 libalgorithm-diff-perl mongod-m103: libalgorithm-diff-xs-perl libalgorithm-merge-perl libdpkg-perl mongod-m103: libfile-fcntllock-perl libstdc++-4.8-dev python-chardet-whl python-colorama mongod-m103: python-colorama-whl python-distlib python-distlib-whl python-html5lib mongod-m103: python-html5lib-whl python-pip-whl python-requests-whl python-setuptools mongod-m103: python-setuptools-whl python-six-whl python-urllib3-whl python-wheel mongod-m103: Suggested packages: mongod-m103: debian-keyring g++-multilib g++-4.8-multilib gcc-4.8-doc libstdc++6-4.8-dbg mongod-m103: libstdc++-4.8-doc python-genshi python-lxml mongod-m103: Recommended packages: mongod-m103: python-dev-all mongod-m103: The following NEW packages will be installed: mongod-m103: build-essential dpkg-dev g++ g++-4.8 libalgorithm-diff-perl mongod-m103: libalgorithm-diff-xs-perl libalgorithm-merge-perl libdpkg-perl mongod-m103: libfile-fcntllock-perl libstdc++-4.8-dev python-chardet-whl python-colorama mongod-m103: python-colorama-whl python-distlib python-distlib-whl python-html5lib mongod-m103: python-html5lib-whl python-pip python-pip-whl python-requests-whl mongod-m103: python-setuptools python-setuptools-whl python-six-whl python-urllib3-whl mongod-m103: python-wheel mongod-m103: 0 upgraded, 25 newly installed, 0 to remove and 0 not upgraded. mongod-m103: Need to get 97.3 kB/21.7 MB of archives. mongod-m103: After this operation, 47.9 MB of additional disk space will be used. mongod-m103: Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe python-pip all 1.5.4-1ubuntu4 [97.3 kB] mongod-m103: dpkg-preconfigure: unable to re-open stdin: No such file or directory mongod-m103: Fetched 97.3 kB in 1s (73.6 kB/s) mongod-m103: Selecting previously unselected package libstdc++-4.8-dev:amd64. mongod-m103: (Reading database ... 63489 files and directories currently installed.) mongod-m103: Preparing to unpack .../libstdc++-4.8-dev_4.8.4-2ubuntu1~14.04.4_amd64.deb ... mongod-m103: Unpacking libstdc++-4.8-dev:amd64 (4.8.4-2ubuntu1~14.04.4) ... mongod-m103: Selecting previously unselected package g++-4.8. mongod-m103: Preparing to unpack .../g++-4.8_4.8.4-2ubuntu1~14.04.4_amd64.deb ... mongod-m103: Unpacking g++-4.8 (4.8.4-2ubuntu1~14.04.4) ... mongod-m103: Selecting previously unselected package g++. mongod-m103: Preparing to unpack .../g++_4%3a4.8.2-1ubuntu6_amd64.deb ... mongod-m103: Unpacking g++ (4:4.8.2-1ubuntu6) ... mongod-m103: Selecting previously unselected package libdpkg-perl. mongod-m103: Preparing to unpack .../libdpkg-perl_1.17.5ubuntu5.8_all.deb ... mongod-m103: Unpacking libdpkg-perl (1.17.5ubuntu5.8) ... mongod-m103: Selecting previously unselected package dpkg-dev. mongod-m103: Preparing to unpack .../dpkg-dev_1.17.5ubuntu5.8_all.deb ... mongod-m103: Unpacking dpkg-dev (1.17.5ubuntu5.8) ... mongod-m103: Selecting previously unselected package build-essential. mongod-m103: Preparing to unpack .../build-essential_11.6ubuntu6_amd64.deb ... mongod-m103: Unpacking build-essential (11.6ubuntu6) ... mongod-m103: Selecting previously unselected package libalgorithm-diff-perl. mongod-m103: Preparing to unpack .../libalgorithm-diff-perl_1.19.02-3_all.deb ... mongod-m103: Unpacking libalgorithm-diff-perl (1.19.02-3) ... mongod-m103: Selecting previously unselected package libalgorithm-diff-xs-perl. mongod-m103: Preparing to unpack .../libalgorithm-diff-xs-perl_0.04-2build4_amd64.deb ... mongod-m103: Unpacking libalgorithm-diff-xs-perl (0.04-2build4) ... mongod-m103: Selecting previously unselected package libalgorithm-merge-perl. mongod-m103: Preparing to unpack .../libalgorithm-merge-perl_0.08-2_all.deb ... mongod-m103: Unpacking libalgorithm-merge-perl (0.08-2) ... mongod-m103: Selecting previously unselected package libfile-fcntllock-perl. mongod-m103: Preparing to unpack .../libfile-fcntllock-perl_0.14-2build1_amd64.deb ... mongod-m103: Unpacking libfile-fcntllock-perl (0.14-2build1) ... mongod-m103: Selecting previously unselected package python-chardet-whl. mongod-m103: Preparing to unpack .../python-chardet-whl_2.2.1-2~ubuntu1_all.deb ... mongod-m103: Unpacking python-chardet-whl (2.2.1-2~ubuntu1) ... mongod-m103: Selecting previously unselected package python-colorama. mongod-m103: Preparing to unpack .../python-colorama_0.2.5-0.1ubuntu2_all.deb ... mongod-m103: Unpacking python-colorama (0.2.5-0.1ubuntu2) ... mongod-m103: Selecting previously unselected package python-colorama-whl. mongod-m103: Preparing to unpack .../python-colorama-whl_0.2.5-0.1ubuntu2_all.deb ... mongod-m103: Unpacking python-colorama-whl (0.2.5-0.1ubuntu2) ... mongod-m103: Selecting previously unselected package python-distlib. mongod-m103: Preparing to unpack .../python-distlib_0.1.8-1ubuntu1_all.deb ... mongod-m103: Unpacking python-distlib (0.1.8-1ubuntu1) ... mongod-m103: Selecting previously unselected package python-distlib-whl. mongod-m103: Preparing to unpack .../python-distlib-whl_0.1.8-1ubuntu1_all.deb ... mongod-m103: Unpacking python-distlib-whl (0.1.8-1ubuntu1) ... mongod-m103: Selecting previously unselected package python-html5lib. mongod-m103: Preparing to unpack .../python-html5lib_0.999-3~ubuntu1_all.deb ... mongod-m103: Unpacking python-html5lib (0.999-3~ubuntu1) ... mongod-m103: Selecting previously unselected package python-html5lib-whl. mongod-m103: Preparing to unpack .../python-html5lib-whl_0.999-3~ubuntu1_all.deb ... mongod-m103: Unpacking python-html5lib-whl (0.999-3~ubuntu1) ... mongod-m103: Selecting previously unselected package python-six-whl. mongod-m103: Preparing to unpack .../python-six-whl_1.5.2-1ubuntu1.1_all.deb ... mongod-m103: Unpacking python-six-whl (1.5.2-1ubuntu1.1) ... mongod-m103: Selecting previously unselected package python-urllib3-whl. mongod-m103: Preparing to unpack .../python-urllib3-whl_1.7.1-1ubuntu4.1_all.deb ... mongod-m103: Unpacking python-urllib3-whl (1.7.1-1ubuntu4.1) ... mongod-m103: Selecting previously unselected package python-requests-whl. mongod-m103: Preparing to unpack .../python-requests-whl_2.2.1-1ubuntu0.4_all.deb ... mongod-m103: Unpacking python-requests-whl (2.2.1-1ubuntu0.4) ... mongod-m103: Selecting previously unselected package python-setuptools-whl. mongod-m103: Preparing to unpack .../python-setuptools-whl_3.3-1ubuntu2_all.deb ... mongod-m103: Unpacking python-setuptools-whl (3.3-1ubuntu2) ... mongod-m103: Selecting previously unselected package python-pip-whl. mongod-m103: Preparing to unpack .../python-pip-whl_1.5.4-1ubuntu4_all.deb ... mongod-m103: Unpacking python-pip-whl (1.5.4-1ubuntu4) ... mongod-m103: Selecting previously unselected package python-setuptools. mongod-m103: Preparing to unpack .../python-setuptools_3.3-1ubuntu2_all.deb ... mongod-m103: Unpacking python-setuptools (3.3-1ubuntu2) ... mongod-m103: Selecting previously unselected package python-pip. mongod-m103: Preparing to unpack .../python-pip_1.5.4-1ubuntu4_all.deb ... mongod-m103: Unpacking python-pip (1.5.4-1ubuntu4) ... mongod-m103: Selecting previously unselected package python-wheel. mongod-m103: Preparing to unpack .../python-wheel_0.24.0-1~ubuntu1.1_all.deb ... mongod-m103: Unpacking python-wheel (0.24.0-1~ubuntu1.1) ... mongod-m103: Processing triggers for man-db (2.6.7.1-1ubuntu1) ... mongod-m103: Setting up libstdc++-4.8-dev:amd64 (4.8.4-2ubuntu1~14.04.4) ... mongod-m103: Setting up g++-4.8 (4.8.4-2ubuntu1~14.04.4) ... mongod-m103: Setting up g++ (4:4.8.2-1ubuntu6) ... mongod-m103: update-alternatives: mongod-m103: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode mongod-m103: Setting up libdpkg-perl (1.17.5ubuntu5.8) ... mongod-m103: Setting up dpkg-dev (1.17.5ubuntu5.8) ... mongod-m103: Setting up build-essential (11.6ubuntu6) ... mongod-m103: Setting up libalgorithm-diff-perl (1.19.02-3) ... mongod-m103: Setting up libalgorithm-diff-xs-perl (0.04-2build4) ... mongod-m103: Setting up libalgorithm-merge-perl (0.08-2) ... mongod-m103: Setting up libfile-fcntllock-perl (0.14-2build1) ... mongod-m103: Setting up python-chardet-whl (2.2.1-2~ubuntu1) ... mongod-m103: Setting up python-colorama (0.2.5-0.1ubuntu2) ... mongod-m103: Setting up python-colorama-whl (0.2.5-0.1ubuntu2) ... mongod-m103: Setting up python-distlib (0.1.8-1ubuntu1) ... mongod-m103: Setting up python-distlib-whl (0.1.8-1ubuntu1) ... mongod-m103: Setting up python-html5lib (0.999-3~ubuntu1) ... mongod-m103: Setting up python-html5lib-whl (0.999-3~ubuntu1) ... mongod-m103: Setting up python-six-whl (1.5.2-1ubuntu1.1) ... mongod-m103: Setting up python-urllib3-whl (1.7.1-1ubuntu4.1) ... mongod-m103: Setting up python-requests-whl (2.2.1-1ubuntu0.4) ... mongod-m103: Setting up python-setuptools-whl (3.3-1ubuntu2) ... mongod-m103: Setting up python-pip-whl (1.5.4-1ubuntu4) ... mongod-m103: Setting up python-setuptools (3.3-1ubuntu2) ... mongod-m103: Setting up python-pip (1.5.4-1ubuntu4) ... mongod-m103: Setting up python-wheel (0.24.0-1~ubuntu1.1) ... mongod-m103: + sudo pip install pymongo mongod-m103: Downloading/unpacking pymongo mongod-m103: Running setup.py (path:/tmp/pip_build_root/pymongo/setup.py) egg_info for package pymongo mongod-m103: /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires' mongod-m103: warnings.warn(msg) mongod-m103: mongod-m103: Installing collected packages: pymongo mongod-m103: Running setup.py install for pymongo mongod-m103: /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires' mongod-m103: warnings.warn(msg) mongod-m103: building 'bson._cbson' extension mongod-m103: x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Ibson -I/usr/include/python2.7 -c bson/_cbsonmodule.c -o build/temp.linux-x86_64-2.7/bson/_cbsonmodule.o mongod-m103: bson/_cbsonmodule.c:23:20: fatal error: Python.h: No such file or directory mongod-m103: #include "Python.h" mongod-m103: ^ mongod-m103: compilation terminated. mongod-m103: /tmp/pip_build_root/pymongo/setup.py:304: UserWarning: mongod-m103: ******************************************************************** mongod-m103: WARNING: The bson._cbson extension module could not mongod-m103: be compiled. No C extensions are essential for PyMongo to run, mongod-m103: although they do result in significant speed improvements. mongod-m103: The output above this warning shows how the compilation failed. mongod-m103: mongod-m103: Please see the installation docs for solutions to build issues: mongod-m103: mongod-m103: http://api.mongodb.org/python/current/installation.html mongod-m103: mongod-m103: Here are some hints for popular operating systems: mongod-m103: mongod-m103: If you are seeing this message on Linux you probably need to mongod-m103: install GCC and/or the Python development package for your mongod-m103: version of Python. mongod-m103: mongod-m103: Debian and Ubuntu users should issue the following command: mongod-m103: mongod-m103: sudo apt-get install build-essential python-dev
mongod-m103:
mongod-m103: Users of Red Hat based distributions (RHEL, CentOS, Amazon Linux,
mongod-m103: Oracle Linux, Fedora, etc.) should issue the following command:
mongod-m103:
mongod-m103: sudo yum install gcc python-devel mongod-m103: mongod-m103: If you are seeing this message on Microsoft Windows please install mongod-m103: PyMongo using pip. Modern versions of pip will install PyMongo mongod-m103: from binary wheels available on pypi. If you must install from mongod-m103: source read the documentation here: mongod-m103: mongod-m103: https://api.mongodb.com/python/current/installation.html#installing-from-source-on-windows mongod-m103: mongod-m103: If you are seeing this message on macOS / OSX please install PyMongo mongod-m103: using pip. Modern versions of pip will install PyMongo from binary mongod-m103: wheels available on pypi. If wheels are not available for your version mongod-m103: of macOS / OSX, or you must install from source read the documentation mongod-m103: here: mongod-m103: mongod-m103: http://api.mongodb.org/python/current/installation.html#osx mongod-m103: ******************************************************************** mongod-m103: mongod-m103: "The output above " mongod-m103: command 'x86_64-linux-gnu-gcc' failed with exit status 1 mongod-m103: building 'pymongo._cmessage' extension mongod-m103: x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Ibson -I/usr/include/python2.7 -c pymongo/_cmessagemodule.c -o build/temp.linux-x86_64-2.7/pymongo/_cmessagemodule.o mongod-m103: pymongo/_cmessagemodule.c:23:20: fatal error: Python.h: No such file or directory mongod-m103: #include "Python.h" mongod-m103: ^ mongod-m103: compilation terminated. mongod-m103: /tmp/pip_build_root/pymongo/setup.py:304: UserWarning: mongod-m103: ******************************************************************** mongod-m103: WARNING: The pymongo._cmessage extension module could not mongod-m103: be compiled. No C extensions are essential for PyMongo to run, mongod-m103: although they do result in significant speed improvements. mongod-m103: The output above this warning shows how the compilation failed. mongod-m103: mongod-m103: Please see the installation docs for solutions to build issues: mongod-m103: mongod-m103: http://api.mongodb.org/python/current/installation.html mongod-m103: mongod-m103: Here are some hints for popular operating systems: mongod-m103: mongod-m103: If you are seeing this message on Linux you probably need to mongod-m103: install GCC and/or the Python development package for your mongod-m103: version of Python. mongod-m103: mongod-m103: Debian and Ubuntu users should issue the following command: mongod-m103: mongod-m103: sudo apt-get install build-essential python-dev
mongod-m103:
mongod-m103: Users of Red Hat based distributions (RHEL, CentOS, Amazon Linux,
mongod-m103: Oracle Linux, Fedora, etc.) should issue the following command:
mongod-m103:
mongod-m103: $ sudo yum install gcc python-devel
mongod-m103:
mongod-m103: If you are seeing this message on Microsoft Windows please install
mongod-m103: PyMongo using pip. Modern versions of pip will install PyMongo
mongod-m103: from binary wheels available on pypi. If you must install from
mongod-m103: source read the documentation here:
mongod-m103:
mongod-m103: https://api.mongodb.com/python/current/installation.html#installing-from-source-on-windows
mongod-m103:
mongod-m103: If you are seeing this message on macOS / OSX please install PyMongo
mongod-m103: using pip. Modern versions of pip will install PyMongo from binary
mongod-m103: wheels available on pypi. If wheels are not available for your version
mongod-m103: of macOS / OSX, or you must install from source read the documentation
mongod-m103: here:
mongod-m103:
mongod-m103: http://api.mongodb.org/python/current/installation.html#osx
mongod-m103: ********************************************************************
mongod-m103:
mongod-m103: "The output above "
mongod-m103: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1
mongod-m103:
mongod-m103: Successfully installed pymongo
mongod-m103: Cleaning up…
mongod-m103: + download_dataset
mongod-m103: + echo ‘Downloading Dataset’
mongod-m103: Downloading Dataset
mongod-m103: + curl -s https://s3.amazonaws.com/edu-static.mongodb.com/lessons/M103/products.json.tgz -o products.json.tgz
mongod-m103: + tar -xzvf products.json.tgz -C /dataset
mongod-m103: products.json
mongod-m103: + rm -rf products.json.tgz
mongod-m103: + curl -s https://s3.amazonaws.com/edu-static.mongodb.com/lessons/M103/products.part2.json.tgz -o products.part2.json.tgz
mongod-m103: + tar -xzvf products.part2.json.tgz -C /dataset
mongod-m103: products.part2.json
mongod-m103: + rm -rf products.part2.json.tgz
mongod-m103: + download_validators
mongod-m103: + echo ‘Downloading Validation Scripts’
mongod-m103: Downloading Validation Scripts
mongod-m103: + curl -s https://s3.amazonaws.com/edu-static.mongodb.com/lessons/M103/m103_validation.tgz -o m103_validation.tgz
mongod-m103: sudo tar -xzvf m103_validation.tgz -C /var/m103/validation
mongod-m103: rm -rf m103_validation.tgz’
mongod-m103: + echo ‘#!/bin/bash
mongod-m103: echo -n ‘’‘m103 rocks’’’ | openssl sha256 | sed -e s/(stdin)=.//’
mongod-m103: + chmod -R +x /var/m103/validation/
mongod-m103: + chown root:root /var/m103/validation
mongod-m103: + echo ‘Done: Downloaded Validation Scripts’
mongod-m103: Done: Downloaded Validation Scripts
mongod-m103: + set +e
mongod-m103: + verify_ip
mongod-m103: + export EXPECTED_IP=192.168.103.100
mongod-m103: + EXPECTED_IP=192.168.103.100
mongod-m103: + ifconfig
mongod-m103: + grep 192.168.103.100
mongod-m103: inet addr:192.168.103.100 Bcast:192.168.103.255 Mask:255.255.255.0
mongod-m103: + ret=0
mongod-m103: + ‘[’ 0 -ne 0 ‘]’
mongod-m103: + echo DONE
mongod-m103: DONE
===========================================================vagrant ssh=================================
C:\Users\HP\m103\m103-vagrant-env>vagrant ssh
Welcome to Ubuntu 14.04.6 LTS (GNU/Linux 3.13.0-170-generic x86_64)

System information as of Wed Nov 27 08:48:12 UTC 2019

System load: 0.0 Processes: 84
Usage of /: 4.8% of 39.34GB Users logged in: 0
Memory usage: 7% IP address for eth0: 10.0.2.15
Swap usage: 0% IP address for eth1: 192.168.103.100

Graph this data and manage this system at:
https://landscape.canonical.com/

New release ‘16.04.6 LTS’ available.
Run ‘do-release-upgrade’ to upgrade to it.

vagrant@m103:~$

Hi @aks1,

Can you please run this command for installing pymongo on your system and see if it resolves the issue?

sudo pip install --index-url=https://pypi.python.org/simple/ pymongo

If it installs successfully then please go ahead and run the commands mentioned in the update_repo() and install_mongod() function one by one.

Thanks,
Shubham Ranjan
Curriculum Support Engineer

Thank you Shubham.
pymongo install done
Update_repo completed - it mentioned a few indexes could not be found
install_mongo - still failing, within ssh terminal, please see error below:

vagrant@m103:~ sudo apt-get install -y mongodb-enterprise --force-yes Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package mongodb-enterprise vagrant@m103:~ mkdir -p /var/log/mongodb/
mkdir: cannot create directory ‘/var/log/mongodb/’: Permission denied
vagrant@m103:~$

Thank you for all your help Shubham!!
Not sure what the issue was, but tries executing the steps in update repo and install mongo -
again.Failed twice, but the third time it went through and all steps completed fine.

Will these steps have to run each time we do a vagrant up? It just took forever.

Hello, and thanks for the support. I have tried to install in linux and windows, with the suggested versions. I have in both OSes this very same problem.

I tried to install pymongo manually and then retried the up --provision step, but still does not work.

Is there another place where to get the pymongo package without breaking the process due to the error shown above?

I solved it. Since I was using a VPN (in Linux and Windows) the installation involving the pip command (was intended to happen using proxy configuration) was failing.

I just disconnect from the VPN and everything worked ok!

Thanks again and check also for this if you are having problems with the provision.

[SOLVED in Linux and Windows]

Hi @frankam,

I’m glad your issue got resolved. Please feel free to get back to us if you have any other query.

Happy Learning :slight_smile:

Thanks,
Shubham Ranjan
Curriculum Services Engineer

Hi,

After the vagrant provision before and after commenting two lines, I am still facing below problems.

This is the output of the vagrant provision command:

!
This is the output of after vagrant ssh and I don’t see mongo installed in the vagrant box.
Screen Shot 2020-01-13 at 1.05.05 AM|690x301

Hi @Shiva_23760,

What was the error message that you were getting in the first place on running the vagrant up command ?

I would recommend you to undo the changes that you have made in the file and destroy the vagrant environment and repeat the steps from beginning.

vagrant destroy

vagrant up

vagrant provision

vagrant ssh

Share the entire output and not just snippet of the vagrant up command.

Thanks,
Shubham Ranjan
Curriculum Services Engineer

I am doing setup on a Mac OSX -

Here is the output of the vagrant up -

Bringing machine ‘mongod-m103’ up with ‘virtualbox’ provider…
==> mongod-m103: Importing base box ‘ubuntu/trusty64’…
==> mongod-m103: Matching MAC address for NAT networking…
==> mongod-m103: Setting the name of the VM: mongod-m103
==> mongod-m103: Clearing any previously set forwarded ports…
==> mongod-m103: Clearing any previously set network interfaces…
==> mongod-m103: Preparing network interfaces based on configuration…
mongod-m103: Adapter 1: nat
mongod-m103: Adapter 2: hostonly
==> mongod-m103: Forwarding ports…
mongod-m103: 22 (guest) => 2222 (host) (adapter 1)
==> mongod-m103: Running ‘pre-boot’ VM customizations…
==> mongod-m103: Booting VM…
==> mongod-m103: Waiting for machine to boot. This may take a few minutes…
mongod-m103: SSH address: 127.0.0.1:2222
mongod-m103: SSH username: vagrant
mongod-m103: SSH auth method: private key
mongod-m103: Warning: Connection reset. Retrying…
mongod-m103:
mongod-m103: Vagrant insecure key detected. Vagrant will automatically replace
mongod-m103: this with a newly generated keypair for better security.
mongod-m103:
mongod-m103: Inserting generated public key within guest…
mongod-m103: Removing insecure key from the guest if it’s present…
mongod-m103: Key inserted! Disconnecting and reconnecting using new SSH key…
==> mongod-m103: Machine booted and ready!
==> mongod-m103: Checking for guest additions in VM…
mongod-m103: The guest additions on this VM do not match the installed version of
mongod-m103: VirtualBox! In most cases this is fine, but in rare cases it can
mongod-m103: prevent things such as shared folders from working properly. If you see
mongod-m103: shared folder errors, please make sure the guest additions within the
mongod-m103: virtual machine match the version of VirtualBox you have installed on
mongod-m103: your host and reload your VM.
mongod-m103:
mongod-m103: Guest Additions Version: 4.3.40
mongod-m103: VirtualBox Version: 5.2
==> mongod-m103: Setting hostname…
==> mongod-m103: Configuring and enabling network interfaces…
==> mongod-m103: Mounting shared folders…
mongod-m103: /shared => /Users/shivadwivedi/Desktop/learning/mongo_university/M103/shared
mongod-m103: /dataset => /Users/shivadwivedi/Desktop/learning/mongo_university/M103/dataset
mongod-m103: /vagrant => /Users/shivadwivedi/Desktop/learning/mongo_university/M103
==> mongod-m103: Running provisioner: shell…
mongod-m103: Running: /var/folders/8k/j0mdwvv515x245j2xf97hh8h0000gn/T/vagrant-shell20200113-87493-i1b12o
mongod-m103: + config
mongod-m103: + sudo su
mongod-m103: + echo -e never
mongod-m103: + echo -e never
mongod-m103: + sudo tee /etc/init/mongod.override
mongod-m103: + echo manual
mongod-m103: manual
mongod-m103: + ip_config
mongod-m103: ++ ifconfig
mongod-m103: ++ cut -d: -f2
mongod-m103: ++ awk ‘{ print $1}’
mongod-m103: ++ grep -v 127.0.0.1
mongod-m103: ++ tail -1
mongod-m103: ++ grep ‘inet addr:’
mongod-m103: + export CLIENT_IP_ADDR=192.168.103.100
mongod-m103: + CLIENT_IP_ADDR=192.168.103.100
mongod-m103: ++ hostname
mongod-m103: ++ tr ‘[:upper:]’ ‘[:lower:]’
mongod-m103: ++ cut -d. -f 1
mongod-m103: Configuring /etc/hosts …
mongod-m103: + export CLIENT_NAME=m103
mongod-m103: + CLIENT_NAME=m103
mongod-m103: + echo ‘Configuring /etc/hosts …’
mongod-m103: + echo '127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ’
mongod-m103: + echo ‘::1 localhost localhost.localdomain localhost6 localhost6.localdomain6’
mongod-m103: + echo ‘fe00::0 ip6-localnet’
mongod-m103: + echo ‘ff00::0 ip6-mcastprefix’
mongod-m103: + echo ‘ff02::1 ip6-allnodes’
mongod-m103: + echo ‘ff02::2 ip6-allrouters’
mongod-m103: + echo ‘ff02::3 ip6-allhosts’
mongod-m103: + echo ‘192.168.103.100 m103’
mongod-m103: Install MongoDB Enterprise Repository
mongod-m103: + update_repo
mongod-m103: + echo ‘Install MongoDB Enterprise Repository’
mongod-m103: + echo ‘deb [ arch=amd64 ] http://repo.mongodb.com/apt/ubuntu trusty/mongodb-enterprise/3.6 multiverse’
mongod-m103: + sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
mongod-m103: deb [ arch=amd64 ] http://repo.mongodb.com/apt/ubuntu trusty/mongodb-enterprise/3.6 multiverse
mongod-m103: + sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 0C49F3730359A14518585931BC711F9BA15703C6
mongod-m103: Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.VH9InQh8n6 --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d/ubuntu-advantage-esm-infra-trusty.gpg --keyserver keyserver.ubuntu.com --recv 0C49F3730359A14518585931BC711F9BA15703C6
mongod-m103: gpg: requesting key A15703C6 from hkp server keyserver.ubuntu.com
mongod-m103: gpg: keyserver timed out
mongod-m103: gpg: keyserver receive failed: keyserver error
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

Vagrant provision command outputs the following -

==> mongod-m103: Running provisioner: shell…
mongod-m103: Running: /var/folders/8k/j0mdwvv515x245j2xf97hh8h0000gn/T/vagrant-shell20200113-87804-6euvdc
mongod-m103: + config
mongod-m103: + sudo su
mongod-m103: + echo -e never
mongod-m103: + echo -e never
mongod-m103: + echo manual
mongod-m103: + sudo tee /etc/init/mongod.override
mongod-m103: manual
mongod-m103: + ip_config
mongod-m103: ++ ifconfig
mongod-m103: ++ grep ‘inet addr:’
mongod-m103: ++ tail -1
mongod-m103: ++ awk ‘{ print $1}’
mongod-m103: ++ cut -d: -f2
mongod-m103: ++ grep -v 127.0.0.1
mongod-m103: + export CLIENT_IP_ADDR=192.168.103.100
mongod-m103: + CLIENT_IP_ADDR=192.168.103.100
mongod-m103: ++ hostname
mongod-m103: ++ cut -d. -f 1
mongod-m103: ++ tr ‘[:upper:]’ ‘[:lower:]’
mongod-m103: + export CLIENT_NAME=m103
mongod-m103: + CLIENT_NAME=m103
mongod-m103: + echo ‘Configuring /etc/hosts …’
mongod-m103: Configuring /etc/hosts …
mongod-m103: + echo '127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ’
mongod-m103: + echo ‘::1 localhost localhost.localdomain localhost6 localhost6.localdomain6’
mongod-m103: + echo ‘fe00::0 ip6-localnet’
mongod-m103: + echo ‘ff00::0 ip6-mcastprefix’
mongod-m103: + echo ‘ff02::1 ip6-allnodes’
mongod-m103: + echo ‘ff02::2 ip6-allrouters’
mongod-m103: + echo ‘ff02::3 ip6-allhosts’
mongod-m103: + echo ‘192.168.103.100 m103’
mongod-m103: + update_repo
mongod-m103: + echo ‘Install MongoDB Enterprise Repository’
mongod-m103: Install MongoDB Enterprise Repository
mongod-m103: + sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
mongod-m103: + echo ‘deb [ arch=amd64 ] http://repo.mongodb.com/apt/ubuntu trusty/mongodb-enterprise/3.6 multiverse’
mongod-m103: deb [ arch=amd64 ] http://repo.mongodb.com/apt/ubuntu trusty/mongodb-enterprise/3.6 multiverse
mongod-m103: + sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 0C49F3730359A14518585931BC711F9BA15703C6
mongod-m103: Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.nImhOLJDjx --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d/ubuntu-advantage-esm-infra-trusty.gpg --keyserver keyserver.ubuntu.com --recv 0C49F3730359A14518585931BC711F9BA15703C6
mongod-m103: gpg:
mongod-m103: requesting key A15703C6 from hkp server keyserver.ubuntu.com
mongod-m103: gpg: keyserver timed out
mongod-m103: gpg: keyserver receive failed: keyserver error
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

Vagrant ssh outputs the following -

Welcome to Ubuntu 14.04.6 LTS (GNU/Linux 3.13.0-170-generic x86_64)

System information as of Mon Jan 13 15:05:31 UTC 2020

System load: 0.01 Processes: 85
Usage of /: 3.6% of 39.34GB Users logged in: 0
Memory usage: 6% IP address for eth0: 10.0.2.15
Swap usage: 0% IP address for eth1: 192.168.103.100

Graph this data and manage this system at:
https://landscape.canonical.com/

UA Infrastructure Extended Security Maintenance (ESM) is not enabled.

0 updates can be installed immediately.
0 of these updates are security updates.

Enable UA Infrastructure ESM to receive 64 additional security updates.
See https://ubuntu.com/advantage or run: sudo ua status

New release ‘16.04.6 LTS’ available.
Run ‘do-release-upgrade’ to upgrade to it.


WARNING! Your environment specifies an invalid locale.
This can affect your user experience significantly, including the
ability to manage packages. You may install the locales by running:

sudo apt-get install language-pack-UTF-8
or
sudo locale-gen UTF-8

To see all available language packs, run:
apt-cache search “^language-pack-[a-z][a-z]$”
To disable this message for all users, run:
sudo touch /var/lib/cloud/instance/locale-check.skip


vagrant@m103:~$

Hi @Shiva_23760,

It looks like a network/firewall related issue. Please refer this post for further instructions.

Let me know if the issue still persists.

Thanks,
Shubham Ranjan
Curriculum Services Engineer