-
-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sudo: /usr/bin/tee command not found #1251
Comments
Hi @Empty2k12 👋🏼
I see you've configured username 'user' for SSH access, but the username argument is not specified in the provider's You'd need to add ssh {
agent = true
username = "user"
} Please let me know if it solves the issue. |
Hello @bpg, thanks for your quick response. I have just renamed the user in this issue. The user is called Actually, the permissions for the user
|
Interesting... 🤔 Do you have the same user set up in the same way on all nodes in your PVE cluster? |
Yes, I have. |
That really puzzles me. Could you check the syslog on your node, perhaps we can find some clues in there. For example, on my test node I have these logs from the snippet upload:
Also, what type of shell is configured for |
I just came across this same problem, and changing my shell back to I have some pretty custom zsh configs, so I wouldn't be entirely surprised if my issue was there, but I am now curious if the OP was using a shell that isn't bash. 🙂 |
Thank you @mattburchett for your comment! |
The requirement for the default |
Describe the bug
Creating a snippet throws
Error: error transferring file: sudo: /usr/bin/tee /var/lib/vz/snippets/vendor-config.yaml: command not found
.To Reproduce
ssh user@10.176.95.110 sudo pvesm apiinfo
returnsAPIVER 10 APIAGE 1
ssh user@10.176.95.110 sudo /usr/bin/tee
works.try_sudo(){ if [ $(sudo -n pvesm apiinfo 2>&1 | grep "APIVER" | wc -l) -gt 0 ]; then sudo $1; else $1; fi }; t ry_sudo /usr/bin/tee
on the host works. I am not proficient enough in Go and did not dig deep enough in the source to determine if it is trying to runsudo: /usr/bin/tee
.Please note this example has been created as a minimal repro. I am using the Pulumi provider which uses the same plugin, but the same error happens.
Expected behavior
A clear and concise description of what you expected to happen.
Terraform version:
TF_LOG=DEBUG terraform apply
): tofu.logThe text was updated successfully, but these errors were encountered: