도움 요청! 업데이트가 계속 실패합니다

도움! 업그레이드가 계속 실패합니다

최근 Google Cloud Console에서 서버를 업그레이드했습니다. 이것이 관련이 있는지 확실하지는 않지만, 그 이후로 502 오류가 많이 발생하고 있습니다. 공식 테마 컴포넌트나 테마와 같은 업데이트가 가끔만 성공하는 것 같고, 때로는 약 30초 후에 502 오류가 반환됩니다.

안전 모드(safe mode)를 사용하면 대부분의 경우 작동하지만, 항상 그런 것은 아닙니다.

Docker를 업데이트한 후, SSH를 통해 다시 빌드해야 한다는 메시지를 받았습니다.

그 후로 계속 실패하며 이미지 백업으로 되돌려야 하는 상황이 반복되고 있습니다 →


…..
oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
129:C 22 Mar 2023 13:00:10.162 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=129, just started
129:C 22 Mar 2023 13:00:10.162 # Configuration loaded
129:M 22 Mar 2023 13:00:10.162 * monotonic clock: POSIX clock_gettime
129:M 22 Mar 2023 13:00:10.163 # Warning: Could not create server TCP listening socket *:6379: bind: Address already in use
129:M 22 Mar 2023 13:00:10.163 # Failed listening on port 6379 (TCP), aborting.
Updating files: 100% (32972/32972), done.
I, [2023-03-22T13:00:11.909015 #1]  INFO -- : HEAD is now at 59e548540 Build(deps): Bump sass from 1.58.3 to 1.59.2 in /app/assets/javascripts (#20656)
 
I, [2023-03-22T13:00:11.909217 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git clean -f
I, [2023-03-22T13:00:12.001100 #1]  INFO -- :
I, [2023-03-22T13:00:12.001244 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse bash -c '
  if [ $(git rev-parse --is-shallow-repository) == "true" ]; then
      git remote set-branches --add origin main
      git remote set-branches origin tests-passed
      git fetch --depth 1 origin tests-passed
  else
      git fetch --prune --prune-tags origin tests-passed
  fi
[[[[[…. 여기서 타임아웃 발생 -> 오류와 함께 종료 ]]]]]
fatal: unable to access 'https://github.com/discourse/discourse.git/': gnutls_handshake() failed: Error in the pull function.
I, [2023-03-20T10:54:29.239940 #1]  INFO -- :
I, [2023-03-20T10:54:29.240283 #1]  INFO -- : Terminating async processes
I, [2023-03-20T10:54:29.240310 #1]  INFO -- : Sending INT to HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/13/bin/postmaster -D /etc/postgresql/13/main pid: 41
I, [2023-03-20T10:54:29.240342 #1]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 102
2023-03-20 10:54:29.240 UTC [41] LOG:  received fast shutdown request
2023-03-20 10:54:29.242 UTC [41] LOG:  aborting any active transactions
2023-03-20 10:54:29.244 UTC [41] LOG:  background worker "logical replication launcher" (PID 50) exited with exit code 1
2023-03-20 10:54:29.245 UTC [45] LOG:  shutting down
2023-03-20 10:54:29.268 UTC [41] LOG:  database system is shut down

혹시라도 조금이라도 아이디어가 있으시면 정말 감사하겠습니다!

Docker 컨테이너의 git가 github.com에 접근하는 데 문제가 있는 것으로 보입니다.

그게 바로 제 생각이었는데, 왜 실패하는지는 도무지 모르겠어요.

가끔은 잘 작동해서 Docker를 최신 버전으로 업데이트할 수 있었습니다. 하지만 그 후에는 빌드가 항상 실패하고, 때로는 공식 테마를 설치하는 것조차 실패합니다.

나라면 Docker 컨테이너에서 셸을 열고 거기서 https://github.com/에 액세스해서 디버깅을 시도할 거예요.

다시 확인해 봤더니 git에서 업데이트는 다운로드되는데 마지막에 실패하네요… 여기서는 정말 막막합니다! 조언을 주시면 정말 감사하겠습니다.

같은 문제이고 조언도 있으므로 여기서 대화를 계속합니다 :slight_smile: