Hi guys!
@will @stevebaer @AndyPayne
I have trouble following the updated iis server compute tutorial at https://developer.rhino3d.com/guides/compute/deploy-to-iis/
I’m stuck when trying to send a definition over with the hops component, it just errors out
this doesn’t happen when I let hops solve locally
the script I’m trying to send is just this:
my grasshopper settings are configured like this
I started an aws t2.micro instance and it is running with the suggested ports wide open
the bootstrap script finished successfully, with the variables set
/activechildren endpoint is reachable, briefly returns a “1”, after that only returns “0”
/healthcheck returns “Healthy”
/version is not reachable
i checked around a bit on the server and found two logs in C:\Users\RhinoComputeAppPool\AppData\Local\Temp\Compute\Logs not sure if they are helpful, here is one of them:
{"Timestamp":"2022-01-26T17:27:32.2148936+00:00","Level":"Information","MessageTemplate":"Compute {ComputeVersion}, Rhino {RhinoVersion}","RenderedMessage":"Compute \"1.0.0.0\", Rhino \"7.14.22010.17001\"","Properties":{"ComputeVersion":"1.0.0.0","RhinoVersion":"7.14.22010.17001"}}
{"Timestamp":"2022-01-26T17:27:32.5274278+00:00","Level":"Information","MessageTemplate":"Configuration Result:\n{0}","RenderedMessage":"Configuration Result:\n\"[Success] Name compute.geometry\r\n[Success] DisplayName rhino.compute\r\n[Success] Description rhino.compute\r\n[Success] ServiceName compute.geometry\"","Properties":{"0":"[Success] Name compute.geometry\r\n[Success] DisplayName rhino.compute\r\n[Success] Description rhino.compute\r\n[Success] ServiceName compute.geometry","SourceContext":"Topshelf.HostFactory"}}
{"Timestamp":"2022-01-26T17:27:32.5274278+00:00","Level":"Information","MessageTemplate":"{0} v{1}, .NET Framework v{2}","RenderedMessage":"\"Topshelf\" v\"4.1.0.172\", .NET Framework v\"4.0.30319.42000\"","Properties":{"0":"Topshelf","1":"4.1.0.172","2":"4.0.30319.42000","SourceContext":"Topshelf.HostConfigurators.HostConfiguratorImpl"}}
{"Timestamp":"2022-01-26T17:27:32.5899442+00:00","Level":"Information","MessageTemplate":"Launching RhinoCore library as {User}","RenderedMessage":"Launching RhinoCore library as \"RhinoComputeAppPool\"","Properties":{"User":"RhinoComputeAppPool"}}
{"Timestamp":"2022-01-26T17:27:38.5749209+00:00","Level":"Error","MessageTemplate":"An exception occurred","RenderedMessage":"An exception occurred","Exception":"System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.\r\n at Rhino.Runtime.InProcess.RhinoCore.InternalStartup(Int32 argc, String[] argv, StartupInfo& info, IntPtr hostWnd)\r\n at Rhino.Runtime.InProcess.RhinoCore..ctor(String[] args, WindowStyle windowStyle, IntPtr hostWnd)\r\n at compute.geometry.OwinSelfHost.Start(HostControl hctrl) in /home/runner/work/compute.rhino3d/compute.rhino3d/src/compute.geometry/Program.cs:line 106\r\n at Topshelf.Builders.ControlServiceBuilder`1.ControlServiceHandle.Start(HostControl hostControl)\r\n at Topshelf.Hosts.ConsoleRunHost.Run()","Properties":{"SourceContext":"Topshelf.Hosts.ConsoleRunHost"}}
{"Timestamp":"2022-01-26T18:48:41.1782877+00:00","Level":"Information","MessageTemplate":"Compute {ComputeVersion}, Rhino {RhinoVersion}","RenderedMessage":"Compute \"1.0.0.0\", Rhino \"7.14.22010.17001\"","Properties":{"ComputeVersion":"1.0.0.0","RhinoVersion":"7.14.22010.17001"}}
{"Timestamp":"2022-01-26T18:48:41.4751726+00:00","Level":"Information","MessageTemplate":"Configuration Result:\n{0}","RenderedMessage":"Configuration Result:\n\"[Success] Name compute.geometry\r\n[Success] DisplayName rhino.compute\r\n[Success] Description rhino.compute\r\n[Success] ServiceName compute.geometry\"","Properties":{"0":"[Success] Name compute.geometry\r\n[Success] DisplayName rhino.compute\r\n[Success] Description rhino.compute\r\n[Success] ServiceName compute.geometry","SourceContext":"Topshelf.HostFactory"}}
{"Timestamp":"2022-01-26T18:48:41.4751726+00:00","Level":"Information","MessageTemplate":"{0} v{1}, .NET Framework v{2}","RenderedMessage":"\"Topshelf\" v\"4.1.0.172\", .NET Framework v\"4.0.30319.42000\"","Properties":{"0":"Topshelf","1":"4.1.0.172","2":"4.0.30319.42000","SourceContext":"Topshelf.HostConfigurators.HostConfiguratorImpl"}}
{"Timestamp":"2022-01-26T18:48:41.5532849+00:00","Level":"Information","MessageTemplate":"Launching RhinoCore library as {User}","RenderedMessage":"Launching RhinoCore library as \"RhinoComputeAppPool\"","Properties":{"User":"RhinoComputeAppPool"}}
{"Timestamp":"2022-01-26T18:48:44.5064259+00:00","Level":"Error","MessageTemplate":"An exception occurred","RenderedMessage":"An exception occurred","Exception":"System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.\r\n at Rhino.Runtime.InProcess.RhinoCore.InternalStartup(Int32 argc, String[] argv, StartupInfo& info, IntPtr hostWnd)\r\n at Rhino.Runtime.InProcess.RhinoCore..ctor(String[] args, WindowStyle windowStyle, IntPtr hostWnd)\r\n at compute.geometry.OwinSelfHost.Start(HostControl hctrl) in /home/runner/work/compute.rhino3d/compute.rhino3d/src/compute.geometry/Program.cs:line 106\r\n at Topshelf.Builders.ControlServiceBuilder`1.ControlServiceHandle.Start(HostControl hostControl)\r\n at Topshelf.Hosts.ConsoleRunHost.Run()","Properties":{"SourceContext":"Topshelf.Hosts.ConsoleRunHost"}}
{"Timestamp":"2022-01-26T19:10:22.6007602+00:00","Level":"Information","MessageTemplate":"Compute {ComputeVersion}, Rhino {RhinoVersion}","RenderedMessage":"Compute \"1.0.0.0\", Rhino \"7.14.22010.17001\"","Properties":{"ComputeVersion":"1.0.0.0","RhinoVersion":"7.14.22010.17001"}}
{"Timestamp":"2022-01-26T19:10:22.9288580+00:00","Level":"Information","MessageTemplate":"Configuration Result:\n{0}","RenderedMessage":"Configuration Result:\n\"[Success] Name compute.geometry\r\n[Success] DisplayName rhino.compute\r\n[Success] Description rhino.compute\r\n[Success] ServiceName compute.geometry\"","Properties":{"0":"[Success] Name compute.geometry\r\n[Success] DisplayName rhino.compute\r\n[Success] Description rhino.compute\r\n[Success] ServiceName compute.geometry","SourceContext":"Topshelf.HostFactory"}}
{"Timestamp":"2022-01-26T19:10:22.9445001+00:00","Level":"Information","MessageTemplate":"{0} v{1}, .NET Framework v{2}","RenderedMessage":"\"Topshelf\" v\"4.1.0.172\", .NET Framework v\"4.0.30319.42000\"","Properties":{"0":"Topshelf","1":"4.1.0.172","2":"4.0.30319.42000","SourceContext":"Topshelf.HostConfigurators.HostConfiguratorImpl"}}
{"Timestamp":"2022-01-26T19:10:23.4288111+00:00","Level":"Information","MessageTemplate":"Launching RhinoCore library as {User}","RenderedMessage":"Launching RhinoCore library as \"RhinoComputeAppPool\"","Properties":{"User":"RhinoComputeAppPool"}}
{"Timestamp":"2022-01-26T19:10:28.3502845+00:00","Level":"Error","MessageTemplate":"An exception occurred","RenderedMessage":"An exception occurred","Exception":"System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.\r\n at Rhino.Runtime.InProcess.RhinoCore.InternalStartup(Int32 argc, String[] argv, StartupInfo& info, IntPtr hostWnd)\r\n at Rhino.Runtime.InProcess.RhinoCore..ctor(String[] args, WindowStyle windowStyle, IntPtr hostWnd)\r\n at compute.geometry.OwinSelfHost.Start(HostControl hctrl) in /home/runner/work/compute.rhino3d/compute.rhino3d/src/compute.geometry/Program.cs:line 106\r\n at Topshelf.Builders.ControlServiceBuilder`1.ControlServiceHandle.Start(HostControl hostControl)\r\n at Topshelf.Hosts.ConsoleRunHost.Run()","Properties":{"SourceContext":"Topshelf.Hosts.ConsoleRunHost"}}
{"Timestamp":"2022-01-26T19:21:51.9825098+00:00","Level":"Information","MessageTemplate":"Compute {ComputeVersion}, Rhino {RhinoVersion}","RenderedMessage":"Compute \"1.0.0.0\", Rhino \"7.14.22010.17001\"","Properties":{"ComputeVersion":"1.0.0.0","RhinoVersion":"7.14.22010.17001"}}
{"Timestamp":"2022-01-26T19:21:52.2167932+00:00","Level":"Information","MessageTemplate":"Configuration Result:\n{0}","RenderedMessage":"Configuration Result:\n\"[Success] Name compute.geometry\r\n[Success] DisplayName rhino.compute\r\n[Success] Description rhino.compute\r\n[Success] ServiceName compute.geometry\"","Properties":{"0":"[Success] Name compute.geometry\r\n[Success] DisplayName rhino.compute\r\n[Success] Description rhino.compute\r\n[Success] ServiceName compute.geometry","SourceContext":"Topshelf.HostFactory"}}
{"Timestamp":"2022-01-26T19:21:52.2323975+00:00","Level":"Information","MessageTemplate":"{0} v{1}, .NET Framework v{2}","RenderedMessage":"\"Topshelf\" v\"4.1.0.172\", .NET Framework v\"4.0.30319.42000\"","Properties":{"0":"Topshelf","1":"4.1.0.172","2":"4.0.30319.42000","SourceContext":"Topshelf.HostConfigurators.HostConfiguratorImpl"}}
{"Timestamp":"2022-01-26T19:21:52.4198325+00:00","Level":"Information","MessageTemplate":"Launching RhinoCore library as {User}","RenderedMessage":"Launching RhinoCore library as \"RhinoComputeAppPool\"","Properties":{"User":"RhinoComputeAppPool"}}
{"Timestamp":"2022-01-26T19:21:57.2303647+00:00","Level":"Error","MessageTemplate":"An exception occurred","RenderedMessage":"An exception occurred","Exception":"System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.\r\n at Rhino.Runtime.InProcess.RhinoCore.InternalStartup(Int32 argc, String[] argv, StartupInfo& info, IntPtr hostWnd)\r\n at Rhino.Runtime.InProcess.RhinoCore..ctor(String[] args, WindowStyle windowStyle, IntPtr hostWnd)\r\n at compute.geometry.OwinSelfHost.Start(HostControl hctrl) in /home/runner/work/compute.rhino3d/compute.rhino3d/src/compute.geometry/Program.cs:line 106\r\n at Topshelf.Builders.ControlServiceBuilder`1.ControlServiceHandle.Start(HostControl hostControl)\r\n at Topshelf.Hosts.ConsoleRunHost.Run()","Properties":{"SourceContext":"Topshelf.Hosts.ConsoleRunHost"}}
Here is the other one
{"Timestamp":"2022-01-27T08:05:53.4682430+00:00","Level":"Information","MessageTemplate":"Compute {ComputeVersion}, Rhino {RhinoVersion}","RenderedMessage":"Compute \"1.0.0.0\", Rhino \"7.14.22010.17001\"","Properties":{"ComputeVersion":"1.0.0.0","RhinoVersion":"7.14.22010.17001"}}
{"Timestamp":"2022-01-27T08:05:53.7026043+00:00","Level":"Information","MessageTemplate":"Configuration Result:\n{0}","RenderedMessage":"Configuration Result:\n\"[Success] Name compute.geometry\r\n[Success] DisplayName rhino.compute\r\n[Success] Description rhino.compute\r\n[Success] ServiceName compute.geometry\"","Properties":{"0":"[Success] Name compute.geometry\r\n[Success] DisplayName rhino.compute\r\n[Success] Description rhino.compute\r\n[Success] ServiceName compute.geometry","SourceContext":"Topshelf.HostFactory"}}
{"Timestamp":"2022-01-27T08:05:53.7026043+00:00","Level":"Information","MessageTemplate":"{0} v{1}, .NET Framework v{2}","RenderedMessage":"\"Topshelf\" v\"4.1.0.172\", .NET Framework v\"4.0.30319.42000\"","Properties":{"0":"Topshelf","1":"4.1.0.172","2":"4.0.30319.42000","SourceContext":"Topshelf.HostConfigurators.HostConfiguratorImpl"}}
{"Timestamp":"2022-01-27T08:05:53.9838597+00:00","Level":"Information","MessageTemplate":"Launching RhinoCore library as {User}","RenderedMessage":"Launching RhinoCore library as \"RhinoComputeAppPool\"","Properties":{"User":"RhinoComputeAppPool"}}
{"Timestamp":"2022-01-27T08:05:58.9682194+00:00","Level":"Error","MessageTemplate":"An exception occurred","RenderedMessage":"An exception occurred","Exception":"System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.\r\n at Rhino.Runtime.InProcess.RhinoCore.InternalStartup(Int32 argc, String[] argv, StartupInfo& info, IntPtr hostWnd)\r\n at Rhino.Runtime.InProcess.RhinoCore..ctor(String[] args, WindowStyle windowStyle, IntPtr hostWnd)\r\n at compute.geometry.OwinSelfHost.Start(HostControl hctrl) in /home/runner/work/compute.rhino3d/compute.rhino3d/src/compute.geometry/Program.cs:line 106\r\n at Topshelf.Builders.ControlServiceBuilder`1.ControlServiceHandle.Start(HostControl hostControl)\r\n at Topshelf.Hosts.ConsoleRunHost.Run()","Properties":{"SourceContext":"Topshelf.Hosts.ConsoleRunHost"}}
{"Timestamp":"2022-01-27T08:20:00.3125211+00:00","Level":"Information","MessageTemplate":"Compute {ComputeVersion}, Rhino {RhinoVersion}","RenderedMessage":"Compute \"1.0.0.0\", Rhino \"7.14.22010.17001\"","Properties":{"ComputeVersion":"1.0.0.0","RhinoVersion":"7.14.22010.17001"}}
{"Timestamp":"2022-01-27T08:20:00.5626478+00:00","Level":"Information","MessageTemplate":"Configuration Result:\n{0}","RenderedMessage":"Configuration Result:\n\"[Success] Name compute.geometry\r\n[Success] DisplayName rhino.compute\r\n[Success] Description rhino.compute\r\n[Success] ServiceName compute.geometry\"","Properties":{"0":"[Success] Name compute.geometry\r\n[Success] DisplayName rhino.compute\r\n[Success] Description rhino.compute\r\n[Success] ServiceName compute.geometry","SourceContext":"Topshelf.HostFactory"}}
{"Timestamp":"2022-01-27T08:20:00.5626478+00:00","Level":"Information","MessageTemplate":"{0} v{1}, .NET Framework v{2}","RenderedMessage":"\"Topshelf\" v\"4.1.0.172\", .NET Framework v\"4.0.30319.42000\"","Properties":{"0":"Topshelf","1":"4.1.0.172","2":"4.0.30319.42000","SourceContext":"Topshelf.HostConfigurators.HostConfiguratorImpl"}}
{"Timestamp":"2022-01-27T08:20:00.7502305+00:00","Level":"Information","MessageTemplate":"Launching RhinoCore library as {User}","RenderedMessage":"Launching RhinoCore library as \"RhinoComputeAppPool\"","Properties":{"User":"RhinoComputeAppPool"}}
{"Timestamp":"2022-01-27T08:20:06.3465767+00:00","Level":"Error","MessageTemplate":"An exception occurred","RenderedMessage":"An exception occurred","Exception":"System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.\r\n at Rhino.Runtime.InProcess.RhinoCore.InternalStartup(Int32 argc, String[] argv, StartupInfo& info, IntPtr hostWnd)\r\n at Rhino.Runtime.InProcess.RhinoCore..ctor(String[] args, WindowStyle windowStyle, IntPtr hostWnd)\r\n at compute.geometry.OwinSelfHost.Start(HostControl hctrl) in /home/runner/work/compute.rhino3d/compute.rhino3d/src/compute.geometry/Program.cs:line 106\r\n at Topshelf.Builders.ControlServiceBuilder`1.ControlServiceHandle.Start(HostControl hostControl)\r\n at Topshelf.Hosts.ConsoleRunHost.Run()","Properties":{"SourceContext":"Topshelf.Hosts.ConsoleRunHost"}}