You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request. Searching for pre-existing feature requests helps us consolidate datapoints for identical requirements into a single place, thank you!
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
Overview of the Issue
Could not open Github App setup page during initial setup using Docker.
Create the container with docker run -p 4141:4141 ghcr.io/runatlantis/atlantis server --gh-user fake --gh-token fake --repo-allowlist 'github.com/*org*/*repo*' --atlantis-url http://localhost:4141
Go to http://localhost:4141/github-app/setup
The server-side rendered HTML is broken and the page is blank
Logs
{"level":"error","ts":"2022-03-13T15:44:03.306Z","caller":"controllers/github_app_controller.go:146","msg":"template: github-app.html.tmpl:10:34: executing \"github-app.html.tmpl\" at <.CleanedBasePath>: can't evaluate field CleanedBasePath in type templates.GithubSetupData","json":{},"stacktrace":"github.com/runatlantis/atlantis/server/controllers.(*GithubAppController).New\n\tgit.luolix.top/runatlantis/atlantis/server/controllers/github_app_controller.go:146\nnet/http.HandlerFunc.ServeHTTP\n\tnet/http/server.go:2047\ngit.luolix.top/gorilla/mux.(*Router).ServeHTTP\n\tgit.luolix.top/gorilla/mux@v1.8.0/mux.go:210\ngit.luolix.top/urfave/negroni.Wrap.func1\n\tgit.luolix.top/urfave/negroni@v1.0.0/negroni.go:46\ngit.luolix.top/urfave/negroni.HandlerFunc.ServeHTTP\n\tgit.luolix.top/urfave/negroni@v1.0.0/negroni.go:29\ngit.luolix.top/urfave/negroni.middleware.ServeHTTP\n\tgit.luolix.top/urfave/negroni@v1.0.0/negroni.go:38\ngit.luolix.top/runatlantis/atlantis/server.(*RequestLogger).ServeHTTP\n\tgit.luolix.top/runatlantis/atlantis/server/middleware.go:68\ngit.luolix.top/urfave/negroni.middleware.ServeHTTP\n\tgit.luolix.top/urfave/negroni@v1.0.0/negroni.go:38\ngit.luolix.top/urfave/negroni.(*Recovery).ServeHTTP\n\tgit.luolix.top/urfave/negroni@v1.0.0/recovery.go:193\ngit.luolix.top/urfave/negroni.middleware.ServeHTTP\n\tgit.luolix.top/urfave/negroni@v1.0.0/negroni.go:38\ngit.luolix.top/urfave/negroni.(*Negroni).ServeHTTP\n\tgit.luolix.top/urfave/negroni@v1.0.0/negroni.go:96\nnet/http.serverHandler.ServeHTTP\n\tnet/http/server.go:2879\nnet/http.(*conn).serve\n\tnet/http/server.go:1930"}
Community Note
Overview of the Issue
Could not open Github App setup page during initial setup using Docker.
Reproduction Steps
Steps are executed in
localhost
networkdocker run -p 4141:4141 ghcr.io/runatlantis/atlantis server --gh-user fake --gh-token fake --repo-allowlist 'github.com/*org*/*repo*' --atlantis-url http://localhost:4141
http://localhost:4141/github-app/setup
Logs
Environment details
atlantis version
->atlantis 0.19.2
Additional Context
From my vision the issue is:
GithubSetupData
struct for render the template does not haveCleanedBasePath
property: https://github.com/runatlantis/atlantis/blob/master/server/controllers/templates/web_templates.go#L503GithubAppSetupTemplate
: https://github.com/runatlantis/atlantis/blob/master/server/controllers/templates/web_templates.go#L521The text was updated successfully, but these errors were encountered: