View Issue Details

IDProjectCategoryView StatusLast Update
0003607Kali LinuxKali Package Bugpublic2017-07-18 13:17
Reporterg0tmi1k Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Summary0003607: Dradis missing required 'less' gem - Please package ruby-less
Description

It looks like dradis package requires the 'less' gem - which isn't in the repos.

Manually using the gem fixes the issue (going outside of the repo)

Currently the service will NOT start up correctly without it.

After installing, the service starts working again.

Steps To Reproduce

[root:~]#[root:~]# systemctl start dradis
[root:~]#
[root:~]# systemctl status dradis
● dradis.service - Dradis web application
Loaded: loaded (/lib/systemd/system/dradis.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2016-09-21 07:36:15 EDT; 441ms ago
Process: 4781 ExecStart=/usr/bin/bundle exec rails server (code=exited, status=1/FAILURE)
Main PID: 4781 (code=exited, status=1/FAILURE)

Sep 21 07:36:15 kali bundle[4781]: from bin/rails:4:in require' Sep 21 07:36:15 kali bundle[4781]: from bin/rails:4:in<main>'
Sep 21 07:36:15 kali bundle[4781]: => Booting Thin
Sep 21 07:36:15 kali bundle[4781]: => Rails 4.2.6 application starting in development on http://localhost:3000
Sep 21 07:36:15 kali bundle[4781]: => Run rails server -h for more startup options
Sep 21 07:36:15 kali bundle[4781]: => Ctrl-C to shutdown server
Sep 21 07:36:15 kali bundle[4781]: Exiting
Sep 21 07:36:15 kali systemd[1]: dradis.service: Main process exited, code=exited, status=1/FAILURE
Sep 21 07:36:15 kali systemd[1]: dradis.service: Unit entered failed state.
Sep 21 07:36:15 kali systemd[1]: dradis.service: Failed with result 'exit-code'.
[root:~]#

[root:~]# gem install less
Fetching: commonjs-0.2.7.gem (100%)
Successfully installed commonjs-0.2.7
Fetching: less-2.6.0.gem (100%)
Successfully installed less-2.6.0
Parsing documentation for commonjs-0.2.7
Installing ri documentation for commonjs-0.2.7
Parsing documentation for less-2.6.0
Installing ri documentation for less-2.6.0
Done installing documentation for commonjs, less after 34 seconds
2 gems installed
[root:~]#

[root:~]# systemctl start dradis
[root:~]#
[root:~]# systemctl status dradis
● dradis.service - Dradis web application
Loaded: loaded (/lib/systemd/system/dradis.service; disabled; vendor preset: disabled)
Active: active (running) since Wed 2016-09-21 07:39:52 EDT; 2s ago
Main PID: 5390 (ruby2.3)
Tasks: 2 (limit: 19660)
CGroup: /system.slice/dradis.service
└─5390 /usr/bin/ruby2.3 bin/rails server

Sep 21 07:39:52 kali systemd[1]: Started Dradis web application.
[root:~]#

Additional Information

The author has the following documataion page on installing dradis on Kali: http://dradisframework.org/documentation/install_kali.html

Activities

g0tmi1k

g0tmi1k

2016-09-21 19:19

administrator   ~0005974

Adding the SASS gem is meant to also help out.

sbrun

sbrun

2016-09-23 12:36

manager   ~0005980

I didn't reproduce this issue. (I had an another one on a fresh install, I will send a fix very soon).
I didn't find where the gem less is used.
If needed, I can patch the Gemfile of the package to add the gem less: the gem will be added in the bundle of the package in /usr/lib/dradis/vendor/bundle/ where all the required gems are installed.

The gem SASS is already in this "bundle" and in the repo of kali.

g0tmi1k

g0tmi1k

2017-07-18 13:17

administrator   ~0006915

Looks like this isn't an issue for me any more

root@kali:~# systemctl start dradis
root@kali:~#
root@kali:~# systemctl status dradis
● dradis.service - Dradis web application
Loaded: loaded (/lib/systemd/system/dradis.service; disabled; vendor preset: disabled)
Active: active (running) since Tue 2017-07-18 16:16:53 EEST; 4s ago
Process: 3154 ExecStartPre=/bin/sh -c test -e /var/lib/dradis/secretkey || (umask 077; echo "SECRET_KEY_BASE=$(pwgen -1 -s -n 100)" >/var/lib/dradis/s
Main PID: 3159 (ruby2.3)
Tasks: 2 (limit: 4915)
CGroup: /system.slice/dradis.service
└─3159 /usr/bin/ruby2.3 bin/rails server webrick

Jul 18 16:16:53 kali systemd[1]: Starting Dradis web application...
Jul 18 16:16:53 kali systemd[1]: Started Dradis web application.
root@kali:~#

Issue History

Date Modified Username Field Change
2016-09-21 11:43 g0tmi1k New Issue
2016-09-21 19:19 g0tmi1k Note Added: 0005974
2016-09-23 12:36 sbrun Note Added: 0005980
2016-09-23 12:36 sbrun Status new => feedback
2017-07-18 13:17 g0tmi1k Note Added: 0006915
2017-07-18 13:17 g0tmi1k Status feedback => new
2017-07-18 13:17 g0tmi1k Status new => closed
2017-07-18 13:17 g0tmi1k Resolution open => no change required