# Logs in compute

**URL:** <https://discourse.mcneel.com/t/logs-in-compute/191329>\
**Category:** compute.rhino3d\
**Tags:** windows, rhino8\
**Created:** [September 17, 2024, 7:40am UTC](https://discourse.mcneel.com/t/logs-in-compute/191329 "2024-09-17T07:40:35Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Quentin1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/quentin1/32/615828_2.png) [@Quentin1](https://discourse.mcneel.com/u/Quentin1)\
**Post date:** [September 17, 2024, 7:40am UTC](https://discourse.mcneel.com/t/logs-in-compute/191329/1 "2024-09-17T07:40:35Z")

</div>

Hi!  
This post is directly related to [this one](https://discourse.mcneel.com/t/log-messages-in-rhino-compute/178688) but it didn’t get answers.  
I have three questions concerning the way the logs work on compute:

- Is there a way to find these logs for the distant server? They appear in the command prompt window on local server but i can’t seem to find the right logs folder.
- I have a few examples where components have a different behaviour whether they are run with the GH GUI or on a compute server (even local). Is this a known issue?
- Is there a way to make the errors that appear in red non blocking the way it is with the GUI? In the GUI when i have a red error it just blocks the downstream but what’s non dependant on the component still runs, on compute it just blocks the whole process: is there a way to change that in the parameters?

 ![red_error](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/a/5/e/a5e825f27ca3895b7d65bec6ba3e580af6c115a0.png)

Thanks in advance, best

* * *

[NOTA] First point was solved, please find solution on [original post](https://discourse.mcneel.com/t/log-messages-in-rhino-compute/178688/3)

---

<div class="post-metadata">

**Author:** ![Quentin1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/quentin1/32/615828_2.png) [@Quentin1](https://discourse.mcneel.com/u/Quentin1)\
**Post date:** [October 2, 2024, 2:56pm UTC](https://discourse.mcneel.com/t/logs-in-compute/191329/2 "2024-10-02T14:56:31Z")

</div>

Hi!  
Anybody has an idea about that please, @AndyPayne maybe?  
Thanks 🙂

---

<div class="post-metadata">

**Author:** ![AndyPayne](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/andypayne/32/611612_2.png) [@AndyPayne](https://discourse.mcneel.com/u/AndyPayne)\
**Post date:** [October 2, 2024, 4:03pm UTC](https://discourse.mcneel.com/t/logs-in-compute/191329/3 "2024-10-02T16:03:04Z")

</div>

> [@Quentin1](#):
>
> Is there a way to find these logs for the distant server? They appear in the command prompt window on local server but i can’t seem to find the right logs folder.

The logs on a production server (ie. VM) can be found at _C:\inetpub\wwwroot\aspnet\_client\system\_web\4\_0\_30319\rhino.compute\logs_

---

<div class="post-metadata">

**Author:** ![AndyPayne](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/andypayne/32/611612_2.png) [@AndyPayne](https://discourse.mcneel.com/u/AndyPayne)\
**Post date:** [October 2, 2024, 4:03pm UTC](https://discourse.mcneel.com/t/logs-in-compute/191329/4 "2024-10-02T16:03:32Z")

</div>

> [@Quentin1](#):
>
> I have a few examples where components have a different behaviour whether they are run with the GH GUI or on a compute server (even local). Is this a known issue?

You would need to provide an example file for us to be able to see what’s going on.

---

<div class="post-metadata">

**Author:** ![AndyPayne](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/andypayne/32/611612_2.png) [@AndyPayne](https://discourse.mcneel.com/u/AndyPayne)\
**Post date:** [October 2, 2024, 4:07pm UTC](https://discourse.mcneel.com/t/logs-in-compute/191329/5 "2024-10-02T16:07:07Z")

</div>

> [@Quentin1](#):
>
> Is there a way to make the errors that appear in red non blocking the way it is with the GUI? In the GUI when i have a red error it just blocks the downstream but what’s non dependant on the component still runs, on compute it just blocks the whole process: is there a way to change that in the parameters?

Rhino.Compute should try to return any data that it can even if an error is found. However, you have a bunch of errors in that console output, which means that likely no data is winding up at the end of your definition to be returned by Rhino.Compute. I think you will need to figure out why those errors are occurring. Most of them look like they have “failed to collect data” errors which can sometimes occur if you are trying to reference some geometry from a document. Remember, Rhino.Compute is a headless environment which means there is no document to get data from… So you would likely need to pass any referenced geometry in as a parameter, or internalize the geometry for those references.

---

<div class="post-metadata">

**Author:** ![Quentin1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/quentin1/32/615828_2.png) [@Quentin1](https://discourse.mcneel.com/u/Quentin1)\
**Post date:** [October 3, 2024, 11:57am UTC](https://discourse.mcneel.com/t/logs-in-compute/191329/6 "2024-10-03T11:57:13Z")

</div>

Hi @AndyPayne,  
Thanks for your replies. I’ll try to answer each one of your questions separately.

* * *

1. About the logs

> [@AndyPayne](#):
>
> The logs on a production server (ie. VM) can be found at _C:\inetpub\wwwroot\aspnet\_client\system\_web\4\_0\_30319\rhino.compute\logs_

This is not exactly the same: i get templates about the launch of Grasshopper

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/9/9/1/9912e9c88e370f66eabb017038a1869296d07898.png)

While i’m looking for something the logs both the launch and specific events, as seen here on my local compute server. Do i miss something?

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/a/d/a/ada9d8c4026d2eb58f376befdc3776bb65cec81e.png)

* * *

1. Different behaviours.

I’ll let you know when i get some more, but i already have a simple example of a component acting differently with or without the GUI [here](https://discourse.mcneel.com/t/implicit-conversion-string-to-float-in-rhino-compute-fails/188925/16) with the issue of a panel not being able to be converted to a float in compute.

* * *

1. Rhino compute returning nothing

Except if i miss something, the compute server doesn’t return anything, and i am well aware of the need to internalize geometries, we are using this on a few models 🙂. Please see example below: with the GUI, i do have the cubes correspondig to first object appearing.

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/d/3/3/d332f0bfe14e76b217b3d2d9d7a9ba007b8cd454.png)

With the appserver requesting the local server, here’s what i get in the browser (and no “Object” returned as when it works):

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/0/4/3/043b68f03ba8fc121c9c5c555c66fab5fb7bccae.png)

This corresponds to this error in the compute cmd interface:

```auto
CG [13:44:03 DBG] Logging to C:\Users\quent\AppData\Local\Temp\Compute\Logs
CG [13:44:03 INF] Child process started at 03/10/2024 13:44:03
CG [13:44:05 INF] Compute 8.0.0.0, Rhino 8.9.24194.18121
CG [13:44:05 DBG] Rhino system directory: C:\Program Files\Rhino 8\System
CG [13:44:10 DBG] Hosting starting
CG [13:44:25 INF] (1/3) Loading rhino scripting plugin
CG [13:44:25 INF] Successfully loaded scripting plugin
CG [13:44:25 INF] Configured scripting plugin for compute
CG [13:44:25 INF] (2/3) Loading grasshopper
CG [13:44:46 INF] (3/3) Loading compute plug-ins
CG [13:44:46 DBG] Found module compute.geometry.FixedEndPointsModule
CG [13:44:46 DBG] Found module compute.geometry.RhinoGetModule
CG [13:44:46 DBG] Found module compute.geometry.RhinoPostModule
CG [13:44:46 DBG] Found module compute.geometry.ResthopperEndpointsModule
CG [13:44:47 INF] Now listening on: http://localhost:5000
CG [13:44:47 INF] Application started. Press Ctrl+C to shut down.
CG [13:44:47 INF] Hosting environment: Production
CG [13:44:47 INF] Content root path: C:\Users\quent\Documents\Git\compute.rhino3d\src\bin\Debug\compute.geometry
CG [13:44:47 DBG] Hosting started
CG [13:44:54 DBG] Using cached definition
CG [13:44:56 ERR] Data conversion failed from Text to Number: component "Center Box" (ec268e8b-f7cb-4c34-8cc0-bf5f6504689d)

```

And to this one in the local instance of webapp (VS Code debug terminal)

```auto
GET /view/Tests%3Enon_working_component.gh 200 3515.476 ms - -
GET /solve/Tests%3Enon_working_component.gh?number_of_cubes=10 400 2252.916 ms - -

```

Please find sample model here:  
[non\_working\_component.gh](https://discourse.mcneel.com/uploads/short-url/fmm4M6tPxcWMIE7oPINaD3WKtk0.gh) (9.8 KB)

* * *

Hope my answers are clear, feel free to ask for any precision, this is a big topic for us.

Thanks in advance, best

Quentin

---

<div class="post-metadata">

**Author:** ![abdoey96](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/abdoey96/32/605638_2.png) [@abdoey96](https://discourse.mcneel.com/u/abdoey96)\
**Post date:** [October 17, 2024, 3:47pm UTC](https://discourse.mcneel.com/t/logs-in-compute/191329/7 "2024-10-17T15:47:15Z")

</div>

Hey guys,

Bouncing back on the subject, I understand that the behavior for red errors is to block the output on Compute, but I noticed that when the red error is inside a cluster, the solution is computed flawlessly. Any insights on this ? Bug turned feature maybe 😃 ? Can this behavior be generalized ?

GH file representing this:  
[first\_cube\_ghuser\_red\_clustered.gh](https://discourse.mcneel.com/uploads/short-url/ylK6bPDgztEGZHs06INYN08dDTl.gh) (18.1 KB)

Screenshots of the clustered error:

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/9/e/e/9eefd33b3d83c75850add411f75d8f6212d945ff.png)  
 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/8/9/6/896d97cd7c8b30cbb9d3dae6f50c6b00981c982a.png)  
 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/6/2/f/62fe791eec53e2f2644c095396e9cbf8fbcc0d99.png)

Screenshots when the same error is on the main canvas:

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/c/2/c/c2c3e0f4ae25cba61428c1a8f237bc1ffbf9e4a0.png)  
 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/9/7/b/97b49b9889ae2875e6e25a2b49d01c690c924f64.png)

Cheers,  
Abdo

---

<div class="post-metadata">

**Author:** ![AndyPayne](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/andypayne/32/611612_2.png) [@AndyPayne](https://discourse.mcneel.com/u/AndyPayne)\
**Post date:** [October 18, 2024, 2:59pm UTC](https://discourse.mcneel.com/t/logs-in-compute/191329/8 "2024-10-18T14:59:11Z")

</div>

To my knowledge, Rhino.Compute doesn’t stop if it encounters an error. It should return all of the values that it can, and add any errors that it finds on components to an array or error messages that get included in the response back to the client. Let’s look at an example.

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/8/8/8/888855731120eeede03d9dd52e29e24867bcf409.png)  
Here you can see I’m simply going to add two input numbers and return the result. However, I’m also passing the input number from B into the Boundary Surfaces component which will thrown an error because it’s looking for a curve and I’m passing it a number. Now let’s look at the result.  
 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/3/3/3/33390b127cc0937e0153789a02b3657f803d0545.png)  
You can see that the output is still giving me a value of 0.5 (which is correct), but it is also giving me an error message that says:

```auto
Data conversion failed from Number to Curve: component "Boundary Surfaces" (add417ee-df1c-42c5-ad2d-3281298284a3)

```

This all makes sense.

---

<div class="post-metadata">

**Author:** ![abdoey96](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/abdoey96/32/605638_2.png) [@abdoey96](https://discourse.mcneel.com/u/abdoey96)\
**Post date:** [October 22, 2024, 9:40am UTC](https://discourse.mcneel.com/t/logs-in-compute/191329/9 "2024-10-22T09:40:54Z")

</div>

Not sure if there is a misunderstanding, but if we take @Quentin1 's example, and run it locally, the red error is clearly blocking the solution (screenshot below). Of course in the GUI, you would have both outputs showing up, one correctly, the second one with an error.  
 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/1/5/a/15a46f2529a37e1d5f0a1453fd5e9c00b5687459.png)

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/6/e/c/6ec2faf24f122f93c790fbc199df9d930e327a7e.png)

Here is the log when computing a working solution:  
 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/4/2/c/42ccebca1b7babc768d922a0867ea05c11fcf184.png)

---

<div class="post-metadata">

**Author:** ![Quentin1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/quentin1/32/615828_2.png) [@Quentin1](https://discourse.mcneel.com/u/Quentin1)\
**Post date:** [October 23, 2024, 7:16am UTC](https://discourse.mcneel.com/t/logs-in-compute/191329/10 "2024-10-23T07:16:25Z")

</div>

Hi there,

I totally agree with @abdoey96’s observation, that i tried to describe here:

> [@Quentin1](#):
>
> Except if i miss something, the compute server doesn’t return anything, and i am well aware of the need to internalize geometries, we are using this on a few models 🙂. Please see example below: with the GUI, i do have the cubes correspondig to first object appearing.

From what i see,

- Only orange errors in the GUI → Logged in the compute terminal but the solution is computed nontheless
- Red errors in the GUI → Logged in the compute terminal with a red `ERR`, solution is not computed and compute returns a 400 status code.

---

<div class="post-metadata">

**Author:** ![AndyPayne](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/andypayne/32/611612_2.png) [@AndyPayne](https://discourse.mcneel.com/u/AndyPayne)\
**Post date:** [October 23, 2024, 3:56pm UTC](https://discourse.mcneel.com/t/logs-in-compute/191329/11 "2024-10-23T15:56:27Z")

</div>

I believe the error about the failed number conversion coming into the Center Box component is solely because Rhino.Compute isn’t properly deserializing the nested Hops definition coming from a URL path on a remote github server. If this was set to a local path, then I believe this would work and you would not get any errors. I am trying to work on a fix for this, but it is tricky to debug as I was able to replicate the error locally and then fix it… but when I deployed this to a production environment, it still failed and I’m still looking into why this is occurring.

---

<div class="post-metadata">

**Author:** ![Quentin1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/quentin1/32/615828_2.png) [@Quentin1](https://discourse.mcneel.com/u/Quentin1)\
**Post date:** [October 24, 2024, 5:34am UTC](https://discourse.mcneel.com/t/logs-in-compute/191329/12 "2024-10-24T05:34:44Z")

</div>

Hi Andy,

I think there are two different topics.

1. The one discussed [here](https://discourse.mcneel.com/t/hops-subdefinition-with-a-compute-server/192260/5) (that we are also discussing privately) about hosting a Hops definition on a remote server, and it not being properly deserialized
2. The one discussed on this exact thread about `ERR` issues: when we have a “RED” error with the GUI, it prevents compute.rhino from returning anything.

Maybe the issues are linked but to my understanding those are two separate topics. What @abdoey96 and i have noticed is that, even with a vanilla [compute.rhino](https://github.com/mcneel/compute.rhino3d), a vanilla [appserver](https://github.com/mcneel/compute.rhino3d.appserver), and the [non\_working\_definition](https://discourse.mcneel.com/uploads/short-url/fmm4M6tPxcWMIE7oPINaD3WKtk0.gh) being stored in the local “files” folder of the appserver, compute.rhino doesn’t return anything (see vs code’s console, vs’s console and webpage below)

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/b/2/b/b2b98ee52d40dc514db1eeaa3c8a1618106cab05.png)

Hope this clarifies the two points.

Best

---

<div class="post-metadata">

**Author:** ![Alfredo\_Peña](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/alfredo_pe%C3%B1a/32/601996_2.png) [@Alfredo\_Peña](https://discourse.mcneel.com/u/Alfredo_Pe%C3%B1a)\
**Post date:** [October 16, 2025, 10:43am UTC](https://discourse.mcneel.com/t/logs-in-compute/191329/13 "2025-10-16T10:43:56Z")

</div>

Is there any possibility to debug the script while it is executing? For example, by writing to a file the time when a certain part of the script has been completed
