ipcc_send_rec[1] failed: Unknown error -1

originaltrini0

New Member
Jul 16, 2024
4
0
1
Hello all:

My environment:
3-node Proxmox (v 8.3.0) cluster is working without any issues.

I am attempting to configure the bpg/proxmox Terraform provider, which requires creating an account for SSH purposes.
I created a user account on each node using:
Code:
useradd --create-home --shell /bin/bash terraform
passwd terraform

I then created a terraform@pam account.

Running a Terraform task, it failed with part of the stderr showing: pvesm: command not found

I SSH'ed to a Proxmox node, but `which pvesm` does not give me any output.
type pvesm yields: bash: type: pvesm: not found

I found the file at /usr/sbin/pvesm.
If I call the file directly, like /usr/sbin/pvesm -h, I get the following error:
Code:
ipcc_send_rec[1] failed: Unknown error -1
ipcc_send_rec[2] failed: Unknown error -1
ipcc_send_rec[3] failed: Unknown error -1
Unable to load access control list: Unknown error -1

Could anyone point me in the right direction regarding what might be required for my terraform account to use Proxmox commands?

Thanks
 
Nevermind. I found a topic with similar issues that I experienced.
The fix from a root terminal:
echo "terraform ALL=NOPASSWD:ALL" > /etc/sudoers.d/terraform