How-To: Install Dradis-CE 3 on Ubuntu Server 16.04


#21

@BillDietrich what directory are you in when you run the bundle install command? Try navigating into the dradis-ce folder, then run the command again:

$ cd dradis-ce/
$ bundle install

#22

$ cd /opt/dradis-ce/

/opt/dradis-ce $ bundle install

Traceback (most recent call last):

2: from /usr/local/bin/bundle:23:in `<main>'

1: from /usr/lib/ruby/2.5.0/rubygems.rb:308:in `activate_bin_path'

/usr/lib/ruby/2.5.0/rubygems.rb:289:in `find_spec_for_exe’: can’t find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException)

/opt/dradis-ce $


#23

Hello @BillDietrich, I think I’ve been able to reproduce your error, also in Mint 19.1:

I think we ended up with a newer version of bundler installed than the one used to generate the Gemfile.lock file in the repo, and they are not compatible.

I fixed this problem uninstalling the newer version of bundler:
cd /opt/dradis-ce
gem uninstall bundler

Then installing the same version as the Gemfile.lock in the git repo:
cd /opt/dradis-ce
gem install bundler -v 1.16.4

Note: I really had to use sudo all the time bc I did not have proper permissions set in /opt/dradis-ce


#24

$ cd /opt/dradis-ce

/opt/dradis-ce $ sudo gem uninstall bundler
[sudo] password for user1:
Gem ‘bundler’ is not installed

/opt/dradis-ce $


#25

I thought you had bundler installed: How-To: Install Dradis-CE 3 on Ubuntu Server 16.04

What about installing version 1.16.4 ?


#26

$ cd /opt/dradis-ce

/opt/dradis-ce $ sudo gem install bundler -v 1.16.4

[sudo] password for user1:
Fetching: bundler-1.16.4.gem (100%)
Successfully installed bundler-1.16.4
1 gem installed

/opt/dradis-ce $ ruby bin/setup

== Enabling default add-ons ==
== Installing dependencies ==
The git source https://github.com/dradis/dradis-calculator_cvss.git is not yet checked out. Please run bundle install before trying to start your application
Fetching https://github.com/dradis/dradis-calculator_cvss.git
There was an error while trying to write to /home/user1/.bundle/cache/git. It is likely that you need to grant write permissions for that path.

== Command [“bundle install”] failed ==
/opt/dradis-ce $


#27

Did:

sudo chmod 777 ~/.bundle

/opt/dradis-ce $ ruby bin/setup

It did a ton of fetches and installs, ending with:

Installing whenever 0.10.0
There was an error while trying to write to /opt/dradis-ce/Gemfile.lock. It is likely that you need to grant write permissions for that path.

== Command [“bundle install”] failed ==


#28

@BillDietrich it looks like you have a whole lot of file permissions to deal with? Could you resolve those as they appear and then try again?