CushyStudio icon indicating copy to clipboard operation
CushyStudio copied to clipboard

On second launch I start getting a Black screen and Failure to write entry:[]

Open Changhochien opened this issue 2 years ago β€’ 19 comments

On the second launch I start, I'm getting the error below and cannot figure out how to solve the issue.


Starting Vite with Electron's Node...

Server running on http://localhost:8688 waiting for cushy to start [VITE] vite started |2024-01-24T14:15:42.952Z| failure to write entry: [] ...on error: Error: ENOENT: no such file or directory, open 'D:\CushyStudio\logs\2024-01-24.debug.log' |2024-01-24T14:15:43.041Z| failure to write entry: [null] ...on error: Error: ENOENT: no such file or directory, open 'D:\CushyStudio\logs\2024-01-24.debug.log' |2024-01-24T14:15:43.042Z| failure to write entry: [null] ...on error: Error: ENOENT: no such file or directory, open 'D:\CushyStudio\logs\2024-01-24.debug.log' |2024-01-24T14:15:43.044Z| failure to write entry: [null] ...on error: Error: ENOENT: no such file or directory, open 'D:\CushyStudio\logs\2024-01-24.debug.log' |2024-01-24T14:15:43.044Z| failure to write entry: [null] ...on error: Error: ENOENT: no such file or directory, open 'D:\CushyStudio\logs\2024-01-24.debug.log' |2024-01-24T14:15:43.045Z| failure to write entry: [null] ...on error: Error: ENOENT: no such file or directory, open 'D:\CushyStudio\logs\2024-01-24.debug.log' |2024-01-24T14:15:43.046Z| failure to write entry: [null] ...on error: Error: ENOENT: no such file or directory, open 'D:\CushyStudio\logs\2024-01-24.debug.log' |2024-01-24T14:15:43.049Z| failure to write entry: [null] ...on error: Error: ENOENT: no such file or directory, open 'D:\CushyStudio\logs\2024-01-24.debug.log' |2024-01-24T14:15:43.049Z| failure to write entry: [null] ...on error: Error: ENOENT: no such file or directory, open 'D:\CushyStudio\logs\2024-01-24.debug.log'

update the log file

|22:47:50| |327| [πŸ”‘ AUTH] restoring session from DB... |351| [πŸ”‘ AUTH] restoring session from DB... |372| [πŸ”‘ AUTH] restoring session from DB... |390| [πŸ”‘ AUTH] restoring session from DB... |22:48:54| |663| [πŸ”‘ AUTH] restoring session from DB... |682| [πŸ”‘ AUTH] restoring session from DB... |700| [πŸ”‘ AUTH] restoring session from DB... |717| [πŸ”‘ AUTH] restoring session from DB...

image


I started Cushy in dev mode and the below is what I got


Starting Cushy in dev mode...

The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details. waiting for cushy to start [117052:0124/231242.921:ERROR:cache_util_win.cc(20)] Unable to move the cache: ε­˜ε–θ’«ζ‹’γ€‚ (0x5) [117052:0124/231242.921:ERROR:cache_util_win.cc(20)] Unable to move the cache: ε­˜ε–θ’«ζ‹’γ€‚ (0x5) [117052:0124/231242.996:ERROR:disk_cache.cc(208)] Unable to create cache [117052:0124/231242.997:ERROR:gpu_disk_cache.cc(676)] Gpu Cache Creation failed: -2 [117052:0124/231242.997:ERROR:disk_cache.cc(208)] Unable to create cache [117052:0124/231242.997:ERROR:gpu_disk_cache.cc(676)] Gpu Cache Creation failed: -2 waiting for cushy to start waiting for cushy to start waiting for cushy to start waiting for cushy to start [VITE] loading vite config waiting for cushy to start waiting for cushy to start ➜ Local: http://localhost:8788/ ➜ Network: use --host to expose [117052:0124/231244.564:ERROR:quota_database.cc(950)] Could not open the quota database, resetting. [117052:0124/231249.501:ERROR:quota_database.cc(950)] Could not open the quota database, resetting. [117052:0124/231252.411:ERROR:quota_database.cc(955)] Failed to reset the quota database. [117052:0124/231252.411:ERROR:quota_database.cc(955)] Failed to reset the quota database. [VITE] vite started [124568:0124/231256.036:ERROR:cache_util_win.cc(20)] Unable to move the cache: ε­˜ε–θ’«ζ‹’γ€‚ (0x5) [124568:0124/231256.037:ERROR:disk_cache.cc(208)] Unable to create cache δΈ‹εˆ11:12:59 [vite] warning: rewrote @tensorflow/tfjs to ./src/syms/tfjs.js but was not an abolute path and was not handled by other plugins. This will lead to duplicated modules for the same path. To avoid duplicating modules, you should resolve to an absolute path. Plugin: alias

Changhochien avatar Jan 24 '24 14:01 Changhochien

thanks for the feedback, I will look into this in ~4/5 hours when I'm home.

Does cushy start and work properly in the meantime ?

things you can try in the meantime to get rid of the logs error: creating a logs folder at the root of your cushy install

rvion avatar Jan 24 '24 15:01 rvion

regaring the quota_database.cc(950) Could not open the quota database, resetting. => maybe a permission error ? Cushy should not require any privilege; install script should be run as normal user, not superadmin

rvion avatar Jan 24 '24 15:01 rvion

@rvion Not sure if this will help, but I am seeing this error in the console in addition to the "failure to write entry: []" error. But I am only seeing it when running with _windows-start.bat image

Also, @Changhochien, I was able to run okay with _windows-start-dev.bat. You could try running the -dev file in your environment as a temporary workaround until @rvion has a chance to look at it.

GitWilburn avatar Jan 24 '24 21:01 GitWilburn

@GitWilburn are you back on master branch ?

rvion avatar Jan 24 '24 21:01 rvion

@GitWilburn are you back on master branch ?

Yes, I am on master ATM.

GitWilburn avatar Jan 24 '24 21:01 GitWilburn

@GitWilburn the error you see is probably a choices widget having its children defined without lambda; is this a default app or a custom one ?

rvion avatar Jan 24 '24 21:01 rvion

@rvion just the built-in SDUI. Sounds like maybe unrelated to the original issue.

GitWilburn avatar Jan 24 '24 22:01 GitWilburn

regaring the quota_database.cc(950) Could not open the quota database, resetting. => maybe a permission error ? Cushy should not require any privilege; install script should be run as normal user, not superadmin

I've tried on another computer and got the same problem. I'll keep trying. Thank you for the reply.

Changhochien avatar Jan 25 '24 02:01 Changhochien

@rvion Not sure if this will help, but I am seeing this error in the console in addition to the "failure to write entry: []" error. But I am only seeing it when running with _windows-start.bat image

Also, @Changhochien, I was able to run okay with _windows-start-dev.bat. You could try running the -dev file in your environment as a temporary workaround until @rvion has a chance to look at it.

I've tried to run on dev mode, but I still get a black screen with the same problem. I've up dated the screen shot on top.

εœ–η‰‡

This is what I see on the console log in the dev mode

εœ–η‰‡ εœ–η‰‡

Changhochien avatar Jan 25 '24 02:01 Changhochien

New update This problem seems to occur after first connection with comfyUI. Then it will show a complete black screen and the errors shown in the previous dialogs.

Changhochien avatar Jan 25 '24 02:01 Changhochien

fixed it in my dev branch

rvion avatar Jan 25 '24 19:01 rvion

will merge in a few minutes

rvion avatar Jan 25 '24 19:01 rvion

@Changhochien can you check if it works now ? thanks again for the help troubleshooting that :)

rvion avatar Jan 25 '24 19:01 rvion

I have the same black screen on second launch but the cmd.exe is stuck here : image I have this error too, I don't know if this is related image

R-ES-H avatar Feb 02 '24 15:02 R-ES-H

oh, you don't have git; update is using git; this is unfortunate :/ In case you can install it, link is there: https://git-scm.com/ I plan to remove the need to have git installed; maybe I need to prioritize this.

rvion avatar Feb 02 '24 15:02 rvion

I'll try the new update thanks! Will update my situation soon.

Changhochien avatar Feb 02 '24 15:02 Changhochien

I have git installed (at least I believe so on the host, and am not using a venv?) but am getting the [VITE] vite started on second launch. Worked on the first launch great. Now only works with a rull reinstall and keeping it online full time.

cjbarnes22 avatar Feb 11 '24 16:02 cjbarnes22

Can you paste the errors you have ? Both in the terminal / console, and app devtools (if app launch, using the menu entry)

rvion avatar Feb 11 '24 16:02 rvion

Sorry busy week. I have had some other issues since so this may be on my end, thinking about rebuilding from OS up. I tried again and I get this error, and a black screen on the CushyStuio window that pops up

Starting Vite with Electron's Node...

Server running on http://localhost:8688 waiting for cushy to start [VITE] vite started [27512:0217/202012.547:ERROR:CONSOLE(0)] "ReferenceError: dragEvent is not defined", source: (0) [27512:0217/202052.892:ERROR:CONSOLE(0)] "ReferenceError: dragEvent is not defined", source: (0)

image

I had in the past been able to reinstall and launch but this was on first launch.

now I see in the devtools, I also have my comfy on port 8188 so I'm not sure why It's calling 8688

main.js:23455 Download the React DevTools for a better development experience: https://reactjs.org/link/react-devtools main.js:167182 [πŸ›‹οΈ] rendering CushyStudio main.js:151320 [🏷️] UserTags: 1 tags parsed main.js:166837 [πŸ›‹οΈ] starting Cushy main.js:166685 [🍻] FIXUP TSConfig main.js:154750 {0} Object main.js:166850 [πŸ›‹οΈ] 30 shortcuts loaded main.js:159923 [πŸ”‘ AUTH] restoring session from DB... main.js:159893 [🏷️] DanBooru: 100001 tags parsed main.js:151756 [πŸ“‘] comfy_schema: updating schema (virtual-base) main.js:151756 [πŸ“‘] comfy_schema: updating schema (virtual-full) main.js:151756 [πŸ“‘] comfy_schema: updating schema (standard) main.js:167182 [πŸ›‹οΈ] rendering CushyStudio main.js:166837 [πŸ›‹οΈ] starting Cushy main.js:166685 [🍻] FIXUP TSConfig main.js:154750 {1} Object main.js:164538 Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key. _GoTrueClient @ main.js:164538 main.js:166850 [πŸ›‹οΈ] 30 shortcuts loaded main.js:159923 [πŸ”‘ AUTH] restoring session from DB... main.js:151756 [πŸ“‘] comfy_schema: updating schema (virtual-base) main.js:151756 [πŸ“‘] comfy_schema: updating schema (virtual-full) main.js:151756 [πŸ“‘] comfy_schema: updating schema (standard) main.js:79070 Uncaught TypeError: nodeDef.output.entries is not a function or its return value is not iterable at ComfySchemaL.onUpdate (main.js:154527:52) at executeAction (C:\Users\user\Documents\CushyUI\CushyStudio\node_modules\mobx\dist\mobx.cjs.development.js:1241:15) at ComfySchemaL.onUpdate (C:\Users\user\Documents\CushyUI\CushyStudio\node_modules\mobx\dist\mobx.cjs.development.js:1226:12) at ComfySchemaL.init (main.js:151752:24) at executeAction (C:\Users\user\Documents\CushyUI\CushyStudio\node_modules\mobx\dist\mobx.cjs.development.js:1241:15) at ComfySchemaL.init (C:\Users\user\Documents\CushyUI\CushyStudio\node_modules\mobx\dist\mobx.cjs.development.js:1226:12) at LiveTable._createInstance (main.js:151629:16) at executeAction (C:\Users\user\Documents\CushyUI\CushyStudio\node_modules\mobx\dist\mobx.cjs.development.js:1241:15) at LiveTable._createInstance (C:\Users\user\Documents\CushyUI\CushyStudio\node_modules\mobx\dist\mobx.cjs.development.js:1226:12) at LiveTable.get (main.js:151429:19) main.js:167182 [πŸ›‹οΈ] rendering CushyStudio main.js:166837 [πŸ›‹οΈ] starting Cushy main.js:166685 [🍻] FIXUP TSConfig main.js:154750 {2} Object main.js:164538 Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key. _GoTrueClient @ main.js:164538 main.js:166850 [πŸ›‹οΈ] 30 shortcuts loaded main.js:159923 [πŸ”‘ AUTH] restoring session from DB... main.js:151756 [πŸ“‘] comfy_schema: updating schema (virtual-base) main.js:151756 [πŸ“‘] comfy_schema: updating schema (virtual-full) main.js:151756 [πŸ“‘] comfy_schema: updating schema (standard) main.js:167182 [πŸ›‹οΈ] rendering CushyStudio main.js:166837 [πŸ›‹οΈ] starting Cushy main.js:166685 [🍻] FIXUP TSConfig main.js:154750 {3} Object main.js:164538 Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key. _GoTrueClient @ main.js:164538 main.js:166850 [πŸ›‹οΈ] 30 shortcuts loaded main.js:159923 [πŸ”‘ AUTH] restoring session from DB... main.js:151756 [πŸ“‘] comfy_schema: updating schema (virtual-base) main.js:151756 [πŸ“‘] comfy_schema: updating schema (virtual-full) main.js:151756 [πŸ“‘] comfy_schema: updating schema (standard) main.js:79070 Uncaught TypeError: nodeDef.output.entries is not a function or its return value is not iterable at ComfySchemaL.onUpdate (main.js:154527:52) at executeAction (C:\Users\user\Documents\CushyUI\CushyStudio\node_modules\mobx\dist\mobx.cjs.development.js:1241:15) at ComfySchemaL.onUpdate (C:\Users\user\Documents\CushyUI\CushyStudio\node_modules\mobx\dist\mobx.cjs.development.js:1226:12) at ComfySchemaL.init (main.js:151752:24) at executeAction (C:\Users\user\Documents\CushyUI\CushyStudio\node_modules\mobx\dist\mobx.cjs.development.js:1241:15) at ComfySchemaL.init (C:\Users\user\Documents\CushyUI\CushyStudio\node_modules\mobx\dist\mobx.cjs.development.js:1226:12) at LiveTable._createInstance (main.js:151629:16) at executeAction (C:\Users\user\Documents\CushyUI\CushyStudio\node_modules\mobx\dist\mobx.cjs.development.js:1241:15) at LiveTable._createInstance (C:\Users\user\Documents\CushyUI\CushyStudio\node_modules\mobx\dist\mobx.cjs.development.js:1226:12) at LiveTable.get (main.js:151429:19) main.js:15955 The above error occurred in one of your React components:

