Closed sirEgghead closed 3 years ago
Hi @sirEgghead . Can you update your bundler gem to the one specified in the lockfile to 2.2.8 and retry the setup? I believe the older versions of bundler defaults to pulling the master
branch.
@aapomm thank you, that actually resolved the problem that I listed. I don't use ruby, so I'm not familiar with the inner workings of it, but that did solve the issue that I listed. However, I came up with a new issue following that.
# ruby bin/setup
== Enabling default add-ons ==
== Installing dependencies ==
git@github.com:paper-trail-gem/paper_trail.git (at 1e56afd@1e56afd) is not yet checked out. Run `bundle install` first.
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root
users on this machine.
Fetching git@github.com:paper-trail-gem/paper_trail.git
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Retrying `git clone git@github.com:paper-trail-gem/paper_trail.git /usr/local/rvm/gems/ruby-2.7.2/cache/bundler/git/paper_trail-1099ff99be89c52753a9da60941c019b052529ab --bare --no-hardlinks --quiet` at /root/dradis-ce due to error (2/4): Bundler::Source::Git::GitCommandError Git error: command `git clone git@github.com:paper-trail-gem/paper_trail.git /usr/local/rvm/gems/ruby-2.7.2/cache/bundler/git/paper_trail-1099ff99be89c52753a9da60941c019b052529ab --bare --no-hardlinks --quiet` in directory /root/dradis-ce has failed.
If this error persists you could try removing the cache directory '/root/dradis-ce'
Retrying `git clone git@github.com:paper-trail-gem/paper_trail.git /usr/local/rvm/gems/ruby-2.7.2/cache/bundler/git/paper_trail-1099ff99be89c52753a9da60941c019b052529ab --bare --no-hardlinks --quiet` at /root/dradis-ce due to error (3/4): Bundler::Source::Git::GitCommandError Git error: command `git clone git@github.com:paper-trail-gem/paper_trail.git /usr/local/rvm/gems/ruby-2.7.2/cache/bundler/git/paper_trail-1099ff99be89c52753a9da60941c019b052529ab --bare --no-hardlinks --quiet` in directory /root/dradis-ce has failed.
If this error persists you could try removing the cache directory '/root/dradis-ce'
Retrying `git clone git@github.com:paper-trail-gem/paper_trail.git /usr/local/rvm/gems/ruby-2.7.2/cache/bundler/git/paper_trail-1099ff99be89c52753a9da60941c019b052529ab --bare --no-hardlinks --quiet` at /root/dradis-ce due to error (4/4): Bundler::Source::Git::GitCommandError Git error: command `git clone git@github.com:paper-trail-gem/paper_trail.git /usr/local/rvm/gems/ruby-2.7.2/cache/bundler/git/paper_trail-1099ff99be89c52753a9da60941c019b052529ab --bare --no-hardlinks --quiet` in directory /root/dradis-ce has failed.
If this error persists you could try removing the cache directory '/root/dradis-ce'
Git error: command `git clone git@github.com:paper-trail-gem/paper_trail.git
/usr/local/rvm/gems/ruby-2.7.2/cache/bundler/git/paper_trail-1099ff99be89c52753a9da60941c019b052529ab --bare --no-hardlinks --quiet` in directory
/root/dradis-ce has failed.
If this error persists you could try removing the cache directory '/root/dradis-ce'
== Command ["bundle install"] failed ==
I removed the dradis-ce directory and started over. I still wound up with the same results there.
I also tried running bundle config github.https true
. This did not change anything. Finally I tried removing the revision and ref requirements from Gemfile.lock. This did not change anything either. I have since deleted the dradis-ce directory once again and am back to the point listed in this comment.
I figured it out. In Gemfile
, I replaced the line:
gem 'paper_trail', git: 'git@github.com:paper-trail-gem/paper_trail.git', ref: '1e56afd'
with the line:
gem 'paper_trail', git: 'https://github.com/paper-trail-gem/paper_trail.git', ref: '1e56afd'
and everything appears to be installing properly at this point. I appreciate your help.
Steps to reproduce
git clone https://github.com/dradis/dradis-ce.git cd dradis-ce ruby bin/setup
Expected behavior
Application should install
Actual behavior
git verify for dradis-csv master branch fails. I actually went and looked at dradis-csv, and the installer is correct - there is no master branch. There is a main branch.
System configuration
Dradis version: N/A Ruby version: 2.7.2 OS version: Debian 10 x64 4.19.0-14-amd64