hashview / hashview-old

A web front-end for password cracking and analytics

Home Page:http://www.hashview.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed Fetching Digest 0.0.1

antman1p opened this issue · comments

I am trying to install hashview according to your instructions. When I run 'bundle install' It fails at 'Fetching digest 0.0.1.' I am using the master branch. When i switch to the beta 7.4 branch I do not have this issue, but hashview fails at run with that branch due to a syntax error "hashfiles.rb:21: syntax error, unexpected '.'", so I came back to the Master branch and can't get past this error:

Gem::RemoteFetcher::FetchError: bad response Forbidden 403 (https://rubygems.org/gems/digest-0.0.1.gem)
An error occured while installing digest (0.0.1), and Bundler cannot continue.

commented

Hello @antman1p

Could you...
1 - Remove your db with RACK_ENV=production bundle exec rake db:destroy?
2 - Remove hashview folder
3 - Clone hashview
4 - Git checkout on v0.7.4-beta
5 - Launch RACK_ENV=production bundle exec rake db:setup

and tell me if you have one more bug.

I found that if I comment out #digest in the Gemfile, the rest of the bundle installs. I was then able to start the server and connect, but I was getting an internal server error when I tried to create new jobs.

I just did what you said above and am still getting the syntax error:
/home//hashview/routes/init.rb:7:in 'require_relative': /home//hashview/routes/hashfiles.rb:21: syntax error, expected '.' (SyntaxError)
hash_id = hashfilehash&.hash_id.to_s || 'hash id error'
^

commented

What is your Ruby version?

2.2.2p95

commented

Hashview Ruby version is 2.4.4: https://github.com/hashview/hashview/blob/v0.7.4-beta/.ruby-version

So try with this :)

How do I properly change/update/install this version without breaking everything? My experiences with Ruby have been Pretty.... Well, VERY BAD.

commented

We should just remove it from the master from now until we can land v0.7.4-beta

Problem is that this may be causing the internal server error that I am getting?

commented

You can use Rbenv to change easily you ruby version without breaking everything.
For example:

➜  ~ ruby -v           
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]
➜  ~ rbenv global 2.4.4
➜  ~ ruby -v           
ruby 2.4.4p296 (2018-03-28 revision 63013) [x86_64-linux]
commented

This syntax: hashfilehash&.hash_id is only available with Ruby 2.3+ and you have Ruby 2.2.2 so it's normal that you've a problem

unfortunately I already did rvm upgrade 2.2.2 2.4.4

waiting for it to end to see if everything works

commented

so the internal error is probably due to a different set of Gems and ruby versions between v0.7.4-beta and master.

After getting to 2.4.4 do a bundle install

commented

That said since v0.7.4 is still in dev... there may situations where its not stable.

The upgrade failed.
Trying to rvm install
Making gemsrt ruby-2.4.4 pristine..............
is taking a long time.

@i128 I had the internal server error when I used the Master branch and commented out 'digest' in the Gemfile, not using the beta branch

OK, I did "bundle install" on this beta branch. Should I run hashview now?

commented

after bundle install is run, continue with
step 5: RACK_ENV=production bundle exec rake db:setup

commented
commented

Okay so master should be fixed? maybe? if you want to use that just go back to master, and try going through the install process referenced in the wiki

It worked. I am able to create a job as well thanks!
I'm not sure what you guys can do about the Master though. If oyu comment out the digest the bundle installs, but I could not create a job.

commented

Great @antman1p! In the new versions of Ruby, Digest is already include in stlib. So, when the beta branch merge on master this problem will be solved.

If everything's ok, could you close your issue?

Everything seems to be working fine. Thank you.

commented

@i128 if you want, you can close this issue