Error: Keep alive' schedule task

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hace 11 años
In the log the url is showing the stores base url which should respond fine... as in its returning "200 OK"
Hace 11 años
I found it. The keepalivetask.cs file seems to be the culprit.
I changed the part:
string url = _storeContext.CurrentStore.Url + "keepalive";
to
string url = _storeContext.CurrentStore.Url;
recompiled, then re-started the website.
Problem disappeared.

There is no route for the path "keepalive", hence the reason for the 404
Type in your url + "/keepalive" and you'll get a page not found
Hace 11 años
I fixed mine, Under stores I removed the "http://www" before the store url. This gives a warning in the maintenance area but it can safely be ignored.
Hace 11 años
Solved for me: It was a website hosting config problem. Hosted in Arvixe.com.
Hace 10 años
Me too. This error happened in version 3.00.
There is no such error in 2.80, but after update my website, it comes.
Just guess, is this one caused by multi-store feature?
Hace 10 años
Yeah happening for me too, I've tried all variations of http://www.mydomain.com, http://mydomain.com, www.mydomain.com & mydomain.com but no luck.

I've debugged it locally but doesn't really give me too much information.

I've even tried to navigate myself to http://www.mydomain.com/keepalive and I'm getting the 404. Is this expected?
Hace 10 años
Hi

Yep I am having the same problem, I tried http://www.storeurl.com/keepalive on a development version 2.80 it works fine, however on version 3.00 even with just 1 store I get the 404 page not found.

I too located the Keep alive code, and made the same modification as below

string url = _storeContext.CurrentStore.Url + "keepalive";
to
string url = _storeContext.CurrentStore.Url;

correct me if I am wrong, will the above code change return the homepage ?, as the Keepalive controller will not be called, the keepalive controller just returns text "I am alive", where as the modifed code will return the home page along with all the bandwidth consumpution that entails.
Hace 10 años
I wound up doing the same thing luckily most hosts wont count it as using bandwidth since the request is coming from the originating ip address. I'm not 100% sure but iis might not even send it to the adapter but instead just loop it back so there's no actual bandwidth. Mind you that's speculation on my part but sensible.
Hace 10 años
I confirm this issue. Although keep alive schedule task worked as it should (a site was alive), it generated error records in system log.

Fixed. Please see changeset b0af96652767.

P.S. If you're using "no source code" version, then just disable this schedule task (admin area > system > schedule tasks) and use some third-party service such as pingdom
Hace 10 años
I can not find which files I need to change in my version 3.0 no source

can you help me please?

Tanks
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.