Hi, playing around with lxc virtual machine feature and dedicated IP for the vm. It is not a container! Though i have been running ispconfig 3 in a lxc container the last years. Fresh install on 20.04 cloud-init image with current full auto script. Code: systemctl status redis-server ● redis-server.service - Advanced key-value store Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled) Drop-In: /run/systemd/system/service.d └─zzz-lxc-service.conf Active: failed (Result: exit-code) since Thu 2021-07-22 03:18:15 UTC; 1min 33s ago Docs: http://redis.io/documentation, man:redis-server(1) Process: 965 ExecStart=/usr/bin/redis-server /etc/redis/redis.conf (code=exited, status=1/FAILURE) Jul 22 03:18:15 mail5 systemd[1]: redis-server.service: Scheduled restart job, restart counter is at 5. Jul 22 03:18:15 mail5 systemd[1]: Stopped Advanced key-value store. Jul 22 03:18:15 mail5 systemd[1]: redis-server.service: Start request repeated too quickly. Jul 22 03:18:15 mail5 systemd[1]: redis-server.service: Failed with result 'exit-code'. Jul 22 03:18:15 mail5 systemd[1]: Failed to start Advanced key-value store. Code: Jul 22 03:32:20 mail5 redis-server[2312]: *** FATAL CONFIG FILE ERROR *** Jul 22 03:32:20 mail5 redis-server[2312]: Reading the configuration file, at line 175 Jul 22 03:32:20 mail5 redis-server[2312]: >>> 'logfile /var/log/redis/redis-server.log' Jul 22 03:32:20 mail5 redis-server[2312]: Can't open the log file: Read-only file system Jul 22 03:32:20 mail5 systemd[1]: redis-server.service: Control process exited, code=exited, status=1/FAILURE Jul 22 03:32:20 mail5 systemd[1]: redis-server.service: Failed with result 'exit-code'. Jul 22 03:32:21 mail5 systemd[1]: redis-server.service: Scheduled restart job, restart counter is at 4. Jul 22 03:32:21 mail5 redis-server[2313]: *** FATAL CONFIG FILE ERROR *** Jul 22 03:32:21 mail5 redis-server[2313]: Reading the configuration file, at line 175 Jul 22 03:32:21 mail5 redis-server[2313]: >>> 'logfile /var/log/redis/redis-server.log' Jul 22 03:32:21 mail5 redis-server[2313]: Can't open the log file: Read-only file system "/var/log/redis/" folder does not contain the "redis-server.log". I touched it and tried with chown redis:adm and/or redis:redis . Line 175 = "logfile /var/log/redis/redis-server.log" Code: -rw-r--r-- 1 redis redis 395 Jul 21 17:58 /var/log/redis/redis-server.log or -rw-rw-rw- 1 redis redis 395 Jul 21 17:58 /var/log/redis/redis-server.log -rw-rw-rw- 1 redis adm 395 Jul 21 17:58 /var/log/redis/redis-server.log Changed "Supervised no" to "Supervised systemd" in redis.conf but that wasn't it either.
Forgot to add the setup log parts, i run the setup with debug flag. Code: wget -O - https://get.ispconfig.org | sh -s -- --use-ftp-ports=47710-47810 --no-dns --use-unbound --no-quota --no-roundcube --no-mailman --no-pma --unattended-upgrades --debug Code: less setup-20210721164805.log |grep redis 21.07.2021-16:49:27 - /lib/os/class.ISPConfigDebianOS.inc.php:498: [INFO] Installing packages software-properties-common, dnsutils, resolvconf, clamav, clamav-daemon, clamav-docs, zip, unzip, bzip2, xz-utils, lzip, rar, arj, nomarch, lzop, cabextract, apt-listchanges, libnet-ldap-perl, libauthen-sasl-perl, daemon, libio-string-perl, libio-socket-ssl-perl, libnet-ident-perl, libnet-dns-perl, libdbd-mysql-perl, unbound, spamassassin, rspamd, redis-server, postgrey, p7zip, p7zip-full, unrar-free, lrzip 21.07.2021-16:50:05 - /lib/os/class.ISPConfigBaseOS.inc.php:90: [DEBUG] CMD: while fuser /var/lib/dpkg/lock >/dev/null 2>&1 || fuser /var/lib/apt/lists/lock >/dev/null 2>&1 ; do sleep 2; done; DEBIAN_FRONTEND="noninteractive" apt-get install -o Dpkg::Options::="--force-overwrite" -qq -y software-properties-common dnsutils resolvconf clamav clamav-daemon clamav-docs zip unzip bzip2 xz-utils lzip rar arj nomarch lzop cabextract apt-listchanges libnet-ldap-perl libauthen-sasl-perl daemon libio-string-perl libio-socket-ssl-perl libnet-ident-perl libnet-dns-perl libdbd-mysql-perl unbound spamassassin rspamd redis-server postgrey p7zip p7zip-full unrar-free lrzip 2>&1 returned code 0 21.07.2021-16:50:05 - /lib/os/class.ISPConfigDebianOS.inc.php:501: [INFO] Installed packages software-properties-common, dnsutils, resolvconf, clamav, clamav-daemon, clamav-docs, zip, unzip, bzip2, xz-utils, lzip, rar, arj, nomarch, lzop, cabextract, apt-listchanges, libnet-ldap-perl, libauthen-sasl-perl, daemon, libio-string-perl, libio-socket-ssl-perl, libnet-ident-perl, libnet-dns-perl, libdbd-mysql-perl, unbound, spamassassin, rspamd, redis-server, postgrey, p7zip, p7zip-full, unrar-free, lrzip 21.07.2021-16:56:07 - /lib/os/class.ISPConfigBaseOS.inc.php:90: [DEBUG] CMD: service 'redis-server' status 2>&1 returned code 3 21.07.2021-16:56:07 - /lib/os/class.ISPConfigDebianOS.inc.php:1363: [INFO] redis-server: FAILED</lightred> 21.07.2021-16:56:07 - /lib/os/class.ISPConfigDebianOS.inc.php:1365: [WARN] redis-server seems not to be running! There was no other error in the Setup log. Code: less setup-20210721164805.log |grep WARN 21.07.2021-16:56:07 - /lib/os/class.ISPConfigDebianOS.inc.php:1365: [WARN] redis-server seems not to be running!
Could use some pointers as to why the redis-server is failing with the same error, no matter which distro i use. The script installs just fine, except for the redis-server. I have been running redis-server for nextcloud, inside a lxc container without problems, but why i would face such problems inside a VM which is supposed to act like a bare metal leaves me baffled. Either because of systemd or redis-server config, how can i get more detailed info why the startup is failing?
I never had this issue, so I can't help you with that. Maybe you can find a Redis-specific forum or mailing list where you can find some users specialized in Redis to ask for help if no one else here has an idea.
Sorry for late reply, just come back to spend some time on this problem. Yes i can touch and create the log file and journactl shows that it is some sort of permission problems that i have not yet figured out. I did not witness this at first but systemctl startup error is either reporting Code: redis-server[297187]: Can't open the log file: Read-only file system or Permission denied, when testing other chown options with, Code: redis-server[297183]: Can't open the log file: Permission denied This is happening with current Ubuntu focal Server.
Stopped by to report this was an error of the Host System that must have happened during the upgrade from 18.04 to 20.04