vagrant up failing

89 views
Skip to first unread message

Mark Taylor

unread,
Sep 18, 2014, 2:57:36 PM9/18/14
to rapi...@googlegroups.com
Hi,

I got a new machine recently and am trying to set up the vagrant box by following the instructions at: https://github.com/rapidftr/RapidFTR/wiki/Develop-with-Vagrant#getting-started

Unfortunately, I am getting an error when doing vagrant up (as a side-note, I was forced to run `vagrant plugin install vagrant-omnibus` and `vagrant plugin install vagrant-faster` first, as `vagrant up` refused to run otherwise):
...
==> default: [2014-09-18T17:20:57+00:00] INFO: Chef Run complete in 839.198865734 seconds
==> default: [2014-09-18T17:20:57+00:00] INFO: Running report handlers
==> default: [2014-09-18T17:20:57+00:00] INFO: Report handlers complete
==> default: Running provisioner: shell...
    default: Running: inline script
==> default: rake aborted!
==> default: Sunspot::Solr::Server::AlreadyRunningError: Server is already running with PID 10881
==> default: /var/lib/gems/2.1.0/gems/sunspot_solr-2.1.1/lib/sunspot/solr/server.rb:62:in `start'
==> default: /var/lib/gems/2.1.0/gems/sunspot_solr-2.1.1/lib/sunspot/solr/tasks.rb:5:in `block (3 levels) in <top (required)>'
==> default: Tasks: TOP => sunspot:solr:start

I tried running `vagrant provision`, which gave the error:

Shared folders that Chef requires are missing on the virtual machine.
This is usually due to configuration changing after already booting the
machine. The fix is to run a `vagrant reload` so that the proper shared
folders will be prepared and mounted on the VM.

So I ran `vagrant reload`, which failed:
...
==> default: [2014-09-18T17:27:52+00:00] INFO: Running queued delayed notifications before re-raising exception
==> default: [2014-09-18T17:27:52+00:00] ERROR: Running exception handlers
==> default: [2014-09-18T17:27:52+00:00] ERROR: Exception handlers complete
==> default: [2014-09-18T17:27:52+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> default: [2014-09-18T17:27:52+00:00] ERROR: execute[sunspot-start] (rapidftr-dev::default line 89) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
==> default: ---- Begin output of su vagrant -l -c 'cd /vagrant && bundle exec rake sunspot:solr:start' ----
==> default: STDOUT:
==> default: STDERR: rake aborted!
==> default: Sunspot::Solr::Server::AlreadyRunningError: Server is already running with PID 1665
==> default: /var/lib/gems/2.1.0/gems/sunspot_solr-2.1.1/lib/sunspot/solr/server.rb:62:in `start'
==> default: /var/lib/gems/2.1.0/gems/sunspot_solr-2.1.1/lib/sunspot/solr/tasks.rb:5:in `block (3 levels) in <top (required)>'
==> default: Tasks: TOP => sunspot:solr:start
==> default: (See full trace by running task with --trace)
==> default: ---- End output of su vagrant -l -c 'cd /vagrant && bundle exec rake sunspot:solr:start' ----
==> default: Ran su vagrant -l -c 'cd /vagrant && bundle exec rake sunspot:solr:start' returned 1
==> default: [2014-09-18T17:27:52+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

I tried connecting to the box with `vagrant ssh` and following the instructions to "login and start RapidFTR". This started the website, which I could connect to from my machine. I created a user successfully, but when I logged in with that user and tried to register a new child, I get an error:

RSolr::Error::Http in ChildrenController#create

RSolr::Error::Http - 404 Not Found Error: Not Found Request Data: "fq=type%3AEnquiry&q=3643e4ff-1744-4e8a-b801-28179e79af4d+e79af4d+mark+mark+mark+Tim+Tam+Unaccompanied+Tracing+On-Going+Male+Tom&fl=%2A+score&qf=2_first_name_text+2_middle_name_text+2_last_name_text+2_other_names_text+2_gender_text+2_year_of_birth_text+2_language_text+2_religion_text+2_nationality_text+2_child_ethnic_affiliation_text+2_physical_characteristics_text+2_last_school_attended_text+2_school_level_text&defType=edismax&mm=1&start=0&rows=30" Backtrace: /var/lib/gems/2.1.0/gems/rsolr-1.0.10/lib/rsolr/client.rb:283:in `adapt_response' /var/lib/gems/2.1.0/gems/rsolr-1.0.10/lib/rsolr/client.rb:190:in `execute' /var/lib/gems/2.1.0/gems/rsolr-1.0.10/lib/rsolr/client.rb:176:in `send_and_receive' /var/lib/gems/2.1.0/gems/sunspot_rails-2.1.1/lib/sunspot/rails/solr_instrumentation.rb:16:in `block in send_and_receive_with_as_instrumentation' /var/lib/gems/2.1.0/gems/activesupport-4.0.9/lib/active_support/notifications.rb:159:in `block in instrument' /var/lib/gems/2.1.0/gems/activesupport-4.0.9/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /var/lib/gems/2.1.0/gems/activesupport-4.0.9/lib/active_support/notifications.rb:159:in `instrument' /var/lib/gems/2.1.0/gems/sunspot_rails-2.1.1/lib/sunspot/rails/solr_instrumentation.rb:15:in `send_and_receive_with_as_instrumentation' (eval):2:in `post' /var/lib/gems/2.1.0/gems/sunspot-2.1.1/lib/sunspot/search/abstract_search.rb:48:in `execute' /var/lib/gems/2.1.0/gems/sunspot-2.1.1/lib/sunspot/session.rb:59:in `search'


I have VirtualBox v4.3.16 and vagrant 1.6.5 installed. Running Mac OSX 10.9.4.

Alex Anderson

unread,
Sep 18, 2014, 3:00:23 PM9/18/14
to rapi...@googlegroups.com
By the way, it worked for me (on another fresh machine) - so
recreating may not be possible for everyone.

VBox: 4.3.12
Vagrant: 1.6.3
OSX 10.9.4
> --
> You received this message because you are subscribed to the Google Groups
> "rapidftr" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rapidftr+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Mark Taylor

unread,
Sep 18, 2014, 3:06:46 PM9/18/14
to rapi...@googlegroups.com
So doing a `vagrant halt` followed by a `vagrant up` has got it working now - very frustrating that it didn't just work first time though).
Reply all
Reply to author
Forward
0 new messages