Symptoms
You may see any of the following.
- Pushes and other events that should trigger webhooks do not produce any delivery attempts. For more information, see Viewing webhook deliveries.
- In the Management Console monitor dashboard, the
Aqueduct queue depthgraph showshookshot-production.hookshotjobs building up. For more information, see About the monitor dashboards. - The system logs contain
hookshot-goerrors that sayFailed to receive job from queue, withconnection refusedonaqueduct-lite.sock.
Causes
hookshot-go is the service that sends webhooks. It gets each delivery as a job from aqueduct-lite, the internal job queue.
On older patch releases, hookshot-go connects to aqueduct-lite over a UNIX socket served by haproxy-cluster-proxy, the instance's internal proxy. If that connection is refused, hookshot-go cannot receive jobs, so no webhooks are sent and the jobs wait in the queue.
Restarting hookshot-go or aqueduct-lite, or running a configuration apply, may not restore the connection on its own.
Newer patch releases connect over TCP by default instead, which has proven more reliable. See Resolving the problem for the releases that include this change.
Confirming the problem
-
SSH into the administrative shell. For more information, see Accessing the administrative shell (SSH).
-
Search the system logs for the error.
rg -z 'hookshot-go.*Failed to receive job from queue' /var/log/syslog*If you are affected, you will see entries like this.
Dec 20 17:28:04 github-example-com-primary hookshot-go[2598]: Timestamp=2024-12-20T17:28:04.923986779Z SeverityText=ERROR Body="Failed to receive job from queue" host.name=github-example-com-primary exception.message="receive failed: twirp error internal: failed to do request: Post \"http://unix/twirp/aqueduct.api.v1.JobQueueService/Receive\": dial unix /go/src/app/sockets/aqueduct-lite.sock: connect: connection refused" exception.type=*errors.withStack gh.hookshot.queue=hookshot-redeliveries -
If you are running a patch release older than those listed in Resolving the problem, check whether the socket accepts connections.
echo "GET /" | sudo socat - UNIX-CONNECT:/data/hookshot/shared/sockets/aqueduct-lite.sockIf the connection is refused, you are affected.
2025/03/20 23:21:51 socat[4164899] E connect(5, AF=1 "/data/hookshot/shared/sockets/aqueduct-lite.sock", 50): Connection refusedIf you see an
HTTP/1.1 400 Bad requestresponse instead, the socket is up and accepting connections.
Resolving the problem
Warning
Every fix in this article interrupts service on your GitHub Enterprise Server instance. Restarting the internal proxy causes a brief interruption. Switching to TCP, rebooting, and upgrading disrupt services for longer. Plan a maintenance window before you start.
The permanent fix is to upgrade to a patch release where hookshot-go connects to aqueduct-lite over TCP by default.
The interim steps below apply only while hookshot-go uses the UNIX socket, and the socket check in Confirming the problem reports Connection refused. If you are on a patch release that connects over TCP by default, or you have already switched to TCP, do not run them. Contact GitHub Support instead. See Contacting GitHub Support.
Until you can upgrade, work through the following in order, and stop when webhooks are delivered again.
- Restart the internal proxy. This works on every release.
- If your patch release supports TCP but does not use it by default, switch to TCP. If webhooks are still not delivered after you switch, contact GitHub Support rather than rebooting.
- If you cannot switch to TCP and the problem continues, reboot the instance.
Upgrading to a patch release with TCP by default
TCP is the default from the following patch releases onward. Upgrade to the latest patch release for your feature release, which includes the change.
| Feature release | First patch release with TCP by default |
|---|---|
| 3.19 | 3.19.8 |
| 3.20 | 3.20.4 |
| 3.21 | 3.21.5 |
| 3.22 and later | All releases |
No configuration change is needed after you upgrade. For more information, see Overview of the upgrade process and Upgrading with a hotpatch.
Restarting the internal proxy
Restarting haproxy-cluster-proxy recreates the socket. It causes a brief service interruption.
-
SSH into the administrative shell. For more information, see Accessing the administrative shell (SSH).
-
Stop and remove the proxy job, then start it again.
nomad job stop --purge haproxy-cluster-proxy sudo nomad job run /etc/nomad-jobs/haproxy/haproxy-cluster-proxy.hcl -
Check the socket again. You should see an
HTTP/1.1 400 Bad requestresponse.echo "GET /" | sudo socat - UNIX-CONNECT:/data/hookshot/shared/sockets/aqueduct-lite.sock -
Confirm that
hookshot-production.hookshotjobs in theAqueduct queue depthgraph start to fall, and that new events produce webhook deliveries.
Switching to TCP on earlier patch releases
Every supported feature release has a setting that switches hookshot-go to TCP. Use it if you are running one of the following patch releases, where the setting exists but is not on by default.
- 3.19.0 to 3.19.7
- 3.20.0 to 3.20.3
- 3.21.0 to 3.21.4
Warning
Running ghe-config-apply disrupts services.
-
Enable maintenance mode. For more information, see Enabling and scheduling maintenance mode.
-
SSH into the administrative shell, then restart the internal proxy.
nomad job stop --purge haproxy-cluster-proxy sudo nomad job run /etc/nomad-jobs/haproxy/haproxy-cluster-proxy.hcl -
Turn on the TCP connection, then apply the configuration.
ghe-config app.hookshot-go.aqueduct-tcp-connection-enabled true ghe-config-applyFor more information, see Command-line utilities.
-
Check that
aqueduct-liteaccepts connections over TCP. You should see anHTTP/1.1 400 Bad requestresponse.echo "GET /" | sudo socat - TCP:localhost:9096 -
Disable maintenance mode.
-
Confirm that
hookshot-production.hookshotjobs in theAqueduct queue depthgraph start to fall, and that new events produce webhook deliveries.
If you run into an unexpected problem with TCP, switch back to the UNIX socket.
-
Enable maintenance mode.
-
Turn off the TCP connection, then apply the configuration.
ghe-config app.hookshot-go.aqueduct-tcp-connection-enabled false ghe-config-apply -
Check the socket. You should see an
HTTP/1.1 400 Bad requestresponse.echo "GET /" | sudo socat - UNIX-CONNECT:/data/hookshot/shared/sockets/aqueduct-lite.sock -
Disable maintenance mode.
Rebooting the instance
If you cannot switch to TCP and webhooks are still not delivered, reboot the instance. A reboot restores the connection, but the problem can return until you upgrade.
-
Schedule a maintenance window with your users.
-
Enable maintenance mode, then wait for active processes to complete. For more information, see Enabling and scheduling maintenance mode.
-
Reboot the instance.
sudo reboot -
When the instance is back, SSH into the administrative shell and check the socket again. You should see an
HTTP/1.1 400 Bad requestresponse.echo "GET /" | sudo socat - UNIX-CONNECT:/data/hookshot/shared/sockets/aqueduct-lite.sock -
Disable maintenance mode.
-
Confirm that
hookshot-production.hookshotjobs in theAqueduct queue depthgraph start to fall, and that new events produce webhook deliveries.
Preventing recurrence
Keep your GitHub Enterprise Server instance on the latest patch release for its feature release. Patch releases from those listed above onward connect over TCP by default, which avoids this problem. If you cannot upgrade yet, switch to TCP manually.
Contacting GitHub Support
If webhooks are still not delivered after you reboot, if you see these errors after switching to TCP or on a patch release that connects over TCP by default, or if you are unsure about any of these steps, contact GitHub Support rather than continuing. For more information, see Creating a support ticket.
If you have already opened a ticket, attaching a support bundle helps GitHub Support diagnose the problem faster. For more information, see Providing data to GitHub Support.