Issues

Select view

Select search mode

 
24 of 24

Upgrade to PMM3 Fails on Docker Commands

Description

Using instructions from https://docs.percona.com/percona-monitoring-and-management/3/pmm-upgrade/migrating_from_pmm_2.html

Ξ(uwe2) ~ → bash get-pmm3.sh -n pmm-server -b Gathering/downloading required components, this may take a moment Checking docker installation - installed. Created PMM Network: pmm-net Found Watchtower Token: Generated Watchtower Token: random-2025-03-16-235713 Pulling percona/pmm-server:3.0.0 Existing PMM Server found, renaming to pmm-server-2025-03-16-235735 pmm-server Backing up existing PMM Data Volume to -2025-03-16-235751 unknown shorthand flag: '2' in -2025-03-16-235751 See 'docker volume create --help'.

I tried without backup:

Ξ(uwe2) ~ → bash get-pmm3.sh -n pmm-server Gathering/downloading required components, this may take a moment Checking docker installation - installed. Found Watchtower Token: Generated Watchtower Token: random-2025-03-16-235811 Pulling percona/pmm-server:3.0.0 Existing PMM Server found, renaming to pmm-server-2025-03-16-235811 pmm-server Migrating PMM Server data from 2.x to 3.x pmm-server vmalert: stopped vmproxy: stopped postgresql: stopped grafana: stopped victoriametrics: stopped alertmanager: stopped qan-api2: stopped pmm-agent: stopped pmm-update-perform-init: stopped nginx: stopped pmm-managed: stopped clickhouse: stopped pmm-server Created PMM Data Volume: Starting PMM Server... docker: invalid spec: :/srv: empty section between colons. See 'docker run --help'.

Unable to reproduce as I lost my PMM install and started from scratch, but it looks like the shell script does not recognize when the PMM data volume is Type:bind.

+ backup_pmm_data ++ date +%F-%H%M%S + pmm_volume_archive=-2025-03-17-002328 + msg 'Backing up existing PMM Data Volume to -2025-03-17-002328' + echo -e 'Backing up existing PMM Data Volume to -2025-03-17-002328'

How to test

None

How to document

None

Details

Assignee

Reporter

Priority

Labels

Needs QA

Yes

Needs Doc

Yes

Affects versions

Environment

Ξ(uwe2) ~ → docker version Client: Version: 25.0.8 API version: 1.44 Go version: go1.22.7 Git commit: 0bab007 Built: Tue Feb 11 22:44:16 2025 OS/Arch: linux/amd64 Context: default Server: Engine: Version: 25.0.8 API version: 1.44 (minimum version 1.24) Go version: go1.22.7 Git commit: 71907ca Built: Tue Feb 11 22:44:45 2025 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.7.25 GitCommit: bcc810d6b9066471b0b6fa75f557a15a1cbf31bb runc: Version: 1.2.4 GitCommit: 6c52b3fc541fb26fe8c374d5f58112a0a5dbda66 docker-init: Version: 0.19.0 GitCommit: de40ad0

Smart Checklist

Created 4 hours ago
Updated 4 hours ago

Activity

Show: