# Unable to Rebuild Discourse: GitHub Connection Error and Port 443 Issues on GCP

**URL:** https://meta.discourse.org/t/unable-to-rebuild-discourse-github-connection-error-and-port-443-issues-on-gcp/385108
**Category:** Self-hosting
**Created:** [9 oktober 2025 om 05:17 UTC](https://meta.discourse.org/t/unable-to-rebuild-discourse-github-connection-error-and-port-443-issues-on-gcp/385108 "2025-10-09T05:17:09Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![devrim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/devrim/32/524580_2.png) [@devrim](https://meta.discourse.org/u/devrim)
#### Post date: [9 oktober 2025 om 05:17 UTC](https://meta.discourse.org/t/unable-to-rebuild-discourse-github-connection-error-and-port-443-issues-on-gcp/385108/1 "2025-10-09T05:17:10Z")

</div>

Hi Discourse Community,

I’m having trouble rebuilding my Discourse instance on a Google Cloud Platform (GCP) VM (Ubuntu 22.04, 16GB RAM, 8 CPU cores). The rebuild fails due to a GitHub connection error, and I’m also facing issues with port 443 accessibility. I’ve tried several steps, but I’m stuck and would appreciate your help.

GitHub Connection Error During Rebuild

When running ./launcher rebuild app or ./discourse-setup, the rebuild fails with the following error in the logs:

```plaintext
fatal: unable to access ’ https://github.com/discourse/discourse.git/ ': Failed to connect to github.com port 443 after 3 ms: Couldn’t connect to server

Pups::ExecError: cd /var/www/discourse && sudo -H -E -u discourse bash -c ‘… git fetch …’ failed with return #<Process::Status: pid 145 exit 128>

```

However, testing GitHub connectivity from the host works fine:

```plaintext
curl -I https://github.com

HTTP/2 200

```

But running as the discourse user fails:

```plaintext
sudo -u discourse -H git ls-remote https://github.com/discourse/discourse.git

fatal: unable to access ’ https://github.com/discourse/discourse.git/ ': Failed to connect to github.com port 443 after 3 ms: Couldn’t connect to server

```

DNS resolution for [github.com](http://github.com) works:

```plaintext
sudo -u discourse -H nslookup github.com 8.8.8.8

Server: 8.8.8.8

Address: 8.8.8.8#53

Name: github.com

Address: 192.30.255.113

```

---

_[View the full topic](https://meta.discourse.org/t/unable-to-rebuild-discourse-github-connection-error-and-port-443-issues-on-gcp/385108)._
