VMmanager Knowledge Base
en En
es Es

"Duplicate mount points" error during platform update

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:

  1. Connect to the server with the platform via SSH. For more information about connecting via SSH, see Workstation setup.
  2. Check for the error in the installation log:
    sudo grep -A2 -B2 "Duplicate mount points" /opt/ispsystem/vm/install.log

    Expected 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:

  1. Connect to the server with the platform via SSH. For more information about connecting via SSH, see Workstation setup.
  2. Create a backup of the /opt/ispsystem/vm/docker-compose.yaml file:
    cp /opt/ispsystem/vm/docker-compose.yaml /root/
  3. Open the file /opt/ispsystem/vm/docker-compose.yaml in a text editor.
  4. In the grafanavolumes section, remove the following duplicate entries:
    - /opt/ispsystem/vm/grafana:/var/lib/grafana
    - /opt/ispsystem/vm/grafana-provisioning:/etc/grafana
    Example section before editing
    grafana:
        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/
  5. Save the changes and exit the editor.
  6. Run the platform update:
    vm update
Useful tips

Related topics: