Mismatch version of Go in Linux Challenge 2

Hi, there is a problem in the Linux Challenge 2 lab. When I try to start the go web-app as one of the tasks asks for, there is a problem and it is that the version of go is not the right one to start it.

When starting the main.go file normally with the go run command, it returns this output

compile: version “go1.20.6” does not match go tool version “go1.20.4”.

The only way to fix this is to install the package with the right version (which should already be included in the lab). Otherwise, running the command “nohup go run main.go &” as indicated in the activity will only return an error and will not start, making it impossible to complete the lab

Looks like some dependencies have been changed to require higher versions of the compiler suite. Will raise a ticket to get it fixed.

I am told this is fixed now @RobGT0

1 Like

Great! It’s working good. Thanks

I am not able to finish this lab as getting this output on linux challenge:-
compile: version “go1.22.3 (Red Hat 1.22.3-1.el9)” does not match go tool version “go1.20.6”

This seems to similar to the this issue chain, hence raising it here.

Hi @ksingh750

Labs were recently upgraded to CentOS 9 due to RedHat suddenly retiring CentOS 8. This is a bug caused by that upgrade.

To workaround:

  1. Solve the DNS issue (part of the challenge)
  2. Prove you’ve done that by successfully installing nginx and firewalld
  3. Fix the go version by running the following
    sudo yum reinstall -y golang golang-bin
    
1 Like

Thanks, this reinstall resolved golang version conflict issue.

Hi @ksingh750
This has been fixed