• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Scheduled task no longer running

Explorer ,
Jan 13, 2020 Jan 13, 2020

Copy link to clipboard

Copied

I've had a scheduled task running every minute since last June, it's run fine.  Recently it stopped running.  I have a lot of other scheduled tasks that are still running fine.

 

If I visit the page I want the task to visit, it runs fine.  The task Last Run column claims it ran.  If I click the Run Scheduled Task button I get the success message, but it doesn't seem to be going to the page to trigger the event I need it to.

 

I'm on CF10.

 

Any thought on why this would happen?

 

Thanks

 

ColdFusion Administrator.png

TOPICS
Server administration

Views

699

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Jan 13, 2020 Jan 13, 2020

Nevermind, Charlie solved it.  Thanks Charlie!

https://community.adobe.com/t5/coldfusion/coldfusion-10-scheduled-task/td-p/9978004

Our certificate was updated around the same time the problem started.  I changed it to http, it ran.

Votes

Translate

Translate
Explorer ,
Jan 13, 2020 Jan 13, 2020

Copy link to clipboard

Copied

Nevermind, Charlie solved it.  Thanks Charlie!

https://community.adobe.com/t5/coldfusion/coldfusion-10-scheduled-task/td-p/9978004

Our certificate was updated around the same time the problem started.  I changed it to http, it ran.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 13, 2020 Jan 13, 2020

Copy link to clipboard

Copied

Good to hear, and glad to have helped. It would seem the others are not https urls, or not to the same server, and that would have been my first question here.

 

For future readers who find this and that's not their problem, I would have then asked what proof you had of whether it was running or not, such as if you had used the feature to log task output and indeed to log task execution.

 

If both were confirmed, I then would have asked if you had any way to confirm the called url really ran, assuming it ran in an environment you controlled. Could you using web server logs or monitoring? Or by adding logging to the code in the url being called.

 

But glad it's working for you. 


/Charlie (troubleshooter, carehart.org)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 13, 2020 Jan 13, 2020

Copy link to clipboard

Copied

I was not logging if it ran, simply relying on the output in the CF Administrator Scheduled Tasks list.

This is an old site, most of the tasks were set up years ago. 

It's an intranet in a very locked-down environment, so I don't worry much about security.

Many of the tasks are very old and had http URLs, I just updated all of the others.

This one was very noticeable because the task was logging people out of a page they abandoned and others were not able to get in, it's a one user at a time page.

 

Thanks again.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 13, 2020 Jan 13, 2020

Copy link to clipboard

Copied

OK, I seem to be having other issues.  Could it be related to the security certificate too?

The image below is from a PDF I generate, the red x's are checkboxes.  They all load red in https, but function correctly (checked if indicated) using http.

On another report an image on the server that is embedded also shows up as a red x unless I pull the report through http.

 

CF.png

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 13, 2020 Jan 13, 2020

Copy link to clipboard

Copied

Is the PDF being generated with CFDOCUMENT? If so, is it using the localurl attribute? You can read more about that (why you should or perhaps whether you should not) here:

 

https://www.carehart.org/blog/client/index.cfm/2011/11/19/perf_fix_via_cfdocument_localurl_attribute

 

If that does not solve things for you, or you can't do it, then take the image that you are finding fails, and put a call to it in a cfhttp, and output the result of that (you can use cfcontent to actually "show" the image if you want, and you may want to use getasbinary on the cfhttp). 

 

But my point really is just to see not so much "what the image looks like", but just whether instead you get an error from the cfhttp call. . Really, you can just do a cfdump of the cfhttp scope.

 

If you do get an error, then the question is why you do. If you can't figure it out, you may want to indicate how the URL for the image differs from the url for the page creating the PDF.

 

BTW, if you may just read this and not try it, and may want to say that "the image in the PDF is local and does not have a "url" to get to it" (because you just refer to it as a relative path, like image src="someimage.jpg"), then that is ESPECIALLY why you want to use the localurl attribute for cfdocument. Otherwise, the problem is that CF DOES try to convert the call to the image TO a URL (whatever is the URL to the page doing the cfdocument). It does that FOR you, and that is what is failing. So the localurl attribute tells CF NOT to do that.

 

So again, if that does NOT fix the problem, then try to do the cfhttp to the image's URL (whatever it is or would be) and see what's happening (do a cfdump of the cfhttp scope).


/Charlie (troubleshooter, carehart.org)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 14, 2020 Jan 14, 2020

Copy link to clipboard

Copied

I added  localUrl="true" to both reports and the image displays correctly on the first report and the red x's in the checkboxes wente away.

 

Thank you!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 14, 2020 Jan 14, 2020

Copy link to clipboard

Copied

Great to hear, and glad to have helped. And while I appreciate your marking it as a correct answer, that may confuse future readers of this thread, as it's not the answer to your original question. 🙂 It was instead an answer to your second one here.

 

I'll go ahead and mark your first reply here (the one with the link to where you found my answer) as the "answer", as that is indeed the better choice for future readers of the question. 🙂


/Charlie (troubleshooter, carehart.org)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 14, 2020 Jan 14, 2020

Copy link to clipboard

Copied

Interesting. It seems that my marking your first response as "correct answer" has merely added to that an icon suggesting it's a correct answer, but it did not change what is listed at the top as "the" correct answer. I gather that since you created the post, what YOU mark as the answer gets that honor (and understandably so).  I'll leave you to consider whether to change that, then.


/Charlie (troubleshooter, carehart.org)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 14, 2020 Jan 14, 2020

Copy link to clipboard

Copied

Is it correct now?  I unmarked my selection, I guess you solved so many issues I got a little silly.  🙂

Again, thank you

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 14, 2020 Jan 14, 2020

Copy link to clipboard

Copied

LATEST

Thanks, all good now. And yep, it can indeed be a bit challenging when there are multiple questions--as if multiple answers weren't challening enough sometimes for readers. 🙂


/Charlie (troubleshooter, carehart.org)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation