Hi all!
SYSTEM:
Libreelec nightly-20220401-aa8df56 (H6.arm)
ASP,NET Runtime 6.0.1 addon
Trying to run a service with ASP.NET Core + Angular + MariaDB application. If I run it in the terminal via Putty, everything works fine. The site opens outside the network.
I.e. the application works fine.
Code
dotnet exec --runtimeconfig RadAlarm.Web.runtimeconfig.json --depsfile RadAlarm.Web.deps.json RadA
larm.Web.dll --urls=http://192.168.31.235:8088/
But when I close the terminal and closes the application session so I need to install the application as a service.
Found a sample service configuration in documentation and finalized it:
Code
[Unit]
Description=RadAlarm.Web - ASP.NET Core App based on radiation detector and ESP32 controller
[Service]
WorkingDirectory=/storage/project
ExecStart=/storage/.kodi/addons/tools.dotnet-runtime/bin/dotnet exec --runtimeconfig RadAlarm.Web.runtimeconfig.json --depsfile RadAlarm.Web.deps.json RadAlarm.Web.dll --urls=http://192.168.31.235:8088/
Restart=always
RestartSec=10
SyslogIdentifier=RadAlarmLog
User=root
KillSignal=SIGINT
Environment=ASPNETCORE_ENVIRONMENT=Development
Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false
Environment=HOME=/root
[Install]
WantedBy=multi-user.target
Display More
the service will not start with this configuration
The following error is written in the logs:
Code
Jun 02 14:22:25 LibreELEC RadAlarmLog[24922]: Process terminated. Couldn't find a valid ICU package installed on the system. Please install libicu using your package manager and try again. A
Jun 02 14:22:25 LibreELEC RadAlarmLog[24922]: at System.Environment.FailFast(System.String)
Jun 02 14:22:25 LibreELEC RadAlarmLog[24922]: at System.Globalization.GlobalizationMode+Settings..cctor()
Jun 02 14:22:25 LibreELEC RadAlarmLog[24922]: at System.Globalization.CultureData.CreateCultureWithInvariantData()
Jun 02 14:22:25 LibreELEC RadAlarmLog[24922]: at System.Globalization.CultureData.get_Invariant()
Jun 02 14:22:25 LibreELEC RadAlarmLog[24922]: at System.Globalization.CultureInfo..cctor()
Jun 02 14:22:25 LibreELEC RadAlarmLog[24922]: at System.Globalization.CultureInfo.get_CachedCulturesByName()
Jun 02 14:22:25 LibreELEC RadAlarmLog[24922]: at System.Globalization.CultureInfo.GetCultureInfo(System.String)
Jun 02 14:22:25 LibreELEC RadAlarmLog[24922]: at System.Reflection.RuntimeAssembly.GetLocale()
Jun 02 14:22:25 LibreELEC RadAlarmLog[24922]: at System.Reflection.RuntimeAssembly.GetName(Boolean)
Jun 02 14:22:25 LibreELEC RadAlarmLog[24922]: at System.Reflection.Assembly.GetName()
Display More
Have any idea how to fix this ?
Thx before for any help!
Ugh...
сlose this thread
Problem solved
added a line
Hope this help somebody too )