Forum down
-
@pichalite Thanks for the prompt reply!
[root@offroadbc nodebb]# redis-cli
Could not connect to Redis at 127.0.0.1:6379: Connection refused
not connected> -
@ron_jeremy try starting redis using
redis-server
-
[root@offroadbc nodebb]# redis-server
[2948] 27 Dec 14:06:42.369 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
[2948] 27 Dec 14:06:42.371 * Increased maximum number of open files to 10032 (it was originally set to 1024).
.
.-__ ''-._ _.-
.
. ''-._ Redis 2.8.19 (00000000/0) 64 bit
.-.-```. ```\/ _.,_ ''-._ ( ' , .-` | `, ) Running in stand alone mode |`-._`-...-` __...-.
-.|'_.-'| Port: 6379 |
-.._ / _.-' | PID: 2948
-._-._
-./ .-' .-'
|-._
-.-.__.-' _.-'_.-'| |
-.-._ _.-'_.-' | http://redis.io
-._-._
-..-'.-' .-'
|-._
-.-.__.-' _.-'_.-'| |
-.-._ _.-'_.-' |
-._-._
-..-'_.-' _.-'
-._
-..-' _.-'
-._ _.-'
-..-'[2948] 27 Dec 14:06:42.372 # Server started, Redis version 2.8.19
[2948] 27 Dec 14:06:42.372 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
[2948] 27 Dec 14:06:42.372 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
[2948] 27 Dec 14:06:42.372 * The server is now ready to accept connections on port 6379 -
@ron_jeremy redis is up now. try
redis-cli
if it works then start NodeBB and it should work -
@pichalite [root@offroadbc nodebb]# redis-cli
Could not connect to Redis at 127.0.0.1:6379: Connection refused
not connected> -
@ron_jeremy do you have a password setup for redis?
-
@pichalite Hmmm I can't remember. How can I check? Also, should I not be setting a redis password?
-
@ron_jeremy nothing wrong with setting a password... you have to use the password to use redis-cli if you have one.
check redis docs for how to
-
@pichalite will do. thx very much for all the help!
-
@pichalite I did some Googling and found my way to the redis.conf file in the etc folder. Inspecting the file I see the following line is commented out:
" # requirepass foobared "
Does this mean there was no password set for redis?
-
@ron_jeremy yes
-
Can anyone else offer any pointers? I have no idea where to go from here
-
If you want I can take a look into it.
PM me, if you like -
Thx for offering to help! I prefer not to use PM so the solution is available to others, too!
-
Can you run a netstat -ntlp to see if redis is actually running on your system?
-
[root@offroadbc ~]# netstat -ntlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1111/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1467/master
tcp6 0 0 :::22 :::* LISTEN 1111/sshd
tcp6 0 0 ::1:25 :::* LISTEN 1467/master -
your redis server is not running. You need to start it first. I would suggest to run service redis-server start. Then check for redis with netstat -ntlp. Once the redis server is up and running then you can start the nodebb application
-
@Peter-Zoltan-Keresztes Hi Peter, thanks for the help! I ran the command per your instructions:
[root@offroadbc /]# service redis-server start
Redirecting to /bin/systemctl start redis-server.service
Failed to start redis-server.service: Unit redis-server.service failed to load: No such file or directory.
[root@offroadbc /]# -
Do you have redis-server installed? Try running rpm -qa | grep redis
-
[root@offroadbc /]# rpm -qa | grep redis
redis-2.8.19-2.el7.x86_64
[root@offroadbc /]#