Hello
I am facing an issue that i never encounter before.
Trying to deploy nextcloud-aio on an ubuntu CT (on proxmox) via ansible.
First i provision the LXC, then i install docker-ce within it, and then i deploy the nextcloud/all-in-one image with the correct parameters :
- name: Deploy Nextcloud instance
community.docker.docker_container:
image: nextcloud/all-in-one
name: nextcloud-aio-mastercontainer
restart_policy: always
ports:
- 8080:8080
volumes:
- nextcloud_aio_mastercontainer:/mnt/docker-aio-config
- /var/run/docker.sock:/var/run/docker.sock:ro
env:
APACHE_PORT: "11000"
APACHE_IP_BINDING: "0.0.0.0"
The weird thing is as soon as i go to the AIO-ADMIN on port 8080, i have at the top of the page this warning :
Warning : Undefined array key 1 in /var/www/docker-aio/php/src/Docker/DockerActionManager.php on line 751
Everything seems working good, except that i have some performances issues.
Is there anything to be done ?
Please let me know how to provide you any logs or information
Thanks a lot
After some tests, just want to add some things :
- when i deploy a container in proxmox (using ansible) with docker installed etc. and then i launch the docker run command :
sudo docker run --init --sig-proxy=false \
--name nextcloud-aio-mastercontainer \
--restart always \
--publish 8080:8080 \
--env APACHE_PORT=11000 \
--env APACHE_IP_BINDING=0.0.0.0 \
--volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config \
--volume /var/run/docker.sock:/var/run/docker.sock:ro \
nextcloud/all-in-one:latest
This works very well, no php issue !
- But as soon as i launch docker nextcloud-aio, via ansible, i got php errors.
Today I had the same problem, running AIO v9.5.1.
The PHP error stated “Warning: Undefined array key 1 /var/www/docker-aio/php/src/Docker/DockerActionManager.php on line 755”.
Looking into the corresponding code at: https://github.com/nextcloud/all-in-one/blob/a8ced69ab4d19385253b215f864007111ad7385d/php/src/Docker/DockerActionManager.php#L755
shows that the PHP code in line 754 tries to separate the “image:tag” by the “:” and in line 755 tries to access the tag. Now, if the tag is not given, the array has no second element, and PHP shows the warning. The remaining code then defaults to tag “latest”.
Looking at my and your Ansible setup I realize that the “:latest” tag is missing in the image name, while in the “sudo docker run” variant it is there.
IMHO this makes the difference between these two versions.
Actually, this also fits to the explanation for the “channel” selection here: GitHub - nextcloud/all-in-one: 📦 The official Nextcloud installation method. Provides easy deployment and maintenance with most features included in this one Nextcloud instance.