Skip to content
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

[Bug]: Desktop App start failed. #568

Closed
doncat99 opened this issue Dec 26, 2024 · 12 comments
Closed

[Bug]: Desktop App start failed. #568

doncat99 opened this issue Dec 26, 2024 · 12 comments
Labels
bug Something isn't working

Comments

@doncat99
Copy link

doncat99 commented Dec 26, 2024

App Version

0.4.3 arm64

Expected Behavior

App start normally

Actual Behavior

step1

after a selected a valid location,

step2

can't start.

Steps to Reproduce

i delected the app, reinstall, no better.

Debug Logs

na

Browser Logs

na

Setting JSON

na

Other

na

┆Issue is synchronized with this Notion page by Unito

@Neytiri7
Copy link

I'm constantly being reset.
I think I'm only installing it more than 20 times right now.

@robinjhuang robinjhuang added the bug Something isn't working label Dec 26, 2024
@webfiltered
Copy link
Contributor

Sorry to hear that! To find the exact cause, would you be able to send us the most recent, roughly two dozen lines from main.log, please? Should be located in in ~/Library/Logs/ComfyUI.

Feel free to redact mentions of usernames in paths.

@robinjhuang
Copy link
Member

Also @Neytiri7 @doncat99 can you try 0.4.4? Just published a recent version with a fix for resets that @webfiltered put in

@Neytiri7
Copy link

Also @Neytiri7 @doncat99 can you try 0.4.4? Just published a recent version with a fix for resets that @webfiltered put in

#575

@doncat99
Copy link
Author

Reference in

sure.

[2024-12-26 15:17:43.690] [info] Wrote settings to /Users/huangdon/Documents/ComfyUI/user/default/comfy.settings.json: {
"Comfy-Desktop.AutoUpdate": true,
"Comfy-Desktop.SendStatistics": false,
"Comfy.ColorPalette": "dark",
"Comfy.UseNewMenu": "Top",
"Comfy.Workflow.WorkflowTabsPosition": "Topbar",
"Comfy.Workflow.ShowMissingModelsWarning": true,
"Comfy.Server.LaunchArgs": {}
}
[2024-12-26 15:17:43.690] [info] Creating model config files in /Users/huangdon/Library/Application Support/ComfyUI/extra_models_config.yaml
[2024-12-26 15:17:43.697] [info] Created extra_model_paths.yaml at /Users/huangdon/Library/Application Support/ComfyUI/extra_models_config.yaml
[2024-12-26 15:17:44.059] [info] Received renderer-ready message!
[2024-12-26 15:17:59.599] [error] Unhandled exception during app startup Error: No base path selected or failed to save in config.
at InstallationManager.resolveIssues (/Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:27888:31)
at async InstallationManager.ensureInstalled (/Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:27805:7)
at async startApp (/Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:27960:28)
[2024-12-26 15:18:04.559] [info] App window closed. Quitting application.
[2024-12-26 15:18:09.777] [info] Validating installation. Recorded state: [installed]
[2024-12-26 15:18:09.823] [warn] "base_path" is inaccessible or undefined.
[2024-12-26 15:18:09.824] [info] Validation result: isValid:false, state:installed, issues:1
[2024-12-26 15:18:14.154] [info] Validating installation. Recorded state: [installed]
[2024-12-26 15:18:14.159] [warn] "base_path" is inaccessible or undefined.
[2024-12-26 15:18:14.159] [info] Validation result: isValid:false, state:installed, issues:1
[2024-12-26 15:18:14.159] [error] Unhandled exception during app startup Error: Installation issues remain after validation.
at InstallationManager.ensureInstalled (/Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:27809:45)
at async startApp (/Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:27960:28)
[2024-12-26 15:18:15.509] [info] App window closed. Quitting application.
[2024-12-26 15:18:21.640] [info] Validating installation. Recorded state: [installed]
[2024-12-26 15:18:21.685] [warn] "base_path" is inaccessible or undefined.
[2024-12-26 15:18:21.685] [info] Validation result: isValid:false, state:installed, issues:1
[2024-12-26 15:18:33.938] [info] Validating installation. Recorded state: [installed]
[2024-12-26 15:18:33.942] [warn] "base_path" is inaccessible or undefined.
[2024-12-26 15:18:33.943] [info] Validation result: isValid:false, state:installed, issues:1
[2024-12-26 15:18:33.943] [error] Unhandled exception during app startup Error: Installation issues remain after validation.
at InstallationManager.ensureInstalled (/Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:27809:45)
at async startApp (/Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:27960:28)
[2024-12-26 15:18:38.493] [info] App window closed. Quitting application.
[2024-12-26 15:22:23.398] [info] Validating installation. Recorded state: [installed]
[2024-12-26 15:22:23.446] [warn] "base_path" is inaccessible or undefined.
[2024-12-26 15:22:23.446] [info] Validation result: isValid:false, state:installed, issues:1
[2024-12-26 15:23:53.710] [error] Unhandled exception during app startup Error: No base path selected or failed to save in config.
at InstallationManager.resolveIssues (/Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:27888:31)
at async InstallationManager.ensureInstalled (/Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:27805:7)
at async startApp (/Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:27960:28)
[2024-12-26 15:24:04.620] [info] App window closed. Quitting application.
[2024-12-26 15:24:15.106] [info] Validating installation. Recorded state: [installed]
[2024-12-26 15:24:15.154] [warn] "base_path" is inaccessible or undefined.
[2024-12-26 15:24:15.154] [info] Validation result: isValid:false, state:installed, issues:1
[2024-12-26 15:24:22.341] [error] Unhandled exception during app startup Error: No base path selected or failed to save in config.
at InstallationManager.resolveIssues (/Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:27888:31)
at async InstallationManager.ensureInstalled (/Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:27805:7)
at async startApp (/Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:27960:28)
[2024-12-26 15:24:24.886] [info] App window closed. Quitting application.
[2024-12-26 15:24:44.312] [info] Validating installation. Recorded state: [installed]
[2024-12-26 15:24:44.357] [warn] "base_path" is inaccessible or undefined.
[2024-12-26 15:24:44.357] [info] Validation result: isValid:false, state:installed, issues:1
[2024-12-26 15:27:32.625] [error] Unhandled exception during app startup Error: No base path selected or failed to save in config.
at InstallationManager.resolveIssues (/Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:27888:31)
at async InstallationManager.ensureInstalled (/Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:27805:7)
at async startApp (/Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:27960:28)
[2024-12-26 15:27:46.001] [info] App window closed. Quitting application.
[2024-12-26 15:27:49.387] [info] Validating installation. Recorded state: [installed]
[2024-12-26 15:27:49.435] [warn] "base_path" is inaccessible or undefined.
[2024-12-26 15:27:49.435] [info] Validation result: isValid:false, state:installed, issues:1
[2024-12-26 15:28:22.373] [error] Unhandled exception during app startup Error: No base path selected or failed to save in config.
at InstallationManager.resolveIssues (/Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:27888:31)
at async InstallationManager.ensureInstalled (/Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:27805:7)
at async startApp (/Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:27960:28)
[2024-12-26 15:28:35.711] [info] App window closed. Quitting application.
[2024-12-27 16:54:30.376] [info] Validating installation. Recorded state: [installed]
[2024-12-27 16:54:30.437] [warn] "base_path" is inaccessible or undefined.
[2024-12-27 16:54:30.437] [info] Validation result: isValid:false, state:installed, issues:1
[2024-12-27 16:54:36.735] [error] Unhandled exception during app startup Error: No base path selected or failed to save in config.
at InstallationManager.resolveIssues (/Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:27888:31)
at async InstallationManager.ensureInstalled (/Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:27805:7)
at async startApp (/Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:27960:28)
[2024-12-27 16:54:38.273] [info] App window closed. Quitting application.
[2024-12-27 16:57:33.651] [info] Validating installation. Recorded state: [installed]
[2024-12-27 16:57:33.697] [warn] "base_path" is inaccessible or undefined.
[2024-12-27 16:57:33.698] [info] Validation result: isValid:false, state:installed, issues:1
[2024-12-27 16:58:42.202] [info] App window closed. Quitting application.
[2024-12-27 16:58:42.219] [info] Validating installation. Recorded state: [installed]

@doncat99
Copy link
Author

base_path

0.4.4 doesn't help me out.

below is the comfyui.log, hope it helps to figure the bug out.

[2024-12-26 15:17:16.201] [error] Traceback (most recent call last):
File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/main.py", line 11, in

[2024-12-26 15:17:16.201] [error] import utils.extra_config
File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/utils/extra_config.py", line 2, in
import yaml
ModuleNotFoundError: No module named 'yaml'

@webfiltered
Copy link
Contributor

Hi @doncat99, thanks for posting the logs! It looks like your extra_models_config.yaml file may be invalid or inaccessible.

It should be located here:

~/Library/Application Support/ComfyUI/extra_models_config.yaml

If you'd like, you can post the file here and we can take a look at what's wrong. You can also try moving the file to another folder and restarting the app - it should allow you to get past where you were stuck.

@doncat99
Copy link
Author

~/Library/Application Support/ComfyUI/

sure thing.

ComfyUI extra_model_paths.yaml for darwin

comfyui_desktop:
is_default: "true"
checkpoints: models/checkpoints/
classifiers: models/classifiers/
clip: models/clip/
clip_vision: models/clip_vision/
configs: models/configs/
controlnet: models/controlnet/
diffusers: models/diffusers/
diffusion_models: models/diffusion_models/
embeddings: models/embeddings/
gligen: models/gligen/
hypernetworks: models/hypernetworks/
loras: models/loras/
photomaker: models/photomaker/
style_models: models/style_models/
unet: models/unet/
upscale_models: models/upscale_models/
vae: models/vae/
vae_approx: models/vae_approx/
animatediff_models: models/animatediff_models/
animatediff_motion_lora: models/animatediff_motion_lora/
animatediff_video_formats: models/animatediff_video_formats/
ipadapter: models/ipadapter/
liveportrait: models/liveportrait/
insightface: models/insightface/
layerstyle: models/layerstyle/
LLM: models/LLM/
Joy_caption: models/Joy_caption/
sams: models/sams/
blip: models/blip/
CogVideo: models/CogVideo/
xlabs: models/xlabs/
instantid: models/instantid/
custom_nodes: custom_nodes/
download_model_base: models
base_path: /Users/huangdon/Documents/ComfyUI

@doncat99
Copy link
Author

Hi @doncat99, thanks for posting the logs! It looks like your extra_models_config.yaml file may be invalid or inaccessible.

It should be located here:

~/Library/Application Support/ComfyUI/extra_models_config.yaml

If you'd like, you can post the file here and we can take a look at what's wrong. You can also try moving the file to another folder and restarting the app - it should allow you to get past where you were stuck.

i guess I know what is going wrong.

the extra.yaml placed that the base_path is base_path: /Users/huangdon/Documents/ComfyUI. Whereas, the folder I selected from the install guidance, as the image shown below,

398669454-3fccd86b-09ca-4c55-aa60-8d7ba1ab3811

is not the comfyUI folder.

your application doesn't updated the folder I selected. but use "ComfyUI" folder as always.

@doncat99
Copy link
Author

Another Bug.

WX20241228-152115@2x

and the error log shows that "user" folder is not created before using.

@webfiltered
Copy link
Contributor

It looks like you have resolved the base_path issue. The other log you posted virtual environment does not have an importable yaml module, which happens when the virtual environment setup was interrupted in some way.

