Hello, my name is roysbert salinas and I’m having problems with the Vagrant workspace, the following happens, I’m following the indications that are described in the course for installation and configuration and everything goes well until I get to the command “vagrant up” . At least the first time, this command starts the VM, executes the “provision-mongod” file and the process fails when it executes line 57.
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
this is what the terminal shows me:
mongod-m103: + sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
mongod-m103: Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.typyci1DU2 --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
mongod-m103: gpg:
mongod-m103: requesting key A15703C6 from hkp server keyserver.ubuntu.com
mongod-m103: ?: keyserver.ubuntu.com: Host not found
mongod-m103: gpgkeys: HTTP fetch error 7: couldn't connect: Success
mongod-m103: gpg: no valid OpenPGP data found.
mongod-m103: gpg: Total number processed: 0
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.
It seems a connectivity problem, but the reality is that it is not so because I made tests and from the VM I have access to the internet. Ej, ping keyserver.ubuntu.com
PING keyserver.ubuntu.com (91.189.89.49) 56(84) bytes of data.
64 bytes from boquila.canonical.com (91.189.89.49): icmp_seq=2 ttl=51 time=189 ms
64 bytes from boquila.canonical.com (91.189.89.49): icmp_seq=3 ttl=51 time=236 ms
64 bytes from boquila.canonical.com (91.189.89.49): icmp_seq=4 ttl=51 time=291 ms
64 bytes from boquila.canonical.com (91.189.89.49): icmp_seq=5 ttl=51 time=292 ms
^C
--- keyserver.ubuntu.com ping statistics ---
5 packets transmitted, 4 received, 20% packet loss, time 4008ms
rtt min/avg/max/mdev = 189.441/252.368/292.357/42.861 ms
vagrant@m103:~$
Out of curiosity I tried to follow the course with a VM configured by me, supporting me from the “provision-mongod” file and with any material I get on the web. I did well because it manages to install mongo enterprise in Ubuntu Server 18.04 LTS and get the course material, but I can not get very far because the labs require that you use the instance of vagrant that you provide to facilitate the evaluation.
Comment this for the command mentioned above, if it works for ubuntu 18.04 or not for ubuntu 14.04.
Now, to be able to advance with the course, it is possible that you can provide me with a link with which I can download a complete VM (exported by you) and import it into my VirtualBox.
If you suspect what the problem is and need some information, let me know.
Thank you very much in advance, greetings.