CT is locked (failed backup) and /etc/pve is missing

jalouke

New Member
Jan 30, 2021
4
1
3
36
Hey everyone,

I attempted to perform a backup of one of my containers, and I accidentally stopped it before it finished. Now this container is locked and I am unable to locate the /etc/pve folder to edit the <VMID>.conf file to release the lock.

here is my console:
PVE-missing.PNG


Also I have several containers and VMs running currently. I am running PVE 6.3-3 currently.
 

H.c.K

Member
Oct 16, 2019
68
3
13
31
Hi, I don't know if the directory privilege solves its job, but my "/etc/pve/" privilege is as follows.
1613949131499.png
 

jalouke

New Member
Jan 30, 2021
4
1
3
36
you know what, I am a total idiot... can this thread be deleted? I was in the wrong shell.

I am still unable to unlock the container. I tried using:

Code:
pct unlock <vmid>

but I get: -bash: pct: command not found
 
Last edited:

jalouke

New Member
Jan 30, 2021
4
1
3
36
and I solved that too... thank you internet:

cp /usr/sbin/pct /usr/bin/pct

pct works now
 
  • Like
Reactions: H.c.K

spirit

Famous Member
Apr 2, 2010
5,922
714
143
www.odiso.com
/etc/pve is mounted by pmxcfs binary, it should be launch by the "pve-cluster.service"


about /usr/bin/pct, this is the right location, do you have /usr/sbin/ in your PATH ?

# env|grep PATH
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
 

jalouke

New Member
Jan 30, 2021
4
1
3
36
I am missing sbin from my PATH:

env|grep PATH
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

How do I go about adding it permanently?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!