". Netcore learning". Netcore Add to Supervisor Daemon Auto-start error

Source: Internet
Author: User
Tags dotnet

Configure Supervisor

 [program:hellowebapp]command  =dotnet run  directory  =/home/python/dotnet/myweb/  MYWEBAPI  environment  =aspnetcore_ _environment=production user  =root stopsignal  =intautostart  =true   AutoRestart  =true   Startsecs  =1   Stderr_logfile  =/< Span style= "COLOR: #0000ff" >var /log/hellowebapp.err.log stdout_logfile  =/var /log/hellowebapp. out . Log 

When you start supervisor,

The error log is as follows:

[Email protected]:~/dotnet/myweb/mywebapi$ sudo service supervisor Stop[email protected]:~/dotnet/myweb/mywebapi$ sudo service supervisor start[email protected]:~/dotnet/myweb/mywebapi$cat/var/log/ HelloWebApp.err.logSystem.ArgumentNullException:Value cannot  benull. Parameter name:path1 at System.IO.Path.Combine (string path1, String path2) at Microsoft.DotNet.Configurer.CliFallback Folderpathcalculator.get_dotnetuserprofilefolderpath () at Microsoft.DotNet.Configurer.FirstTimeUseNoticeSentinel .. ctor (Clifallbackfolderpathcalculator clifallbackfolderpathcalculator) at Microsoft.DotNet.Cli.Program.ProcessArgs (string[] args, Itelemetry telemetryclient) at Microsoft.DotNet.Cli.Program.Main (string[] args) System.ArgumentNullException:Value cannot be null. Parameter name:path1 at System.IO.Path.Combine (string path1, String path2) at Microsoft.DotNet.Configurer.CliFallback Folderpathcalculator.get_dotnetuserprofilefolderpath () at Microsoft.DotNet.Configurer.FirstTimeUseNoticeSentinel .. ctor (Clifallbackfolderpathcalculator clifallbackfolderpathcalculator) at Microsoft.DotNet.Cli.Program.ProcessArgs (string[] args, Itelemetry telemetryclient) at Microsoft.DotNet.Cli.Program.Main (string[] args) 

Reason not yet found

". Netcore learning". Netcore Add to Supervisor Daemon Auto-start error

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.