# Error: git-remote-https died of signal 4

**URL:** <https://discourse.pi-hole.net/t/error-git-remote-https-died-of-signal-4/56558>\
**Category:** Help\
**Created:** [July 15, 2022, 7:17am UTC](https://discourse.pi-hole.net/t/error-git-remote-https-died-of-signal-4/56558 "2022-07-15T07:17:14Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Immo](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/i/7993a0/32.png) [@Immo](https://discourse.pi-hole.net/u/Immo)\
**Post date:** [July 15, 2022, 7:17am UTC](https://discourse.pi-hole.net/t/error-git-remote-https-died-of-signal-4/56558/1 "2022-07-15T07:17:14Z")

</div>

## Expected Behaviour:

OS: Debian GNU/Linux 11 (bullseye) x86\_64  
Webserver: Apache 2  
Expected: Running pihole -up successfully

## Actual Behaviour:

```auto
pihole - up

```

returns the following error:

```auto
[✓] Update local cache of available packages
  [i] Existing PHP installation detected : PHP version 7.4.30
  [✓] Checking for git
  [✓] Checking for iproute2
  [✓] Checking for whiptail
  [✓] Checking for ca-certificates

  [i] Checking for updates...
error: git-remote-https died of signal 4
  [i] Pi-hole Core:	up to date
  [i] FTL: up to date

  [✓] Everything is up to date!

```

Manually updating via GitHub does not work either. FTL was updated correctly though.

Other than this, pi-hole is running as expected.

Any idea?

## Debug Token:

_[Replace this text with the debug token provided from running `pihole -d` (or running the debug script through the web interface]_

---

<div class="post-metadata">

**Author:** ![yubiuser](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/yubiuser/32/12100_2.png) [@yubiuser](https://discourse.pi-hole.net/u/yubiuser)\
**Post date:** [July 15, 2022, 7:53am UTC](https://discourse.pi-hole.net/t/error-git-remote-https-died-of-signal-4/56558/2 "2022-07-15T07:53:52Z")

</div>

> [@Immo](#):
>
> `git-remote-https`

`git-remote-https` is not a command we use.

Please upload a debug log and post **just the token URL** that is generated after the log is uploaded by running the following command from the Pi-hole host terminal:

```auto
pihole -d

```

or do it through the Web interface:

_ **Tools \> Generate Debug Log** _

---

<div class="post-metadata">

**Author:** ![Immo](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/i/7993a0/32.png) [@Immo](https://discourse.pi-hole.net/u/Immo)\
**Post date:** [July 15, 2022, 7:57am UTC](https://discourse.pi-hole.net/t/error-git-remote-https-died-of-signal-4/56558/3 "2022-07-15T07:57:09Z")

</div>

Thanks for the reply. Interesting, why this message pops up, even though not used in the code.  
Logs are uplaoded,

[https://tricorder.pi-hole.net/rDO1tHwY/](https://tricorder.pi-hole.net/rDO1tHwY/)

---

<div class="post-metadata">

**Author:** ![yubiuser](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/yubiuser/32/12100_2.png) [@yubiuser](https://discourse.pi-hole.net/u/yubiuser)\
**Post date:** [July 16, 2022, 3:21pm UTC](https://discourse.pi-hole.net/t/error-git-remote-https-died-of-signal-4/56558/5 "2022-07-16T15:21:04Z")

</div>

I just learned that `git` internally uses this command when fetching/pulling from remote `https` repos. (What we do during installation/upgrade).  
There is another report here about the issue:

> **[\#1010340 - git: Fails to clone and pull from existign repositories - Debian...](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1010340)**

(TL;DR:

> So this is not really a bug in git, but a bug in GnuTLS when running QEMU with Windows as host (with Hyper-V acceleration hax or whpx).)

* * *

Are you running QEMU?

---

<div class="post-metadata">

**Author:** ![Immo](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/i/7993a0/32.png) [@Immo](https://discourse.pi-hole.net/u/Immo)\
**Post date:** [July 17, 2022, 10:30am UTC](https://discourse.pi-hole.net/t/error-git-remote-https-died-of-signal-4/56558/8 "2022-07-17T10:30:39Z")

</div>

No, I do not use QEMU at all. Plain Debian Linux, and is has worked before without any issues.  
I saw the thread compiling GIT to use OpenSSL instead of GnuTLS. But this was all related to QEMU.

---

<div class="post-metadata">

**Author:** ![Immo](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/i/7993a0/32.png) [@Immo](https://discourse.pi-hole.net/u/Immo)\
**Post date:** [July 18, 2022, 7:39am UTC](https://discourse.pi-hole.net/t/error-git-remote-https-died-of-signal-4/56558/9 "2022-07-18T07:39:44Z")

</div>

Compiling git with openSSL is working ok. But,

```auto
pihole -up

```

is pulling the orginal version back via the package manager.  
The newly compiled version of git if showing

```auto
git version 2.37.1

```

pihole is obviously preferring

```auto
git version 2.30.2

```

Question would now be, how to prevent pihole -up from updating git, and just accepting the more recent version.

---

<div class="post-metadata">

**Author:** ![yubiuser](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/yubiuser/32/12100_2.png) [@yubiuser](https://discourse.pi-hole.net/u/yubiuser)\
**Post date:** [July 18, 2022, 3:30pm UTC](https://discourse.pi-hole.net/t/error-git-remote-https-died-of-signal-4/56558/10 "2022-07-18T15:30:29Z")

</div>

I think it's called pinning:

> **[AptConfiguration - Debian Wiki](https://wiki.debian.org/AptConfiguration)**

---

<div class="post-metadata">

**Author:** ![Immo](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/i/7993a0/32.png) [@Immo](https://discourse.pi-hole.net/u/Immo)\
**Post date:** [July 19, 2022, 11:13am UTC](https://discourse.pi-hole.net/t/error-git-remote-https-died-of-signal-4/56558/11 "2022-07-19T11:13:33Z")

</div>

Not sure, if I want to go this route.

The package tracker is indicating, that there might be a release of 2.37 available anytime soon.

> **[git - Debian Package Tracker](https://tracker.debian.org/pkg/git)**

---

<div class="post-metadata">

**Author:** ![Immo](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/i/7993a0/32.png) [@Immo](https://discourse.pi-hole.net/u/Immo)\
**Post date:** [July 25, 2022, 7:54am UTC](https://discourse.pi-hole.net/t/error-git-remote-https-died-of-signal-4/56558/12 "2022-07-25T07:54:43Z")

</div>

I tried various things like comiling git with openSSL, using a higher version like 2.34, trying to nailing down the issue. But matter of fact, this issue needs to be solved either with git or pihole.

```auto
[1153236.725350] traps: git-remote-http[143342] trap invalid opcode ip:7f89733c5d45 sp:7ffe53ad8890 error:0 in libcurl-gnutls.so.4.7.0[7f897338e000+66000]
[1154443.633759] traps: git-remote-http[145562] trap invalid opcode ip:7f139a16ad45 sp:7ffe951ba060 error:0 in libcurl-gnutls.so.4.7.0[7f139a133000+66000]

```

This seems tobe the real issue. I haven't foudn anything specific yet about it though.

---

<div class="post-metadata">

**Author:** ![yubiuser](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/yubiuser/32/12100_2.png) [@yubiuser](https://discourse.pi-hole.net/u/yubiuser)\
**Post date:** [July 25, 2022, 7:14pm UTC](https://discourse.pi-hole.net/t/error-git-remote-https-died-of-signal-4/56558/13 "2022-07-25T19:14:44Z")

</div>

Thanks for opening an issue on Github.

> <https://github.com/pi-hole/pi-hole/issues/4835>
>
> \### Versions
> 
> Pi-hole version is v5.10-3-g2735481d (Latest: v5.11.4)
> FTL vers…ion is v5.16.1 (Latest: v5.16.1)
> 
> \### Platform
> 
> OS: Debian GNU/Linux 11 (bullseye) x86\_64
> 
> Host: ZBOX-CI327NANO-GS-01
> CPU: Intel Celeron N3450 (4) @ 2.200GHz
> GPU: Intel HD Graphics 500
> Memory: 3410MiB / 7803MiB
> 
> \### Expected behavior
> 
> \`sudo pihole -up\` should provide a clean update of the pihole environment
> 
> \### Actual behavior / bug
> 
> running \`pihole -up\` returns;
> 
> \`\[sudo\] password for zotac:
> \[✓\] Update local cache of available packages
> \[i\] Existing PHP installation detected : PHP version 7.4.30
> \[✓\] Checking for git
> \[✓\] Checking for iproute2
> \[✓\] Checking for whiptail
> \[✓\] Checking for ca-certificates
> 
> \[i\] Checking for updates...
> error: git-remote-https died of signal 4
> \[i\] Pi-hole Core:	up to date
> \[i\] FTL: up to date
> 
> \[✓\] Everything is up to date!\`
> 
> Verifying the version:
> 
> \`prompt:~$ pihole -v
> Pi-hole version is v5.10-3-g2735481d (Latest: v5.11.4)
> FTL version is v5.16.1 (Latest: v5.16.1)\`
> 
> \`dmesg\` reveals the following:
> 
> \`traps: git-remote-http\[150084\] trap invalid opcode ip:7efdc6133d45 sp:7fff29e920a0 error:0 in libcurl-gnutls.so.4.7.0\[7efdc60fc000+66000\]\`
> 
> \### Steps to reproduce
> 
> Steps to reproduce the behavior:
> 
> 1. Go to '...'
> 2. Click on '....'
> 3. Scroll down to '....'
> 4. See error
> 
> \## Debug Token
> 
> \- URL: https://tricorder.pi-hole.net/WJVC174y/
> 
> 
> 
> \### Screenshots
> 
> \_If applicable, add screenshots to help explain your problem.\_
> 
> \### Additional context
> 
> Tried several things without success:
> 
> 1. using a backport version of git (2.34.)
> 2. compiled an OpenSSL version (2.37.1)
> 3. \`pihole -r\` runs without issues, but does not update pihole.
> 
> I know it is not straight related to pihole, but pihole is using git to receive updates.

---

<div class="post-metadata">

**Author:** ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Post date:** [July 25, 2022, 9:25pm UTC](https://discourse.pi-hole.net/t/error-git-remote-https-died-of-signal-4/56558/14 "2022-07-25T21:25:41Z")

</div>

> [@Immo](#):
>
> Question would now be, how to prevent pihole -up from updating git, and just accepting the more recent version.

No way for us to do that really. We call `apt-get` and act on what it reports. There may be a way for `apt` to use the locally installed version but you would have to create a local apt package with the compiled version and `dpkg -i` it in.

---

<div class="post-metadata">

**Author:** ![Immo](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/i/7993a0/32.png) [@Immo](https://discourse.pi-hole.net/u/Immo)\
**Post date:** [July 27, 2022, 2:25pm UTC](https://discourse.pi-hole.net/t/error-git-remote-https-died-of-signal-4/56558/15 "2022-07-27T14:25:23Z")

</div>

The issue is not related to apt, but git. That is where the fundamental failure is located. See the issue I opened for details.

---

<div class="post-metadata">

**Author:** ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Post date:** [July 27, 2022, 6:22pm UTC](https://discourse.pi-hole.net/t/error-git-remote-https-died-of-signal-4/56558/16 "2022-07-27T18:22:42Z")

</div>

I did read your issue.

Seems you have manually compiled some software? We use `apt` to install the packages that we need. If `apt` doesn't see your manually compiled package then there's nothing we can do to prevent `apt` from overwriting your manual changes.

---

<div class="post-metadata">

**Author:** ![Immo](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/i/7993a0/32.png) [@Immo](https://discourse.pi-hole.net/u/Immo)\
**Post date:** [July 28, 2022, 4:17pm UTC](https://discourse.pi-hole.net/t/error-git-remote-https-died-of-signal-4/56558/17 "2022-07-28T16:17:36Z")

</div>

That's not fully correct.

I used the standard version provide with Debian Bullseye initially,

```auto
git version 2.30.2

```

That is giving the issues.  
Searching through various forums, I found a hint point to a GnuTLS and that might can be circumvented by a fresh compile version of git which results in

```auto
git version 2.37.1

```

It does not change anything at all. And I reverted back to the standard version anyway.

---

<div class="post-metadata">

**Author:** ![Immo](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/i/7993a0/32.png) [@Immo](https://discourse.pi-hole.net/u/Immo)\
**Post date:** [July 29, 2022, 5:13am UTC](https://discourse.pi-hole.net/t/error-git-remote-https-died-of-signal-4/56558/18 "2022-07-29T05:13:44Z")

</div>

Apparently, git fixed something on their side, but I can't confirm. The update went through this morning. 🤷

---

<div class="post-metadata">

**Author:** ![yubiuser](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/yubiuser/32/12100_2.png) [@yubiuser](https://discourse.pi-hole.net/u/yubiuser)\
**Post date:** [July 29, 2022, 6:59am UTC](https://discourse.pi-hole.net/t/error-git-remote-https-died-of-signal-4/56558/19 "2022-07-29T06:59:43Z")

</div>

Thanks for letting us know. Glad it's resolved.

---

<div class="post-metadata">

**Author:** ![system](https://discourse.pi-hole.net/uploads/default/original/3X/7/c/7c8792f649eeb921c5d2b4c41564ffa873d9a2b8.png) [@system](https://discourse.pi-hole.net/u/system)\
**Post date:** [August 19, 2022, 6:59am UTC](https://discourse.pi-hole.net/t/error-git-remote-https-died-of-signal-4/56558/20 "2022-08-19T06:59:57Z")

</div>

Closed on August 19, 2022, 6:59am UTC

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
