Scheduled task do not work, Nopcommerce 4.0

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
Hi,

Scheduled tasks do not do anything, they only do the job if triggered manually (clicking at Run Now icon)
The emails are piling in the message queue and do not get sent out?

Has anybody had a similar problem? Any idea where the problem might be?
6 years ago
Yes I am also having the same problem. I think this issue is with 4.0
6 years ago
1. Do you have a valid URL specified in admin area > configuration > stores?
2. Do you see any errors in the log?
6 years ago
Thank you! It finally works, the problem was with the store name.

Primary web address is domain.com and store name had www.domain.com I deleted www and it works now.
5 years ago
Hi,

I am having the same problem. I can execute a task manually, but scheduling it does not work.
I have tried to change my site url from http://www.sitename.com to http://sitename.com and have tried both options without the http as well.

The log says the following:

Error while running the 'Sync product quantity with store stock' schedule task. Input string was not in a correct format.

System.FormatException: Input string was not in a correct format.
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt)
   at Nop.Services.Catalog.SyncProductStockQuantityTask.Execute()
   at Nop.Services.Tasks.Task.ExecuteTask()
   at Nop.Services.Tasks.Task.Execute(Boolean throwException, Boolean ensureRunOncePerPeriod)

As PageUrl it says: http://www.sitename.com/scheduletask/runtask

Should this pageUrl also contain the number?
When executing manually I know we are executing the task as follows:
https://www.sitename.com/Admin/ScheduleTask/RunNow/7

At first I would have thougth the error should be in my scheduled task but since running it manually is possible without an error, I believe something else is wrong.

Please help.
5 years ago
Additionally the following info. I intentionally created an error just to see the Page Url Value with a manual execution to check the log and there it says:

https://www.sitename.com/Admin/ScheduleTask/RunNow/7

So from what I am seeing is that the scheduled way, it ommits the admin in the url as well as the identifier of the task.

What is also odd is that the manual execution runs on https while the scheduled execution seems te run on http.
5 years ago
Can it be that it is culture related?
I am asking so because I have added logging.

When executing the task manually, does the task run under the same conditions as when it runs automatically?

Adding logging shows me it is clearly entering the execute method of the task.
So, I am almost sure it has something to do with who is running the task.

To be continued tonight...
5 years ago
I'm having the same error. I've tried everything is it's still not working

Store name: storename (tried with storename.com and www.storename.com)
store url: http://www.storename.com
secure url: https://www.storename.com  (tried with leaving it empty but enabled SSL and also tried with https://www.storename.com/admin).  Need help urgently since all schedules are not running.
I'm using Nopcommerce 4.0

Here are the error log
Log level  Error
Short message  The request was aborted: The connection was closed unexpectedly.
Full message  
System.Net.WebException: The request was aborted: The connection was closed unexpectedly.
   at System.Net.WebClient.UploadValues(Uri address, String method, NameValueCollection data)
   at System.Net.WebClient.UploadValues(String address, NameValueCollection data)
   at Nop.Services.Tasks.TaskThread.Run()
IP address  
Customer  Page URL  
Referrer URL  
Created on  5/10/2018 12:03:07 PM


And


Log level Error
Short message   Error 404. The requested page (/scheduletask/runtask) was not found
Full message  
IP address  209.132.252.10
Customer  [email protected]
Page URL        https://www.storename.com/scheduletask/runtask
Referrer URL  
Created on  5/10/2018 12:07:11 PM
5 years ago
Same problem here,

With me it occured when the shop was moved to another server with an SSL certificate.
Before that it worked fine.
Ik looks like it can not cope with an https site.
5 years ago
rnowee wrote:
Same problem here,

With me it occured when the shop was moved to another server with an SSL certificate.
Before that it worked fine.
Ik looks like it can not cope with an https site.
.

No, it's working fine with ssl.

look at this https://www.nopcommerce.com/boards/t/50563/scheduled-task-do-not-work-nopcommerce-40.aspx#199801.


may be issue with store url?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.