Hangs with "Initializing Terraform..." (please introduce verbose logging option)
I tried both Linux and Windows versions of rover 0.2.2 amd64, and they are getting stuck and freezing at Initializing Terraform.... It appears frozen for a very long time, and I have no idea what it is doing. The usual output from terraform plan is silenced when it's run through rover and I couldn't find any option to enable verbose logging.
I have to press Ctrl+C to kill it. Note that I'm using the executable directly, and not using the Docker image.
Hi @ADTC, that's interesting. It should be using your default version of Terraform and returning the error message from terraform init if there is one. It'll look into verbose logging though
Do you run into an issue initializing the workspace with the Terraform binary directly?
https://github.com/im2nguyen/rover/blob/main/main.go#L228-L231
err = tf.Init(context.Background(), tfInitOptions...)
if err != nil {
return errors.New(fmt.Sprintf("Unable to initialize Terraform Plan: %s", err))
}
I have the same problem when using the docker image:
$ docker run -ti --rm -p 9000:9000 -v `pwd`:/src --env-file .env im2nguyen/rover
2022/07/07 10:32:58 Starting Rover...
2022/07/07 10:32:58 Initializing Terraform...
It just stays like this, apparently doing nothing :shrug: