Skip to main content

Troubleshooting guide

This chapter shows the hint of troubleshooting if you face trouble(s) when you use Carbon Aware SDK.

System.IO.IOException caused by number of inotify instances

You could see System.IO.IOException caused by number of inotify instances when you run Carbon Aware SDK on Linux.

.NET runtime uses inotify to watch updating configuration file (e.g. appsettings.json). See Microsoft Lean and discussion on GitHub for details.

It is useful for debugging, but it would not be needed in most of production system. So you can disable this feature via environment variable.

You need to set DOTNET_HOSTBUILDER__RELOADCONFIGONCHANGE=false to avoid the problem. You can set this in values.yaml as following when you deploy WebAPI via Helm chart.

env:
- name: DOTNET_HOSTBUILDER__RELOADCONFIGONCHANGE
value: "false"