Forum down
-
@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 /]# -
@ron_jeremy OK it seam you have your redis installation screwed. Backup your database if it is not empty run rpm -e redis-2.8.19-2.el7.x86_64 . Then yum install redis-server. That should fix the installation
-
@Peter-Zoltan-Keresztes Hi Peter, thanks for the continued help.
[root@offroadbc /]# rpm -e redis-2.8.19-2.el7.x86_64
[root@offroadbc /]# yum install redis-server
Loaded plugins: fastestmirror
base | 3.6 kB 00:00
epel/x86_64/metalink | 13 kB 00:00
epel | 4.3 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
(1/2): epel/x86_64/updateinfo | 444 kB 00:00
(2/2): epel/x86_64/primary_db | 3.7 MB 00:02
Loading mirror speeds from cached hostfile- base: mirror.supremebytes.com
- epel: mirror.sfo12.us.leaseweb.net
- extras: mirror.supremebytes.com
- updates: mirror.supremebytes.com
No package redis-server available.
Error: Nothing to do
[root@offroadbc /]#
-
@ron_jeremy how about yum search redis?
-
[root@offroadbc /]# yum search redis
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile- base: centos.sonn.com
- epel: mirrors.kernel.org
- extras: centos.sonn.com
- updates: centos.sonn.com
============================== N/S matched: redis ==============================
collectd-redis.x86_64 : Redis plugin for collectd
collectd-write_redis.x86_64 : Redis output plugin for collectd
hiredis.x86_64 : Minimalistic C client library for Redis
hiredis-devel.x86_64 : Development files for hiredis
opensips-redis.x86_64 : Redis connector
perl-Apache-Session-Redis.noarch : Redis driver for Apache::Session::NoSQL
perl-Redis.noarch : Perl binding for Redis database
php-nrk-Predis.noarch : PHP client library for Redis
php-pecl-redis.x86_64 : Extension for communicating with the Redis key-value
: store
python-redis.noarch : Python 2 interface to the Redis key-value store
python-trollius-redis.noarch : Redis client for the Python event loop PEP3156
: for Trollius.
syslog-ng-redis.x86_64 : redis support for syslog-ng
uwsgi-logger-redis.x86_64 : uWSGI - redislog logger plugin
uwsgi-router-redis.x86_64 : uWSGI - Plugin for Redis router support
redis.x86_64 : A persistent key-value database
Name and summary matches only, use "search all" for everything.
[root@offroadbc /]#