I'm creating two docker images via gitlab-ci from one repository upon pushing them to GitLabs private container registry. The .gitlab-ci.yml is below.
myproject is the group name. backend and docs are GitLab projects within this group. Both have the container registry enabled.
build_image works OK but build_apidoc_image fails when pushing the image for the apidoc container to the registry with:
Same problem here. I've a build script that pushes my docker image to gitlab registry and it worked fine for weeks. Since today it's not working anymore. I didn't make any changes on that script.
We're looking into it. We did upgrade to 8.10.1 to fix some issues with strict host/port headers, but if this issue was present 2 days ago then there may be something else going on.
I'm seeing this very same problem while pushing by hand.
My guess is that it is related to communications timeouts or similar, as I'm pushing from a relatively slow DSL line. All except three of the layers went in, but the remaining ones fail once and again with this error or silently. See the failure, it finishes always the same, after a fair number of retries:
I'm quite sure I'm seeing a duplicate of issue #17890 (closed), that was closed with commit #1d94757c that made the Container Registry token expire delay configurable. Posted for people arriving here at random so that they find faster how to proceeed :)
@sgala I did read the comment before posting. Thanks for it, by the way.
And i had tried it with 600 min as timeout, but still have the issue, even with a small container being pushed a second after the login command. Forgot to say that in my last comment.
I strongly believe there is more to this issue than that.
Since this issue was opened, I stopped update GitLab on the 22nd of every month. I always wait the .2 or .3 of each version. This was the third time I had the whole company workflow interrupted by errors in the 22nd release. And apparently, I will not be able to apply the next Monday's security update . Too bad
I was experiencing same problem and the cause was gitlab behind proxy and wrong setting of repository address in gitlab config (http instead of https). Solved using https://gitlab.com/gitlab-com/infrastructure/issues/256
@joe19 I am also using a reverse proxy which is likely causing this issue. I didn't find the solution in the issue you linked to. Can you quote the solution and comment here?
I set
registry_nginx['proxy_set_headers'] = { "Host" => "registry.mydomain.com" }
and then my another problem was that I had "http" registry address in config, not "https".
I used wireshark to debug HTTP coomunication of docker daemon and found that it connects to wrong host or wrong port.
In fact, it was due to the Authorization timeout. Even if the error happens 2 minutes after the effective timeout. (Analyzing '/var/log/gitlab/registry/' helped me understand that)
After editing the Authorization timeout as suggested by @grzesiek , everything went fine.
GitLab is moving all development for both GitLab Community Edition
and Enterprise Edition into a single codebase. The current
gitlab-ce repository will become a read-only mirror, without any
proprietary code. All development is moved to the current
gitlab-ee repository, which we will rename to just gitlab in the
coming weeks. As part of this migration, issues will be moved to the
current gitlab-ee project.
If you have any questions about all of this, please ask them in our
dedicated FAQ issue.
Using "gitlab" and "gitlab-ce" would be confusing, so we decided to
rename gitlab-ce to gitlab-foss to make the purpose of this FOSS
repository more clear
I created a merge requests for CE, and this got closed. What do I
need to do?
Everything in the ee/ directory is proprietary. Everything else is
free and open source software. If your merge request does not change
anything in the ee/ directory, the process of contributing changes
is the same as when using the gitlab-ce repository.
Will you accept merge requests on the gitlab-ce/gitlab-foss project
after it has been renamed?
No. Merge requests submitted to this project will be closed automatically.
Will I still be able to view old issues and merge requests in
gitlab-ce/gitlab-foss?
Yes.
How will this affect users of GitLab CE using Omnibus?
No changes will be necessary, as the packages built remain the same.
How will this affect users of GitLab CE that build from source?
Once the project has been renamed, you will need to change your Git
remotes to use this new URL. GitLab will take care of redirecting Git
operations so there is no hard deadline, but we recommend doing this
as soon as the projects have been renamed.
Where can I see a timeline of the remaining steps?