Problem
Platform update fails with an error. The installation log contains an error similar to:
Duplicate mount points: [/opt/ispsystem/vm/grafana:/var/lib/grafana:rw, /opt/ispsystem/vm/grafana:/var/lib/grafana:rw, /opt/ispsystem/vm/grafana-provisioning:/etc/grafana:rw, /opt/ispsystem/vm/grafana-provisioning:/etc/grafana:rw]This occurs due to duplicate mount point entries for Grafana services in the Docker Compose configuration file.
Diagnosis
To confirm the cause of the error:
- Connect to the server with the platform via SSH. For more information about connecting via SSH, see Workstation setup.
- Check for the error in the installation log:
sudo grep -A2 -B2 "Duplicate mount points" /opt/ispsystem/vm/install.logExpected Result: The log should contain the following error:
Duplicate mount points: [/opt/ispsystem/vm/grafana:/var/lib/grafana:rw, /opt/ispsystem/vm/grafana:/var/lib/grafana:rw, /opt/ispsystem/vm/grafana-provisioning:/etc/grafana:rw, /opt/ispsystem/vm/grafana-provisioning:/etc/grafana:rw]
Solution
To resolve the issue, remove the duplicate lines in the docker-compose.yaml file:
- Connect to the server with the platform via SSH. For more information about connecting via SSH, see Workstation setup.
- Create a backup of the /opt/ispsystem/vm/docker-compose.yaml file:
cp /opt/ispsystem/vm/docker-compose.yaml /root/ - Open the file /opt/ispsystem/vm/docker-compose.yaml in a text editor.
- In the grafana → volumes section, remove the following duplicate entries:
- /opt/ispsystem/vm/grafana:/var/lib/grafana - /opt/ispsystem/vm/grafana-provisioning:/etc/grafanaExample section before editinggrafana: container_name: grafana image: docker-registry.ispsystem.com/team/vm/grafana:2.0.1 volumes: - /opt/ispsystem/vm/grafana/:/var/lib/grafana/ - /opt/ispsystem/vm/grafana-provisioning/:/etc/grafana/ - Save the changes and exit the editor.
- Run the platform update:
vm update
Useful tips
Related topics:
En
Es