NoMethodError: undefined method `platforms' for nil:NilClass

Neal Harris's Avatar

Neal Harris

10 Feb, 2015 08:10 PM

We've written some automation that runs many Arachni Scans simultaneously. (We're using Sidekiq.) Occasionally (though not reliably), we see errors like this:

NoMethodError: undefined method platforms' for nil:NilClass gems/arachni-1.0.6/lib/arachni/check/manager.rb:62:in[]' gems/arachni-1.0.6/lib/arachni/component/manager.rb:117:in block in load' gems/arachni-1.0.6/lib/arachni/component/manager.rb:117:ineach' gems/arachni-1.0.6/lib/arachni/component/manager.rb:117:in load' <app-path>/arachni_scan.rb:52:insetup'

Here's our setup method:

  def setup
    @log = open(log_filepath,'a')
    opts = arachni_options
    @framework =
    # need to reset the framework in order to reuse it
    # TODO: make this configuraable, with a sensible default

Is there anything obvious I can do to improve this?

  1. Support Staff 1 Posted by Tasos Laskos on 10 Feb, 2015 08:20 PM

    Tasos Laskos's Avatar

    Arachni's workflow is one site per scan, one scan per process, and if I'm not mistaken Sidekiq uses threads for the jobs; this can lead to all sorts of issues.

    Unless you're intimately familiar with the Framework, you should be using the RPC API in order to acquire scanner instances and perform parallel scans.


  2. Tasos Laskos closed this discussion on 05 Mar, 2015 06:00 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac