Hello,
I'm not a ruby ninja and I want to install mconf on Ubuntu 12.04.2.
I am following the steps from this guide:
https://github.com/mconf/mconf-web/wiki/Mconf-Web-Deployment-Manual
The environment ubuntu is:
mconf@mconfweb:~/mconf-web/current$ which rvm && which gem && which bundle
/usr/local/rvm/bin/rvm
/usr/local/rvm/rubies/ruby-1.9.2-p290/bin/gem
/usr/local/rvm/gems/ruby-1.9.2-p290@global/bin/bundle
Other environment configuration:
mconf@mconfweb:~/mconf-web/current$ gem -v && bundle -v && rvm -v && rvm list && rvm gemset list
2.1.9
Bundler version 1.3.4
rvm 1.23.10 (stable) by Wayne E. Seguin [email protected], Michal Papis < [email protected]> [https://rvm.io/]
rvm rubies
=* ruby-1.9.2-p290 [ i686 ]
'# => - current
'# =* - current && default
'# * - default
gemsets for ruby-1.9.2-p290 (found in /usr/local/rvm/gems/ruby-1.9.2-p290)
(default)
global
=> mconf
and in ~/ environment:
Using username "mconf".
Welcome to Ubuntu 12.04.3 LTS (GNU/Linux 3.8.0-32-generic i686)
Marked /home/mconf/mconf-web/current/.rvmrc as trusted
mconf@mconfweb:~$ rvm -v
rvm 1.23.10 (stable) by Wayne E. Seguin [email protected], Michal Papis [email protected] [https://rvm.io/]
mconf@mconfweb:~$ rvm gemset list
gemsets for ruby-1.9.2-p290 (found in /usr/local/rvm/gems/ruby-1.9.2-p290)
(default)
global
=> mconf
mconf@mconfweb:~$ rvm list
rvm rubies
=* ruby-1.9.2-p290 [ i686 ]
'# => - current
'# =* - current && default
'# * - default
mconf@mconfweb:$ gem -v
2.1.9
mconf@mconfweb:$ bundle -v
Bundler version 1.3.4
I've installed bundler 1.3.4 because in a post I've read this is not a problem. At first time i've installed bundler 1.0.18 but i've also got errors.
I have problem at step 5:
The mysql db setting as is:
mysql> show grants for current_user;
+------------------------------------------------------------------------------+
| Grants for mconf@localhost
| GRANT USAGE ON . TO 'mconf'@'localhost' IDENTIFIED BY PASSWORD '8B1E1EABF78E1BA89519817A4D5B33F4FBC0E8BB'
| GRANT ALL PRIVILEGES ON mconf_production
. TO 'mconf'@'localhost'
+------------------------------------------------------------------------------
I follow the instructions on post:
#4
mconf@mconfweb:~/mconf-web/current$ RAILS_ENV=production bundle exec rake db:drop db:create db:reset
(in /home/mconf/mconf-web/current)
rake aborted!
undefined local variable or method `acts_as_stage' for Site:Class
(See full trace by running task with --trace)
Trace give me the following informations:
mconf@mconfweb:~/mconf-web/current$ RAILS_ENV=production bundle exec rake db:drop db:create db:reset --trace
(in /home/mconf/mconf-web/current)
** Invoke db:drop (first_time)
** Invoke db:load_config (first_time)
** Invoke rails_env (first_time)
** Execute rails_env
** Execute db:load_config
** Execute db:drop
** Invoke db:create (first_time)
** Invoke db:load_config
** Execute db:create
** Invoke db:reset (first_time)
** Invoke db:drop
** Invoke db:setup (first_time)
** Invoke db:create
** Invoke db:schema:load (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
undefined local variable or method acts_as_stage' for Site:Class /home/mconf/mconf-web/current/app/models/site.rb:22:in
class:Site'
/home/mconf/mconf-web/current/app/models/site.rb:21:in <top (required)>' /home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/activesupport-3.0.20/lib/active_support/dependencies.rb:242:in
require'
/home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/activesupport-3.0.20/ lib/active_support/dependencies.rb:242:in block in require' /home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/activesupport-3.0.20/lib/active_support/dependencies.rb:227:in
load_dependency'
/home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/activesupport-3.0.20 lib/active_support/dependencies.rb:242:in require' /home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/activesupport-3.0.20/lib/active_support/dependencies.rb:350:in
require_or_load'
/home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/activesupport-3.0.20/ lib/active_support/dependencies.rb:491:in load_missing_constant' /home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/activesupport-3.0.20/lib/active_support/dependencies.rb:183:in
block in const_missing'
/home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/activesupport-3.0.20 lib/active_support/dependencies.rb:181:in each' /home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/activesupport-3.0.20/lib/active_support/dependencies.rb:181:in
const_missing'
/home/mconf/mconf-web/current/config/initializers/exception_notifier.rb:3:in <top (required)>' /home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/activesupport-3.0.20/lib/active_support/dependencies.rb:236:in
load'
/home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/activesupport-3.0.20/ lib/active_support/dependencies.rb:236:in block in load' /home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/activesupport-3.0.20/lib/active_support/dependencies.rb:227:in
load_dependency'
/home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/activesupport-3.0.20/ lib/active_support/dependencies.rb:236:in load' /home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/railties-3.0.20/lib/rails/engine.rb:201:in
block (2 levels) in class:Engine'
/home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/railties-3.0.20/lib/rails/engine.rb:200:in each' /home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/railties-3.0.20/lib/rails/engine.rb:200:in
block in class:Engine'
/home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/railties-3.0.20/lib/rails/initializable.rb:25:in instance_exec' /home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/railties-3.0.20/lib/rails/initializable.rb:25:in
run'
/home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/railties-3.0.20/lib/rails/initializable.rb:50:in block in run_initializers' /home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/railties-3.0.20/lib/rails/initializable.rb:49:in
each'
/home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/railties-3.0.20/lib/rails/initializable.rb:49:in run_initializers' /home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/railties-3.0.20/lib/rails/application.rb:134:in
initialize!'
/home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/railties-3.0.20/lib/rails/application.rb:77:in method_missing' /home/mconf/mconf-web/current/config/environment.rb:5:in
<top (required)>'
/home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/activesupport-3.0.20/ lib/active_support/dependencies.rb:242:in require' /home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/activesupport-3.0.20/ lib/active_support/dependencies.rb:242:in
block in require'
/home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/activesupport-3.0.20/ lib/active_support/dependencies.rb:225:in block in load_dependency' /home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/activesupport-3.0.20/ lib/active_support/dependencies.rb:597:in
new_constants_in'
/home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/activesupport-3.0.20/ lib/active_support/dependencies.rb:225:in load_dependency' /home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/activesupport-3.0.20/lib/active_support/dependencies.rb:242:in
require'
/home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/railties-3.0.20/lib/rails/application.rb:103:in require_environment!' /home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/railties-3.0.20/lib/rails/application.rb:218:in
block in initialize_tasks'
/home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:636:in call' /home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:636:in
block in execute'
/home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:631:in each' /home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:631:in
execute'
/home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:597:in block in invoke_with_call_chain' /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in
mon_synchronize'
/home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/rake-0.8.7/lib/rake.r b:590:in invoke_with_call_chain' /home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:607:in
block in invoke_prerequisites'
/home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:604:in each' /home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:604:in
invoke_prerequisites'
/home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:596:in block in invoke_with_call_chain' /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in
mon_synchronize'
/home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:590:in invoke_with_call_chain' /home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:607:in
block in invoke_prerequisites'
/home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:604:in each' /home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:604:in
invoke_prerequisites'
/home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/rake-0.8.7/lib/rake.r b:596:in block in invoke_with_call_chain' /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in
mon_synchronize'
/home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/rake-0.8.7/lib/rake.r b:590:in invoke_with_call_chain' /home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/rake-0.8.7/lib/rake.r b:607:in
block in invoke_prerequisites'
/home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:604:in each' /home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:604:in
invoke_prerequisites'
/home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:596:in block in invoke_with_call_chain' /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in
mon_sync hronize'
/home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:590:in invoke_with_call_chain' /home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:583:in
invoke'
/home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:2051:in invoke_task' /home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:2029:in
block (2 levels) in top_level'
/home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:2029:in each' /home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/rake-0.8.7/lib/rake.r b:2029:in
block in top_level'
/home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:2068:in standard_exception_handling' /home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/rake-0.8.7/lib/rake.r b:2023:in
top_level'
/home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/rake-0.8.7/lib/rake.r b:2001:in block in run' /home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/rake-0.8.7/lib/rake.rb:2068:in
standard_exception_handling'
/home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/rake-0.8.7/lib/rake.r b:1998:in run' /home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/gems/rake-0.8.7/bin/rake:31:in
<top (required)>'
/home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/bin/rake:23:in load' /home/mconf/mconf-web/current/vendor/cache/ruby/1.9.1/bin/rake:23:in
'
How can I troubleshoot this problem?
Thanks in advance for any help or advice, because at the moment I have no idea what and where is wrong.
Regards