Scheduled Tasks not being invoked!

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 years ago
I have NopCommerce 4.3 running on Mochahost shared hosting.

All scheduled tasks that are enabled are not being invoked automatically, and will run successfully upon clicking "Run Now".

I can see the email messages in the queue and once I click "Run Now" for the send emails task, the emails will be sent successfully.

I tried hardly to find a real documentation about the scheduled tasks, how are they installed, how do they get invoked? i guess i got bits and pieces from the various forum posts, that each scheduled task is a new thread running in the background that was created when the task was created! I'm not sure if that is it or there is something else to know.

I contacted Mochahost support to check if multi-threading is allowed on my host, they said yes and that they want more details about the task to replicate the error, unfortunately, i don't have any more information.

is there any real help to that part of NopCommerce?
3 years ago
Check in store edit page. Make sure your site url and store url are identical.
3 years ago
Its working fine now after i made Store name and Store URL 100% identical!

What is the relation though? is there any documentation on that issue?
3 years ago
I didn’t see any user manual like that. But you can find lot of similar posts on forum.
2 years ago
Guys, does anyone have the answer here?
I am facing same error badly need help
2 years ago
Please try adding https before the URL. If only that trick doesn't work for you can check the log from System/Log. Moreover, this discussion may help you.https://www.nopcommerce.com/en/boards/topic/50596/nop-4-scheduletasks-not-running-automatically
2 years ago
I have the same problem.  One year worked fine. Before 2 days stop working without any reason. No errors in logs. Checked site name and store name they are identical. When I pressing https://www.xxxxxxxx.eu/Admin/ScheduleTask/RunNow/1 it sends emails perfectly. But scheduler doesn't work.
Some info from the log:
info: System.Net.Http.HttpClient.default.ClientHandler[100]
      Sending HTTP request POST https://www.jsm.lt/scheduletask/runtask
info: System.Net.Http.HttpClient.default.ClientHandler[101]
      Received HTTP response after 111.0211ms - ServiceUnavailable

2022-04-13 00:02:49 89.40.8.91 POST /scheduletask/runtask - 443 - 162.158.103.193 - - 204 0 0 17

Please help.
2 years ago
How are you hosted / firewalls?  Add the server's ip addresses to your ip whitelist
2 years ago
Go to  
System - System Information - HTTP_HOST
There you will find what you need to fill in as  https://store.url/
2 years ago
You also have to update the dbo_ScheduleTask table, Type field
Delete the  , Nop.services  part from   Nop.Services.Directory.UpdateExchangeRateTask, Nop.Services
So it become  
Nop.Services.Directory.UpdateExchangeRateTask
Nop.Services.Logging.ClearLogTask
Nop.Services.Caching.ClearCacheTask
Nop.Services.Customers.DeleteGuestsTask
Nop.Services.Common.KeepAliveTask
Nop.Services.Messages.QueuedMessagesSendTask

These are OK already:
Nop.Plugin.Misc.Sendinblue.Services.SynchronizationTask
Nop.Plugin.Tax.Avalara.Services.DownloadTaxRatesTask
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.