Discussion:
[redis-db] Redis version 3.2.12 not Accepting connection on port 6380
Paul Macharia
2018-10-13 14:50:18 UTC
Permalink
Hello,

I am new to Redis (setting up Enketo-Express Server to use on ODK Aggregate
submission). I have tried all suggested option online but without success.
I get;

2936:M 13 Oct 16:51:31.583 # WARNING: The TCP backlog setting of 511 cannot
be enforced because /proc/sys/net/core/somaxconn is set to the lower value
of 128.
2936:M 13 Oct 16:51:31.583 # Server started, Redis version 3.2.12
2936:M 13 Oct 16:51:31.583 # 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.
2936:M 13 Oct 16:51:31.583 # WARNING you have Transparent Huge Pages (THP)
support enabled in your kernel. This will create latency and memory usage
issues with Redis. To fix this issue run the command 'echo never >
/sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your
/etc/rc.local in order to retain the setting after a reboot. Redis must be
restarted after THP is disabled.
2936:M 13 Oct 16:51:31.584 * DB loaded from disk: 0.000 seconds
2936:M 13 Oct 16:51:31.584 * The server is now ready to accept connections
on port 6379

Please help.

Asante
Paul
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+***@googlegroups.com.
To post to this group, send email to redis-***@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
h***@gmail.com
2018-10-13 15:49:07 UTC
Permalink
Hello Paul,

In the subject line of your post, you mention port 6380, but your
redis-server tells you in its output it's listening on port 6379:

2936:M 13 Oct 16:51:31.584 * The server is now ready to accept connections
on port 6379

If you want your redis-server process to listen on port 6380, you must
change the line in the redis.conf file from "port 6379" to "port 6380" and
tell your redis-server process to use that file by including the file
path+name on the command-line when you launch it.
Post by Paul Macharia
Hello,
I am new to Redis (setting up Enketo-Express Server to use on ODK
Aggregate submission). I have tried all suggested option online but without
success. I get;
2936:M 13 Oct 16:51:31.583 # WARNING: The TCP backlog setting of 511
cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower
value of 128.
2936:M 13 Oct 16:51:31.583 # Server started, Redis version 3.2.12
2936:M 13 Oct 16:51:31.583 # 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.
2936:M 13 Oct 16:51:31.583 # WARNING you have Transparent Huge Pages (THP)
support enabled in your kernel. This will create latency and memory usage
issues with Redis. To fix this issue run the command 'echo never >
/sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your
/etc/rc.local in order to retain the setting after a reboot. Redis must be
restarted after THP is disabled.
2936:M 13 Oct 16:51:31.584 * DB loaded from disk: 0.000 seconds
2936:M 13 Oct 16:51:31.584 * The server is now ready to accept connections
on port 6379
Please help.
Asante
Paul
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+***@googlegroups.com.
To post to this group, send email to redis-***@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
Paul Macharia
2018-10-13 15:52:05 UTC
Permalink
Thanks!!

Appreciate the feedback

I need to run both port 6379 and 6380. Enketo needs both, one for the main
and other for the cache database.
How do I tell the redis-server to include it?

Asante,
Paul Macharia
Post by h***@gmail.com
Hello Paul,
In the subject line of your post, you mention port 6380, but your
2936:M 13 Oct 16:51:31.584 * The server is now ready to accept connections
on port 6379
If you want your redis-server process to listen on port 6380, you must
change the line in the redis.conf file from "port 6379" to "port 6380" and
tell your redis-server process to use that file by including the file
path+name on the command-line when you launch it.
Post by Paul Macharia
Hello,
I am new to Redis (setting up Enketo-Express Server to use on ODK
Aggregate submission). I have tried all suggested option online but without
success. I get;
2936:M 13 Oct 16:51:31.583 # WARNING: The TCP backlog setting of 511
cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower
value of 128.
2936:M 13 Oct 16:51:31.583 # Server started, Redis version 3.2.12
2936:M 13 Oct 16:51:31.583 # 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.
2936:M 13 Oct 16:51:31.583 # WARNING you have Transparent Huge Pages
(THP) support enabled in your kernel. This will create latency and memory
usage issues with Redis. To fix this issue run the command 'echo never >
/sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your
/etc/rc.local in order to retain the setting after a reboot. Redis must be
restarted after THP is disabled.
2936:M 13 Oct 16:51:31.584 * DB loaded from disk: 0.000 seconds
2936:M 13 Oct 16:51:31.584 * The server is now ready to accept
connections on port 6379
Please help.
Asante
Paul
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+***@googlegroups.com.
To post to this group, send email to redis-***@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
Paul Macharia
2018-10-13 16:21:10 UTC
Permalink
Hvarzan,

