ej52 / proxmox-scripts

MIT License
568 stars 303 forks source link

Cannot install from script #74

Closed BShurilla closed 1 year ago

BShurilla commented 2 years ago

Script nginx-proxy-manager

Describe the bug Goes through the process, creates the container, starts working in the container, then gives this error:

[error] 195 NULL: pct exec $_ctid -- sh -c "wget --no-cache -qO - $_raw_base/setup.sh | sh"

It then destroys the container.

System info:

firefox7518 commented 2 years ago

I can confirm that on my proxmox 6.4 server too: [error] 195 NULL: pct exec $_ctid -- sh -c "wget --no-cache -qO - $_raw_base/setup.sh | sh"

olesk75 commented 2 years ago

Exactly the same bug stops me on a proxmox 7.0 server

akic100 commented 2 years ago

I had the same problem on PE7.1-7. It boiled down to the setup script not having the rust compiler in PATH. I fixed it by editing the last line of create.sh: pct exec $_ctid -- sh -c "wget --no-cache -qO - https://sh.rustup.rs | sh; source $HOME/.cargo/env; wget --no-cache -qO - $_raw_base/setup.sh | sh" I'm sure there's a more proper way to do it but this worked for me.

olesk75 commented 2 years ago

I had the same problem on PE7.1-7. It boiled down to the setup script not having the rust compiler in PATH. I fixed it by editing the last line of create.sh: pct exec $_ctid -- sh -c "wget --no-cache -qO - https://sh.rustup.rs | sh; source $HOME/.cargo/env; wget --no-cache -qO - $_raw_base/setup.sh | sh" I'm sure there's a more proper way to do it but this worked for me.

That also did it for me (or, I had to change 2G disk to 4G disk in the script, but then it worked. Thanks!!

akic100 commented 2 years ago

I had the same problem on PE7.1-7. It boiled down to the setup script not having the rust compiler in PATH. I fixed it by editing the last line of create.sh: pct exec $_ctid -- sh -c "wget --no-cache -qO - https://sh.rustup.rs | sh; source $HOME/.cargo/env; wget --no-cache -qO - $_raw_base/setup.sh | sh" I'm sure there's a more proper way to do it but this worked for me.

That also did it for me (or, I had to change 2G disk to 4G disk in the script, but then it worked. Thanks!!

Yes, I also gave it 4GB of disk space in the beginning so I didn't run into any issues there. I did notice that the container uses a bit over 2GB of disk space, it could be due to the extra rust installation. Again, this probably isn't the correct way of handling it but it works as a workaround. Glad to hear it works for you too!

pablosed commented 2 years ago

I had the same problem on PE7.1-7. It boiled down to the setup script not having the rust compiler in PATH. I fixed it by editing the last line of create.sh: pct exec $_ctid -- sh -c "wget --no-cache -qO - https://sh.rustup.rs | sh; source $HOME/.cargo/env; wget --no-cache -qO - $_raw_base/setup.sh | sh" I'm sure there's a more proper way to do it but this worked for me.

This is still an issue as of May 18th. downloading and manually editing the create.sh script per the instructions from akic100 worked a treat. LXC now up and running. FWIW mine is using 1.28GB of space...