Open hanganhhung123 opened 1 year ago
Can you check the user running the rover has permission to /dev/stderr?
ls -l /dev/stderr
Hi @LaurentLesle, The agent is runing with root user and it can access to /dev/stderr as bellow.
I found out that /dev/stderr
is equivalent with &2
. On linux, write to &2 works for every user; write to /dev/stderr works only for root users. I don't know why root user cannot write standard error into stderr.
I have make some test to replace 2> >(tee /dev/stderr)
by 2> >(tee -a >&2)
and the error gone
1. An error occur when I run Rover on Ubuntu 20.04
in tfcloud.sh#539 file, function process_curl_response() has 2 lines to curl the TFE with token and redirect to STDERR by
2> >(tee /dev/stderr)
When I try to do the migration to Terraform Cloud, below is the error I'm face with
I have made some changes to remove the
2> >(tee /dev/stderr)
out of tfcloud.sh and rerun the migration, it's worked. So I need some help to remove the2> >(tee /dev/stderr)
in the code, or are there any other solution for it?2. Terraform Cloud Agent Check failure
in tfcloud.sh#43, the function check_terraform_cloud_agent_exist() check if the tfcloud agent exist via url
or
When I run the Terraform Cloud migrate/plan/apply with agent mode, it throw this error:
Base on the latest api-docs from Harshicorp to list agent, the valid format of the url must not have the suffix
/organizations/${TF_VAR_tf_cloud_organization}
. It has pass from my testing also. I need some help to fix it for latest run.