I have figured it out thanks.

I am running the server on Centos Linux 7. Would you have an idea how I
could make the service start on boot?

Asante,
Paul Macharia
Post by Paul Macharia
Thanks!!
Appreciate the feedback
I need to run both port 6379 and 6380. Enketo needs both, one for the main
and other for the cache database.
How do I tell the redis-server to include it?
Asante,
Paul Macharia
Post by h***@gmail.com
Hello Paul,
In the subject line of your post, you mention port 6380, but your
2936:M 13 Oct 16:51:31.584 * The server is now ready to accept
connections on port 6379
If you want your redis-server process to listen on port 6380, you must
change the line in the redis.conf file from "port 6379" to "port 6380" and
tell your redis-server process to use that file by including the file
path+name on the command-line when you launch it.
Post by Paul Macharia
Hello,
I am new to Redis (setting up Enketo-Express Server to use on ODK
Aggregate submission). I have tried all suggested option online but without
success. I get;
2936:M 13 Oct 16:51:31.583 # WARNING: The TCP backlog setting of 511
cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower
value of 128.
2936:M 13 Oct 16:51:31.583 # Server started, Redis version 3.2.12
2936:M 13 Oct 16:51:31.583 # 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.
2936:M 13 Oct 16:51:31.583 # WARNING you have Transparent Huge Pages
(THP) support enabled in your kernel. This will create latency and memory
usage issues with Redis. To fix this issue run the command 'echo never >
/sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your
/etc/rc.local in order to retain the setting after a reboot. Redis must be
restarted after THP is disabled.
2936:M 13 Oct 16:51:31.584 * DB loaded from disk: 0.000 seconds
2936:M 13 Oct 16:51:31.584 * The server is now ready to accept
connections on port 6379
Please help.
Asante
Paul
--
You received this message because you are subscribed to the Google Groups
"Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+***@googlegroups.com.
To post to this group, send email to redis-***@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
h***@gmail.com
2018-10-13 16:37:43 UTC
Permalink
Hello Paul,

The answer depends on whether you installed the Redis server using the yum
command (and an rpm package) or by downloading the tar file from the
redis.io website and compiled it.
Post by Paul Macharia
Hvarzan,
I have figured it out thanks.
I am running the server on Centos Linux 7. Would you have an idea how I
could make the service start on boot?
Asante,
Paul Macharia
Post by Paul Macharia
Thanks!!
Appreciate the feedback
I need to run both port 6379 and 6380. Enketo needs both, one for the
main and other for the cache database.
How do I tell the redis-server to include it?
Asante,
Paul Macharia
Post by h***@gmail.com
Hello Paul,
In the subject line of your post, you mention port 6380, but your
2936:M 13 Oct 16:51:31.584 * The server is now ready to accept
connections on port 6379
If you want your redis-server process to listen on port 6380, you must
change the line in the redis.conf file from "port 6379" to "port 6380" and
tell your redis-server process to use that file by including the file
path+name on the command-line when you launch it.
Post by Paul Macharia
Hello,
I am new to Redis (setting up Enketo-Express Server to use on ODK
Aggregate submission). I have tried all suggested option online but without
success. I get;
2936:M 13 Oct 16:51:31.583 # WARNING: The TCP backlog setting of 511
cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower
value of 128.
2936:M 13 Oct 16:51:31.583 # Server started, Redis version 3.2.12
2936:M 13 Oct 16:51:31.583 # 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.
2936:M 13 Oct 16:51:31.583 # WARNING you have Transparent Huge Pages
(THP) support enabled in your kernel. This will create latency and memory
usage issues with Redis. To fix this issue run the command 'echo never >
/sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your
/etc/rc.local in order to retain the setting after a reboot. Redis must be
restarted after THP is disabled.
2936:M 13 Oct 16:51:31.584 * DB loaded from disk: 0.000 seconds
2936:M 13 Oct 16:51:31.584 * The server is now ready to accept
connections on port 6379
Please help.
Asante
Paul
--
You received this message because you are subscribed to the Google
Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send
<javascript:>.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+***@googlegroups.com.
To post to this group, send email to redis-***@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
h***@gmail.com
2018-10-13 16:35:01 UTC
Permalink
I see you've figured it out, but I'll post my answer anyway. A couple of
the confiuration parameters are not obvious, so you might benefit from the
answer, and other people coming to the mailing list might also benefit.

