[SOLVED] 'pct push' fails to get uid/gid

hasu

New Member
Apr 4, 2021
2
0
1
38
Hi,

I'm running pve-manager/6.3-6/2184247e (kernel: 5.4.106-1-pve) and I have a container running Debian 10. The following command:

Bash:
sudo pct push "$vmid" ~/share/.bashrc /root/.bashrc \
    --user root \
    --group root \
    --perms 644

Fails with the following message:

failed to get uid for: root

Dropping the --user option results in:

failed to get gid for: root

The command succeeds if I replace 'root' with a non-root user/group for the --user and --group options.

The following commands also succeed:

Bash:
sudo pct exec "$vmid" -- chown root /root/.bashrc
sudo pct exec "$vmid" -- chgrp root /root/.bashrc

Which suggests the problem is with my use of 'pct push'.

Any help is appreciated!
 
I can confirm that this issue exists. I'll have a closer look at it, but for now, entering 0 for the user and group is the easiest workaround to achieve what you want.