ciudadanointeligente / legislative

Participation channel to bring information to the citizen of what happens in our Congress. Built using component of POPLUS project.
congresoabierto.cl
12 stars 8 forks source link

Installation issues #200

Closed martinszy closed 10 years ago

martinszy commented 10 years ago

Hi, I have a new system and I'm trying to run legislative. I installed ruby and rails from debian's default repos. Then I needed to run: sudo gem install bundler

After that I run: bash setup.sh

And i get this: Legislative install script

... Updating your bundle in development environment ... Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0 ... Creating your database ... Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0 Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0 ... Creating default admin user ... Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0 ... Database created...

To start your server run: rails s

... FINISH! ...

So I might need to update Ruby, which you might list on the requirements page as being Ruby 2 and not 1.9.3

Then I run and I get several notices.

$ rails s /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead. /usr/lib/ruby/vendor_ruby/railties/lib/rails_generator/generators/applications/app/app_generator.rb:7: Use RbConfig instead of obsolete and deprecated Config. exists
exists app/controllers exists app/helpers exists app/models exists app/views/layouts exists config/environments exists config/initializers exists config/locales exists db exists doc exists lib exists lib/tasks exists log exists public/images exists public/javascripts exists public/stylesheets exists script/performance exists test/fixtures exists test/functional exists test/integration exists test/performance exists test/unit exists vendor exists vendor/plugins exists tmp/sessions exists tmp/sockets exists tmp/cache exists tmp/pids identical Rakefile identical README identical app/controllers/application_controller.rb identical app/helpers/application_helper.rb identical config/database.yml identical config/routes.rb identical config/locales/en.yml identical db/seeds.rb identical config/initializers/backtrace_silencers.rb identical config/initializers/inflections.rb identical config/initializers/mime_types.rb identical config/initializers/new_rails_defaults.rb overwrite config/initializers/session_store.rb? (enter "h" for help) [Ynaqdh] Y - yes, overwrite n - no, do not overwrite a - all, overwrite this and all others q - quit, abort d - diff, show the differences between the old and the new h - help, show this help overwrite config/initializers/session_store.rb? (enter "h" for help) [Ynaqdh] Y - yes, overwrite n - no, do not overwrite a - all, overwrite this and all others q - quit, abort d - diff, show the differences between the old and the new h - help, show this help overwrite config/initializers/session_store.rb? (enter "h" for help) [Ynaqdh] Y force config/initializers/session_store.rb overwrite config/initializers/cookie_verification_secret.rb? (enter "h" for help) [Ynaqdh] Y force config/initializers/cookie_verification_secret.rb identical config/environment.rb identical config/boot.rb identical config/environments/production.rb identical config/environments/development.rb identical config/environments/test.rb identical script/about identical script/console identical script/dbconsole identical script/destroy identical script/generate identical script/runner identical script/server identical script/plugin identical script/performance/benchmarker identical script/performance/profiler identical test/test_helper.rb identical test/performance/browsing_test.rb identical public/404.html identical public/422.html identical public/500.html identical public/index.html identical public/favicon.ico identical public/robots.txt identical public/images/rails.png identical public/javascripts/prototype.js identical public/javascripts/effects.js identical public/javascripts/dragdrop.js identical public/javascripts/controls.js identical public/javascripts/application.js identical doc/README_FOR_APP identical log/server.log identical log/production.log identical log/development.log identical log/test.log exists vendor/rails

maugsbur commented 10 years ago

Indeed, we need to update the readme and add rails 2.0.0 or above as a requirement. We highly recommend using RVM https://rvm.io/ for this matter. Try installing ruby 2.0 with RVM and tell me how it goes. I would also clone the project again instead of working with your old installation.

2014-04-14 13:54 GMT-03:00 Martín Szyszlican notifications@github.com:

Hi, I have a new system and I'm trying to run legislative. I installed ruby and rails from debian's default repos. Then I needed to run: sudo gem install bundler

After that I run: bash setup.sh

And i get this: Legislative install script

... Updating your bundle in development environment ... Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0 ... Creating your database ... Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0 Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0 ... Creating default admin user ... Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0 ... Database created...

To start your server run: rails s

... FINISH! ...

So I might need to update Ruby, which you might list on the requirements page as being Ruby 2 and not 1.9.3

Then I run and I get several notices.

$ rails s /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead. /usr/lib/ruby/vendor_ruby/railties/lib/rails_generator/generators/applications/app/app_generator.rb:7: Use RbConfig instead of obsolete and deprecated Config. exists

exists app/controllers exists app/helpers exists app/models exists app/views/layouts exists config/environments exists config/initializers exists config/locales exists db exists doc exists lib exists lib/tasks exists log exists public/images exists public/javascripts exists public/stylesheets exists script/performance exists test/fixtures exists test/functional exists test/integration exists test/performance exists test/unit exists vendor exists vendor/plugins exists tmp/sessions exists tmp/sockets exists tmp/cache exists tmp/pids identical Rakefile identical README identical app/controllers/application_controller.rb identical app/helpers/application_helper.rb identical config/database.yml identical config/routes.rb identical config/locales/en.yml identical db/seeds.rb identical config/initializers/backtrace_silencers.rb identical config/initializers/inflections.rb identical config/initializers/mime_types.rb identical config/initializers/new_rails_defaults.rb overwrite config/initializers/session_store.rb? (enter "h" for help) [Ynaqdh] Y - yes, overwrite n - no, do not overwrite a - all, overwrite this and all others q - quit, abort d - diff, show the differences between the old and the new h - help, show this help overwrite config/initializers/session_store.rb? (enter "h" for help) [Ynaqdh] Y - yes, overwrite n - no, do not overwrite a - all, overwrite this and all others q - quit, abort d - diff, show the differences between the old and the new h - help, show this help overwrite config/initializers/session_store.rb? (enter "h" for help) [Ynaqdh] Y force config/initializers/session_store.rb overwrite config/initializers/cookie_verification_secret.rb? (enter "h" for help) [Ynaqdh] Y force config/initializers/cookie_verification_secret.rb identical config/environment.rb identical config/boot.rb identical config/environments/production.rb identical config/environments/development.rb identical config/environments/test.rb identical script/about identical script/console identical script/dbconsole identical script/destroy identical script/generate identical script/runner identical script/server identical script/plugin identical script/performance/benchmarker identical script/performance/profiler identical test/test_helper.rb identical test/performance/browsing_test.rb identical public/404.html identical public/422.html identical public/500.html identical public/index.html identical public/favicon.ico identical public/robots.txt identical public/images/rails.png identical public/javascripts/prototype.js identical public/javascripts/effects.js identical public/javascripts/dragdrop.js identical public/javascripts/controls.js identical public/javascripts/application.js identical doc/README_FOR_APP identical log/server.log identical log/production.log identical log/development.log identical log/test.log exists vendor/rails

— Reply to this email directly or view it on GitHubhttps://github.com/ciudadanointeligente/legislative/issues/200 .

martinszy commented 10 years ago

Ok. I Installed rvm, then rails 2.0.0 and ImageMagick. This actually took a while due to a little dependency hell caused by having some packages from unstable but removing the source, in the end I added the unstable repo and I think I'm going to update the whole system to unstable.

Now I think I have a problem with the database, please check the following lines. The bundle install works great, then the setup finishes with an error, rails s starts the server but the webpage displays an error about the database.

$ bash setup.sh Legislative install script

