Open nsrivastava2 opened 10 years ago
I also get the following error:
root@redmine:/home/redmine/redmine/plugins# rake redmine:plugins:migrate NAME=redmine_knowledgebase RAILS_ENV=production
(in /home/redmine/redmine)
Could not find gem 'ya2yaml (>= 0) ruby' in the gems available on this machine.
Run bundle install
to install missing gems.
Is this still an issue?
Thanks
I have a similiar problem, any recomandations ?
rake redmine:plugins NAME=systango_hrm RAILS_ENV=production rake aborted! NoMethodError: undefined method `state_machine' for SystangoHrmEmployeeLeave(Table doesn't exist):Class
Hi @procesorrr , It seems like you have installed the plugin incorrectly. Please provide your installation steps, so that we can identify the issue.
Hi guys, Thanks for the reply, the steps we're the following.
NoMethodError: undefined method `state_machine' for SystangoHrmEmployeeLeave(Table doesn't exist):Class
Hi @procesorrr Database doesn't affects this. It occurs when you are running migrations.
I think there is some other issue, may be the installation process. Can you please let us know commands including your console paths and output from the steps you started this plugin's installation so that we can replicate the issue.
Also do let us know your Redmine version.
Hi guys,
Redmine version is 2.5.1 stable, os is Debian 7.6, ruby version 1.9.3, rake version 10.3.2 and bellow is a list of all my gems,
actionmailer (4.1.6) actionpack (4.1.6) actionview (4.1.6) activemodel (4.1.6) activerecord (4.1.6) activesupport (4.1.6) arel (5.0.1.20140414130214) builder (3.2.2) bundle (0.0.1) bundler (1.7.4) columnize (0.8.9) debugger-linecache (1.2.0) delayed_job (4.0.4) delayed_job_active_record (4.0.2) erubis (2.7.0) hike (1.2.3) i18n (0.6.11) json (1.8.1) mail (2.6.1) mime-types (2.4.3) mini_portile (0.6.0) minitest (5.4.2) multi_json (1.10.1) nokogiri (1.6.3.1) rack (1.5.2) rack-test (0.6.2) rails (4.1.6) railties (4.1.6) rake (10.3.2) slop (3.6.0) sprockets (2.12.2) sprockets-rails (2.2.0) sqlite3 (1.3.9) state_machine (1.2.0) thor (0.19.1) thread_safe (0.3.4) tilt (1.4.1) tzinfo (1.2.2) webrat (0.7.3) will_paginate (3.0.7)
The steps are the same i mentioned in my first post.
Thank you for your time, Alin M
root@xxx:/usr/share/redmine/plugins/systango_hrm# bundle install --without development test RAILS_ENV=production
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on
this machine.
Using i18n 0.6.11
Using json 1.8.1
Using minitest 5.4.2
Using thread_safe 0.3.4
Using tzinfo 1.2.2
Using activesupport 4.1.6
Using builder 3.2.2
Using activemodel 4.1.6
Using arel 5.0.1.20140414130214
Using activerecord 4.1.6
Using delayed_job 4.0.4
Using delayed_job_active_record 4.0.2
Using state_machine 1.2.0
Using will_paginate 3.0.7
Using bundler 1.7.4
Your bundle is complete!
Gems in the groups development, test and RAILS_ENV=production were not installed.
Use bundle show [gemname]
to see where a bundled gem is installed.
root@xxx:/usr/share/redmine/plugins/systango_hrm# rake redmine:plugins NAME=systango_hrm RAILS_ENV=production (in /usr/share/redmine) rake aborted! NoMethodError: undefined method `state_machine' for SystangoHrmEmployeeLeave(Table doesn't exist):Class
@procesorrr
Please try to install gems from redmine directory (root@xxx:/usr/share/redmine#) instead of plugins directory. Let me know if this works.
@stpl
Unfortunatly it still doesn't work, i've copied the plugin Gemfile in /usr/share/redmine, ran bundle install, all the plugins we're installed succesfully, but when i run "rake redmine:plugins NAME=systango_hrm RAILS_ENV=production" the same error
root@xxx:/usr/share/redmine# rake redmine:plugins NAME=systango_hrm RAILS_ENV=production rake aborted! NoMethodError: undefined method `state_machine' for SystangoHrmEmployeeLeave(Table doesn't exist):Class
@procesorrr , Please do not replace Redmine's Gemfile with plugin's Gemfile. Redmine have it's own gems. So once you get Redmine's Gemfile back. Try to run from /usr/share/redmine :
Please let me know if problem still alive.
@stpl
Sorry for the late response, now another issues arrised, it's never ending. I will try to install on another distro.
root@xxx:/usr/share/redmine# bundle exec rake redmine:plugins NAME=systango_hrm RAILS_ENV=production
rake aborted!
NoMethodError: undefined method eager_load_namespaces' for #<Rails::Railtie::Configuration:0x000000021d4460> /var/lib/gems/1.9.1/gems/activesupport-4.1.6/lib/active_support/railtie.rb:8:in
class:Railtie'
/var/lib/gems/1.9.1/gems/activesupport-4.1.6/lib/active_support/railtie.rb:5:in <module:ActiveSupport>' /var/lib/gems/1.9.1/gems/activesupport-4.1.6/lib/active_support/railtie.rb:4:in
<top (required)>'
(See full trace by running task with --trace)
root@xxx:/usr/share/redmine# bundle exec rake redmine:plugins NAME=systango_hrm RAILS_ENV=production --trace
rake aborted!
NoMethodError: undefined method eager_load_namespaces' for #<Rails::Railtie::Configuration:0x000000020484e8> /usr/lib/ruby/vendor_ruby/rails/railtie/configuration.rb:85:in
method_missing'
/var/lib/gems/1.9.1/gems/activesupport-4.1.6/lib/active_support/railtie.rb:8:in <class:Railtie>' /var/lib/gems/1.9.1/gems/activesupport-4.1.6/lib/active_support/railtie.rb:5:in
module:ActiveSupport'
/var/lib/gems/1.9.1/gems/activesupport-4.1.6/lib/active_support/railtie.rb:4:in <top (required)>' /usr/lib/ruby/vendor_ruby/rails.rb:13:in
require'
/usr/lib/ruby/vendor_ruby/rails.rb:13:in <top (required)>' /usr/lib/ruby/vendor_ruby/rails/all.rb:1:in
require'
/usr/lib/ruby/vendor_ruby/rails/all.rb:1:in <top (required)>' /usr/share/redmine/config/application.rb:3:in
require'
/usr/share/redmine/config/application.rb:3:in <top (required)>' /usr/share/redmine/Rakefile:5:in
require'
/usr/share/redmine/Rakefile:5:in <top (required)>' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/rake_module.rb:28:in
load'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/rake_module.rb:28:in load_rakefile' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:687:in
raw_load_rakefile'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:94:in block in load_rakefile' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:176:in
standard_exception_handling'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:93:in load_rakefile' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:77:in
block in run'
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:176:in standard_exception_handling' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:75:in
run'
/var/lib/gems/1.9.1/gems/rake-10.3.2/bin/rake:33:in <top (required)>' /usr/local/bin/rake:23:in
load'
/usr/local/bin/rake:23:in `
@procesorrr
As we can see in your logs, you are using rails 4.1.6 which is not supported by Redmine till now. I think , you have configured Redmine incorrectly. I would suggest you should setup Redmine again by following below steps:
Please follow these steps carefully as I suggested. I hope it'll works :)
When install the system show the next error
DL is deprecated, please use Fiddle
Your Gemfile lists the gem vcard (~> 0.2.8) more than once.
You should probably keep only one of them.
While it's not a problem now, it could cause errors if you change the version of
just one of them later.
rake aborted!
NameError: uninitialized constant SystangoHrmCompoffObserver
C:/Bitnami/redmine-2.6.0-3/apps/redmine/htdocs/config/environment.rb:14:in <top (required)>' C:/Bitnami/redmine-2.6.0-3/apps/redmine/htdocs/lib/tasks/redmine.rake:52:in
blo
ck (2 levels) in <top (required)>'
Tasks: TOP => redmine:plugins:migrate => environment
(See full trace by running task with --trace)
When I am trying to install your plugin it keeps on giving the error that Money Gem is not installed. I have installed the same yet, the error keeps coming
root@redmine:/home/redmine/redmine/plugins/systango_hrm# rake redmine:plugins NAME=systango_hrm RAILS_ENV=production (in /home/redmine/redmine) Could not find gem 'money (~> 5.1.0) ruby' in the gems available on this machine. Run
bundle install
to install missing gems.