I'm a little surprised that Enketo-Express Server requires two Redis
servers but doesn't describe how to configure them to meet the requirement.

When you need two Redis-server processes whose configurations differ, you
need two configuration files. You also need several parameters to be
different in the two config files. In most Linux/Unix systems, Redis
config files will be found in the /etc/redis directory, or perhaps in the
/etc directory. The exact directory depends on whether you installed
redis-server as a package or downloaded the tar file and compiled the code
on the machine. Look for and /etc/redis or /etc/redis-server directory, or
/etc/redis.conf file. If none exist yet, my suggestion would be to create
the directory /etc/redis and copy the sample redis.conf file there. In
case you're not experienced with creating config directories under /etc,
the directory can be owned by root and have 755 permissions. The config
files you put there should also be owned by root and have 644 permissions.

Since there are two config files, they have to have different names.
"redis_6379.conf" and "redis_6380.conf" is a reasonable way to name them so
you can tell which file is for which process, and it matches the name
scheme in another parameter.
These are the parameters that should be different in order to make your
redis-server processes both run without conflicting with each other.

*port* - The tcp port to listen on. "port 6379" in one file and "port
6380" in the other.

*pidfile* - A file that the redis-server process writes with its process
id. The example file has "pidfile /var/run/redis_6379.pid" and you can set
the second file to "pidfile /var/run/redis_6380.pid".

*dir* - This is the redis server's working directory, where it saves
snapshot/rdb files or AOF files. On Linux/Unix servers this is usually a
directory under /var, such as /var/lib/redis or perhaps /var/cache/redis.
If you have to create your own, I suggest /var/lib/redis_6379 and
/var/lib/redis_6380, and putting the full path to the directory on the
"dir" line of the appropriate file. E.g., "dir /var/lib/redis_6379" and
"dir /var/lib/redis_6380"

Optional:

*dbfilename* - The name of the RDB (snapshot) file that Redis use to save
data to disk. You don't have to have 6379 or 6380 in the filename when the
"dir" parameter locates them in different directories, but you might find
it convenient.

*appendfilename* - The name of the append-only file (aka AOF) that is an
alternative way for Redis to save data ti disk. Like dbfilename, including
the port number in the filename may not be required, but may be convenient.

Once you have your two config files ready, you can launch your redis-server
processes, each one with its own config file on its command line.
Post by Paul Macharia
Thanks!!
Appreciate the feedback
I need to run both port 6379 and 6380. Enketo needs both, one for the main
and other for the cache database.
How do I tell the redis-server to include it?
Asante,
Paul Macharia
Post by h***@gmail.com
Hello Paul,
In the subject line of your post, you mention port 6380, but your
2936:M 13 Oct 16:51:31.584 * The server is now ready to accept
connections on port 6379
If you want your redis-server process to listen on port 6380, you must
change the line in the redis.conf file from "port 6379" to "port 6380" and
tell your redis-server process to use that file by including the file
path+name on the command-line when you launch it.
Post by Paul Macharia
Hello,
I am new to Redis (setting up Enketo-Express Server to use on ODK
Aggregate submission). I have tried all suggested option online but without
success. I get;
2936:M 13 Oct 16:51:31.583 # WARNING: The TCP backlog setting of 511
cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower
value of 128.
2936:M 13 Oct 16:51:31.583 # Server started, Redis version 3.2.12
2936:M 13 Oct 16:51:31.583 # 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.
2936:M 13 Oct 16:51:31.583 # WARNING you have Transparent Huge Pages
(THP) support enabled in your kernel. This will create latency and memory
usage issues with Redis. To fix this issue run the command 'echo never >
/sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your
/etc/rc.local in order to retain the setting after a reboot. Redis must be
restarted after THP is disabled.
2936:M 13 Oct 16:51:31.584 * DB loaded from disk: 0.000 seconds
2936:M 13 Oct 16:51:31.584 * The server is now ready to accept
connections on port 6379
Please help.
Asante
Paul
--
You received this message because you are subscribed to the Google Groups
"Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an
<javascript:>.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+***@googlegroups.com.
To post to this group, send email to redis-***@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
Paul Macharia
2018-10-14 12:16:17 UTC
Permalink
Thanks Hvarzan,

