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

**URL:** <https://forum.comfy.org/t/is-there-a-way-to-view-logs-while-installing-custom-nodes/509>\
**Category:** Windows\
**Tags:** log-and-terminal\
**Created:** [November 27, 2024, 2:54am UTC](https://forum.comfy.org/t/is-there-a-way-to-view-logs-while-installing-custom-nodes/509 "2024-11-27T02:54:06Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![shhlife](https://yyz1.discourse-cdn.com/flex009/user_avatar/forum.comfy.org/shhlife/32/161_2.png) [@shhlife](https://forum.comfy.org/u/shhlife)\
**Post date:** [November 27, 2024, 2:54am UTC](https://forum.comfy.org/t/is-there-a-way-to-view-logs-while-installing-custom-nodes/509/1 "2024-11-27T02:54:06Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![yoland](https://yyz1.discourse-cdn.com/flex009/user_avatar/forum.comfy.org/yoland/32/73_2.png) [@yoland](https://forum.comfy.org/u/yoland)\
**Post date:** [November 27, 2024, 3:10am UTC](https://forum.comfy.org/t/is-there-a-way-to-view-logs-while-installing-custom-nodes/509/2 "2024-11-27T03:10:24Z")

</div>

Definitely a bug

---

<div class="post-metadata">

**Author:** ![JCam](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@JCam](https://forum.comfy.org/u/JCam)\
**Post date:** [November 27, 2024, 6:03am UTC](https://forum.comfy.org/t/is-there-a-way-to-view-logs-while-installing-custom-nodes/509/3 "2024-11-27T06:03:03Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![shhlife](https://yyz1.discourse-cdn.com/flex009/user_avatar/forum.comfy.org/shhlife/32/161_2.png) [@shhlife](https://forum.comfy.org/u/shhlife)\
**Post date:** [November 27, 2024, 4:29pm UTC](https://forum.comfy.org/t/is-there-a-way-to-view-logs-while-installing-custom-nodes/509/4 "2024-11-27T16:29:14Z")

</div>

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. 🙂

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

---

<div class="post-metadata">

**Author:** ![rhuang](https://yyz1.discourse-cdn.com/flex009/user_avatar/forum.comfy.org/rhuang/32/21_2.png) [@rhuang](https://forum.comfy.org/u/rhuang)\
**Post date:** [November 27, 2024, 9:00pm UTC](https://forum.comfy.org/t/is-there-a-way-to-view-logs-while-installing-custom-nodes/509/5 "2024-11-27T21:00:33Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![shhlife](https://yyz1.discourse-cdn.com/flex009/user_avatar/forum.comfy.org/shhlife/32/161_2.png) [@shhlife](https://forum.comfy.org/u/shhlife)\
**Post date:** [November 28, 2024, 12:54am UTC](https://forum.comfy.org/t/is-there-a-way-to-view-logs-while-installing-custom-nodes/509/6 "2024-11-28T00:54:02Z")

</div>

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:

```auto
    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?

---

<div class="post-metadata">

**Author:** ![rhuang](https://yyz1.discourse-cdn.com/flex009/user_avatar/forum.comfy.org/rhuang/32/21_2.png) [@rhuang](https://forum.comfy.org/u/rhuang)\
**Post date:** [November 28, 2024, 1:00am UTC](https://forum.comfy.org/t/is-there-a-way-to-view-logs-while-installing-custom-nodes/509/7 "2024-11-28T01:00:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![shhlife](https://yyz1.discourse-cdn.com/flex009/user_avatar/forum.comfy.org/shhlife/32/161_2.png) [@shhlife](https://forum.comfy.org/u/shhlife)\
**Post date:** [November 28, 2024, 1:11am UTC](https://forum.comfy.org/t/is-there-a-way-to-view-logs-while-installing-custom-nodes/509/8 "2024-11-28T01:11:08Z")

</div>

Yep, these are my custom nodes. [GitHub - griptape-ai/ComfyUI-Griptape: A suite of Griptape nodes for ComfyUI](https://github.com/griptape-ai/ComfyUI-Griptape)

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?

---

<div class="post-metadata">

**Author:** ![shhlife](https://yyz1.discourse-cdn.com/flex009/user_avatar/forum.comfy.org/shhlife/32/161_2.png) [@shhlife](https://forum.comfy.org/u/shhlife)\
**Post date:** [November 28, 2024, 1:21am UTC](https://forum.comfy.org/t/is-there-a-way-to-view-logs-while-installing-custom-nodes/509/9 "2024-11-28T01:21:26Z")

</div>

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

 ![image](https://canada1.discourse-cdn.com/flex009/uploads/comfyui1/original/1X/3fc8a729889144fe905d636a41aef129e23edf78.png)

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

-Jason
