ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

When I tried to update ComfyUI using Manager, it failed and gave the error message "Failed to checkout 'master' branch."

Open Sdreamtale opened this issue 7 months ago • 7 comments

Expected Behavior

Use Manager to update comfyUI

Actual Behavior

Update failed. The error message is "Failed to check out 'master' branch."

Steps to Reproduce

In the Manager, click on "Update ComfyUI", and then it prompts a failure.

Image

Debug Logs

D:\AI\ComfyUI_windows_portable>.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build
Adding extra search path checkpoints D:\AI\ComfyUI_windows_portable\ComfyUI\path\to\stable-diffusion-webui\models\Stable-diffusion
Adding extra search path configs D:\AI\ComfyUI_windows_portable\ComfyUI\path\to\stable-diffusion-webui\models\Stable-diffusion
Adding extra search path vae D:\AI\ComfyUI_windows_portable\ComfyUI\path\to\stable-diffusion-webui\models\VAE
Adding extra search path loras D:\AI\ComfyUI_windows_portable\ComfyUI\path\to\stable-diffusion-webui\models\Lora
Adding extra search path loras D:\AI\ComfyUI_windows_portable\ComfyUI\path\to\stable-diffusion-webui\models\LyCORIS
Adding extra search path upscale_models D:\AI\ComfyUI_windows_portable\ComfyUI\path\to\stable-diffusion-webui\models\ESRGAN
Adding extra search path upscale_models D:\AI\ComfyUI_windows_portable\ComfyUI\path\to\stable-diffusion-webui\models\RealESRGAN
Adding extra search path upscale_models D:\AI\ComfyUI_windows_portable\ComfyUI\path\to\stable-diffusion-webui\models\SwinIR
Adding extra search path embeddings D:\AI\ComfyUI_windows_portable\ComfyUI\path\to\stable-diffusion-webui\embeddings
Adding extra search path hypernetworks D:\AI\ComfyUI_windows_portable\ComfyUI\path\to\stable-diffusion-webui\models\hypernetworks
Adding extra search path controlnet D:\AI\ComfyUI_windows_portable\ComfyUI\path\to\stable-diffusion-webui\models\ControlNet
[START] Security scan
[DONE] Security scan
## ComfyUI-Manager: installing dependencies done.
** ComfyUI startup time: 2025-05-08 14:04:22.137
** Platform: Windows
** Python version: 3.12.10 (tags/v3.12.10:0cc8128, Apr  8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)]
** Python executable: D:\AI\ComfyUI_windows_portable\python_embeded\python.exe
** ComfyUI Path: D:\AI\ComfyUI_windows_portable\ComfyUI
** ComfyUI Base Folder Path: D:\AI\ComfyUI_windows_portable\ComfyUI
** User directory: D:\AI\ComfyUI_windows_portable\ComfyUI\user
** ComfyUI-Manager config path: D:\AI\ComfyUI_windows_portable\ComfyUI\user\default\ComfyUI-Manager\config.ini
** Log path: D:\AI\ComfyUI_windows_portable\ComfyUI\user\comfyui.log

Prestartup times for custom nodes:
   2.0 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-manager

Checkpoint files will always be loaded safely.
Total VRAM 16376 MB, total RAM 65268 MB
pytorch version: 2.7.0+cu128
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 4080 SUPER : cudaMallocAsync
Using pytorch attention
Python version: 3.12.10 (tags/v3.12.10:0cc8128, Apr  8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)]
ComfyUI version: 0.3.31
ComfyUI frontend version: 1.18.6
[Prompt Server] web root: D:\AI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\comfyui_frontend_package\static
### Loading: ComfyUI-Manager (V3.31.13)
[ComfyUI-Manager] network_mode: public
### ComfyUI Revision: 150 [76899171] *DETACHED | Released on '2025-05-03'

Import times for custom nodes:
   0.0 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\websocket_image_save.py
   0.4 seconds: D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-manager

Starting server

To see the GUI go to: http://127.0.0.1:8188
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
FETCH ComfyRegistry Data: 5/84
FETCH ComfyRegistry Data: 10/84
FETCH ComfyRegistry Data: 15/84
FETCH ComfyRegistry Data: 20/84
FETCH ComfyRegistry Data: 25/84
FETCH ComfyRegistry Data: 30/84
FETCH ComfyRegistry Data: 35/84
FETCH ComfyRegistry Data: 40/84
FETCH ComfyRegistry Data: 45/84
FETCH ComfyRegistry Data: 50/84
FETCH ComfyRegistry Data: 55/84
FETCH ComfyRegistry Data: 60/84
FETCH ComfyRegistry Data: 65/84
FETCH ComfyRegistry Data: 70/84
FETCH ComfyRegistry Data: 75/84
FETCH ComfyRegistry Data: 80/84
FETCH ComfyRegistry Data [DONE]
[ComfyUI-Manager] default cache updated: https://api.comfy.org/nodes
FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json [DONE]
[ComfyUI-Manager] All startup tasks have been completed.
[ComfyUI-Manager] Failed to checkout 'master' branch.
repo_path=D:\AI\ComfyUI_windows_portable\ComfyUI
Available branches:
        backup_branch_2025-05-08_13_44_02
        backup_branch_2025-05-08_14_03_30
        backup_branch_2025-05-08_14_04_09
ComfyUI update failed

[ComfyUI-Manager] Queued works are completed.
{'update-comfyui': 1}

After restarting ComfyUI, please refresh the browser.

Other

No response

Sdreamtale avatar May 08 '25 06:05 Sdreamtale

Hi @Sdreamtale . I got same issue and solve it follow these steps:

Image

Image

Image

git pull origin master

tieungao79 avatar May 08 '25 15:05 tieungao79

It seems that your ComfyUI is in the abnormal state. Goto the ComfyUI dir and execute

git branch -al

What is displayed?

ltdrdata avatar May 08 '25 23:05 ltdrdata

I have the same issue as well, when I do 'git branch -al' I get:

  • (HEAD detached at v0.3.33) remotes/origin/HEAD -> origin/master remotes/origin/annoate_get_input_info remotes/origin/api-nodes remotes/origin/base-path-env-var remotes/origin/desktop-release-apr222025 remotes/origin/desktop-release-apr242025 remotes/origin/desktop-release-april172025 remotes/origin/desktop-release-may062025 remotes/origin/huchenlei-patch-1 remotes/origin/master remotes/origin/model-paths-helper remotes/origin/model_management remotes/origin/model_manager remotes/origin/not_required_typing remotes/origin/prep-branch remotes/origin/required_frontend_ver remotes/origin/rh-uvtest remotes/origin/robinjhuang-patch-1 remotes/origin/socketless remotes/origin/video_output remotes/origin/webfiltered-patch-1 remotes/origin/weight-zipper remotes/origin/worksplit-multigpu remotes/origin/worksplit-multigpu-loaders remotes/origin/yo-add-precommit remotes/origin/yo-lora-trainer remotes/origin/yoland68-more-owner-updates remotes/origin/yoland68-patch-1

imnoop avatar May 09 '25 04:05 imnoop

It seems that your ComfyUI is in the abnormal state. Goto the ComfyUI dir and execute

git branch -al

What is displayed?

I'm having the same issue.

  • (HEAD detached at v0.3.30) backup_branch_2025-04-29_09_44_01 backup_branch_2025-04-29_10_49_29

LunaticSongXIV avatar May 11 '25 15:05 LunaticSongXIV

update: Apparently I made some changes to requirements.txt (to update just some of the python packages, without messing with pytorch as I have nightly installed), deleted requirements.txt then "git pull origin master" worked, thanks.

me too, can't update

  • (HEAD detached at v0.3.30) master remotes/origin/HEAD -> origin/master remotes/origin/add_owners remotes/origin/annoate_get_input_info remotes/origin/api-nodes remotes/origin/base-path-env-var remotes/origin/desktop-release-apr222025 remotes/origin/desktop-release-apr242025 remotes/origin/desktop-release-april172025 remotes/origin/huchenlei-patch-1 remotes/origin/lint_unused_import remotes/origin/master remotes/origin/model-paths-helper remotes/origin/model_management remotes/origin/model_manager remotes/origin/node_typing remotes/origin/not_required_typing remotes/origin/patch_hooks remotes/origin/required_frontend_ver remotes/origin/revert-5889-revert-5806-union_types remotes/origin/rh-tray remotes/origin/rh-uvtest remotes/origin/robinjhuang-patch-1 remotes/origin/socketless remotes/origin/userData remotes/origin/video_output remotes/origin/webfiltered-patch-1 remotes/origin/weight-zipper remotes/origin/worksplit-multigpu remotes/origin/worksplit-multigpu-loaders remotes/origin/yo-add-precommit remotes/origin/yo-lora-trainer remotes/origin/yoland68-more-owner-updates remotes/origin/yoland68-patch-1

Johnreidsilver avatar May 21 '25 20:05 Johnreidsilver

I'll need to provide a more detailed failure report regarding the modified file situation.

ltdrdata avatar Jun 16 '25 09:06 ltdrdata

It seems it comes from this file for what ever reason requirements.txt. I checked my file is the same as the on on the github

master-key-g avatar Jun 23 '25 14:06 master-key-g

Had same issue fixed it using: git fetch origin

AntonZhygalov avatar Aug 16 '25 14:08 AntonZhygalov

I was somehow checked out to a version branch so i just stashed the changes to be safe and checked out master. Then i ran update and it was working fine.

oakis avatar Sep 06 '25 07:09 oakis

cd comfyui-directory git reset --hard git pull origin master pip install -r requirements.txt

rzgarespo avatar Sep 16 '25 16:09 rzgarespo