Close

Application is shutting down randmly

cesare.marasco
26 days ago
#21366 Quote
Avatar
  • 4
Hi,
I installed Urban theme but sometimes and randmly NopCommerce is shutdown automatically. Looking inside verbose log i saw below log details

..
..
..
info: System.Net.Http.HttpClient.default.ClientHandler[101]

      Received HTTP response after 120.1099ms - MethodNotAllowed

info: System.Net.Http.HttpClient.default.LogicalHandler[101]

      End processing HTTP request after 120.3193ms - MethodNotAllowed

info: System.Net.Http.HttpClient.default.LogicalHandler[100]

      Start processing HTTP request POST http://themes.urban2.nop-templates.com/scheduletask/runtask

info: System.Net.Http.HttpClient.default.ClientHandler[100]

      Sending HTTP request POST http://themes.urban2.nop-templates.com/scheduletask/runtask

info: System.Net.Http.HttpClient.default.ClientHandler[101]

      Received HTTP response after 372.3133ms - MethodNotAllowed

info: System.Net.Http.HttpClient.default.LogicalHandler[101]

      End processing HTTP request after 372.5149ms - MethodNotAllowed

info: System.Net.Http.HttpClient.default.LogicalHandler[100]

      Start processing HTTP request POST http://themes.urban2.nop-templates.com/scheduletask/runtask

info: System.Net.Http.HttpClient.default.ClientHandler[100]

      Sending HTTP request POST http://themes.urban2.nop-templates.com/scheduletask/runtask

info: System.Net.Http.HttpClient.default.ClientHandler[101]

      Received HTTP response after 103.35ms - MethodNotAllowed

info: System.Net.Http.HttpClient.default.LogicalHandler[101]

      End processing HTTP request after 104.8147ms - MethodNotAllowed

info: System.Net.Http.HttpClient.default.LogicalHandler[100]

      Start processing HTTP request POST http://themes.urban2.nop-templates.com/scheduletask/runtask

info: System.Net.Http.HttpClient.default.ClientHandler[100]

      Sending HTTP request POST http://themes.urban2.nop-templates.com/scheduletask/runtask

info: System.Net.Http.HttpClient.default.ClientHandler[101]

      Received HTTP response after 257.3431ms - MethodNotAllowed

info: System.Net.Http.HttpClient.default.LogicalHandler[101]

      End processing HTTP request after 257.9611ms - MethodNotAllowed

info: System.Net.Http.HttpClient.default.LogicalHandler[100]

      Start processing HTTP request POST http://themes.urban2.nop-templates.com/scheduletask/runtask

info: System.Net.Http.HttpClient.default.ClientHandler[100]

      Sending HTTP request POST http://themes.urban2.nop-templates.com/scheduletask/runtask

info: System.Net.Http.HttpClient.default.ClientHandler[101]

      Received HTTP response after 120.3026ms - MethodNotAllowed

info: System.Net.Http.HttpClient.default.LogicalHandler[101]

      End processing HTTP request after 121.1662ms - MethodNotAllowed

info: Microsoft.Hosting.Lifetime[0]

      Application is shutting down...


As you can see application try to execute many times a strange http post



info: System.Net.Http.HttpClient.default.LogicalHandler[100]

      Start processing HTTP request POST http://themes.urban2.nop-templates.com/scheduletask/runtask

info: System.Net.Http.HttpClient.default.ClientHandler[100]

      Sending HTTP request POST http://themes.urban2.nop-templates.com/scheduletask/runtask

info: System.Net.Http.HttpClient.default.ClientHandler[101]

      Received HTTP response after 120.3026ms - MethodNotAllowed

info: System.Net.Http.HttpClient.default.LogicalHandler[101]

      End processing HTTP request after 121.1662ms - MethodNotAllowed


And this could be responsable of application shutdow. WWhy are executed those post action many times and how can i disable this behaviour ?

Thanks in advance

Boyko
26 days ago
#21367 Quote
Avatar
  • Moderator
  • 1511
Hi,

I guess you have used the demo database for your store, right?
The errors you have are from the Scheduled Tasks in nopCommerce.
They make requests to the Store and your store URL seems to be set to the urban theme demo instead of your real Store URL.
Please update the store url from the Stores in the Administration of nopCommerce.

These errors are not related to any shut down of the website.

p.s: You should not use the Demo database for a production website.
Regards,
Boyko Stanev
Nop-Templates.com
get coupon code