Is application working if you access it without nginx? Logs say that it crashes everytime. Did you make any changes in original todos application? If yes, can you run original Todos and see if the crash is happens again.
So, need to check the following:
Try to run application without nginx. Check if it crashes with SIGSEGV.
If application crashes without nginx try to run original Todos application. Check if it crashes with SIGSEGV.
If it does crashes please say which environment (OS, .NET Core version, docker container or host) you use. If you try to run application in non-privileged docker container this setting might help
OK, as I see it crashes on calling /todos service. Do you have redis installed on this machine? Which version? is it accessible via telnet localhost 6379 command?
Did you try to add IPAddressExtensions.AccessNetworkInterface = false; at the startup of the program? Does it affect on the code running on your machine?
Ah, it’s not pushed to nuget yet. Should be pushed soon, but we can check before release will be available is this a case of your error or something another. Try to create new .NET Core app with dotnet new and execute following code.
using System;
using System.Net.NetworkInformation;
public class Program
{
public static void Main()
{
try
{
NetworkInterface.GetAllNetworkInterfaces();
}
catch
{
Console.WriteLine("caught");
}
}
}
If you will see Caught in the console output, then this is not your case and need to find a way to isolate the issue. If you see exception without Caugth word then the setting mentioned above should help in your case (when 1.0.24 version will be deployed on nuget)
The latest ServiceStack packages v1.0.24 are deployed on Nuget, so you can use it and set IPAddressExtensions.AccessNetworkInterface = false; at the start to avoid this .NET Core error. By the way, it should be fixed in .NET Core 1.1 release.