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
 
I'm trying to figure this out still because it breaks using sudo and a normal user, especially when using auto completion.
 
Last edited:
Hi,
I'm trying to figure this out still because it breaks using sudo and a normal user, especially when using auto completion.
as long as you are not authenticated, the autocompletion code will run as the less privileged user and can fail because of missing privilege.
 
Hi,

as long as you are not authenticated, the autocompletion code will run as the less privileged user and can fail because of missing privilege.
When you add unauthenticated, are you saying root? I have passwordless sudo enabled for the user. Is there a feature request open for this to work with normal users already? I can submit one if not.