Using a LXC container template with the API to create a new container.

Darky

New Member
Aug 8, 2025
2
0
1
Hello there, ProxMox community!
I'm reaching out here because i'm kinda on a roadblock right now, i have a TypeScript dc bot using the proxmox-API package, and it's supposed to create a new temporary container that will get deleted after some time, the thing is that in order to create said container it needs the base template and this is where i'm completely stuck, whatever ways i try to use a template the API always return an error 500 saying "unable to use volume local:vztmpl/vzdump-lxc-102-2025_08_08-18_13_01.tar.gz - content type needs to be 'backup': {"data":null}" now this is becoming ever so frustrating since this exact system was working fine a few months ago when i was active on it but since then i abandoned it due to lack of time, now i'm back it at it and even made the right hookscript for my usecase, anyway i'm now having an issue with the actual container creation.

I remember that it was something like "local:vztempl" ending with an ".tar.gz" and this error i mentioned is where i'm stuck, does anybody know what i could do ? Please, do not hesitate to request more information about anything if it misses something, thanks
 
To be more precise with my issue, i have a template that the code can use that is in the right path, /var/lib/vz/template/cache/ and not /var/lib/vz/dump/cache/ and this is the old and incorrect one, but whenever i try to use the new one it just doesn't work at all, PVE want to same it to /backup and not /template too, i'm just so confused