Hi again,
The script cron.php doesn’t execute itself … and I have no clue why because when I try to launch the task as www-data manually I don’t have any error message and the UI tells me that the task ran for the last time a few seconds ago.
I tried replacing php by php-cli, I also tried to add the path to PHP and chmod +x cron.php just in case, no change. Cron just don’t execute any task. AJAX works … but that’s all.
OS: Ubuntu 18.04.1 LTS
Docker: 18.09.1
Docker-Compose: 1.23.2, build 1110ad0
Image: Nextcloud:latest (15.0.2) default install
My docker-compose.yml:
version: '3.5'
services:
proxy:
image: jwilder/nginx-proxy:alpine
labels:
- "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy=true"
container_name: nextcloud-proxy
networks:
nextcloud:
ports:
- 80:80
- 443:443
volumes:
- ./proxy/conf.d:/etc/nginx/conf.d:rw
- ./proxy/vhost.d:/etc/nginx/vhost.d:rw
- ./proxy/html:/usr/share/nginx/html:rw
- ./proxy/certs:/etc/nginx/certs:ro
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
restart: unless-stopped
letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: nextcloud-letsencrypt
depends_on:
- proxy
networks:
nextcloud:
volumes:
- ./proxy/certs:/etc/nginx/certs:rw
- ./proxy/vhost.d:/etc/nginx/vhost.d:rw
- ./proxy/html:/usr/share/nginx/html:rw
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
restart: unless-stopped
db:
image: mariadb
container_name: nextcloud-mariadb
networks:
nextcloud:
volumes:
- db:/var/lib/mysql
- /etc/localtime:/etc/localtime:ro
environment:
- MYSQL_ROOT_PASSWORD=*********
- MYSQL_PASSWORD=*********
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=ncuser
restart: unless-stopped
app:
image: nextcloud:latest
container_name: nextcloud-app
networks:
nextcloud:
depends_on:
- letsencrypt
- proxy
- db
volumes:
- nextcloud-data:/var/www/html
- /etc/localtime:/etc/localtime:ro
environment:
- VIRTUAL_HOST=cloud.mydomain.tld
- LETSENCRYPT_HOST=cloud.mydomain.tld
- LETSENCRYPT_EMAIL=administrator@mydomain.tld
restart: unless-stopped
volumes:
nextcloud-data:
external: true
db:
networks:
nextcloud:
name: my-network