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

Cannot start Redis server #369

Closed TheCrow-zz closed 6 years ago

TheCrow-zz commented 6 years ago

I followed the tutorial and when I try to start the server with command: " RACK_ENV=production TZ='Europe/Amsterdam' foreman start" I recieve the following error's, I cannot figure out what the problem is... I am stuck for days. Could someone help me out?

10:02:02 redis.1 | started with pid 2637 10:02:02 mgmt-worker.1 | started with pid 2638 10:02:02 hashcat-worker.1 | started with pid 2639 10:02:02 background-worker.1 | started with pid 2641 10:02:02 web.1 | started with pid 2643 10:02:02 redis.1 | 2637:C 14 Nov 10:02:02.204 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 10:02:02 redis.1 | 2637:C 14 Nov 10:02:02.204 # Redis version=4.0.1, bits=64, commit=00000000, modified=0, pid=2637, just started 10:02:02 redis.1 | 2637:C 14 Nov 10:02:02.204 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf 10:02:02 redis.1 | 2637:M 14 Nov 10:02:02.205 # You requested maxclients of 10000 requiring at least 10032 max file descriptors. 10:02:02 redis.1 | 2637:M 14 Nov 10:02:02.205 # Server can't set maximum open files to 10032 because of OS error: Operation not permitted. 10:02:02 redis.1 | 2637:M 14 Nov 10:02:02.205 # Current maximum open files is 4096. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'. 10:02:02 redis.1 | 2637:M 14 Nov 10:02:02.205 # Creating Server TCP listening socket *:6379: bind: Address already in use 10:02:02 redis.1 | exited with code 1 10:02:02 system | sending SIGTERM to all processes 10:02:02 mgmt-worker.1 | terminated by SIGTERM 10:02:02 hashcat-worker.1 | terminated by SIGTERM 10:02:02 background-worker.1 | terminated by SIGTERM 10:02:02 web.1 | terminated by SIGTERM

i128 commented 6 years ago

Looks like there's a few issues. What OS are you trying it on?

If you do a netstat, is there already something listening on 6379?

On Nov 14, 2017 3:09 AM, "TheCrow" notifications@github.com wrote:

I followed the tutorial and when I try to start the server with command: " RACK_ENV=production TZ='Europe/Amsterdam' foreman start" I recieve the following error's, I cannot figure out what the problem is... I am stuck for days. Could someone help me out?

10:02:02 redis.1 | started with pid 2637 10:02:02 mgmt-worker.1 | started with pid 2638 10:02:02 hashcat-worker.1 | started with pid 2639 10:02:02 background-worker.1 | started with pid 2641 10:02:02 web.1 | started with pid 2643 10:02:02 redis.1 | 2637:C 14 Nov 10:02:02.204 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 10:02:02 redis.1 | 2637:C 14 Nov 10:02:02.204 # Redis version=4.0.1, bits=64, commit=00000000, modified=0, pid=2637, just started 10:02:02 redis.1 | 2637:C 14 Nov 10:02:02.204 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf 10:02:02 redis.1 | 2637:M 14 Nov 10:02:02.205 # You requested maxclients of 10000 requiring at least 10032 max file descriptors. 10:02:02 redis.1 | 2637:M 14 Nov 10:02:02.205 # Server can't set maximum open files to 10032 because of OS error: Operation not permitted. 10:02:02 redis.1 | 2637:M 14 Nov 10:02:02.205 # Current maximum open files is 4096. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'. 10:02:02 redis.1 | 2637:M 14 Nov 10:02:02.205 # Creating Server TCP listening socket *:6379: bind: Address already in use 10:02:02 redis.1 | exited with code 1 10:02:02 system | sending SIGTERM to all processes 10:02:02 mgmt-worker.1 | terminated by SIGTERM 10:02:02 hashcat-worker.1 | terminated by SIGTERM 10:02:02 background-worker.1 | terminated by SIGTERM 10:02:02 web.1 | terminated by SIGTERM `

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hashview/hashview/issues/369, or mute the thread https://github.com/notifications/unsubscribe-auth/ACTh6zJfpqKSesbhcYso4AFFtpLHRFyjks5s2VjMgaJpZM4QdAsJ .

TheCrow-zz commented 6 years ago

I have a clean install Ubuntu 17.10

When I use netstat: It shows multiple times local host 6379 and with a different port, ESTABLISHED. When I change the port at etc/redis/redis.conf and start with: RACK_ENV=production TZ='Europe/Amsterdam' foreman start etc/redis/redis.conf it keeps loading/blinking and nothing happens.

i128 commented 6 years ago

This looks familiar. I think the issue is that redis-server is already running. I believe either foreman or rake tries to start it (not taking into consideration that its already active). I thought we had a wiki entry on this, but i cant find it.

try doing a: sudo /etc/init.d/redis-server stop

then try running hashview again using the foreman command listed above.

TheCrow-zz commented 6 years ago

Alright it looks like it is starting now, but how could I open the webpanel? When I enter 127.0.0.1:4567 or 127.0.0.1:4567/home in browser it does not work. I also tryed my internal IP address.

i128 commented 6 years ago

What does:

netstat -lntp | grep 4567

Show?

TheCrow-zz commented 6 years ago

sudo netstat -lntp | grep 4567 tcp 0 0 0.0.0.0:4567 0.0.0.0:* LISTEN 2203/ruby

and when I enter in the browser: 127.0.0.1:4567 the server logs:

09:18:43 web.1 | /usr/share/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/openssl/ssl.rb:290:inaccept' 09:18:43 web.1 | [2017-11-15 09:18:43] ERROR OpenSSL::SSL::SSLError: SSL_accept returned=1 errno=0 state=SSLv2/v3 read client hello A: http request

TheCrow-zz commented 6 years ago

Problem solved! I had to use https:// in URL instead of http:// lol :)

tksjk20 commented 6 years ago

I meet the same problem with you .Can you tell me the solution in detail?

GrepItAll commented 6 years ago

Try: sudo /etc/init.d/redis-server stop Then: RACK_ENV=production TZ='Europe/Amsterdam' foreman start with your appropriate timezone

Then make sure to navigtate to https://127.0.0.1:4567, not just http:// (if that is the IP and port you want to access it on)

tksjk20 commented 6 years ago

WoW!Thank you!The problem is so ……

GrepItAll commented 6 years ago

No problem

isitavi commented 5 years ago

just run sudo service redis-server stop

jiuweidao commented 5 years ago

I tried this way, but get this result: sudo: /etc/init.d/redis-server: command not found