11cafe / comfyui-workspace-manager

A ComfyUI workflows and models management extension to organize and manage all your workflows, models in one place. Seamlessly switch between workflows, as well as import, export workflows, reuse subworkflows, install models, browse your models in a single workspace
MIT License
1.08k stars 51 forks source link

Workflow List Blank after last update #368

Closed formulake closed 5 months ago

formulake commented 5 months ago

I don't think the title needs much explaining. I had a large number of workflows meticulously arranged by folder. Then along comes the update and wipes them all out.

Weixuanf commented 5 months ago

😱😱the workflows in your disk /my_workflows folder are all deleted?? Any errors in python console?


From: formulake @.> Sent: Saturday, May 11, 2024 12:15:21 PM To: 11cafe/comfyui-workspace-manager @.> Cc: Subscribed @.***> Subject: [11cafe/comfyui-workspace-manager] Workflow List Blank after last update (Issue #368)

I don't think the title needs much explaining. I had a large number of workflows meticulously arranged by folder. Then along comes the update and wipes them all out.

β€” Reply to this email directly, view it on GitHubhttps://github.com/11cafe/comfyui-workspace-manager/issues/368, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEMEEOOTG5ZTIPYPTFWFQV3ZBWLNTAVCNFSM6AAAAABHRS27JCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI4TANRVGIZDCNA. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Weixuanf commented 5 months ago

The json files are all deleted?


From: Weixuan F @.> Sent: Saturday, May 11, 2024 12:53:19 PM To: 11cafe/comfyui-workspace-manager @.>; 11cafe/comfyui-workspace-manager @.> Cc: Subscribed @.> Subject: Re: [11cafe/comfyui-workspace-manager] Workflow List Blank after last update (Issue #368)

😱😱the workflows in your disk /my_workflows folder are all deleted?? Any errors in python console?


From: formulake @.> Sent: Saturday, May 11, 2024 12:15:21 PM To: 11cafe/comfyui-workspace-manager @.> Cc: Subscribed @.***> Subject: [11cafe/comfyui-workspace-manager] Workflow List Blank after last update (Issue #368)

I don't think the title needs much explaining. I had a large number of workflows meticulously arranged by folder. Then along comes the update and wipes them all out.

β€” Reply to this email directly, view it on GitHubhttps://github.com/11cafe/comfyui-workspace-manager/issues/368, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEMEEOOTG5ZTIPYPTFWFQV3ZBWLNTAVCNFSM6AAAAABHRS27JCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI4TANRVGIZDCNA. You are receiving this because you are subscribed to this thread.Message ID: @.***>

formulake commented 5 months ago

I can't locate the JSON files anywhere. I ran a full system search as well. It's all just gone. I really liked this QoL node but I just can't afford to have this happen again so unfortunately I don't think I'll be able to go back to it again. No errors in the Python console and the import button doesn't even import workflows that I had saved in another location.

Weixuanf commented 5 months ago

IMG_6635

Have you ever seen this dialogue when you upgrade plugin?

can you also F12 -> Application IndexedDB -> workflows table and see if you still have data there?

can can you also go to comfyui-workspace-manager/db/workflows.json and see if it has any data? If yes can u paste it and I’ll see if I can recover if for you

Weixuanf commented 5 months ago
IMG_6636

indexdb data should look like this, if this is not empty, it can still be recovered

formulake commented 5 months ago

I tried something else. First I moved the comfyui-workspace-manager folder out of the custom_nodes folder and started up comfyUI. I then copied it back in and restarted and this seems to have done the trick and I have my workflows back. It's a really great QoL node that I use almost exclusively for my workspace management, but it did give me quite the fright :) I'm glad it's back to normal though and I don't have to stop using it. image

Weixuanf commented 5 months ago

umm this sounds really weird..i'm still trying to understand what's happening. when you were having the bug (saw an empty list), what's in your ComfyUI/my_workflows folder? is it empty? Now you got back all your workflows, what's in your ComfyUI/my_workflows?

workspace manager just displays whatever in the folder directory in your disk that you choose for your /my_workflows folder in settings. If the folder is empty then your list is empty; if the folder has any .json files then it will display exactly the .json files.

So make sure that you have chosen a valid folder directory in settings here to store your workflows:

Screenshot 2024-05-11 at 11 12 14 PM
  1. please BACKUP this /my_workflows/ folder occasionally. This folder contains all your workflows .json, it is very important. Some of our users use git to backup this folder (https://product.hubspot.com/blog/git-and-github-tutorial-for-beginners) Or you can use dropbox or google drive to backup it to cloud. Or you can just manually copy this folder for backup occasionally. Or you can just select all and "download zip" occasionally to backup all your workflows
Screenshot 2024-05-11 at 11 23 42 PM

Maybe we should do some backup automatically for you in future. But right now, please backup everything yourself occasionally so you don't experience any disaster

Weixuanf commented 5 months ago

so right now, can you exam what's your "Workspace Save Directory" in settings, and can you please backup everything in that folder? backup to another folder location, to cloud drive, to git, etc.

Weixuanf commented 5 months ago

sorry for the inconvenience, i should add some better backup functionality in future, cloud backup, git backup, etc.

formulake commented 5 months ago

ComfyUI/my_workflows has json files but they aren't all the workflows that show up in the menu. That's really weird. I really can't seem to locate where it's saving them. This is the sum total of workflows in there and, as you can see, none of the jsons from my previous screenshot are in here, nor is any of the folder structure. image I haven't used a custom full path either image When I click on the "Open Workspace Save Directory" icon it strangely leads to my user/documents folder where there is no folder containing the files. I think the best way for me to stay safe for now is to download the zip, as you've suggested, and keep a cloud backup of it.

I appreciate you engaging on this subject and greatly appreciate the functionality your node brings to ComfyUI.

Weixuanf commented 5 months ago

ok I see what's going on.

  1. make sure you enabled two way sync in settings
Screenshot 2024-05-12 at 10 31 52 AM
  1. please re-select your My Workflows Save Directory. Your current selected path is invalid, as it is showing "undefined" Click the folder icon and reset the directory:
Screenshot 2024-05-12 at 10 33 17 AM

After these 2 steps, please verify that your workflows drawer list is showing exactly the files and folders in your "Workflows Save Directory" in your disk. If not, let me know and I'll debug with you.

Weixuanf commented 5 months ago

I really appreciate your sponsor. Thanks a lot. Workspace manager is not yet perfect, so I'm eager to learn what issues you are experiencing and I hope to make it less errors and issues. Thanks for reporting this issue.

I think I should enforce some validation checks against your selected "Workflows Save Directory" path.

formulake commented 5 months ago

Sorry about the late reply. I'm travelling all of this week but I'll be sure to run the steps you've suggested once I'm back. Thanks for all your effort. It makes a big difference!

Weixuanf commented 5 months ago

No problem. Let me know if you have any questions! And thanks very much for your sponsorship and recognition 😊😊


From: formulake @.> Sent: Wednesday, May 15, 2024 8:24:41 PM To: 11cafe/comfyui-workspace-manager @.> Cc: Weixuan Fu @.>; Comment @.> Subject: Re: [11cafe/comfyui-workspace-manager] Workflow List Blank after last update (Issue #368)

Sorry about the late reply. I'm travelling all of this week but I'll be sure to run the steps you've suggested once I'm back. Thanks for all your effort. It makes a big difference!

β€” Reply to this email directly, view it on GitHubhttps://github.com/11cafe/comfyui-workspace-manager/issues/368#issuecomment-2112385858, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEMEEON2YHSP4NFPPDR4WBTZCNHYTAVCNFSM6AAAAABHRS27JCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJSGM4DKOBVHA. You are receiving this because you commented.Message ID: @.***>

formulake commented 5 months ago

Just thought I'd provide a quick update on this. I got back and ran your steps, reset the folder path and this time I gave it an absolute path. Life is back to normal again :) Thanks again for your help.

Weixuanf commented 5 months ago

No problem glad to hear. Just make sure you backup that folder you chose once in a while. Some people use git to backup it


From: formulake @.> Sent: Saturday, May 25, 2024 12:01:19 AM To: 11cafe/comfyui-workspace-manager @.> Cc: Weixuan Fu @.>; Comment @.> Subject: Re: [11cafe/comfyui-workspace-manager] Workflow List Blank after last update (Issue #368)

Just thought I'd provide a quick update on this. I got back and ran your steps, reset the folder path and this time I gave it an absolute path. Life is back to normal again :) Thanks again for your help.

β€” Reply to this email directly, view it on GitHubhttps://github.com/11cafe/comfyui-workspace-manager/issues/368#issuecomment-2129889409, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEMEEOLOLKV2GCWCZVLLQT3ZD5P47AVCNFSM6AAAAABHRS27JCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRZHA4DSNBQHE. You are receiving this because you commented.Message ID: @.***>