Error unable to start a local compute server error

We are running rhino compute on Kubernetes and deploying the docker image from the compute.rhino git repo (dockerfile is in reply for refrence)
Processing: Docker$.txt…

. On Monday June 12th we added a new font as well as plug in to our environment and when we redeployed rhino. Compute we began receiving an error message saying

“: An unhandled exception was thrown by the application.
System. Exception: Unable to start a local compute server”.

Let it be known that we have both our new font and the plugin we installed on our staging environment which is functioning fine. I am pasting the error logs from Kubernetes below as well as attaching the error logs on Rancher as pictures. Please help we depend on rhino compute.


[14:25:20 ERR] Connection id “0HMIEQRNM92JB”, Request id "0HMIEQRNM92JB:00000002 ": An unhandled exception was thrown by the application. System.Exception: Unable to start a local compute server at rhino.compute.ComputeChildren.LaunchCompute(Queue1 processQueue, Boolean waitUntilServing) in C:\src\rhino.compute\ComputeChildren.cs:line 205 at rhino.compute.ComputeChildren.GetComputeServerBaseUrl() in C:\src\rhino.co mpute\ComputeChildren.cs:line 85 at rhino.compute.ReverseProxyModule.<>c.<Initialize>b__4_0() in C:\src\rhino. compute\ReverseProxy.cs:line 27 at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.<>c.<.cctor>b__277_0(Object obj) at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread thr eadPoolThread, ExecutionContext executionContext, ContextCallback callback, Obje ct state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread thr eadPoolThread, ExecutionContext executionContext, ContextCallback callback, Obje ct state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at rhino.compute.ReverseProxyModule.AwaitInitTask() in C:\src\rhino.compute\R everseProxy.cs:line 100 at rhino.compute.ReverseProxyModule.ReverseProxyGrasshopper(HttpRequest req, HttpResponse res) in C:\src\rhino.compute\ReverseProxy.cs:line 178 at Carter.CarterExtensions.<>c__DisplayClass1_0.<<CreateRouteHandler>b__0>d.M oveNext() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTas k|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext ) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.Proces sRequests[TContext](IHttpApplication1 application)

System.Exception: Unable to start a local compute server at rhino.compute.ComputeChildren.LaunchCompute(Queue`1 processQueue, Boolean waitUntilServing) in C:\src\rhino.compute\ComputeChildren.cs:line 205 at rhino.compute.ComputeChildren.GetComputeServerBaseUrl() in C:\src\rhino.co mpute\ComputeChildren.cs:line 85 at rhino.compute.ReverseProxyModule.<>c.b__4_0() in C:\src\rhino. compute\ReverseProxy.cs:line 27 at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.<>c.<.cctor>b__277_0(Object obj) at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread thr eadPoolThread, ExecutionContext executionContext, ContextCallback callback, Obje ct state) — End of stack trace from previous location — at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread thr eadPoolThread, ExecutionContext executionContext, ContextCallback callback, Obje ct state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) — End of stack trace from previous location — at rhino.compute.ReverseProxyModule.AwaitInitTask() in C:\src\rhino.compute\R everseProxy.cs:line 100 at rhino.compute.ReverseProxyModule.ReverseProxyGrasshopper(HttpRequest req, HttpResponse res) in C:\src\rhino.compute\ReverseProxy.cs:line 178 at Carter.CarterExtensions.<>c__DisplayClass1_0.<b__0>d.M oveNext() — End of stack trace from previous location — at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTas k|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext )

Here is the Docker image referenced above

" # escape=`

# see Docker support for troubleshooting

# NOTE: use ‘process’ isolation to build image (otherwise rhino fails to install)

### builder image
FROM mcr.microsoft.com/dotnet/sdk:5.0 as builder

# copy everything, restore nuget packages and build app
COPY src/ ./src/
RUN dotnet publish -c Release -r win10-x64 --self-contained true src/compute.sln

### main image
# tag must match windows host for build (and run, if running with process isolation)
# e.g. 1903 for Windows 10 version 1903 host
FROM Microsoft Artifact Registry

#Copy the fonts and font install script
COPY fonts/ fonts/*
COPY InstallFont.ps1 .

#Run font install scriptin powershell
RUN powershell -ExecutionPolicy Bypass -Command .\InstallFont.ps1

#Copy and extract Pufferfish plugin
COPY plugins/ plugins/*

#RUN powershell Expand-Archive -Path ./test_plugins.zip -DestinationPath .

# install .net 4.8 if you’re using the 1809 base image (see dotnet-framework-docker/Dockerfile at 5d8e932818fcf188618f18eab4c978cbd1e6a0e6 · microsoft/dotnet-framework-docker · GitHub)
# comment this out for 1903 and newer
RUN curl -fSLo dotnet-framework-installer.exe https://download.visualstudio.microsoft.com/download/pr/7afca223-55d2-470a-8edc-6a1739ae3252/abd170b4b0ec15ad0222a809b761a036/ndp48-x86-x64-allos-enu.exe ** ** && .\dotnet-framework-installer.exe /q
** && del .\dotnet-framework-installer.exe `**
** && powershell Remove-Item -Force -Recurse ${Env:TEMP}***

# install rhino (with “-package -quiet” args)
# NOTE: edit this if you use a different version of rhino!
# the url below will always redirect to the latest rhino 7 (email required)
# https://www.rhino3d.com/download/rhino-for-windows/7/latest/direct?email=EMAIL
RUN curl -fSLo rhino_installer.exe https://www.rhino3d.com/download/rhino-for-windows/7/latest/direct?email=nikhil@jewlr.com ** ** && .\rhino_installer.exe -package -quiet
** && del .\rhino_installer.exe**

#Create a libraries directory for the plugin and copy .gha file
RUN powershell mkdir C:\Users\ContainerAdministrator\AppData\Roaming\Grasshopper\Libraries

RUN powershell Copy-Item -Path .\plugins\Pufferfish.gha -Destination “C:\Users\ContainerAdministrator\AppData\Roaming\Grasshopper\Libraries\Pufferfish.gha” ** ** && powershell Copy-Item -Path .\plugins\Jewlr.gha -Destination "C:\Program Files\Rhino7\Plug-ins\Grasshopper\Components\Jewlr.gha"
** && powershell Copy-Item -Path .\plugins\DefaultValue.gha -Destination “C:\Users\ContainerAdministrator\AppData\Roaming\Grasshopper\Libraries\DefaultValue.gha” **

#Copy config files
RUN powershell mkdir C:\Users\ContainerAdministrator\config
COPY config/ C:\Users\ContainerAdministrator\config*

# (optional) use the package manager to install plug-ins
#RUN ““C:\Program Files\Rhino 7\System\Yak.exe”” install jswan
RUN ““C:\Program Files\Rhino 7\System\Yak.exe”” install hops

# copy compute app to image
COPY --from=builder ["/src/dist", “/app”]
WORKDIR /app

# bind rhino.compute to port 5000
ENV ASPNETCORE_URLS="http://*:5000"
EXPOSE 5000

# uncomment to build core-hour billing credentials into image (not recommended)
# see Rhino - Licensing & Billing
#ENV RHINO_TOKEN=

CMD [“rhino.compute/rhino.compute.exe”,"–idlespan=1800"] "

I’d start by generating a new RHINO_TOKEN and updating your deployment. The System.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL error usually points to licensing being the problem.

Will we tried changing the token and redeploying and it worked!!! Issue resolved

1 Like

Hey guys, we are having a similar issue again. Here is the error logs from Rhino and our production pod. We tried using a new token and redeploying but this time it did not fix the issue. Do you have any suggestions to get our production environment up?

[19:58:32 ERR] Connection id “0HMJECT1H1E3J”, Request id "0HMJECT1H1E3J:00000002 ": An unhandled exception was thrown by the application. System.Exception: Unable to start a local compute server at rhino.compute.ComputeChildren.LaunchCompute(Queue1 processQueue, Boolean waitUntilServing) in C:\src\rhino.compute\ComputeChildren.cs:line 205 at rhino.compute.ComputeChildren.GetComputeServerBaseUrl() in C:\src\rhino.co mpute\ComputeChildren.cs:line 85 at rhino.compute.ReverseProxyModule.<>c.<Initialize>b__4_0() in C:\src\rhino. compute\ReverseProxy.cs:line 27 at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.<>c.<.cctor>b__277_0(Object obj) at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread thr eadPoolThread, ExecutionContext executionContext, ContextCallback callback, Obje ct state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread thr eadPoolThread, ExecutionContext executionContext, ContextCallback callback, Obje ct state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at rhino.compute.ReverseProxyModule.AwaitInitTask() in C:\src\rhino.compute\R everseProxy.cs:line 103 at rhino.compute.ReverseProxyModule.ReverseProxyGrasshopper(HttpRequest req, HttpResponse res) in C:\src\rhino.compute\ReverseProxy.cs:line 192 at Carter.CarterExtensions.<>c__DisplayClass1_0.<<CreateRouteHandler>b__0>d.M oveNext() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTas k|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext ) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.Proces sRequests[TContext](IHttpApplication1 application)

4:01

System.Exception: Unable to start a local compute server at rhino.compute.ComputeChildren.LaunchCompute(Queue`1 processQueue, Boolean waitUntilServing) in C:\src\rhino.compute\ComputeChildren.cs:line 205 at rhino.compute.ComputeChildren.GetComputeServerBaseUrl() in C:\src\rhino.co mpute\ComputeChildren.cs:line 85 at rhino.compute.ReverseProxyModule.<>c.b__4_0() in C:\src\rhino. compute\ReverseProxy.cs:line 27 at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.<>c.<.cctor>b__277_0(Object obj) at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread thr eadPoolThread, ExecutionContext executionContext, ContextCallback callback, Obje ct state) — End of stack trace from previous location — at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread thr eadPoolThread, ExecutionContext executionContext, ContextCallback callback, Obje ct state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) — End of stack trace from previous location — at rhino.compute.ReverseProxyModule.AwaitInitTask() in C:\src\rhino.compute\R everseProxy.cs:line 103 at rhino.compute.ReverseProxyModule.ReverseProxyGrasshopper(HttpRequest req, HttpResponse res) in C:\src\rhino.compute\ReverseProxy.cs:line 192 at Carter.CarterExtensions.<>c__DisplayClass1_0.<b__0>d.M oveNext() — End of stack trace from previous location — at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTas k|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext )

here is the error from our production pod

Info 2022-07-26 09:16:34.518 EDTcompute\ReverseProxy.cs:line 27[49X[49C [?25h[?25l Info 2022-07-26 09:16:34.518 EDTmpute\ComputeChildren.cs:line 85[48X[48C [?25h[?25l Info 2022-07-26 09:16:34.518 EDT at rhino.compute.ComputeChildren.GetComputeServerBaseUrl() in C:\src\rhino.co[?25h[?25l Info 2022-07-26 09:16:34.518 EDTwaitUntilServing) in C:\src\rhino.compute\ComputeChildren.cs:line 205[11X[11C [?25h[?25l Info 2022-07-26 09:16:34.518 EDT at rhino.compute.ReverseProxyModule.<>c.b__4_0() in C:\src\rhino.[?25h[?25l Info 2022-07-26 09:16:34.519 EDT at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread thr[?25h[?25l Info 2022-07-26 09:16:34.519 EDT at System.Threading.Tasks.Task.InnerInvoke()[33X[33C [?25h[?25l Info 2022-07-26 09:16:34.519 EDT at System.Threading.Tasks.Task.<>c.<.cctor>b__277_0(Object obj)[14X[14C [?25h[?25l Info 2022-07-26 09:16:34.519 EDTeadPoolThread, ExecutionContext executionContext, ContextCallback callback, Obje[?25h[?25l Info 2022-07-26 09:16:34.520 EDT at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread thr[?25h[?25l Info 2022-07-26 09:16:34.520 EDTeadPoolThread, ExecutionContext executionContext, ContextCallback callback, Obje[?25h[?25l Info 2022-07-26 09:16:34.520 EDT— End of stack trace from previous location —[m[31X[31C [?25h[?25l Info 2022-07-26 09:16:34.520 EDTct state)[71X[71C [?25h[?25l[97m Info 2022-07-26 09:16:34.521 EDTThread threadPoolThread)[56X[56C [?25h[?25l[97m Info 2022-07-26 09:16:34.521 EDTct state)[71X[71C [?25h[?25l

9:33

Info 2022-07-26 09:16:34.527 EDT[97m": An unhandled exception was thrown by the application.[24X[24C [?25h[?25l Info 2022-07-26 09:16:34.528 EDTSystem.Exception: Unable to start a local compute server[m[24X[24C [?25h[?25l at rhino.compute.ComputeChildren.LaunchCompute(Queue`1 processQueue, Boolean [?25h[?25l Info 2022-07-26 09:16:34.528 EDT at rhino.compute.ComputeChildren.GetComputeServerBaseUrl() in C:\src\rhino.co[?25h[?25l Info 2022-07-26 09:16:34.528 EDTwaitUntilServing) in C:\src\rhino.compute\ComputeChildren.cs:line 205[11X[11C [?25h[?25l Info 2022-07-26 09:16:34.529 EDTcompute\ReverseProxy.cs:line 27[49X[49C [?25h[?25l Info 2022-07-26 09:16:34.529 EDT at rhino.compute.ReverseProxyModule.<>c.b__4_0() in C:\src\rhino.[?25h[?25l Info 2022-07-26 09:16:34.529 EDTmpute\ComputeChildren.cs:line 85[48X[48C [?25h[?25l Info 2022-07-26 09:16:34.530 EDTct state)[71X[71C [?25h[?25l Info 2022-07-26 09:16:34.530 EDT at System.Threading.Tasks.Task.InnerInvoke()[33X[33C [?25h[?25l Info 2022-07-26 09:16:34.530 EDT at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread thr[?25h[?25l Info 2022-07-26 09:16:34.530 EDT at System.Threading.Tasks.Task.<>c.<.cctor>b__277_0(Object obj)[14X[14C [?25h[?25l Info 2022-07-26 09:16:34.530 EDTeadPoolThread, ExecutionContext executionContext, ContextCallback callback, Obje[?25h[?25l Info 2022-07-26 09:16:34.531 EDTct state)[71X[71C [?25h[?25l Info 2022-07-26 09:16:34.531 EDT at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, [?25h[?25l Info 2022-07-26 09:16:34.531 EDT at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread thr[?25h[?25l Info 2022-07-26 09:16:34.531 EDTThread threadPoolThread)[56X[56C [?25h[?25l[97m Info 2022-07-26 09:16:34.531 EDT[80X[80C [?25h[?25l[97m— End of stack trace from previous location —[m [?25h[?25l