ComfyUI - db error 해결하기 (Window 환경)
윈도우용 ComfyUI 설치 후, 실행까지는 되지만
WorkFlow 실행 중 K-sampler 동작에서 멈춘다.
로그를 확인해보니, ComfyUI 처음 시작 후부터 db 생성 에러가 발생하였다.
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)
Starting server
To see the GUI go to: http://127.0.0.1:8001Unraid에서 Docker로 돌렸을 땐 없었던 문제라 당황했다.
Copilot, ChatGPT, Gemini에게 물어봐도 재설치를 하여도 해결이 안 되었다.
구글링하여 깃허브에 해당 에러를 검색해보니 훌륭한 답변 하나가 있어 따라해보니 해결되었다.
Failed to initialize database. · Issue #8764 · comfyanonymous/ComfyUI
Custom Node Testing I have tried disabling custom nodes and the issue persists (see how to disable custom nodes if you need help) Expected Behavior During a fresh ComfyUI install with the base_dire…
윈도우의 계정별 파일 관리 구조(?)로 인한 불상사였다.
ComfyUI 설치 시, 아래 경로에 설치한 ComfyUI 데이터들이 생성된다.
C:\Users\YOUR_USERNAME_HERE\AppData\Local\Programs\resources\ComfyUI\설치 시, 프로그램 버그겠지만 대강 깃허브 유저글 내용으로는 원래는 user폴더에 db를 자동 생성하는데 user 폴더가 BASE DIRECTORY에는 존재하지만,
위 윈도우 설치 경로에는 존재하지 않는 곳을 기준으로 user 폴더를 못 찾아서란다...
따라서, 위 ComfyUI 폴더 안에 user 폴더를 하나 생성해주면, 간단히 해결된다.