https://www.runatlantis.io/ logo
Title
o

Oleg Gumbar

05/01/2023, 9:13 AM
Hello. What can be an entrypoint for debug of following error?
{
  "level": "error",
  "ts": "2023-05-01T09:05:25.657Z",
  "caller": "logging/simple_logger.go:163",
  "msg": "invalid key: 8021e917-2535-4a1a-861c-f64ba07e96c0",
  "json": {},
  "stacktrace": "<http://github.com/runatlantis/atlantis/server/logging.(*StructuredLogger).Log|github.com/runatlantis/atlantis/server/logging.(*StructuredLogger).Log>\n\tgithub.com/runatlantis/atlantis/server/logging/simple_logger.go:163\ngithub.com/runatlantis/atlantis/server/controllers.(*JobsController).respond\n\tgithub.com/runatlantis/atlantis/server/controllers/jobs_controller.go:92\ngithub.com/runatlantis/atlantis/server/controllers.(*JobsController).getProjectJobsWS\n\tgithub.com/runatlantis/atlantis/server/controllers/jobs_controller.go:70\ngithub.com/runatlantis/atlantis/server/controllers.(*JobsController).GetProjectJobsWS\n\tgithub.com/runatlantis/atlantis/server/controllers/jobs_controller.go:83\nnet/http.HandlerFunc.ServeHTTP\n\tnet/http/server.go:2122\ngithub.com/gorilla/mux.(*Router).ServeHTTP\n\tgithub.com/gorilla/mux@v1.8.0/mux.go:210\ngithub.com/urfave/negroni/v3.Wrap.func1\n\tgithub.com/urfave/negroni/v3@v3.0.0/negroni.go:59\ngithub.com/urfave/negroni/v3.HandlerFunc.ServeHTTP\n\tgithub.com/urfave/negroni/v3@v3.0.0/negroni.go:33\ngithub.com/urfave/negroni/v3.middleware.ServeHTTP\n\tgithub.com/urfave/negroni/v3@v3.0.0/negroni.go:51\ngithub.com/runatlantis/atlantis/server.(*RequestLogger).ServeHTTP\n\tgithub.com/runatlantis/atlantis/server/middleware.go:70\ngithub.com/urfave/negroni/v3.middleware.ServeHTTP\n\tgithub.com/urfave/negroni/v3@v3.0.0/negroni.go:51\ngithub.com/urfave/negroni/v3.(*Recovery).ServeHTTP\n\tgithub.com/urfave/negroni/v3@v3.0.0/recovery.go:210\ngithub.com/urfave/negroni/v3.middleware.ServeHTTP\n\tgithub.com/urfave/negroni/v3@v3.0.0/negroni.go:51\ngithub.com/urfave/negroni/v3.(*Negroni).ServeHTTP\n\tgithub.com/urfave/negroni/v3@v3.0.0/negroni.go:111\nnet/http.serverHandler.ServeHTTP\n\tnet/http/server.go:2936\nnet/http.(*conn).serve\n\tnet/http/server.go:1995"
}
logs are missing for some runs/gitlab jobs
p

PePe Amengual

05/01/2023, 3:54 PM
that is the live logs?
that you are trying to see?
o

Oleg Gumbar

05/01/2023, 6:49 PM
@PePe Amengual some logs were missing in Atlantis when I’ve tried to run plan on Gitlab MR. Reason - Atlantis had locks by previous MR for executable Terragrunt modules (where logs were missing in newer MR) in monorepo
That’s regular situation, but it causes empty logs and error exception in Atlantis, so my thoughts were it’s some kind of bug
I have project A with modules X,Y and Z. I’ve opened MR 1 and made plan for X, then I’m opening MR 2 and doing plan for X and Y and see no logs for plan run for X in MR 2 and error in Atlantis logs
p

PePe Amengual

05/01/2023, 7:13 PM
mmm
I believe there is an issue already about this
please look it up and add your comments there and how you can reproduce it
o

Oleg Gumbar

05/03/2023, 10:28 PM
As I see there is nothing related… Folks have issues with missing logs, but for other reasons