Snorby / snorby

Ruby On Rails Application For Network Security Monitoring
Other
1k stars 226 forks source link

Problem when installing snorby. sudo bundle exec rake snorby:setup #493

Open c008644 opened 6 years ago

c008644 commented 6 years ago

Hello all,

I am having a problem installing snorby on Ubuntu. I have been following the guide at https://github.com/bensooter/Snort16OnUbuntu/tree/0b7d64ca5fb2bf7caab1b617732453a25607732b modifying it as needed for Ubuntu 18. When I get to the part of actually building Snorby I get the rake aborted error.

$ sudo bundle exec rake snorby:setup --trace rake aborted! undefined method yaml_as' for Module:Class Did you mean? yaml_tag /var/lib/gems/2.5.0/gems/delayed_job-2.1.4/lib/delayed/yaml_ext.rb:8:in' /var/lib/gems/2.5.0/gems/delayed_job-2.1.4/lib/delayed/yaml_ext.rb:7:in <top (required)>' /var/lib/gems/2.5.0/gems/activesupport-3.2.22/lib/active_support/dependencies.rb:251:inrequire' /var/lib/gems/2.5.0/gems/activesupport-3.2.22/lib/active_support/dependencies.rb:251:in block in require' /var/lib/gems/2.5.0/gems/activesupport-3.2.22/lib/active_support/dependencies.rb:236:inload_dependency' /var/lib/gems/2.5.0/gems/activesupport-3.2.22/lib/active_support/dependencies.rb:251:in require' /var/lib/gems/2.5.0/gems/delayed_job-2.1.4/lib/delayed_job.rb:6:in<top (required)>' /var/lib/gems/2.5.0/gems/bundler-1.16.6/lib/bundler/runtime.rb:81:in require' /var/lib/gems/2.5.0/gems/bundler-1.16.6/lib/bundler/runtime.rb:81:inblock (2 levels) in require' /var/lib/gems/2.5.0/gems/bundler-1.16.6/lib/bundler/runtime.rb:76:in each' /var/lib/gems/2.5.0/gems/bundler-1.16.6/lib/bundler/runtime.rb:76:inblock in require' /var/lib/gems/2.5.0/gems/bundler-1.16.6/lib/bundler/runtime.rb:65:in each' /var/lib/gems/2.5.0/gems/bundler-1.16.6/lib/bundler/runtime.rb:65:inrequire' /var/lib/gems/2.5.0/gems/bundler-1.16.6/lib/bundler.rb:114:in require' /var/www/snorby/config/application.rb:12:in<top (required)>' /var/www/snorby/Rakefile:4:in require' /var/www/snorby/Rakefile:4:in<top (required)>' /var/lib/gems/2.5.0/gems/rake-0.9.2/lib/rake/rake_module.rb:25:in load' /var/lib/gems/2.5.0/gems/rake-0.9.2/lib/rake/rake_module.rb:25:inload_rakefile' /var/lib/gems/2.5.0/gems/rake-0.9.2/lib/rake/application.rb:495:in raw_load_rakefile' /var/lib/gems/2.5.0/gems/rake-0.9.2/lib/rake/application.rb:78:inblock in load_rakefile' /var/lib/gems/2.5.0/gems/rake-0.9.2/lib/rake/application.rb:129:in standard_exception_handling' /var/lib/gems/2.5.0/gems/rake-0.9.2/lib/rake/application.rb:77:inload_rakefile' /var/lib/gems/2.5.0/gems/rake-0.9.2/lib/rake/application.rb:61:in block in run' /var/lib/gems/2.5.0/gems/rake-0.9.2/lib/rake/application.rb:129:instandard_exception_handling' /var/lib/gems/2.5.0/gems/rake-0.9.2/lib/rake/application.rb:59:in run' /var/lib/gems/2.5.0/gems/rake-0.9.2/bin/rake:32:in<top (required)>' /usr/local/bin/rake:23:in load' /usr/local/bin/rake:23:in<top (required)>' /var/lib/gems/2.5.0/gems/bundler-1.16.6/lib/bundler/cli/exec.rb:74:in load' /var/lib/gems/2.5.0/gems/bundler-1.16.6/lib/bundler/cli/exec.rb:74:inkernel_load' /var/lib/gems/2.5.0/gems/bundler-1.16.6/lib/bundler/cli/exec.rb:28:in run' /var/lib/gems/2.5.0/gems/bundler-1.16.6/lib/bundler/cli.rb:424:inexec' /var/lib/gems/2.5.0/gems/bundler-1.16.6/lib/bundler/vendor/thor/lib/thor/command.rb:27:in run' /var/lib/gems/2.5.0/gems/bundler-1.16.6/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:ininvoke_command' /var/lib/gems/2.5.0/gems/bundler-1.16.6/lib/bundler/vendor/thor/lib/thor.rb:387:in dispatch' /var/lib/gems/2.5.0/gems/bundler-1.16.6/lib/bundler/cli.rb:27:indispatch' /var/lib/gems/2.5.0/gems/bundler-1.16.6/lib/bundler/vendor/thor/lib/thor/base.rb:466:in start' /var/lib/gems/2.5.0/gems/bundler-1.16.6/lib/bundler/cli.rb:18:instart' /var/lib/gems/2.5.0/gems/bundler-1.16.6/exe/bundle:30:in block in <top (required)>' /var/lib/gems/2.5.0/gems/bundler-1.16.6/lib/bundler/friendly_errors.rb:124:inwith_friendly_errors' /var/lib/gems/2.5.0/gems/bundler-1.16.6/exe/bundle:22:in <top (required)>' /usr/local/bin/bundle:23:inload' /usr/local/bin/bundle:23:in `

'

I am running ruby 2.5.1p57

I have been working on this for the last few weeks and cannot find the answer myself. Any help would be appreciated.

q2dg commented 5 years ago

Well, it seems this project is pretty abandoned

ghost commented 5 years ago

You want to replace the string "yaml_as" with "yaml_tag" in the files listed.

You can also grep your ruby directory for the string yaml_as "grep -R -i yaml_as directory" to find any other files with the deprecated method.

This fixed the issue for me.

ChrissT94 commented 4 years ago

jkellogg90

You want to replace the string "yaml_as" with "yaml_tag" in the files listed.

You can also grep your ruby directory for the string yaml_as "grep -R -i yaml_as directory" to find any other files with the deprecated method.

This fixed the issue for me.

Where are the yaml_as files located?