This very detailed and resourceful. It has taken me a month to figure out
setting up Enketo-Express and I an not out of the woods yet.

On the installation of Redis, I used yum command.

Paul
Post by h***@gmail.com
I see you've figured it out, but I'll post my answer anyway. A couple of
the confiuration parameters are not obvious, so you might benefit from the
answer, and other people coming to the mailing list might also benefit.
I'm a little surprised that Enketo-Express Server requires two Redis
servers but doesn't describe how to configure them to meet the requirement.
When you need two Redis-server processes whose configurations differ, you
need two configuration files. You also need several parameters to be
different in the two config files. In most Linux/Unix systems, Redis
config files will be found in the /etc/redis directory, or perhaps in the
/etc directory. The exact directory depends on whether you installed
redis-server as a package or downloaded the tar file and compiled the code
on the machine. Look for and /etc/redis or /etc/redis-server directory, or
/etc/redis.conf file. If none exist yet, my suggestion would be to create
the directory /etc/redis and copy the sample redis.conf file there. In
case you're not experienced with creating config directories under /etc,
the directory can be owned by root and have 755 permissions. The config
files you put there should also be owned by root and have 644 permissions.
Since there are two config files, they have to have different names.
"redis_6379.conf" and "redis_6380.conf" is a reasonable way to name them so
you can tell which file is for which process, and it matches the name
scheme in another parameter.
These are the parameters that should be different in order to make your
redis-server processes both run without conflicting with each other.
*port* - The tcp port to listen on. "port 6379" in one file and "port
6380" in the other.
*pidfile* - A file that the redis-server process writes with its
process id. The example file has "pidfile /var/run/redis_6379.pid" and you
can set the second file to "pidfile /var/run/redis_6380.pid".
*dir* - This is the redis server's working directory, where it saves
snapshot/rdb files or AOF files. On Linux/Unix servers this is usually a
directory under /var, such as /var/lib/redis or perhaps /var/cache/redis.
If you have to create your own, I suggest /var/lib/redis_6379 and
/var/lib/redis_6380, and putting the full path to the directory on the
"dir" line of the appropriate file. E.g., "dir /var/lib/redis_6379" and
"dir /var/lib/redis_6380"
*dbfilename* - The name of the RDB (snapshot) file that Redis use to save
data to disk. You don't have to have 6379 or 6380 in the filename when the
"dir" parameter locates them in different directories, but you might find
it convenient.
*appendfilename* - The name of the append-only file (aka AOF) that is
an alternative way for Redis to save data ti disk. Like dbfilename,
including the port number in the filename may not be required, but may be
convenient.
Once you have your two config files ready, you can launch your
redis-server processes, each one with its own config file on its command
line.
Post by Paul Macharia
Thanks!!
Appreciate the feedback
I need to run both port 6379 and 6380. Enketo needs both, one for the
main and other for the cache database.
How do I tell the redis-server to include it?
Asante,
Paul Macharia
Post by h***@gmail.com
Hello Paul,
In the subject line of your post, you mention port 6380, but your
2936:M 13 Oct 16:51:31.584 * The server is now ready to accept
connections on port 6379
If you want your redis-server process to listen on port 6380, you must
change the line in the redis.conf file from "port 6379" to "port 6380" and
tell your redis-server process to use that file by including the file
path+name on the command-line when you launch it.
Post by Paul Macharia
Hello,
I am new to Redis (setting up Enketo-Express Server to use on ODK
Aggregate submission). I have tried all suggested option online but without
success. I get;
2936:M 13 Oct 16:51:31.583 # WARNING: The TCP backlog setting of 511
cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower
value of 128.
2936:M 13 Oct 16:51:31.583 # Server started, Redis version 3.2.12
2936:M 13 Oct 16:51:31.583 # 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.
2936:M 13 Oct 16:51:31.583 # WARNING you have Transparent Huge Pages
(THP) support enabled in your kernel. This will create latency and memory
usage issues with Redis. To fix this issue run the command 'echo never >
/sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your
/etc/rc.local in order to retain the setting after a reboot. Redis must be
restarted after THP is disabled.
2936:M 13 Oct 16:51:31.584 * DB loaded from disk: 0.000 seconds
2936:M 13 Oct 16:51:31.584 * The server is now ready to accept
connections on port 6379
Please help.
Asante
Paul
--
You received this message because you are subscribed to the Google
Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+***@googlegroups.com.
To post to this group, send email to redis-***@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
Loading...