# 업데이트 실패: Docker Manager 버그인가요?

**URL:** <https://meta.discourse.org/t/upgrade-failure-docker-manager-bug/262404>\
**Category:** Bug\
**Created:** [4월 20, 2023, 2:11오후 UTC](https://meta.discourse.org/t/upgrade-failure-docker-manager-bug/262404 "2023-04-20T14:11:51Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [4월 20, 2023, 2:11오후 UTC](https://meta.discourse.org/t/upgrade-failure-docker-manager-bug/262404/1 "2023-04-20T14:11:51Z")

</div>

Docker Manager에 문제가 있는 것 같습니다.

```plaintext
Docker Manager: FAILED TO UPGRADE
#<NoMethodError: undefined method `branch' for #<DockerManager::GitRepo:0x00007f1132b2ce20 @path="/var/www/discourse/plugins/discourse-onebox-assistant", @name="discourse-onebox-assistant", @memoize={"rev-parse HEAD"=>"0bf6e034f9a3ce0d23139417d05d2937132f2eaa", "symbolic-ref -q HEAD"=>"refs/heads/master", "for-each-ref --format='%(upstream:short)' refs/heads/master"=>"origin/master", "rev-parse --is-shallow-repository"=>"false", "show-branch remotes/origin/main"=>nil, "rev-parse origin/master^{}"=>"681fe5f804f444503c64a75e620b81f4f48dd1bf"}, @upgrade_key="upgrade:/var/www/discourse/plugins/discourse-onebox-assistant", @upgrade_version=nil>>
/var/www/discourse/plugins/docker_manager/lib/docker_manager/upgrader.rb:73:in `block in upgrade'
/var/www/discourse/plugins/docker_manager/lib/docker_manager/upgrader.rb:71:in `each'
/var/www/discourse/plugins/docker_manager/lib/docker_manager/upgrader.rb:71:in `each_with_index'
/var/www/discourse/plugins/docker_manager/lib/docker_manager/upgrader.rb:71:in `upgrade'
/var/www/discourse/plugins/docker_manager/scripts/docker_manager_upgrade.rb:19:in `block in <main>'
/var/www/discourse/plugins/docker_manager/scripts/docker_manager_upgrade.rb:6:in `fork'
/var/www/discourse/plugins/docker_manager/scripts/docker_manager_upgrade.rb:6:in `<main>'

```

제가 놓친 부분이 있는 건지, 아니면 docker\_manager의 버그인 건가요?

이 커밋과 관련이 있을까요?:

> <https://github.com/discourse/docker_manager/commit/6293c3d948f027fd48d9141b5c26a08541916b4d#diff-b7cf961a7ca9c83bda8f14283b867bc3f371c2f2e217e03166c6472ecd678504>
>
> \* FEATURE: Adds support for git tags
> 
> \* Detects when the tracked branch has be…en deleted from \`origin\` and forces a rebuild on the command line
> \* Allows updating when a tag is tracked and the tag was moved to a new commit
> \* Improves support for shallow clones
> \* Works with partial clones
> \* Adds lots of specs for git commands and replaces the existing specs. All specs use real git repositories instead of mocks

구체적으로 이 변경 사항 때문일까요?:

 ![image](https://global.discourse-cdn.com/meta/original/4X/3/7/7/3775360604760ae3f1547e833977e078ea22832d.png)

그리고

 ![image](https://global.discourse-cdn.com/meta/original/4X/c/f/8/cf8da18d1871b0bbba8455a361f3b8038705a12f.png)

하지만 여전히 여기에서 참조되고 있는 것 같습니다?:

> <https://github.com/discourse/docker_manager/blob/6293c3d948f027fd48d9141b5c26a08541916b4d/lib/docker_manager/upgrader.rb#L73>

미리 감사합니다!

---

_[View the full topic](https://meta.discourse.org/t/upgrade-failure-docker-manager-bug/262404)._
