Planning to dive in Discourse and start developping plugins, I set up the Vagrant Discourse dev VM following the instructions in the Dev install guide and, being on a Windows dev machine (yeah, I know...), Sam's related blog post.
After SSH'ing in the VM, I installed the gems, which went fine if you except a warning about Bundler not being the latest version.
However, the DB setup phase failed with a segfault:
$ bundle exec rake db:migrate --trace
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
/usr/local/rvm/gems/ruby-2.0.0-p0-turbo/gems/redis-3.0.7/lib/redis/connection/hiredis.rb:16: [BUG] Segmentation fault
ruby 2.0.0p0 (2013-02-24 revision 39474) [i686-linux]
Having a look under the hood, I can see the line it chokes on is:
connection.connect(config[:host], config[:port], Integer(config[:timeout] * 1_000_000))
(connection
is a ::Hiredis::Connection
)
I couldn't go much further as I'm not familiar with Ruby, and I don't know how to trace the contents of config
.
Is this a common issue? I did not find anything.
I'm using Vagrant 1.6.3 with VirtualBox 4.3.12 on a Windows 7 64 machine, the only change I made to the Vagrantfile is to add config.proxy
parameters.