sameersbn / sameersbn/docker-gitlab
Error using MySQL server
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 8.1k
- Forks
- 2.1k
- Avg merge
- 17h 47m
- Merged PRs (30d)
- 7
Description
When running the image for the first time and configured to use a MySQL server, the GitLab setup fails (https://github.com/sameersbn/docker-gitlab/blob/a0424c881fbf0551b11205c6bfbf77704edca86b/assets/runtime/functions#L1335).
The problem is that even when running the image for the first time, a database migration is performed before the setup. The version equality check fails during the first run because the VERSION file in the tmp directory does not yet exist (https://github.com/sameersbn/docker-gitlab/blob/a0424c881fbf0551b11205c6bfbf77704edca86b/assets/runtime/functions#L1295-L1297)
Please make sure that no database migration is performed before the GitLab setup when the image is running for the first time.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in assets/runtime/functions around lines 1295-1297 and 1335, then trace the first-run setup flow when the image uses a MySQL server. Verify that the initial setup completes without a database migration occurring beforehand, and reproduce the original first-run failure to confirm it is resolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, mysql, shell
- Domain
- database, devops
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100