... Updating your bundle in development environment ... Fetching source index from https://rubygems.org/ Using rake (10.1.1) Using i18n (0.6.9) Using minitest (4.7.5) Using multi_json (1.8.2) Using atomic (1.1.14) Using thread_safe (0.1.3) Using tzinfo (0.3.38) Using activesupport (4.0.0) Using builder (3.1.4) Using erubis (2.7.0) Using rack (1.5.2) Using rack-test (0.6.2) Using actionpack (4.0.0) Using mime-types (1.25.1) Using polyglot (0.3.3) Using treetop (1.4.15) Using mail (2.5.4) Using actionmailer (4.0.0) Using actionpack-action_caching (1.1.1) Using actionpack-page_caching (1.0.2) Using activemodel (4.0.0) Using activerecord-deprecated_finders (1.0.3) Using arel (4.0.1) Using activerecord (4.0.0) Using bcrypt (3.1.7) Using bcrypt-ruby (3.1.5) Using coderay (1.1.0) Using better_errors (1.1.0) Using mini_portile (0.5.2) Using nokogiri (1.6.1) Using representable (1.5.3) Using roar (0.11.19) Using hooks (0.3.3) Using thor (0.18.1) Using railties (4.0.0) Using test_xml (0.1.6) Using roar-rails (0.1.0) Using billit_representers (0.9.0) Using debug_inspector (0.0.2) Using binding_of_caller (0.7.2) Using timers (1.1.0) Using celluloid (0.15.2) Using nio4r (1.0.0) Using celluloid-io (0.15.0) Using chronic (0.10.2) Using coffee-script-source (1.7.0) Using execjs (2.0.2) Using coffee-script (2.2.0) Using coffee-rails (4.0.1) Using rest-client (1.6.7) Using docile (1.1.1) Using simplecov-html (0.8.0) Using simplecov (0.8.2) Using tins (0.13.1) Using term-ansicolor (1.2.2) Using coveralls (0.7.0) Using daemons (1.1.9) Using orm_adapter (0.5.0) Using warden (1.2.3) Using devise (3.0.0.rc) from git://github.com/plataformatec/devise.git (at 49aebde) Using diff-lcs (1.2.5) Using bundler (1.5.3) Using hike (1.2.3) Using tilt (1.4.1) Using sprockets (2.10.1) Using sprockets-rails (2.0.1) Using rails (4.0.0) Using ruby-ole (1.2.11.7) Using spreadsheet (0.9.6) Using ekuseru (0.3.10) Using eventmachine (1.0.3) Using factory_girl (4.3.0) Using factory_girl_rails (4.3.0) Using multipart-post (1.2.0) Using faraday (0.8.1) Using ffi (1.9.3) Using formatador (0.2.4) Using fullcalendar-rails (1.6.4.0) Using rb-fsevent (0.9.4) Using rb-inotify (0.9.3) Using listen (2.5.0) Using lumberjack (1.0.4) Using method_source (0.8.2) Using slop (3.4.7) Using pry (0.9.12.6) Using guard (2.4.0) Using guard-bundler (2.0.0) Using guard-rails (0.5.0) Using rspec-core (2.14.7) Using rspec-expectations (2.14.4) Using rspec-mocks (2.14.4) Using rspec (2.14.1) Using guard-rspec (4.2.6) Using haml (4.0.4) Using haml-rails (0.5.1) Using json (1.8.1) Using multi_xml (0.5.5) Using httparty (0.12.0) Using jquery-rails (3.0.4) Using popit_representers (0.0.15) Using protected_attributes (1.0.3) Using quiet_assets (1.0.2) Using rails-i18n (4.0.1) Using rmagick (2.13.2) Installing route_translator (3.1.0) Installing rspec-rails (2.14.0) Installing sass (3.2.14) Installing sass-rails (4.0.1) Installing sqlite3 (1.3.8) Installing thin (1.6.2) Installing turbolinks (2.2.1) Installing uglifier (2.4.0) Installing whenever (0.9.2) Using writeit-rails (0.0.3) from git://github.com/ciudadanointeligente/writeit-rails.git (at master) Your bundle is complete! Gems in the group production were not installed. Use bundle show [gemname] to see where a bundled gem is installed. ... Creating your database ... rake aborted! Could not load database configuration. No such file - /home/faras/www/ustedes/legislative/config/database.yml /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/application/configuration.rb:110:in database_configuration' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activerecord-4.0.0/lib/active_record/railtie.rb:46:inblock (3 levels) in class:Railtie' /home/faras/.rvm/gems/ruby-2.0.0-p451/bin/ruby_executable_hooks:15:in eval' /home/faras/.rvm/gems/ruby-2.0.0-p451/bin/ruby_executable_hooks:15:in

' Tasks: TOP => db:create => db:load_config (See full trace by running task with --trace) rake aborted! Could not load database configuration. No such file - /home/faras/www/ustedes/legislative/config/database.yml /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/application/configuration.rb:110:in database_configuration' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activerecord-4.0.0/lib/active_record/railtie.rb:174:inblock (2 levels) in class:Railtie' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/lazy_load_hooks.rb:38:in instance_eval' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/lazy_load_hooks.rb:38:inexecute_hook' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/lazy_load_hooks.rb:28:in block in on_load' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/lazy_load_hooks.rb:27:ineach' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/lazy_load_hooks.rb:27:in on_load' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activerecord-4.0.0/lib/active_record/railtie.rb:173:inblock in class:Railtie' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/initializable.rb:30:in instance_exec' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/initializable.rb:30:inrun' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/initializable.rb:55:in block in run_initializers' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/initializable.rb:54:inrun_initializers' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/application.rb:215:in initialize!' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/railtie/configurable.rb:30:inmethod_missing' /home/faras/www/ustedes/legislative/config/environment.rb:5:in <top (required)>' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:inrequire' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in block in require' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:inload_dependency' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in require' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/application.rb:189:inrequire_environment!' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/application.rb:249:in block in run_tasks_blocks' /home/faras/.rvm/gems/ruby-2.0.0-p451/bin/ruby_executable_hooks:15:ineval' /home/faras/.rvm/gems/ruby-2.0.0-p451/bin/ruby_executable_hooks:15:in <main>' Tasks: TOP => db:migrate => environment (See full trace by running task with --trace) ... Creating default admin user ... rake aborted! Could not load database configuration. No such file - /home/faras/www/ustedes/legislative/config/database.yml /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/application/configuration.rb:110:indatabase_configuration' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activerecord-4.0.0/lib/active_record/railtie.rb:174:in block (2 levels) in <class:Railtie>' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/lazy_load_hooks.rb:38:ininstance_eval' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/lazy_load_hooks.rb:38:in execute_hook' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/lazy_load_hooks.rb:28:inblock in on_load' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/lazy_load_hooks.rb:27:in each' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/lazy_load_hooks.rb:27:inon_load' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activerecord-4.0.0/lib/active_record/railtie.rb:173:in block in <class:Railtie>' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/initializable.rb:30:ininstance_exec' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/initializable.rb:30:in run' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/initializable.rb:55:inblock in run_initializers' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/initializable.rb:54:in run_initializers' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/application.rb:215:ininitialize!' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/railtie/configurable.rb:30:in method_missing' /home/faras/www/ustedes/legislative/config/environment.rb:5:in<top (required)>' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in require' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:inblock in require' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in load_dependency' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:inrequire' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/application.rb:189:in require_environment!' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/application.rb:249:inblock in run_tasks_blocks' /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/activerecord-4.0.0/lib/active_record/railties/databases.rake:180:in block (2 levels) in <top (required)>' /home/faras/.rvm/gems/ruby-2.0.0-p451/bin/ruby_executable_hooks:15:ineval' /home/faras/.rvm/gems/ruby-2.0.0-p451/bin/ruby_executable_hooks:15:in `
' Tasks: TOP => db:abort_if_pending_migrations => environment (See full trace by running task with --trace) ... Database created...

To start your server run: rails s

... FINISH! ... faras@freestation:~/www/ustedes/legislative$ rails s => Booting Thin => Rails 4.0.0 application starting in development on http://0.0.0.0:3000 => Run rails server -h for more startup options => Ctrl-C to shutdown server Thin web server (v1.6.2 codename Doc Brown) Maximum connections set to 1024 Listening on 0.0.0.0:3000, CTRL+C to stop

Started GET "/" for 127.0.0.1 at 2014-04-15 03:03:46 -0300 /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/orm_adapter-0.5.0/lib/orm_adapter/adapters/active_record.rb:81: warning: already initialized constant ActiveRecord::Base::OrmAdapter /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/orm_adapter-0.5.0/lib/orm_adapter/adapters/active_record.rb:81: warning: previous definition of OrmAdapter was here /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/orm_adapter-0.5.0/lib/orm_adapter/adapters/active_record.rb:81: warning: already initialized constant ActiveRecord::Base::OrmAdapter /home/faras/.rvm/gems/ruby-2.0.0-p451/gems/orm_adapter-0.5.0/lib/orm_adapter/adapters/active_record.rb:81: warning: previous definition of OrmAdapter was here

RuntimeError - Could not load database configuration. No such file - /home/faras/www/ustedes/legislative/config/database.yml: railties (4.0.0) lib/rails/application/configuration.rb:110:in database_configuration' activerecord (4.0.0) lib/active_record/railtie.rb:174:inblock (2 levels) in class:Railtie' activesupport (4.0.0) lib/active_support/lazy_load_hooks.rb:38:in execute_hook' activesupport (4.0.0) lib/active_support/lazy_load_hooks.rb:45:inblock in run_load_hooks' activesupport (4.0.0) lib/active_support/lazy_load_hooks.rb:44:in run_load_hooks' activerecord (4.0.0) lib/active_record/base.rb:322:inmodule:ActiveRecord' activerecord (4.0.0) lib/active_record/base.rb:22:in <top (required)>' activerecord (4.0.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:633:inrescue in call' activerecord (4.0.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:624:in call' actionpack (4.0.0) lib/action_dispatch/middleware/callbacks.rb:29:inblock in call' activesupport (4.0.0) lib/active_support/callbacks.rb:373:in _run__258762019205883310__call__callbacks' activesupport (4.0.0) lib/active_support/callbacks.rb:80:inrun_callbacks' actionpack (4.0.0) lib/action_dispatch/middleware/callbacks.rb:27:in call' actionpack (4.0.0) lib/action_dispatch/middleware/reloader.rb:64:incall' actionpack (4.0.0) lib/action_dispatch/middleware/remote_ip.rb:76:in call' better_errors (1.1.0) lib/better_errors/middleware.rb:84:inprotected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:in better_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:incall' actionpack (4.0.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in call' actionpack (4.0.0) lib/action_dispatch/middleware/show_exceptions.rb:30:incall' railties (4.0.0) lib/rails/rack/logger.rb:38:in call_app' railties (4.0.0) lib/rails/rack/logger.rb:21:inblock in call' activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in block in tagged' activesupport (4.0.0) lib/active_support/tagged_logging.rb:25:intagged' activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in tagged' railties (4.0.0) lib/rails/rack/logger.rb:21:incall' quiet_assets (1.0.2) lib/quiet_assets.rb:18:in call_with_quiet_assets' actionpack (4.0.0) lib/action_dispatch/middleware/request_id.rb:21:incall' rack (1.5.2) lib/rack/methodoverride.rb:21:in call' rack (1.5.2) lib/rack/runtime.rb:17:incall' activesupport (4.0.0) lib/active_support/cache/strategy/local_cache.rb:83:in call' rack (1.5.2) lib/rack/lock.rb:17:incall' actionpack (4.0.0) lib/action_dispatch/middleware/static.rb:64:in call' railties (4.0.0) lib/rails/engine.rb:511:incall' railties (4.0.0) lib/rails/application.rb:97:in call' rack (1.5.2) lib/rack/content_length.rb:14:incall' thin (1.6.2) lib/thin/connection.rb:86:in block in pre_process' thin (1.6.2) lib/thin/connection.rb:84:inpre_process' thin (1.6.2) lib/thin/connection.rb:53:in process' thin (1.6.2) lib/thin/connection.rb:39:inreceive_data' eventmachine (1.0.3) lib/eventmachine.rb:187:in run' thin (1.6.2) lib/thin/backends/base.rb:73:instart' thin (1.6.2) lib/thin/server.rb:162:in start' rack (1.5.2) lib/rack/handler/thin.rb:16:inrun' rack (1.5.2) lib/rack/server.rb:264:in start' railties (4.0.0) lib/rails/commands/server.rb:84:instart' railties (4.0.0) lib/rails/commands.rb:78:in block in <top (required)>' railties (4.0.0) lib/rails/commands.rb:73:in<top (required)>' bin/rails:4:in `

'

Started POST "/__better_errors/60919160/variables" for 127.0.0.1 at 2014-04-15 03:03:47 -0300

martinszy commented 10 years ago

So... install instructions need to include a cp config/database.yml.example config/database.yml And after that, I run setup again, and rails s again but I still see an error:

$ rails s => Booting Thin => Rails 4.0.0 application starting in development on http://0.0.0.0:3000 => Run rails server -h for more startup options => Ctrl-C to shutdown server Thin web server (v1.6.2 codename Doc Brown) Maximum connections set to 1024 Listening on 0.0.0.0:3000, CTRL+C to stop

Started GET "/" for 127.0.0.1 at 2014-04-15 03:26:25 -0300 Processing by MainsController#index as HTML Completed 500 Internal Server Error in 29ms

NoMethodError - undefined method +' for nil:NilClass: app/controllers/mains_controller.rb:30:inget_current_chamber_agenda' app/controllers/mains_controller.rb:11:in index' actionpack (4.0.0) lib/action_controller/metal/implicit_render.rb:4:insend_action' actionpack (4.0.0) lib/abstract_controller/base.rb:189:in process_action' actionpack (4.0.0) lib/action_controller/metal/rendering.rb:10:inprocess_action' actionpack (4.0.0) lib/abstract_controller/callbacks.rb:18:in block in process_action' activesupport (4.0.0) lib/active_support/callbacks.rb:423:in_run3885367435593158074process_action__callbacks' activesupport (4.0.0) lib/active_support/callbacks.rb:80:in run_callbacks' actionpack (4.0.0) lib/abstract_controller/callbacks.rb:17:inprocess_action' actionpack (4.0.0) lib/action_controller/metal/rescue.rb:29:in process_action' actionpack (4.0.0) lib/action_controller/metal/instrumentation.rb:31:inblock in process_action' activesupport (4.0.0) lib/active_support/notifications.rb:159:in block in instrument' activesupport (4.0.0) lib/active_support/notifications/instrumenter.rb:20:ininstrument' activesupport (4.0.0) lib/active_support/notifications.rb:159:in instrument' actionpack (4.0.0) lib/action_controller/metal/instrumentation.rb:30:inprocess_action' actionpack (4.0.0) lib/action_controller/metal/params_wrapper.rb:245:in process_action' activerecord (4.0.0) lib/active_record/railties/controller_runtime.rb:18:inprocess_action' actionpack (4.0.0) lib/abstract_controller/base.rb:136:in process' actionpack (4.0.0) lib/abstract_controller/rendering.rb:44:inprocess' actionpack (4.0.0) lib/action_controller/metal.rb:195:in dispatch' actionpack (4.0.0) lib/action_controller/metal/rack_delegation.rb:13:indispatch' actionpack (4.0.0) lib/action_controller/metal.rb:231:in block in action' actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:80:indispatch' actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:48:in call' actionpack (4.0.0) lib/action_dispatch/journey/router.rb:71:inblock in call' actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in call' actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:655:incall' warden (1.2.3) lib/warden/manager.rb:35:in block in call' warden (1.2.3) lib/warden/manager.rb:34:incall' rack (1.5.2) lib/rack/etag.rb:23:in call' rack (1.5.2) lib/rack/conditionalget.rb:25:incall' rack (1.5.2) lib/rack/head.rb:11:in call' actionpack (4.0.0) lib/action_dispatch/middleware/params_parser.rb:27:incall' actionpack (4.0.0) lib/action_dispatch/middleware/flash.rb:241:in call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:incontext' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in call' actionpack (4.0.0) lib/action_dispatch/middleware/cookies.rb:486:incall' activerecord (4.0.0) lib/active_record/query_cache.rb:36:in call' activerecord (4.0.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:incall' actionpack (4.0.0) lib/action_dispatch/middleware/callbacks.rb:29:in block in call' activesupport (4.0.0) lib/active_support/callbacks.rb:373:in_run2668209418533443341call__callbacks' activesupport (4.0.0) lib/active_support/callbacks.rb:80:in run_callbacks' actionpack (4.0.0) lib/action_dispatch/middleware/callbacks.rb:27:incall' actionpack (4.0.0) lib/action_dispatch/middleware/reloader.rb:64:in call' actionpack (4.0.0) lib/action_dispatch/middleware/remote_ip.rb:76:incall' better_errors (1.1.0) lib/better_errors/middleware.rb:84:in protected_app_call' better_errors (1.1.0) lib/better_errors/middleware.rb:79:inbetter_errors_call' better_errors (1.1.0) lib/better_errors/middleware.rb:56:in call' actionpack (4.0.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:incall' actionpack (4.0.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in call' railties (4.0.0) lib/rails/rack/logger.rb:38:incall_app' railties (4.0.0) lib/rails/rack/logger.rb:21:in block in call' activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:inblock in tagged' activesupport (4.0.0) lib/active_support/tagged_logging.rb:25:in tagged' activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:intagged' railties (4.0.0) lib/rails/rack/logger.rb:21:in call' quiet_assets (1.0.2) lib/quiet_assets.rb:18:incall_with_quiet_assets' actionpack (4.0.0) lib/action_dispatch/middleware/request_id.rb:21:in call' rack (1.5.2) lib/rack/methodoverride.rb:21:incall' rack (1.5.2) lib/rack/runtime.rb:17:in call' activesupport (4.0.0) lib/active_support/cache/strategy/local_cache.rb:83:incall' rack (1.5.2) lib/rack/lock.rb:17:in call' actionpack (4.0.0) lib/action_dispatch/middleware/static.rb:64:incall' railties (4.0.0) lib/rails/engine.rb:511:in call' railties (4.0.0) lib/rails/application.rb:97:incall' rack (1.5.2) lib/rack/content_length.rb:14:in call' thin (1.6.2) lib/thin/connection.rb:86:inblock in pre_process' thin (1.6.2) lib/thin/connection.rb:84:in pre_process' thin (1.6.2) lib/thin/connection.rb:53:inprocess' thin (1.6.2) lib/thin/connection.rb:39:in receive_data' eventmachine (1.0.3) lib/eventmachine.rb:187:inrun' thin (1.6.2) lib/thin/backends/base.rb:73:in start' thin (1.6.2) lib/thin/server.rb:162:instart' rack (1.5.2) lib/rack/handler/thin.rb:16:in run' rack (1.5.2) lib/rack/server.rb:264:instart' railties (4.0.0) lib/rails/commands/server.rb:84:in start' railties (4.0.0) lib/rails/commands.rb:78:inblock in <top (required)>' railties (4.0.0) lib/rails/commands.rb:73:in <top (required)>' bin/rails:4:in

'

Started POST "/__better_errors/55936180/variables" for 127.0.0.1 at 2014-04-15 03:26:29 -0300

rezzo commented 10 years ago

Hi Martín, currently Legislativo require a few services that provide data for the chilean instance, we need change that behaviour (try/catch exceptions). In the home view it require source data of agendas (morph.io), bills (bill-it) and persons (popit). We can share the config file (config/private_legislative.yml) to you can run and navigate the app.

rezzo commented 10 years ago

improve documentation in 0f0814325f1fe338211b4c3ccecb02aa6f27e622