Prior to my last message, this is how my configs were setup:
redis.conf
# Accept connections on the specified port, default is 6379.
# If port 0 is specified Redis will not listen on a TCP socket.
port 0
# TCP listen() backlog.
#
# In high requests-per-second environments you need an high backlog in order
# to avoid slow clients connections issues. Note that the Linux kernel
# will silently truncate it to the value of /proc/sys/net/core/somaxconn so
# make sure to raise both the value of somaxconn and tcp_max_syn_backlog
# in order to get the desired effect.
tcp-backlog 511
# By default Redis listens for connections from all the network interfaces
# available on the server. It is possible to listen to just one or multiple
# interfaces using the "bind" configuration directive, followed by one or
# more IP addresses.
#
# Examples:
#
# bind 192.168.1.100 10.0.0.1
bind 127.0.0.1
# Specify the path for the Unix socket that will be used to listen for
# incoming connections. There is no default, so Redis will not listen
# on a unix socket when not specified.
#
unixsocket /var/run/redis/redis.sock
# unixsocketperm 770
Nextcloud config/config.php
'memcache.local' => '\OC\Memcache\APCu',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'filelocking.enabled' => 'true',
'redis' =>
array (
'host' => '/var/run/redis/redis.sock',
'port' => 0,
'timeout' => 0.0,
),
With these settings, I was getting the “Redis server went away” error message and a Redis error in reference to the Gallery app. In what I thought was an unrelated issue, my ability to share a file also wasn’t working(my Sharing text box where the user I’m in process of sharing a file with was greyed out and “Resharing is not allowed” was being displayed in this Sharing text box.
After I sent my last message, I quickly referenced some other sites and stumbled onto a site that was having a similar discussion, suggesting the same redis.conf but some mods on config/config.php. Here is what is my new config/config.php:
'memcache.local' => '\OC\Memcache\APCu',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'filelocking.enabled' => 'true',
'redis' =>
array (
'host' => 'localhost', // original value: /var/run/redis/redis.sock
'port' => 6379, // original value: 0
'timeout' => 0.0,
),
);
Long story long…and after a trip to Macy’s, I returned home to find that I didn’t have any new error messages and my ability to share files to local users and to federated users had been restored. Now, I’d like to figure why these changes yielded such a positive result.