hashview / hashview-old

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

Issue to Create Database when installing Hashview - Ubuntu #355

Closed hackernett closed 6 years ago

hackernett commented 6 years ago

Does anyone know what to do to fix the issue I'm facing when trying to install hashview and create the data base?

rake aborted! Errno::EACCES: Permission denied @ rb_sysopen - config/agent_config.json

top@XXXXXXXXXXXXXX:/Tools/hashview$ RACK_ENV=production rake db:setup setting up database for environment: production mysql: [Warning] Using a password on the command line interface can be insecure. +------------------------------+ | @@global.innodb_large_prefix | +------------------------------+ | 1 | +------------------------------+ mysql: [Warning] Using a password on the command line interface can be insecure. +-----------------------------+ | @@global.innodb_file_format | +-----------------------------+ | Barracuda | +-----------------------------+ mysql: [Warning] Using a password on the command line interface can be insecure. ERROR 1007 (HY000) at line 1: Can't create database 'hashview'; database exists Creating Hashes Table mysql: [Warning] Using a password on the command line interface can be insecure. [] Building the rest of the tables from datamapper [] Setting up default settings ... mysql: [Warning] Using a password on the command line interface can be insecure. [] Setting default theme ... mysql: [Warning] Using a password on the command line interface can be insecure. [] Setting up default customer ... mysql: [Warning] Using a password on the command line interface can be insecure. [] Setting up default Smart Wordlist ... mysql: [Warning] Using a password on the command line interface can be insecure. touch: cannot touch 'control/wordlists/SmartWordlist.txt': Permission denied [] Settings up default wordlist ... gzip: control/wordlists/password: Permission denied mysql: [Warning] Using a password on the command line interface can be insecure. [] Setting up default dictionary mysql: [Warning] Using a password on the command line interface can be insecure. [] Setting up default dictionary + rule task mysql: [Warning] Using a password on the command line interface can be insecure. [] Setting up default smart wordlist task mysql: [Warning] Using a password on the command line interface can be insecure. [] Setting up Smart Wordlist dictionary + rule task mysql: [Warning] Using a password on the command line interface can be insecure. [] Setting up default mask task mysql: [Warning] Using a password on the command line interface can be insecure. [] Setting up default brute task mysql: [Warning] Using a password on the command line interface can be insecure. [*] Setting up default hub settings mysql: [Warning] Using a password on the command line interface can be insecure. setting up local agent for environment: production rake aborted! Errno::EACCES: Permission denied @ rb_sysopen - config/agent_config.json /Tools/hashview/Rakefile:337:in initialize' /Tools/hashview/Rakefile:337:inopen' /Tools/hashview/Rakefile:337:in block (2 levels) in <top (required)>' /home/tvm/.rvm/gems/ruby-2.2.2/gems/rake-11.2.2/exe/rake:27:in<top (required)>' /home/tvm/.rvm/gems/ruby-2.2.2/bin/ruby_executable_hooks:15:in eval' /home/tvm/.rvm/gems/ruby-2.2.2/bin/ruby_executable_hooks:15:in

' Tasks: TOP => db:setup => db:provision_agent (See full trace by running task with --trace)

hackernett commented 6 years ago

We just figured out that we were having permission errors. We use chown to own the permission on the hashview folder and that worked.