Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolved. GitLab Pages doesn't work since GitLab v14.0 #2389

Merged
merged 2 commits into from
Jul 26, 2021

Conversation

sue445
Copy link
Contributor

@sue445 sue445 commented Jul 20, 2021

ref. #2375

As I can see from the error message below, it looks like both
api-secret-key and gitlab-server (or internal-gitlab-server ) are required since GitLab v14.0

time="2021-06-28T02:28:34Z" level=fatal msg="could not create domains config source" error="GitLab API URL or API secret has not been provided"

https://gitlab.com/gitlab-org/gitlab-pages/-/blob/v1.41.0/internal/source/gitlab/client/client.go#L50-52

This patch is actually working on my GitLab

ref. sameersbn#2375

As I can see from the error message below, it looks like both
`api-secret-key` and `gitlab-server` (or `internal-gitlab-server` ) are required since GitLab v14.0

```
time="2021-06-28T02:28:34Z" level=fatal msg="could not create domains config source" error="GitLab API URL or API secret has not been provided"
```

https://gitlab.com/gitlab-org/gitlab-pages/-/blob/v1.41.0/internal/source/gitlab/client/client.go#L50-52
@@ -4,3 +4,5 @@ auth-redirect-uri={{GITLAB_PAGES_ACCESS_REDIRECT_URI}}
auth-secret={{GITLAB_PAGES_ACCESS_SECRET}}
gitlab-server={{GITLAB_PAGES_ACCESS_CONTROL_SERVER}}
artifacts-server={{GITLAB_PAGES_ARTIFACTS_SERVER_URL}}
internal-gitlab-server=http://localhost:8181
api-secret-key=/home/git/gitlab/.gitlab_pages_secret
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should use GITLAB_INSTALL_DIR here too match config in assets/runtime/functions

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@achretien Fixed at 73dae28

@icedream
Copy link
Contributor

@sameersbn I saw that you updated to 14.0.6 just recently. Can you take a look at this and possibly include this in the next update at least? This affects a production environment I'm maintaining right now and it seems to be affecting all users of the GitLab Pages feature.

@sameersbn sameersbn merged commit b4f927f into sameersbn:master Jul 26, 2021
@sue445 sue445 deleted the gitlab_v14_0_gitlab_pages_secret branch July 26, 2021 03:57
@danyill
Copy link
Contributor

danyill commented Jul 26, 2021

When I manually patch these changes into the v14.1.0 container pages works fine. Thanks for this 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants