Content
Clean Installation on Debian Wheezy 7.5
Added by Alif OpenSource over 10 years ago
Hi All,
I’ve followed your installation instructions to the letter Can’t seem to get past the last step to run the app though. Met with this error. Please advice.
applications
pm:~/openproject$ bundle exec rails server RAILS_ENV=production
require ‘rails/all’… 0.340s
Bundler.require… 1.160s
Exiting
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.18/lib/active_support/depe ndencies.rb:251:in `require’: cannot load such file — rack/handler/rails__env=p roduction (LoadError)
from /usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.18/lib/active _support/dependencies.rb:251:in `block in require’
from /usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.18/lib/active _support/dependencies.rb:236:in `load_dependency’
from /usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.18/lib/active _support/dependencies.rb:251:in `require’
from /usr/local/rvm/gems/ruby-2.1.2/gems/rack-1.4.5/lib/rack/handler.rb: 63:in `try_require’
from /usr/local/rvm/gems/ruby-2.1.2/gems/rack-1.4.5/lib/rack/handler.rb: 16:in `get’
from /usr/local/rvm/gems/ruby-2.1.2/gems/rack-1.4.5/lib/rack/server.rb:2 72:in `server’
from /usr/local/rvm/gems/ruby-2.1.2/gems/railties-3.2.18/lib/rails/comma nds/server.rb:59:in `start’
from /usr/local/rvm/gems/ruby-2.1.2/gems/railties-3.2.18/lib/rails/comma nds.rb:55:in `block in <top (required)>’
from /usr/local/rvm/gems/ruby-2.1.2/gems/railties-3.2.18/lib/rails/comma nds.rb:50:in `tap’
from /usr/local/rvm/gems/ruby-2.1.2/gems/railties-3.2.18/lib/rails/comma nds.rb:50:in `<top (required)>’
from script/rails:6:in `require’
from script/rails:6:in `
’
applications@pm:~/openproject$
@
Thank you.
-AOS.
Replies (4)
bundle exec rails server -e production
to start production environment, but be aware that production environment is not serving static files by default (you can change it in config/environments/production.rb file or some similar name do not remember exactly)
Another error when i tried to run the command suggested to start the app.
ROR: relation "work_package_journals" does not exist (ActiveRecord::StatementIn valid) LINE 5: WHERE a.attrelid = '"work_package_journals"'::r... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"work_package_journals"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum from /usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.18/lib/active_ record/connection_adapters/postgresql_adapter.rb:1163:in `exec_no_cache' from /usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.18/lib/active_ record/connection_adapters/postgresql_adapter.rb:660:in `block in exec_query' from /usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.18/lib/active_ record/connection_adapters/abstract_adapter.rb:280:in `block in log' from /usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.18/lib/active _support/notifications/instrumenter.rb:20:in `instrument' from /usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.18/lib/active_ record/connection_adapters/abstract_adapter.rb:275:in `log' from /usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.18/lib/active_ record/connection_adapters/postgresql_adapter.rb:659:in `exec_query' from /usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.18/lib/active_ record/connection_adapters/postgresql_adapter.rb:1292:in `column_definitions' from /usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-3.2.18/lib/active_ record/connection_adapters/postgresql_adapter.rb:855:in `columns' from /home/applications/openproject/app/models/journal/base_journal.rb:5 4:in `db_columns' from /home/applications/openproject/app/models/journal/base_journal.rb:4 6:in `column_names' from /home/applications/openproject/app/models/journal/base_journal.rb:4 0:in `journaled_attributes' from /home/applications/openproject/app/services/planning_comparison_ser vice.rb:44:in `<class:PlanningComparisonService>' from /home/applications/openproject/app/services/planning_comparison_ser vice.rb:30:in `<top (required)>' from /usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.18/lib/active _support/dependencies.rb:251:in `require' from /usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.18/lib/active _support/dependencies.rb:251:in `block in require' from /usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.18/lib/active _support/dependencies.rb:236:in `load_dependency' from /usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.18/lib/active _support/dependencies.rb:251:in `require' from /usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.18/lib/active _support/dependencies.rb:359:in `require_or_load' from /usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.18/lib/active _support/dependencies.rb:313:in `depend_on' from /usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.18/lib/active _support/dependencies.rb:225:in `require_dependency' from /usr/local/rvm/gems/ruby-2.1.2/gems/railties-3.2.18/lib/rails/engin e.rb:444:in `block (2 levels) in eager_load!' from /usr/local/rvm/gems/ruby-2.1.2/gems/railties-3.2.18/lib/rails/engin e.rb:443:in `each' from /usr/local/rvm/gems/ruby-2.1.2/gems/railties-3.2.18/lib/rails/engin e.rb:443:in `block in eager_load!' from /usr/local/rvm/gems/ruby-2.1.2/gems/railties-3.2.18/lib/rails/engin e.rb:441:in `each' from /usr/local/rvm/gems/ruby-2.1.2/gems/railties-3.2.18/lib/rails/engin e.rb:441:in `eager_load!' from /usr/local/rvm/gems/ruby-2.1.2/gems/railties-3.2.18/lib/rails/appli cation/finisher.rb:53:in `block in <module:Finisher>' from /usr/local/rvm/gems/ruby-2.1.2/gems/railties-3.2.18/lib/rails/initi alizable.rb:30:in `instance_exec' from /usr/local/rvm/gems/ruby-2.1.2/gems/railties-3.2.18/lib/rails/initi alizable.rb:30:in `run' from /usr/local/rvm/gems/ruby-2.1.2/gems/railties-3.2.18/lib/rails/initi alizable.rb:55:in `block in run_initializers' from /usr/local/rvm/gems/ruby-2.1.2/gems/railties-3.2.18/lib/rails/initi alizable.rb:54:in `each' from /usr/local/rvm/gems/ruby-2.1.2/gems/railties-3.2.18/lib/rails/initi alizable.rb:54:in `run_initializers' from /usr/local/rvm/gems/ruby-2.1.2/gems/railties-3.2.18/lib/rails/appli cation.rb:136:in `initialize!' from /usr/local/rvm/gems/ruby-2.1.2/gems/railties-3.2.18/lib/rails/railt ie/configurable.rb:30:in `method_missing' from /home/applications/openproject/config/environment.rb:36:in `block i n <top (required)>' from /home/applications/openproject/config/application.rb:44:in `block i n bench' from /usr/local/rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/benchmark.rb:279:in `measure' from /home/applications/openproject/config/application.rb:43:in `bench' from /home/applications/openproject/config/environment.rb:34:in `<top (r equired)>' from /usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.18/lib/active _support/dependencies.rb:251:in `require' from /usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.18/lib/active _support/dependencies.rb:251:in `block in require' from /usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.18/lib/active _support/dependencies.rb:236:in `load_dependency' from /usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-3.2.18/lib/active _support/dependencies.rb:251:in `require' from /home/applications/openproject/config.ru:32:in `block in <main>' from /usr/local/rvm/gems/ruby-2.1.2/gems/rack-1.4.5/lib/rack/builder.rb: 51:in `instance_eval' from /usr/local/rvm/gems/ruby-2.1.2/gems/rack-1.4.5/lib/rack/builder.rb: 51:in `initialize' from /home/applications/openproject/config.ru:in `new' from /home/applications/openproject/config.ru:in `<main>' from /usr/local/rvm/gems/ruby-2.1.2/gems/rack-1.4.5/lib/rack/builder.rb: 40:in `eval' from /usr/local/rvm/gems/ruby-2.1.2/gems/rack-1.4.5/lib/rack/builder.rb: 40:in `parse_file' from /usr/local/rvm/gems/ruby-2.1.2/gems/rack-1.4.5/lib/rack/server.rb:2 00:in `app' from /usr/local/rvm/gems/ruby-2.1.2/gems/railties-3.2.18/lib/rails/comma nds/server.rb:46:in `app' from /usr/local/rvm/gems/ruby-2.1.2/gems/rack-1.4.5/lib/rack/server.rb:3 04:in `wrapped_app' from /usr/local/rvm/gems/ruby-2.1.2/gems/rack-1.4.5/lib/rack/server.rb:2 54:in `start' from /usr/local/rvm/gems/ruby-2.1.2/gems/railties-3.2.18/lib/rails/comma nds/server.rb:70:in `start' from /usr/local/rvm/gems/ruby-2.1.2/gems/railties-3.2.18/lib/rails/comma nds.rb:55:in `block in <top (required)>' from /usr/local/rvm/gems/ruby-2.1.2/gems/railties-3.2.18/lib/rails/comma nds.rb:50:in `tap' from /usr/local/rvm/gems/ruby-2.1.2/gems/railties-3.2.18/lib/rails/comma nds.rb:50:in `<top (required)>' from script/rails:6:in `require' from script/rails:6:in `<main>'
Any ideas? Noob declaration.
Thank you.
-AOS.
Hello Alif,
I had this kind of problem (with document module) I solved it with this
bundle exec rake db:create:all
#to ensure that database is createdRAILS_ENV=production bundle exec rake db:migrate
# to ensure that all database changes required by pluggins are doneRAILS_ENV=production bundle exec rake assets:precompile
# precompile assets …RAILS_ENV=production bundle exec rails server
The problem was that a pluggin required to change data base and migrate did this job !
That seem to be the case with you
Hi Guys,
Problem is this, when its started, i can no longer use any linux command. It like I have to start another session. Also when i load domain.com:3000, logging in with admin:admin did not work. And it seemed like there is no css or design working. Please advice.
Thank you.
-AOS.