We are working on an update that will be able to repair a damaged or incomplete python virtual environment (the issue you're facing).

If you do not wish to wait for this, you can reset your venv (or rerun the pip install requirements.txt command). The current version of the app only checks that the .venv directory exists - if it does, it runs the server. You can rename this folder and start the app, which should cause the app to try creating the venv again.

@trollishka
Copy link

having issues too
invalid
invalid2

[2025-01-01 18:06:21.830] [info] [2025-01-01 18:05:32.849] [error] 2.9 seconds: C:\Users\Patt\AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI\custom_nodes\ComfyUI-Manager
[2025-01-01 18:06:21.830] [info] Node match found: ComfyUI-Manager
[2025-01-01 18:06:21.831] [info] [2025-01-01 17:32:02.713] [error] 2.9 seconds: C:\Users\Patt\AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI\custom_nodes\ComfyUI-Manager
[2025-01-01 18:06:21.831] [info] Node match found: ComfyUI-Manager
[2025-01-01 18:06:21.831] [info] [2025-01-01 17:27:01.070] [error] 3.1 seconds: C:\Users\Patt\AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI\custom_nodes\ComfyUI-Manager
[2025-01-01 18:06:21.832] [info] Node match found: ComfyUI-Manager
[2025-01-01 18:06:21.832] [info] [2025-01-01 14:49:40.895] [error] 3.0 seconds: C:\Users\Patt\AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI\custom_nodes\ComfyUI-Manager
[2025-01-01 18:06:21.832] [info] Node match found: ComfyUI-Manager
[2025-01-01 18:06:21.832] [info] [2025-01-01 14:47:58.299] [error] 3.3 seconds: C:\Users\Patt\AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI\custom_nodes\ComfyUI-Manager
[2025-01-01 18:06:21.833] [info] Node match found: ComfyUI-Manager
[2025-01-01 18:06:21.833] [info] Found custom nodes: []
[2025-01-01 18:06:21.838] [info] Running command: C:\Users\Patt\Documents\ComfyUI.venv\Scripts\python.exe C:\Users\Patt\AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI\main.py --user-directory C:\Users\Patt\Documents\ComfyUI\user --input-directory C:\Users\Patt\Documents\ComfyUI\input --output-directory C:\Users\Patt\Documents\ComfyUI\output --front-end-root C:\Users\Patt\AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI\web_custom_versions\desktop_app --extra-model-paths-config C:\Users\Patt\AppData\Roaming\ComfyUI\extra_models_config.yaml --port 8000 --listen 127.0.0.1 in C:\Users\Patt\Documents\ComfyUI
[2025-01-01 18:06:26.287] [error] Python process exited with code 1 and signal null
[2025-01-01 18:06:26.287] [error] Unhandled exception during server start Error: Python process exited with code 1 and signal null
at ChildProcess. (C:\Users\Patt\AppData\Local\Programs@comfyorgcomfyui-electron\resources\app.asar.vite\build\main.cjs:24199:18)
at ChildProcess.emit (node:events:519:28)
at ChildProcess._handle.onexit (node:internal/child_process:294:12)
[2025-01-01 18:06:47.370] [error] @todesktop/runtime: alwaysResolve: Promise timed out after 30000ms
[2025-01-01 18:06:48.375] [info] @todesktop/runtime: Checking for update
[2025-01-01 18:06:48.376] [info] @todesktop/runtime: AutoUpdater: checking-for-update
[2025-01-01 18:06:48.784] [info] @todesktop/runtime: Update for version 0.4.5 is not available (latest version: 0.4.5, downgrade is allowed).
[2025-01-01 18:06:48.784] [info] @todesktop/runtime: AutoUpdater: update-not-available {
version: '0.4.5',
files: [
{
url: 'ComfyUI Setup 0.4.5 - Build 2412282nn1ysgiz-x64.exe',
sha512: 'n1cYVBMVceFrlTqVbMRensN+LmL9pySnD0/WIJi8INCY/9Po+WxxKApJYkvaUypcreTMsL0Xb+5UV8bT2tzMpA==',
size: 114294672
}
],
path: 'ComfyUI Setup 0.4.5 - Build 2412282nn1ysgiz-x64.exe',
sha512: 'n1cYVBMVceFrlTqVbMRensN+LmL9pySnD0/WIJi8INCY/9Po+WxxKApJYkvaUypcreTMsL0Xb+5UV8bT2tzMpA==',
releaseDate: '2024-12-28T03:52:47.753Z'
}

@Comfy-Org Comfy-Org locked as resolved and limited conversation to collaborators Jan 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants