Hello. Sorry for noob question. I have small home server with containers. For one of this Turnkey Nextcloud server have some error after I try install onlyoffice on this container. But some strange error set container not worked. I try fix problem but nothing. I found backup of this container. I delete it and restore from backup.
This container started, but nextcloud not worked. I found that after restore not worked Apache. I change owner for all files in nextcloud dir to www-data. This not help.
I try differend variant and this help me
Ok this error happend with MariaDB, but solved (by search) with /etc/systemd/system/mariadb.service.d/lxc.conf
But I can't found solution for Redis. I try such for Apache2. Try reinstall with purge redis (and rdb). For now I have error (after purge redis and /var/log/redis)
I try different answer for this problem, but not found worked for me.
Please help me - I don't know what I do and how fix this. Thank you
pct restore 105 media:backup/vzdump-lxc-105-2021_02_20-03_51_03.tar.zst -storage local-lvm
This container started, but nextcloud not worked. I found that after restore not worked Apache. I change owner for all files in nextcloud dir to www-data. This not help.
I try differend variant and this help me
sudo sed -i -e 's,PrivateTmp=true,PrivateTmp=false\nNoNewPrivileges=yes,g' /lib/systemd/system/apache2.service
Ok this error happend with MariaDB, but solved (by search) with /etc/systemd/system/mariadb.service.d/lxc.conf
INI:
[Service]
ProtectHome=false
ProtectSystem=false
# These settings turned out to not be necessary in my case, but YMMV
PrivateTmp=false
#PrivateNetwork=false
PrivateDevices=false
But I can't found solution for Redis. I try such for Apache2. Try reinstall with purge redis (and rdb). For now I have error (after purge redis and /var/log/redis)
Code:
root@nextcloud .../www/nextcloud# sudo -u redis /usr/bin/redis-server /etc/redis/redis.conf
*** FATAL CONFIG FILE ERROR ***
Reading the configuration file, at line 171
>>> 'logfile /var/log/redis/redis-server.log'
Can't open the log file: Permission denied
Code:
root@nextcloud .../www/nextcloud# namei -l /var/log/redis/redis-server.log
f: /var/log/redis/redis-server.log
drwxr-xr-x root root /
drwxr-xr-x root root var
drwxr-xr-x root root log
drw-rw-r-- redis redis redis
-rw-rw-rw- redis redis redis-server.log
Code:
root@nextcloud .../www/nextcloud# stat /var/log/redis/redis-server.log
File: /var/log/redis/redis-server.log
Size: 0 Blocks: 0 IO Block: 4096 regular empty file
Device: fd0fh/64783d Inode: 59 Links: 1
Access: (0666/-rw-rw-rw-) Uid: ( 107/ redis) Gid: ( 114/ redis)
Access: 2021-02-26 08:55:14.752168187 +0200
Modify: 2021-02-26 08:55:14.752168187 +0200
Change: 2021-02-26 08:58:51.815582282 +0200
Birth: -
I try different answer for this problem, but not found worked for me.
Please help me - I don't know what I do and how fix this. Thank you