tag:support.arachni-scanner.com,2012-07-01:/discussions/problems/3884-web-ui-hangs-no-grid-and-remote-scansArachni: Discussion 2015-09-03T02:35:02Ztag:support.arachni-scanner.com,2012-07-01:Comment/378314172015-09-03T01:57:21Z2015-09-03T01:57:22ZWeb UI hangs no grid and remote scans<div><p>Hi all,</p>
<p>I have experienced a problem when running grid/remote scans from
the webui. Each time a scan is started it sit there stating "scan
is starting" and never continues. When this happens the
/system/logs/webui/production.log file rapidly increases to several
gigs.</p>
<p>The 2 *nix servers are allocated one vcore and 1gb of ram. I
know this is not much but I have recreated the default profile with
the following changes to help:<br>
HTTP request queue size: 40<br>
Pool size: 2<br>
Screen width: 1440<br>
Screen height: 900</p>
<p>Server 1:<br>
sudo bin/arachni_web -p 8080<br>
sudo bin/arachni_rpcd --address "IP Address" --port 9090 --nickname
scan1 --pool-size 2</p>
<p>Server2:<br>
sudo bin/arachni_rpcd --address "IP Address" --port 9090 --nickname
scan2 --pool-size 2</p>
<p>This happens only if running a GRID scan when running a Remote
scan from server2. When the scan is started you can see the
dispatcher write: Call: dispatcher.dispatch but then never
continues. The log file just cycles through:</p>
<p>Arachni::Reactor:
/usr/bin/arachni/system/gems/gems/arachni-reactor-0.1.0/lib/ar<br>
achni/reactor/connection.rb:228:in <code>connect_nonblock'
Arachni::Reactor:
/usr/bin/arachni/system/gems/gems/arachni-reactor-0.1.0/lib/ar
achni/reactor/connection.rb:228:in</code>block in <em>connect'<br>
Arachni::Reactor:
/usr/bin/arachni/system/gems/gems/arachni-reactor-0.1.0/lib/arachni/reactor/connection/error.rb:26:in
<code>call' Arachni::Reactor:
/usr/bin/arachni/system/gems/gems/arachni-reactor-0.1.0/lib/arachni/reactor/connection/error.rb:26:in</code>translate'<br>
Arachni::Reactor:
/usr/bin/arachni/system/gems/gems/arachni-reactor-0.1.0/lib/arachni/reactor/connection.rb:227:in
<code>_connect' Arachni::Reactor:
/usr/bin/arachni/system/gems/gems/arachni-reactor-0.1.0/lib/arachni/reactor/connection/tls.rb:82:in</code>block
in <em>connect'<br>
Arachni::Reactor:
/usr/bin/arachni/system/gems/gems/arachni-reactor-0.1.0/lib/arachni/reactor/connection/error.rb:26:in
<code>call' Arachni::Reactor:
/usr/bin/arachni/system/gems/gems/arachni-reactor-0.1.0/lib/arachni/reactor/connection/error.rb:26:in</code>translate'<br>
Arachni::Reactor:
/usr/bin/arachni/system/gems/gems/arachni-reactor-0.1.0/lib/arachni/reactor/connection/tls.rb:81:in
<code>_connect' Arachni::Reactor:
/usr/bin/arachni/system/gems/gems/arachni-reactor-0.1.0/lib/arachni/reactor.rb:564:in</code>block
in process</em>connections'<br>
Arachni::Reactor:
/usr/bin/arachni/system/gems/gems/arachni-reactor-0.1.0/lib/arachni/reactor.rb:563:in
<code>each' Arachni::Reactor:
/usr/bin/arachni/system/gems/gems/arachni-reactor-0.1.0/lib/ar
achni/reactor.rb:563:in</code>process</em>connections'<br>
Arachni::Reactor:
/usr/bin/arachni/system/gems/gems/arachni-reactor-0.1.0/lib/arachni/reactor.rb:316:in
<code>block in run' Arachni::Reactor:
/usr/bin/arachni/system/gems/gems/arachni-reactor-0.1.0/lib/arachni/reactor.rb:307:in</code>loop'<br>
Arachni::Reactor:
/usr/bin/arachni/system/gems/gems/arachni-reactor-0.1.0/lib/arachni/reactor.rb:307:in
<code>run' Arachni::Reactor:
/usr/bin/arachni/system/gems/gems/arachni-reactor-0.1.0/lib/arachni/reactor.rb:349:in</code>block
in run_in_thread'<br>
Arachni::Reactor: Operation already in progress - connect(2) for
192.168.205.62:55728<br>
Arachni::Reactor:
/usr/bin/arachni/system/gems/gems/arachni-reactor-0.1.0/lib/arachni/reactor/connection.rb:228:in
<code>connect_nonblock' Arachni::Reactor:
/usr/bin/arachni/system/gems/gems/arachni-reactor-0.1.0/lib/arachni/reactor/connection.rb:228:in</code>block
in _connect'<br>
Arachni::Reactor:
/usr/bin/arachni/system/gems/gems/arachni-reactor-0.1.0/lib/arachni/reactor/connection/error.rb:26:in
<code>call' Arachni::Reactor:
/usr/bin/arachni/system/gems/gems/arachni-reactor-0.1.0/lib/arachni/reactor/connection/error.rb:26:in</code>translate'</p>
<p>Let me know what you think.</p>
<p>Thanks,<br>
Ryan</p></div>Ryantag:support.arachni-scanner.com,2012-07-01:Comment/378314172015-09-03T02:02:35Z2015-09-03T02:02:35ZWeb UI hangs no grid and remote scans<div><p>Are the nodes accessible via the addresses you've configured
them to listen on?</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/378314172015-09-03T02:18:29Z2015-09-03T02:18:30ZWeb UI hangs no grid and remote scans<div><p>Thanks for your prompt reply!</p>
<p>Yes I have used Netcat to check connectivity between server
1&2 on port 9090 and you can also see them show up in the
dispatcher tab of the web ui.</p></div>Ryantag:support.arachni-scanner.com,2012-07-01:Comment/378314172015-09-03T02:23:09Z2015-09-03T02:23:09ZWeb UI hangs no grid and remote scans<div><p>Is access to other ports restricted?<br>
Dispatchers spawn and provide Instances, Instances are separate
processes and bind to their own ports.<br>
You can configure the Dispatchers with a <code>--port-range</code>
if you need something more predictable.</p></div>Tasos Laskostag:support.arachni-scanner.com,2012-07-01:Comment/378314172015-09-03T02:32:15Z2015-09-03T02:32:16ZWeb UI hangs no grid and remote scans<div><p>That is likely to be the problem.</p>
<p>Thanks again for your help, and good job making such an
excellent tool!</p></div>Ryantag:support.arachni-scanner.com,2012-07-01:Comment/378314172015-09-03T02:35:02Z2015-09-03T02:35:02ZWeb UI hangs no grid and remote scans<div><p>Thanks man, feel free to re-open if you keep having issues.</p>
<p>Cheers</p></div>Tasos Laskos