Issues running this

74 views
Skip to first unread message

Alistair Spark

unread,
Jun 4, 2013, 7:39:47 PM6/4/13
to allou...@googlegroups.com
Hi there,

Hoping someone will be able to help me out.

I have managed to get this installed but only to a certain extent - ie the web interface for both pairwise-api and the allourideas are now running. I am able to login to the pairwise-ideas with the allourideas login through the web interface.

After running into issues with ruby versions with more recent versions of Ubuntu, I have installed this on a clean Ubuntu Server 12.04 and all the Gems have installed successfully.

I have also successfully got the schemas loaded, Phusion Passenger installed. My virtualhost is configured and the .htaccess is enabled.


However the site just doesn't work.

The "Try a Wiki Survey" http://www.allourideas.org/planyc_example?guides=true (obviously with my own domain instead) just doesn't load anything. 

If I try and create a new question/account when I submit I get a "Error - Unknown Server Error".



This is the first ruby application I am trying to get running and it's a bit of a headache to say the least.

Is there maybe a distro version with which this works better?


Luke Baker

unread,
Jun 5, 2013, 8:48:16 AM6/5/13
to allou...@googlegroups.com
Alistair,

The reason that link is failing is because there isn't a wiki survey
created with that name on your installation. That link points to a
specific example wiki survey that we created on our own installation.
If you wanted to create that same one on your installation, you could
do so by visiting the create page and giving the new wiki survey the
URL of 'planyc_example'. Alternatively, you could create your own wiki
survey with a different URL and update the link that "Try A Wiki
Survey" points to.

Luke
> --
> You received this message because you are subscribed to the Google Groups
> "All Our Ideas" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to allourideas...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Alistair Spark

unread,
Jun 5, 2013, 12:48:59 PM6/5/13
to allou...@googlegroups.com
Ahah! Thanks Luke for the clarification that did very briefly cross my mind. 

But I was more concerned with the inability to create new surveys and user accounts.

What Linux distro & version would you recommend to run this on? As I mentioned I'm trying to use Ubuntu 12.04 but not sure that it is the best/most compatible option.

Any advice on how best diagnose why this isn't working?


Thanks again

Alistair

Luke Baker

unread,
Jun 5, 2013, 1:01:32 PM6/5/13
to allou...@googlegroups.com
Ah, sorry. I didn't see that the create question feature wasn't working for you.

We've had success installing on Ubuntu and CentOS. I don't think
there's any reason to switch to a different distribution.

The way to diagnose this problem is to go into your allourideas.org
directory and view the logs/production.log file to get more details on
the error the caused the create question to fail.

Luke

Armando Gonçalves

unread,
Jul 12, 2013, 11:16:25 PM7/12/13
to allou...@googlegroups.com
I'm having the same problem when I try to submit some questions   
I get "Error - Unknown Server Error".

Went to check production.log and this is what I got  >> (Running in a amazon ec2 instance)

NoMethodError (undefined method `+' for nil:NilClass):
  /usr/lib/ruby/1.8/net/http.rb:1118:in `addr_port'
  /usr/lib/ruby/1.8/net/http.rb:1078:in `begin_transport'
  /usr/lib/ruby/1.8/net/http.rb:1048:in `request_without_newrelic_trace'
  vendor/ruby/1.8/gems/newrelic_rpm-3.5.5.38/lib/new_relic/agent/instrumentation/net.rb:22:in `request'
  vendor/ruby/1.8/gems/newrelic_rpm-3.5.5.38/lib/new_relic/agent/method_tracer.rb:240:in `trace_execution_scoped'
  vendor/ruby/1.8/gems/newrelic_rpm-3.5.5.38/lib/new_relic/agent/instrumentation/net.rb:21:in `request'
  /usr/lib/ruby/1.8/net/http.rb:1037:in `request_without_newrelic_trace'
  /usr/lib/ruby/1.8/net/http.rb:543:in `start'
  /usr/lib/ruby/1.8/net/http.rb:1035:in `request_without_newrelic_trace'
  vendor/ruby/1.8/gems/newrelic_rpm-3.5.5.38/lib/new_relic/agent/instrumentation/net.rb:22:in `request'
  vendor/ruby/1.8/gems/newrelic_rpm-3.5.5.38/lib/new_relic/agent/method_tracer.rb:240:in `trace_execution_scoped'
  vendor/ruby/1.8/gems/newrelic_rpm-3.5.5.38/lib/new_relic/agent/instrumentation/net.rb:21:in `request'
  /usr/lib/ruby/1.8/net/http.rb:845:in `post'
  vendor/ruby/1.8/gems/activeresource-2.3.18/lib/active_resource/connection.rb:171:in `send'
  vendor/ruby/1.8/gems/activeresource-2.3.18/lib/active_resource/connection.rb:171:in `request'
  vendor/ruby/1.8/gems/activeresource-2.3.18/lib/active_resource/connection.rb:171:in `request'
  vendor/ruby/1.8/gems/activeresource-2.3.18/lib/active_resource/connection.rb:156:in `post'
  vendor/ruby/1.8/gems/activeresource-2.3.18/lib/active_resource/base.rb:1084:in `create'
  vendor/ruby/1.8/gems/activeresource-2.3.18/lib/active_resource/base.rb:867:in `save_without_validation'
  vendor/ruby/1.8/gems/activeresource-2.3.18/lib/active_resource/validations.rb:259:in `save'
  app/controllers/questions_controller.rb:1097:in `question_params_valid'
  app/controllers/questions_controller.rb:1075:in `create'
  vendor/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/base.rb:1333:in `send'
  vendor/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/base.rb:1333:in `perform_action_without_filters'
  vendor/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/filters.rb:617:in `call_filters'
  vendor/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
  vendor/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
  vendor/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
  vendor/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'
  vendor/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/flash.rb:151:in `perform_action_without_newrelic_trace'
  vendor/ruby/1.8/gems/newrelic_rpm-3.5.5.38/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:270:in `perform_action'
  vendor/ruby/1.8/gems/newrelic_rpm-3.5.5.38/lib/new_relic/agent/method_tracer.rb:240:in `trace_execution_scoped'
  vendor/ruby/1.8/gems/newrelic_rpm-3.5.5.38/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:263:in `perform_action'
  vendor/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/base.rb:532:in `send'
  vendor/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/base.rb:532:in `process_without_filters'
  vendor/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/filters.rb:606:in `process_without_compass'
  vendor/ruby/1.8/gems/compass-rails-1.0.3/lib/compass-rails/railties/2_3.rb:9:in `process'
  vendor/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/base.rb:391:in `process'
  vendor/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/base.rb:386:in `call'
  vendor/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/routing/route_set.rb:438:in `call'
  vendor/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/dispatcher.rb:87:in `dispatch'
  vendor/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/dispatcher.rb:121:in `_call'
 vendor/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack'
  vendor/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/query_cache.rb:29:in `call'
  vendor/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/query_cache.rb:29:in `call'
  vendor/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
  vendor/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/query_cache.rb:9:in `cache'
  vendor/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/query_cache.rb:28:in `call'
  vendor/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
  vendor/ruby/1.8/gems/newrelic_rpm-3.5.5.38/lib/new_relic/rack/browser_monitoring.rb:12:in `call'
  vendor/ruby/1.8/gems/sass-3.2.1/lib/sass/./sass/plugin/rack.rb:54:in `call'
  vendor/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/string_coercion.rb:25:in `call'
  vendor/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/params_parser.rb:15:in `call'
  vendor/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/session/cookie_store.rb:99:in `call'
  vendor/ruby/1.8/gems/airbrake-3.1.4/lib/airbrake/rack.rb:41:in `call'
  vendor/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/failsafe.rb:26:in `call'
  vendor/ruby/1.8/gems/airbrake-3.1.4/lib/airbrake/user_informer.rb:12:in `call'
  vendor/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/dispatcher.rb:106:in `call'
  /usr/lib/ruby/gems/1.8/gems/passenger-4.0.8/lib/phusion_passenger/rack/thread_handler_extension.rb:77:in `process_request'
  /usr/lib/ruby/gems/1.8/gems/passenger-4.0.8/lib/phusion_passenger/request_handler/thread_handler.rb:140:in `accept_and_process_next_request'
  /usr/lib/ruby/gems/1.8/gems/passenger-4.0.8/lib/phusion_passenger/request_handler/thread_handler.rb:108:in `main_loop'
  /usr/lib/ruby/gems/1.8/gems/passenger-4.0.8/lib/phusion_passenger/request_handler.rb:441:in `start_threads'
  /usr/lib/ruby/gems/1.8/gems/passenger-4.0.8/lib/phusion_passenger/request_handler.rb:435:in `initialize'
  /usr/lib/ruby/gems/1.8/gems/passenger-4.0.8/lib/phusion_passenger/request_handler.rb:435:in `new'
  /usr/lib/ruby/gems/1.8/gems/passenger-4.0.8/lib/phusion_passenger/request_handler.rb:435:in `start_threads'
  /usr/lib/ruby/gems/1.8/gems/passenger-4.0.8/lib/phusion_passenger/request_handler.rb:434:in `times'
  /usr/lib/ruby/gems/1.8/gems/passenger-4.0.8/lib/phusion_passenger/request_handler.rb:434:in `start_threads'
  /usr/lib/ruby/gems/1.8/gems/passenger-4.0.8/lib/phusion_passenger/request_handler.rb:433:in `synchronize'
  /usr/lib/ruby/gems/1.8/gems/passenger-4.0.8/lib/phusion_passenger/request_handler.rb:433:in `start_threads'
  /usr/lib/ruby/gems/1.8/gems/passenger-4.0.8/lib/phusion_passenger/request_handler.rb:200:in `main_loop'
  /usr/lib/ruby/gems/1.8/gems/passenger-4.0.8/helper-scripts/classic-rails-preloader.rb:159

Rendering template within layouts/application
Rendering errors/500.html.haml (500)


Abbas Mousavi

unread,
Jul 14, 2013, 6:20:28 AM7/14/13
to allou...@googlegroups.com
Hi 

Do you have found a solution? I have the same problem, I have installed pairwise and allourideas on ubuntu 12.04, 
both sites work, I can login to pairwise, but when I try to create  a new question or sign up  a new user I get an Unknown server error.
I have posted error from production.log in a separate mail.

Alistair Spark

unread,
Jul 14, 2013, 7:30:40 AM7/14/13
to allou...@googlegroups.com
Hi Abbas,

In my case I found out I had no production log, so started pairwise-api manually into production since the phusion passender defaults to development, still doing so. I also found out I had edited the allourideas config file (config/config.yml) in the most stupid way:

Where the strings say <%= ENV['PAIRWISE_USERNAME'] %>

I had edited them to <%= ENV['username'] %> instead of simply replacing the string with: username

Double check those things, just in case.
Reply all
Reply to author
Forward
0 new messages