Hi; recently installed NC on Proxmox in its own LXC using the following code:
services:
db:
image: mariadb:10.6
restart: always
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
volumes:
- /mnt/ncdata/db:/var/lib/mysql
environment:
- PUID=1000
- PGID=10000
- MYSQL_ROOT_PASSWORD=
- MYSQL_PASSWORD=
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
redis:
image: redis:latest
restart: always
command: redis-server --requirepass abcd
app:
image: nextcloud:28.0.9
restart: always
ports:
- 8080:80
links:
- db
- redis
volumes:
- /mnt/ncdata/nextcloud:/var/www/html
environment:
- PUID=1000
- PGID=10000
- MYSQL_PASSWORD=
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_HOST=db
- REDIS_HOST=redis
- REDIS_HOST_PASSWORD=
I’ve managed to remove all security warnings / errors; however am repeatedly seeing the message “Cron job last ran xxx hours ago”.
I was able to partly address this by manually running this command: docker exec -u www-data root_app_1 php -f cron.php
I execute the following and input the following four (4) commands however they don’t seem to be working.
crontab -u www-data -e
*/5 * * * * docker exec -u www-data root_app_1 php -f cron.php
*/5 * * * * docker exec -u www-data root_app_1 php -f /mnt/ncdata/nextcloud/cron.php
*/5 * * * * php -f /mnt/ncdata/nextcloud/cron.php
*/5 * * * * php -f cron.php
In my desperation; I even added the following to /etc/php/8.2/mods-available:
apc.enable_cli=1
Could anyone assist and let me know what i’m doing wrong here.