Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup Fails #782

Closed
sirEgghead opened this issue Feb 17, 2021 · 3 comments
Closed

Setup Fails #782

sirEgghead opened this issue Feb 17, 2021 · 3 comments

Comments

@sirEgghead
Copy link

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.

# ruby bin/setup

== Enabling default add-ons ==
== Installing dependencies ==
Warning: the running version of Bundler (2.1.4) is older than the version that created the lockfile (2.2.8). We suggest you to upgrade to the version that created the lockfile by running `gem install bundler:2.2.8`.
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
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.
Warning: the running version of Bundler (2.1.4) is older than the version that created the lockfile (2.2.8). We suggest you to upgrade to the version that created the lockfile by running `gem install bundler:2.2.8`.
Fetching https://github.com/dradis/dradis-calculator_cvss.git
Fetching https://github.com/dradis/dradis-calculator_dread.git
Fetching https://github.com/dradis/dradis-csv.git
fatal: Needed a single revision
Git error: command `git rev-parse --verify master` in directory /root/dradis-ce has failed.
Revision master does not exist in the repository https://github.com/dradis/dradis-csv.git. Maybe you misspelled it?
If this error persists you could try removing the cache directory
'/usr/local/rvm/gems/ruby-2.7.2/cache/bundler/git/dradis-csv-1e37d6ff39772c27550d23b67f2ed8bed610cd60'

== Command ["bundle install"] failed ==

System configuration

Dradis version:
N/A
Ruby version:
2.7.2
OS version:
Debian 10 x64
4.19.0-14-amd64

@aapomm
Copy link
Contributor

aapomm commented Feb 17, 2021

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.

@sirEgghead
Copy link
Author

sirEgghead commented Feb 17, 2021

@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.

@sirEgghead
Copy link
Author

sirEgghead commented Feb 17, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants