I guess it’s usermod -aG redis discourse or alternatively unixsocketperm 777 so that unicorn has permissions to access the socket. Also assure that the directory where the socket is to be created exists and has redis user as owner. However, the common systemd-service based redis-server package on Ubuntu assures that.