Start web UI after reboot

weichieh's Avatar


10 Feb, 2018 09:46 AM

I am trying to start arachni_web automatically after reboot on my Debian 9 server but can't seem to make it work.

I created the file arachni-web.service in /etc/systemd/system:

Description=Arachni Web UI

ExecStart=/arachni/bin/arachni_web -D -o


To test, I can see the service started:

$ sudo systemctl start arachni-web.service
$ sudo systemctl list-units -t service --all | grep arachni
  arachni-web.service                  loaded    active   running Arachni Web UI

The process is running:

$ ps -ef | grep arachni
root      4573     1 99 17:34 ?        00:00:03 ruby /arachni/bin/../system/gems/bin/rackup /arachni/bin/../system/arachni-ui-web/ -D -o

But when I do a netstat -plnt, it is not listening on 9292. I can't connect using my web browser as well.

$ sudo netstat -plnt
[sudo] password for arachni: 
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp 0 0* LISTEN 899/postgres
tcp 0 0* LISTEN 1052/master
tcp 0 0* LISTEN 846/sshd
tcp6 0 0 ::1:25 :::* LISTEN 1052/master
tcp6 0 0 :::22 :::* LISTEN 846/sshd

Any ideas?

  1. 1 Posted by bWF0dC50b3JiaW4... on 12 Feb, 2018 09:09 PM

    bWF0dC50b3JiaW4K's Avatar

    Just for kicks, if you run /arachni/bin/arachni_web -D -o without the service, does the application UI appear? If so, my gut is leaning towards a daemon/user permissions issue, but that's just a guess.

  2. 2 Posted by weichieh on 13 Feb, 2018 04:46 AM

    weichieh's Avatar

    Yes, the web UI appears.


    $ ls -l /etc/systemd/system
    total 32
    -rwxr-xr-x 1 root root  185 Feb 10 17:34 arachni-web.service

    $ ls -l /arachni/bin total 80 -rwxr-xr-x 1 arachni arachni 389 Mar 29 2017 arachni_web

    Am I missing something?

  3. 3 Posted by bWF0dC50b3JiaW4... on 13 Feb, 2018 09:51 PM

    bWF0dC50b3JiaW4K's Avatar

    Admittedly systemd or initd setup is not my area of expertise. However, if you're able to run the exact same command as the service but when you invoke the service it works, I'm inclined to think of the issue as one of two things:

    1) Permissions: Does the daemon running the service have the permissions that it needs?
    2) Race Condition: Are there dependencies that are available once the system is fully booted that might not be available when the systemd or initd service is called?

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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