Set-up error by Vagrant
RyanKeshav opened this issue · 8 comments
Hi,
I am a novice for studying the lora network server.
After installing Vagrant and virtualbox, I went to the directory: ~/loraserver-setup/host_vars, and executed the command: vagrant up. But I ran into the errors as follows:
TASK [base : add gpg public key to validate LoRa Server package signatures] ****
fatal: [vagrant]: FAILED! => {"changed": false, "cmd": "/usr/bin/apt-key adv --keyserver keyserver.ubuntu.com --recv 1CE2AFD36DBCCA00", "failed": true, "msg": "Error fetching key 1CE2AFD36DBCCA00 from keyserver: keyserver.ubuntu.com", "rc": 2, "stderr": "gpg: requesting key 6DBCCA00 from hkp server keyserver.ubuntu.com\ngpg: keyserver timed out\ngpg: keyserver receive failed: keyserver error\n", "stdout": "Executing: /tmp/tmp.JidnoapmAL/gpg.1.sh --keyserver\nkeyserver.ubuntu.com\n--recv\n1CE2AFD36DBCCA00\n", "stdout_lines": ["Executing: /tmp/tmp.JidnoapmAL/gpg.1.sh --keyserver", "keyserver.ubuntu.com", "--recv", "1CE2AFD36DBCCA00"]}
to retry, use: --limit @/vagrant/full_deploy.retry
PLAY RECAP *********************************************************************
vagrant : ok=10 changed=4 unreachable=0 failed=1
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again
Could you please how can I do for fixing these errors?
Hi Brocaar,
Thank you for your reply. As the attached picture above, I think I have installed Virtualbox as its provider.
On the other hand, I use wifi as network connection and it needs access right. I don't sure if it would affect on the connectivity of virtual server to the internet ?
By the way, Do I need to do the following command to do any upgrade?
ansible-playbook -i inventory full_deploy.yml
Sorry, the virtual box guest additions should be installed at the guest side (which is already done when performing a vagrant up
). However, they depend on the "VirtualBox Oracle VM VirtualBox Extension Pack", see: https://www.virtualbox.org/wiki/Downloads
This extension pack provides some extra (closed-source) drivers. It might be that you'll still need to install this.
To update your Vagrant environment, run:
vagrant provision
(I've added this to the README.md)
Hi Brocaar,
Sorry for bothering you again. As you mentioned above, I can install the extension pack by just running : vagrant provision to update the vagrant environment, right?
But , I ran into the same errors as mentioned previously.
I check my virtualbox installation version is 5.1, while the Guest Additions Version is 5.0.32. Do they match to each other? And Does their mis-match cause the set-up errors?
The extension pack you need to download from the VirtualBox site (see link above) and you have to install that one manually.
The guest additions version is fine (I'm using the same version).
The vagrant provision
is only for re-provisioning / updating the LoRa Server installation within your Vagrant box.
Hi @RyanKeshav did you solve your issue?
Hello! Brocaar, my colleague has helped solve this problem. Please refer to the following link:https://community.spotify.com/t5/Desktop-Linux-Windows-Web-Player/Can-t-install-public-key/td-p/91153
Great! Note that that still might be caused by a network related issue (as the vm was trying to reach the keyserver which it couldn't). Anyway, great to hear you could solve it :-)