#2706·semaphore

Problem: Semaphore does not obey HTTP Proxy Environment variables

Author: StrimblasterCreated Jan 21, 2025Updated Sep 26, 2026

Issue

Summary

A machine running Semaphore while having internet access only through a HTTP(S) proxy cannot clone/pull repositories even if the proxy environment variables "http_proxy" and "https_proxy" are defined correctly.

Context

A old semaphore instance (2.8.?) was running behind a proxy and by defining the variables "http_proxy" and "https_proxy" in the systemd file everything worked fine. After updating to the latest version, 2.11.2, tasks wouldn't go past the cloning/updating phase. Git command timed out every time.

Troubleshooting info

  • By looking at the process list while Semaphore is trying to clone the repository, I can assure that it gets stuck in the "git clone" and internal "git remote-https" commands
  • Checked git configs and tried to add "http_proxy" and "https_proxy" but the result is the same.
  • I CAN simply copy the clone command in the process list and paste it in the cli and it works. With this, I assume that the issues is really on Semahore side.
  • Tried some 2.10 version and this issue also occurs. Sorry for not remembering the exact version.
  • Tried 2.9.112 and the proxy settings work. I can assume that the issue was introduced at some point in 2.10
  • Tried installing 2.11.2 through docker with the proxy setting and got the same issue.

Thanks.

Impact

Ansible (task execution)

Installation method

Package

Database

MySQL

Browser

No response

Semaphore Version

Currently trying to run 2.11.2 Version 2.9.112 does NOT have this issue.

Tried both package and docker installation.

Ansible Version

bash
ansible [core 2.14.5]
This shouldn't be related because the problem occurs before ansible starts running the playbook

Logs & errors

No errors found in semaphore logs.

Manual installation - system information

Ubuntu 22.04

Configuration

This environment variables are defined in semaphore systemd file:

Environment="http_proxy=http://XXXX:XXXX" Environment="https_proxy=https://XXXX:XXXX"

Additional information

No response