Discussion:
[srobo-devel] Difficulty setting up local server via vagrant/puppet
Kier Davis
2016-02-18 01:45:31 UTC
Permalink
*Problem*
I'm having trouble setting up a local instance of the server using vagrant.
Running 'vagrant up' seems to only partially provision the system, and the
virtual machine is running but I am unable to ping it.

***@maigre:~/srobo/git/server/puppet [master] $ ping 192.168.44.44
PING 192.168.44.44 (192.168.44.44) 56(84) bytes of data.
^C
--- 192.168.44.44 ping statistics ---
19 packets transmitted, 0 received, 100% packet loss, time 18024ms

***@maigre:~/srobo/git/server/puppet [master] $ nmap -p80 192.168.44.44

Starting Nmap 7.01 ( https://nmap.org ) at 2016-02-18 01:33 GMT
Note: Host seems down. If it is really up, but blocking our ping probes,
try -Pn
Nmap done: 1 IP address (0 hosts up) scanned in 3.05 seconds


*What I'm doing*
I'm interested in setting up an instance of the server mainly so that I can
properly test stuff like srweb or IDE patches, and also to help learn a bit
more about SR infrastructure. I've read through the wiki page [1]
<https://www.studentrobotics.org/trac/wiki/ServerConfig> and am following
the steps in the Vagrant Setup section of the readme in server/puppet.git.

*Output logs and stuff*
The entire build log is at pasted [2]
<https://gist.github.com/kierdavis/bab5b3ad4622ab121c81>, and the
important-looking extracts from this are at [3]
<https://gist.github.com/kierdavis/dcb2cc0a5b59fb952c94>. The first bunch
of error messages appear to be related to Fritter being unable to find its
user ('fritter'), while the second look like Gerrit is failing to start.
The Gerrit messages also suggest running a couple of diagnostics commands
(output is at [4] <https://gist.github.com/kierdavis/f30d78c69bb5e10977c1>),
but at first glance I can't see anything that obvious in there.

*Versions*
I'm using the latest version of server/puppet.git (1512dcf Merge "Prevent
others hosting our website inside frames") and of server/dummy-secrets.git
(13b02c9 Remove the CSV file).
Vagrant version: 1.8.1
Virtualbox version: 5.0.14_OSEr105127

*Possible cause?*
I'm running Arch Linux, which from what I've seen tends to stay very close
to the bleeding edge. Is it likely that my version of Vagrant or Virtualbox
is newer than (and not backwards-compatible with) the one used to deploy to
production?

Thanks in advance for any help you can provide.

[1]: https://www.studentrobotics.org/trac/wiki/ServerConfig
[2]: https://gist.github.com/kierdavis/bab5b3ad4622ab121c81
[3]: https://gist.github.com/kierdavis/dcb2cc0a5b59fb952c94
[4]: https://gist.github.com/kierdavis/f30d78c69bb5e10977c1
--
You received this message because you are subscribed to the Google Groups "Student Robotics Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to srobo-devel+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jeremy Morse
2016-02-18 09:45:30 UTC
Permalink
Hi Kier,

The existing errata are:
* As observed, the fritter account has some trouble existing, for
reasons that remain unclear (can't remember where the ticket is),
* Sometimes gerrit fails. This is simply because it's gerrit, it does
that on saffron too,
* It looks like the forum config was changed to be called 'sr2016'
rather than sr2015, which wasn't updated in dummy-secrets.git.
This should now be fixed.

None of these errors should result in you not being able to get into the
VM though (and re-running puppet should lead to no errors). Are you able
to get in via `vagrant ssh`? IIRC virtualbox has a GUI VM manager where
you might be able to get at the VM's console and see what's going on.

If you're able to get in, are you able to ping the internet from on the VM?

--
Thanks,
Jeremy
--
You received this message because you are subscribed to the Google Groups "Student Robotics Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to srobo-devel+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...