pop-health home page failing

49 views
Skip to first unread message

George Lilly

unread,
Sep 21, 2014, 1:44:18 PM9/21/14
to popheal...@googlegroups.com
After I completed the install, I got to the home page and went to register. I filled out the registration page and then got a fatal error. Now it won't even show the home page...even after restarting rails... it is a new install of the current version of pophealth. 

the error appears to be 

 failed with error "no such cmd: aggregate"


I notice that it appears to be looking for a collection name of "pophealth-development.$cmd"  is that correct? 

thanks in advance for your help.

gpl


Moped::Errors::OperationFailure in HomeController#index

The operation: #<Moped::Protocol::Command @length=1108 @request_id=30 @response_to=0 @op_code=2004 @flags=[] @full_collection_name="pophealth-development.$cmd" @skip=0 @limit=-1 @selector={:aggregate=>"measures", :pipeline=>[{"$group"=>{"_id"=>"$id", "subs"=>{"$push"=>{"sub_id"=>"$sub_id", "short_subtitle"=>"$short_subtitle"}}, "sub_ids"=>{"$push"=>"$sub_id"}, "category"=>{"$first"=>"$category"}, "lower_is_better"=>{"$first"=>"$lower_is_better"}, "type"=>{"$first"=>"$type"}, "name"=>{"$first"=>"$name"}, "description"=>{"$first"=>"$description"}, "nqf_id"=>{"$first"=>"$nqf_id"}, "cms_id"=>{"$first"=>"$cms_id"}, "hqmf_id"=>{"$first"=>"$hqmf_id"}, "continuous_variable"=>{"$first"=>"$continuous_variable"}, "episode_of_care"=>{"$first"=>"$episode_of_care"}}}, {"$group"=>{:_id=>"$category", :measures=>{"$push"=>{"id"=>"$_id", "hqmf_id"=>"$hqmf_id", "subs"=>"$subs", "sub_ids"=>"$sub_ids", "lower_is_better"=>"$lower_is_better", "type"=>"$type", "name"=>"$name", "description"=>"$description", "nqf_id"=>"$nqf_id", "cms_id"=>"$cms_id", "continuous_variable"=>"$continuous_variable", "episode_of_care"=>"$episode_of_care"}}}}, {"$project"=>{"category"=>"$_id", "measures"=>1, "_id"=>0}}, {"$sort"=>{"category"=>1}}]} @fields=nil> failed with error "no such cmd: aggregate"

George Lilly

unread,
Sep 21, 2014, 2:03:33 PM9/21/14
to popheal...@googlegroups.com
Thinking that this might be a development vs. production problem, I reran the bundle load. However, I still get the same error.

Successfully imported bundle at: /home/pophealth/bundle-latest.zip
         Imported into environment: DEVELOPMENT
         Loaded * measures
         Sub-Measures Loaded: 155
         Test Patients Loaded: 0
         Extensions Loaded: 2
         Value Sets Loaded: 817

George Lilly

unread,
Sep 21, 2014, 2:39:52 PM9/21/14
to popheal...@googlegroups.com
I fixed the problem by re-installing mongo according to the directions. 

pophealth@popHealth1:~/popHealth$ mongo
MongoDB shell version: 2.6.4
connecting to: test

I had mistakenly installed an earlier version of mongo with apt-get install mongo-server

It's working now.

gpl

On Sunday, September 21, 2014 1:44:18 PM UTC-4, George Lilly wrote:
Reply all
Reply to author
Forward
0 new messages