PMM SERVER non-privileged podman instillation docs steps will not work due to Alias=%N

Description

Following document for “Running PMM as a non-privileged user and running it as part of the SystemD service provided using Podman” https://docs.percona.com/percona-monitoring-and-management/setting-up/server/podman.html#run-as-non-privileged-user-to-start-pmm and it fails with the below error (Tested on RHEL9),

$ systemctl --user enable --now pmm-server Failed to enable unit: Cannot alias pmm-server.service as pmm-server.

 

Workaround/Solution:

Remove the following entry from ~/.config/systemd/user/pmm-server.service

Alias=%N

Do daemon-reload :

sudo systemctl daemon-reload

After this, it works,

$ systemctl --user enable --now pmm-server $ podman ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 2ce14250d48b docker.io/percona/pmm-server:2.42.0 /opt/entrypoint.s... 56 seconds ago Up 54 seconds 0.0.0.0:8443->443/tcp pmm-server

How to test

None

How to document

None

Activity

Show:
Lalit Choudhary
changed the StatusJune 12, 2024 at 11:19 AM
New
Open
Lalit Choudhary
created the Work itemJune 11, 2024 at 2:32 PM

Details

Assignee

Reporter

Priority

Components

Needs QA

Needs Doc

Smart Checklist

Created June 11, 2024 at 2:32 PM
Updated June 12, 2024 at 11:19 AM

Flag notifications