Comfy-Org / Comfy-Org/ComfyUI

Bug Report: Failed to Initialize Database

Open
#10,167 6 comments 0 reactions 0 assignees View on GitHub
Potential Bug
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

### Custom Node Testing

- [x] I have tried disabling custom nodes and the issue persists (see [how to disable custom nodes](https://docs.comfy.org/troubleshooting/custom-node-issues#step-1%3A-test-with-all-custom-nodes-disabled) if you need help)

### Expected Behavior

Er... the database initializes successfully?

(I don't think this is reproducible, so I don't think it would help to disable custom nodes. At any rate, I only have 2 of the nodes installed that were required by the default template thing anyway.)

### Actual Behavior

The database failed to initialize

### Steps to Reproduce

I'm sorry, I'm a total NEWB here. I'm just submitting a bug report because ComfyUI Desktop asked me to.
I tried like three different ways to add my HuggingFace authtication token as an environment variable, then run "python main.py" because THOSE were the instructions. I never did get main.py to run from a default prompt (duh), but apparently one of authentication tokens took, because I beleive that ComfyUI Desktop was trying to update the database due to finding the authentication environment variable. i THINK

### Debug Logs

```powershell
[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/alter-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json
Failed to initialize database. Please ensure you have installed the latest requirements. If the error persists, please report this as in future the database will be required: (sqlite3.OperationalError) unable to open database file
(Background on this error at: https://sqlalche.me/e/20/e3q8)
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
Starting server
```

### Other

The above is the relevant bit of the log in the ComfyUI Dekstop GUI. If there are some other relevant logs that you need, just let me know.

...Clear instructions please, as I said, I'm a total NEWB at ComfyUI, and local AI in general.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.