Skip to content

Failed to restore snapshot #107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pimpmyfan opened this issue Mar 12, 2025 · 6 comments · Fixed by #118
Closed

Failed to restore snapshot #107

pimpmyfan opened this issue Mar 12, 2025 · 6 comments · Fixed by #118
Assignees
Labels

Comments

@pimpmyfan
Copy link

pimpmyfan commented Mar 12, 2025

Hello all and thanks for this great feature!

However I encounter the following error when I build the image with my snapshot:

/usr/bin/python3 /comfyui/custom_nodes/ComfyUI-Manager/cm-cli.py restore-snapshot /2025-03-12_01-51-14_snapshot.json

[ComfyUI-Manager] The ComfyRegistry cache update is still in progress, so an outdated cache is being used.
nightly_channel: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/cache
FETCH DATA from: /comfyui/user/default/ComfyUI-Manager/cache/1514988643_custom-node-list.json [DONE]
Restore snapshot.
nightly_channel: None/None
ERROR:root:[ComfyUI-Manager] An invalid channel was used: None
nightly_channel: None/None
ERROR:root:[ComfyUI-Manager] An invalid channel was used: None
nightly_channel: None/None
ERROR:root:[ComfyUI-Manager] An invalid channel was used: None
nightly_channel: None/None
ERROR:root:[ComfyUI-Manager] An invalid channel was used: None
nightly_channel: None/None
ERROR:root:[ComfyUI-Manager] An invalid channel was used: None
nightly_channel: None/None
ERROR:root:[ComfyUI-Manager] An invalid channel was used: None
nightly_channel: None/None
ERROR:root:[ComfyUI-Manager] An invalid channel was used: None
nightly_channel: None/None
ERROR:root:[ComfyUI-Manager] An invalid channel was used: None
ERROR: Failed to restore snapshot.
Traceback (most recent call last):
  File "/comfyui/custom_nodes/ComfyUI-Manager/cm-cli.py", line 1124, in restore_snapshot
    asyncio.run(core.restore_snapshot(snapshot_path, extras))
  File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
    return future.result()
  File "/comfyui/custom_nodes/ComfyUI-Manager/glob/manager_core.py", line 3247, in restore_snapshot
    await unified_manager.migrate_unmanaged_nodes()
AttributeError: 'UnifiedManager' object has no attribute 'migrate_unmanaged_nodes'

It seems to me that it does not have a working ComfyRegistry cache to use the nodes that I have in my snapshot. My understanding of Comfyui Manager's registry is quite limited so I'm not sure.

Thank you in advance for your help.

@BenDes21
Copy link

same here, 3 of my custom nodes not getting imported since the update

Import times for custom nodes:
   0.0 seconds: /comfyui/custom_nodes/websocket_image_save.py
   0.0 seconds (IMPORT FAILED): /comfyui/custom_nodes/comfyui-detail-daemon
   0.0 seconds (IMPORT FAILED): /comfyui/custom_nodes/teacache
   0.0 seconds (IMPORT FAILED): /comfyui/custom_nodes/comfyui-post-processing-nodes
   0.0 seconds: /comfyui/custom_nodes/controlaltai-nodes
   0.0 seconds: /comfyui/custom_nodes/comfyui_essentials
   0.1 seconds: /comfyui/custom_nodes/ComfyUI-Manager

@pimpmyfan
Copy link
Author

@BenDes21 for info, as a workaround, I installed my custom nodes by editing the Dockerfile.
I build my own image that I put on the Docker Hub and use in serverless Runpod:

RUN comfy node install Batch-Condition-ComfyUI \
    cg-use-everywhere \
    comfyui_essentials \
    controlaltai-nodes \
    comfyui-florence2 \
    comfyui-impact-subpack \
    comfyui_ultimatesdupscale \
    comfyui-impact-pack

RUN comfy node enable comfyui-florence2
RUN comfy node enable comfyui-impact-pack
RUN comfy node enable comfyui-impact-subpack
RUN comfy node enable comfyui_essentials
RUN comfy node enable comfyui_ultimatesdupscale
RUN comfy node enable cg-use-everywhere
RUN comfy node enable controlaltai-nodes

@BenDes21
Copy link

@BenDes21 for info, as a workaround, I installed my custom nodes by editing the Dockerfile. I build my own image that I put on the Docker Hub and use in serverless Runpod:

RUN comfy node install Batch-Condition-ComfyUI \
    cg-use-everywhere \
    comfyui_essentials \
    controlaltai-nodes \
    comfyui-florence2 \
    comfyui-impact-subpack \
    comfyui_ultimatesdupscale \
    comfyui-impact-pack

RUN comfy node enable comfyui-florence2
RUN comfy node enable comfyui-impact-pack
RUN comfy node enable comfyui-impact-subpack
RUN comfy node enable comfyui_essentials
RUN comfy node enable comfyui_ultimatesdupscale
RUN comfy node enable cg-use-everywhere
RUN comfy node enable controlaltai-nodes

thanks, will try :)

@BenDes21
Copy link

@BenDes21 for info, as a workaround, I installed my custom nodes by editing the Dockerfile. I build my own image that I put on the Docker Hub and use in serverless Runpod:

RUN comfy node install Batch-Condition-ComfyUI \
    cg-use-everywhere \
    comfyui_essentials \
    controlaltai-nodes \
    comfyui-florence2 \
    comfyui-impact-subpack \
    comfyui_ultimatesdupscale \
    comfyui-impact-pack

RUN comfy node enable comfyui-florence2
RUN comfy node enable comfyui-impact-pack
RUN comfy node enable comfyui-impact-subpack
RUN comfy node enable comfyui_essentials
RUN comfy node enable comfyui_ultimatesdupscale
RUN comfy node enable cg-use-everywhere
RUN comfy node enable controlaltai-nodes

That's not working for me, for example I wrote :

RUN comfy node install controlaltai-nodes \
    comfyui-post-processing-nodes \
    teacache \
    comfyui_essentials \
    comfyui-detail-daemon

RUN comfy node enable controlaltai-nodes
RUN comfy node enable comfyui-post-processing-nodes
RUN comfy node enable teacache
RUN comfy node enable comfyui_essentials
RUN comfy node enable comfyui-detail-daemon

Still getting :

  File "/comfyui/custom_nodes/comfyui-post-processing-nodes/__init__.py", line 1, in <module>
    from .post_processing_nodes import NODE_CLASS_MAPPINGS
  File "/comfyui/custom_nodes/comfyui-post-processing-nodes/post_processing_nodes.py", line 5, in <module>
    import cv2
ModuleNotFoundError: No module named 'cv2'
Cannot import /comfyui/custom_nodes/comfyui-post-processing-nodes module for custom nodes: No module named 'cv2'
�[32mInitializing ControlAltAI Nodes�[0m
Traceback (most recent call last):
  File "/comfyui/nodes.py", line 2141, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/comfyui/custom_nodes/teacache/__init__.py", line 2, in <module>
    from .nodes_diffusers import NODE_CLASS_MAPPINGS as DIFFUSERS_NODE_CLASS, NODE_DISPLAY_NAME_MAPPINGS as DIFFUSERS_NODES_DISPLAY
  File "/comfyui/custom_nodes/teacache/nodes_diffusers.py", line 6, in <module>
    from diffusers.models.modeling_outputs import Transformer2DModelOutput
ModuleNotFoundError: No module named 'diffusers'
Cannot import /comfyui/custom_nodes/teacache module for custom nodes: No module named 'diffusers'
Import times for custom nodes:
   0.0 seconds: /comfyui/custom_nodes/websocket_image_save.py
   0.0 seconds (IMPORT FAILED): /comfyui/custom_nodes/comfyui-detail-daemon
   0.0 seconds (IMPORT FAILED): /comfyui/custom_nodes/teacache
   0.0 seconds (IMPORT FAILED): /comfyui/custom_nodes/comfyui-post-processing-nodes
   0.0 seconds: /comfyui/custom_nodes/controlaltai-nodes
   0.0 seconds: /comfyui/custom_nodes/comfyui_essentials
   0.1 seconds: /comfyui/custom_nodes/ComfyUI-Manager

@TimPietrusky TimPietrusky self-assigned this Apr 28, 2025
@TimPietrusky
Copy link
Member

duplicate of #116

@TimPietrusky
Copy link
Member

🎉 This issue has been resolved in version 5.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants