Is there a way to view logs while installing custom nodes?

I’m installing some custom nodes with the Manager, but I’m not sure if there are errors are not - is it possible to view the output of the terminal somewhere while installing nodes? I’d love to see if something is failing & more importantly why it’s failing…

thanks!
-Jason

Definitely a bug

You can open the log and see real-time logs, by clicking on the button at the top right of the comfy menu bar

Opening the log via the button didn’t give me any information - plus the ComfyUI Manager window covers the log area & you can’t move it. :slight_smile:

I was able to resolve the issue by launching ComfyUI from command line instead of just opening the app.

You can close the manager modal to view the logs. Agreed that manager does block the log viewer while open though.

Was the issue with the custom node not being installed correctly? Did you have to manually install anything?

Yeah, the problem seems to be related to my custom nodes where I’m trying to get the user directory in order to save custom settings…

I’m getting the error: No user directories found.

This is the code that looks for them:

    def get_settings_file(self):
        """Get the settings file path for the default user"""
        # Get the user manager
        user_manager = PromptServer.instance.user_manager

        # Get the users directory
        users_dir = os.path.dirname(user_manager.get_users_file())
        # Use the default user directory (usually the first one we find)
        user_dirs = [
            d
            for d in os.listdir(users_dir)
            if os.path.isdir(os.path.join(users_dir, d))
        ]
        if not user_dirs:
            raise ValueError("No user directories found")
        # Get the settings file path
        self.settings_file = os.path.join(
            users_dir, user_dirs[0], "comfy.settings.json"
        )

Is there a better way for custom nodes to get access to comfy.settings.json?

Are these your own custom nodes? We should make an SDK for these types of common operations.

Yep, these are my custom nodes. GitHub - griptape-ai/ComfyUI-Griptape: A suite of Griptape nodes for ComfyUI

They work when running ComfyUI normally - just not with the Desktop version yet. I think it has to do with the timing of when the user directories are defined.

It looks like they’re defined after custom nodes are loaded… I wonder if they could be defined before?

Here you can see the error as it comes while starting ComfyUI… notice it’s looking for the user before it’s defined by ComfyUI

Is the user directory available elsewhere in a way that works for both the ComfyUI Desktop version and for someone installing from github?

-Jason