ej52 / proxmox-scripts

MIT License
587 stars 308 forks source link

[error] A problem occured while downloading the LXC template. #12

Closed ianalexis closed 3 years ago

ianalexis commented 3 years ago

Hello, I'm getting the error "[error] A problem occurred while downloading the LXC template." but idk how to check why is this happening. Is this happening to anyone else? How can i track what is triggering this error?

Thanks. Rgrds.-

thgeese commented 3 years ago

has the same problem

thgeese commented 3 years ago

found the problem in line 177 pct create $_ctid "local:vztmpl/$_template" ${_pct_options[@]} &>/dev/null \ the Scripts need the local template storage. After assign the rule TEMPLATE to the LOCAL storage the script works for me

ej52 commented 3 years ago

@ianalexis @thgeese I have added a new --templates command-line argument that can be set to override local storage.

ianalexis commented 3 years ago

Did it but getting the same, do i need to download any specific template before running the scrip? Thanks [warn] Container will be created using the following settings. [warn] [warn] ctid: 200 [warn] hostname: ct-nginx-proxy-manager [warn] cores: 1 [warn] memory: 512 [warn] swap: 0 [warn] disksize: 2G [warn] bridge: vmbr0 [warn] storage: local-lvm [warn] templates: /Pool2TB/ISO/dump [warn] [warn] If you want to abort, hit ctrl+c within 10 seconds...

[info] Updating LXC template list... [info] Downloading LXC template... [error] A problem occured while downloading the LXC template.

ej52 commented 3 years ago

@ianalexis You need to set --templates argument to the storage ID, not the path of where templates are stored

Screenshot 2021-04-29 at 09 31 37