Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoMethodError: undefind method #142

Closed
drfbot opened this issue Nov 9, 2017 · 2 comments
Closed

NoMethodError: undefind method #142

drfbot opened this issue Nov 9, 2017 · 2 comments
Labels
Milestone

Comments

@drfbot
Copy link

drfbot commented Nov 9, 2017

If I run the following command

RAILS_ENV=production bundle exec bin/kor list-permissions -u ALL

I get the following output and error.

command: list-permissions
options: {:format=>"excel", :username=>"admin", :ignore_stale=>false, :obey_permissions=>false, :simulate=>false, :ignore_validations=>false, :collection_id=>[], :kind_id=>[], :verbose=>true, :user_id=>"ALL"}
Entities:
bundler: failed to load command: /bin/kor (/bin/kor)
NoMethodError: **undefined method print_table' for Kor::Tasks:Class** /home/kor/kor/lib/kor/tasks.rb:156:in list_permissions'
/home/kor/kor/lib/kor/command_line.rb:89:in task' /home/kor/kor/lib/kor/command_line.rb:134:in run'
/home/kor/kor/bin/kor:11:in `<top (required)>

If I run the command

RAILS_ENV=production bundle exec bin/kor editor-stats
I get an even more confusing Error:

processing 0 out of 5
bundler: failed to load command: bin/kor (bin/kor)
NameError: uninitialized constant Kor::Statistics::Editors::Hirb
/home/kor/kor/lib/kor/statistics/editors.rb:53:in report' /home/kor/kor/lib/kor/tasks.rb:87:in editor_stats'
/home/kor/kor/lib/kor/command_line.rb:89:in task' /home/kor/kor/lib/kor/command_line.rb:121:in run'
bin/kor:11:in `<top (required)>'

despite these commands are run by the user kor, selinux is temporarily disabled and the method is definetly declared in tasks.rb.

I have no clue any more where the user kor lacks permissions or if there is something else.

@moritzschepp moritzschepp added this to the v2.1.1 milestone Nov 9, 2017
@moritzschepp
Copy link
Member

Thanks for the report. The problem was not permissions related. There was a dependency not loading. This should be fixed in the current master. Let me know if that doesn't work.

@drfbot
Copy link
Author

drfbot commented Nov 10, 2017

it works! - thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants