hashview / hashview-old

A web front-end for password cracking and analytics
http://www.hashview.io
GNU General Public License v3.0
621 stars 134 forks source link

Failed Fetching Digest 0.0.1 #434

Closed antman1p closed 5 years ago

antman1p commented 5 years ago

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.

I-Iugo commented 5 years ago

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.

antman1p commented 5 years ago

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' ^

I-Iugo commented 5 years ago

What is your Ruby version?

antman1p commented 5 years ago

2.2.2p95

I-Iugo commented 5 years ago

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

So try with this :)

antman1p commented 5 years ago

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

i128 commented 5 years ago

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

antman1p commented 5 years ago

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

I-Iugo commented 5 years ago

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]
I-Iugo commented 5 years ago

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

antman1p commented 5 years ago

unfortunately I already did rvm upgrade 2.2.2 2.4.4

waiting for it to end to see if everything works

i128 commented 5 years ago

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

i128 commented 5 years ago

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

antman1p commented 5 years ago

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

antman1p commented 5 years ago

@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

antman1p commented 5 years ago

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

i128 commented 5 years ago

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

i128 commented 5 years ago

then continue from the instructions here: https://github.com/hashview/hashview/wiki/01-Installing-Hashview

i128 commented 5 years ago

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

antman1p commented 5 years ago

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.

I-Iugo commented 5 years ago

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?

antman1p commented 5 years ago

Everything seems to be working fine. Thank you.

I-Iugo commented 5 years ago

@i128 if you want, you can close this issue