# 중국 내에서 업그레이드 실패: git 문제 때문

**URL:** https://meta.discourse.org/t/upgrade-from-within-china-fails-due-to-git-issues/198799
**Category:** Self-hosting
**Created:** [8월 1, 2021, 7:02오전 UTC](https://meta.discourse.org/t/upgrade-from-within-china-fails-due-to-git-issues/198799 "2021-08-01T07:02:02Z")
**Posts on this page:** 1
**Showing post:** 20

<div class="post-metadata">

### Author: ![Hyan](https://avatars.discourse-cdn.com/v4/letter/h/5fc32e/32.png) [@Hyan](https://meta.discourse.org/u/Hyan)
#### Post date: [7월 12, 2023, 5:00오전 UTC](https://meta.discourse.org/t/upgrade-from-within-china-fails-due-to-git-issues/198799/20 "2023-07-12T05:00:39Z")

</div>

http 프록시 설정을 추가했음에도 불구하고 문제가 발생하는 경우,

```plaintext
GnuTLS recv error (-110): The TLS connection was non-properly terminated.

```

기존 해결책 외에도 템플릿에 아래 postBuffer 속성을 추가하면 제 문제가 해결되었습니다. gnutls-bin 패키지를 설치해야 합니다.

```plaintext
hooks:
  before_code:
    - exec:
       cmd:
         - apt-get update -y
         - apt-get install -y gnutls-bin
         - git config --global http.proxy socks5://172.17.0.1:1080
         - git config --global https.proxy socks5://172.17.0.1:1080
         - git config --global https.sslVerify false 
         - git config --global http.postBuffer 1048576000

# 선택 사항
  after_code:
    - exec:
       cmd:
         - git config --global --unset http.proxy
         - git config --global --unset https.proxy
         - git config --global --unset https.sslVerify
         - git config --global --unset http.postBuffer

```

---

_[View the full topic](https://meta.discourse.org/t/upgrade-from-within-china-fails-due-to-git-issues/198799)._
