Open mcnesium opened 5 years ago
:warning: First of all, please check that you changed the volume path in your compose file. We now use /codimd/public/uploads
. :warning:
Then please double-check the gitlab client secret and client id. Also important question: Do you use GitLab.com or do you use a local gitlab? In case of the latter you are missing CMD_GITLAB_BASEURL
.
So I tripple-checked the client secret and ID and they do match.
Yes, this is a self-hosted GitLab. But please look again, I am not missing CMD_GITLAB_BASEURL
, as it appears in both env var listings above.
Thank you for pointing out the deprecated upload path, though :+1:
Can you contact the gitlab server from within the CodiMD container? (a simple curl or wget or even ping would suffice)
Yes I can.
wget [domain]/api/v4/projects
stores a json string of all the public projects in a file called projects
.
My GitLab authentication stopped working. CodiMD is running in Docker, here is the
docker-compose.yml
:The proxying is done by apache2 on the host:
In the running
hackmd_app
container the environment variables are all set:The application is correctly registered in GitLab:
When visiting the site and hitting Login button, the modal with the GitLab button appears, and when this one is hit, the browser tab keeps waiting for an answer from the hackmd domain for about two minutes and then shows
Internal Server Error
on a blank page.Here is the output of
docker-compose logs -f
starting with the boot process until the failed GitLab authentication:The
TokenError: The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.
is not true, as they have been refreshed right before that session.The CodiMD setup has been running for quite some time, you can see this has been running under the name HackMD first. The only thing I can think of what I did was upgrading the underlying host system Ubuntu from 1604 to 1804.
There was a database issue that came up in the logs stating
which I solved by doing
pg_resetxlog
on the database:While I was puzzling about what and why it has happened to the db, I cheeringly saw that the site going back up, but then the stated GitLab authentication fails.
So whats going on with this? Any help?