# Http proxy sometimes failed

**URL:** <https://forum.gitlab.com/t/http-proxy-sometimes-failed/89501>\
**Category:** General\
**Tags:** mirroring\
**Created:** [July 10, 2023, 2:26am UTC](https://forum.gitlab.com/t/http-proxy-sometimes-failed/89501 "2023-07-10T02:26:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![browse](https://sea2.discourse-cdn.com/gitlab/user_avatar/forum.gitlab.com/browse/32/38556_2.png) [@browse](https://forum.gitlab.com/u/browse)\
**Post date:** [July 10, 2023, 2:26am UTC](https://forum.gitlab.com/t/http-proxy-sometimes-failed/89501/1 "2023-07-10T02:26:33Z")

</div>

I want to use mirror feature with http proxy, and I set `gitlab_rails['env']` as described in [Setting custom environment variables | GitLab](https://docs.gitlab.com/omnibus/settings/environment-variables.html). But the proxy sometimes failed, and there is no related log in `/var/log/gitlab/gitlab-rails/update_mirror_service_json.log` as described in [Log system | GitLab](https://docs.gitlab.com/ee/administration/logs/index.html#update_mirror_service_jsonlog).

My questions are:

1. How to verify the proxy is configured correctly?
2. How can I turn on the mirroring log?

---

<div class="post-metadata">

**Author:** ![browse](https://sea2.discourse-cdn.com/gitlab/user_avatar/forum.gitlab.com/browse/32/38556_2.png) [@browse](https://forum.gitlab.com/u/browse)\
**Post date:** [July 14, 2023, 6:05pm UTC](https://forum.gitlab.com/t/http-proxy-sometimes-failed/89501/2 "2023-07-14T18:05:05Z")

</div>

Anyone can help me?

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/gitlab/user_avatar/forum.gitlab.com/iwalker/32/28805_2.png) [@iwalker](https://forum.gitlab.com/u/iwalker)\
**Post date:** [July 14, 2023, 7:12pm UTC](https://forum.gitlab.com/t/http-proxy-sometimes-failed/89501/3 "2023-07-14T19:12:42Z")

</div>

First of all the link you provided 404’s so we cannot see what you are linking to. Second, what mirror feature? What are you trying to achieve?

Maybe you can explain in more detail, because it’s impossible to understand what you are trying to do so in reality, nobody can help until you do this.

---

<div class="post-metadata">

**Author:** ![browse](https://sea2.discourse-cdn.com/gitlab/user_avatar/forum.gitlab.com/browse/32/38556_2.png) [@browse](https://forum.gitlab.com/u/browse)\
**Post date:** [July 17, 2023, 2:04am UTC](https://forum.gitlab.com/t/http-proxy-sometimes-failed/89501/4 "2023-07-17T02:04:00Z")

</div>

> First of all the link you provided 404’s

Here are the links:

- [Setting custom environment variables | GitLab](https://docs.gitlab.com/omnibus/settings/environment-variables.html)
- [Log system | GitLab](https://docs.gitlab.com/ee/administration/logs/index.html#update_mirror_service_jsonlog)

> Second, what mirror feature? What are you trying to achieve?

The repository mirroing feature is described here: [Repository mirroring | GitLab](https://docs.gitlab.com/ee/user/project/repository/mirror/).

What I want is mirroring my gitlab repo to github with http proxy.

* * *

My problem is I 've configured the proxy as described in [Setting custom environment variables | GitLab](https://docs.gitlab.com/omnibus/settings/environment-variables.html). But the mirroring feature sometimes failed with the proxy. I want to debug that,but I can’t find any log or debug info.

---

<div class="post-metadata">

**Author:** ![pupton\_alcf](https://avatars.discourse-cdn.com/v4/letter/p/bcef8e/32.png) [@pupton\_alcf](https://forum.gitlab.com/u/pupton_alcf)\
**Post date:** [November 10, 2025, 9:40pm UTC](https://forum.gitlab.com/t/http-proxy-sometimes-failed/89501/5 "2025-11-10T21:40:14Z")

</div>

I’ve got a similar issue. My proxy says that GitLab first tries without auth, then tries with auth one second later. GitLab does not output any errors. How do I debug this?