at http://localhost:8688/main.js:79108:12

Consider adding an error boundary to your tree to customize error handling behavior. Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries. logCapturedError @ main.js:15955 main.js:21328 Uncaught TypeError: nodeDef.output.entries is not a function or its return value is not iterable at ComfySchemaL.onUpdate (main.js:154527:52) at executeAction (C:\Users\user\Documents\CushyUI\CushyStudio\node_modules\mobx\dist\mobx.cjs.development.js:1241:15) at ComfySchemaL.onUpdate (C:\Users\user\Documents\CushyUI\CushyStudio\node_modules\mobx\dist\mobx.cjs.development.js:1226:12) at ComfySchemaL.init (main.js:151752:24) at executeAction (C:\Users\user\Documents\CushyUI\CushyStudio\node_modules\mobx\dist\mobx.cjs.development.js:1241:15) at ComfySchemaL.init (C:\Users\user\Documents\CushyUI\CushyStudio\node_modules\mobx\dist\mobx.cjs.development.js:1226:12) at LiveTable._createInstance (main.js:151629:16) at executeAction (C:\Users\user\Documents\CushyUI\CushyStudio\node_modules\mobx\dist\mobx.cjs.development.js:1241:15) at LiveTable._createInstance (C:\Users\user\Documents\CushyUI\CushyStudio\node_modules\mobx\dist\mobx.cjs.development.js:1226:12) at LiveTable.get (main.js:151429:19) main.js:160041 [πŸ”‘ AUTH] 🟒 received INITIAL_SESSION main.js:160041 [πŸ”‘ AUTH] 🟒 received INITIAL_SESSION main.js:160041 [πŸ”‘ AUTH] 🟒 received INITIAL_SESSION main.js:160041 [πŸ”‘ AUTH] 🟒 received INITIAL_SESSION

cjbarnes22 avatar Feb 18 '24 03:02 cjbarnes22