Solved

Schedule is not working. Any idea?

Posted on 2000-03-22
8
158 Views
Last Modified: 2013-12-24
I have the following schedule script but this is not working properly. Though the MailThis.cfm template is working fine independly. Moreover, when I execute the schedule script manually it does work properly. It sends an email at the address. Can anybody tell me what's wrong I am doing?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
      <title>Untitled</title>
</head>

<body>


<cfschedule action="UPDATE"
task="MailThis"  
operation="HTTPRequest"
url="http://127.0.0.1/training/MailThis.cfm"
startdate="3/22/00"
starttime="1:25 PM"
interval="60"
requesttimeout="600"
resolveurl="Yes"
publish="No">

</body>
</html>

~~~~~~~
MailThis.cfm
~~~~~~~

<cfmail to="rkmails@yahoo.com" subject="Test Message #Now()#" from="rkchopra@nettaxi.com" server="ndf.vsnl.net.in" port="25">

This is a test message.

</cfmail>
~~~~~~~~~~~

Regards,
Rajesh
0
Comment
Question by:rkchopra
8 Comments
 
LVL 2

Expert Comment

by:dlewis9
ID: 2645242
Have you looked at the logs to see if anything is happening?  schedule.log should show scheduled events starting and finishing..and application.log should show if there were any errors.

Also, my 4.0 reference manual states (probably incorrectly) that you should specify the start time in seconds. (??)  You might try full miltary time instead of the AM/PM time..(13:25:00) i find that to work better when manually scheduling an event through the administrator..

just some thoughts..
0
 
LVL 5

Expert Comment

by:nathans
ID: 2645783
I agree I would go to Schedule it in the administrator menu.
0
 

Author Comment

by:rkchopra
ID: 2647701
After running this scheduling template, it creates a shedule in the Admin Sheduling menu also. But I could not find anything wrong with that.

In the meantime, i have also one more problem, it is not creating any log file in c:\cfusion\logs (as stated by you and as well as Cold Fusion Documentation). Also, it is not creating any other log for mailing log. Though I have selected "Save the content of all email messages to a log file." option in the mail logging menu. But it is updating server log/Application.log and webserver.log properly.

Any idea?
0
 
LVL 2

Expert Comment

by:dlewis9
ID: 2650529
The mail messages should be stored in c:\cfusion\mail\log\messages.log

No scheduler.log file?  You should have entries like this for each time a scheduled job runs:

"Information","TID=304","03/23/00","12:55:43","Scheduled action MailThis, template http://develop.uniden.com/dev/MailThis.cfm submission initiated."
"Information","TID=304","03/23/00","12:55:43","Scheduled action MailThis, template http://develop.uniden.com/dev/MailThis.cfm submitted successfully."

I tried your code on my system and it worked great..

Has the server been rebooted lately?  You might try using a different task name and see if that does anything..I know when you make a change to a scheduled job, you have to restart the services for that to take effect..

What operating system/version of CF are you running?  Are the CF services running under the system account?

Did the scheduler work correctly when you keyed in the task manually?

Just trying to come up with some ideas since the code is fine..harder to troubleshoot the server..
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

Author Comment

by:rkchopra
ID: 2653891
Thanks for your efforts. I could find the log files into the your mentioned directory. It has record of all the messages has sent by me using Cold Fusion Server. I still there is not Scheduler.log file.

I am using Windows 98/ Personal Web Server / Cold Fusion Server 4.0 (enterprise edition). Is there any problem with CF Server regarding y2k? I went to allaire.com and tried to find out the answer... they recommend to upgrade the server to 4.01. I am downloading the server and it may take some time 'cause it is 35 MB. By the way, which versions of the software/server you are using. As I am testing these template on my local server, there is not a prob. of rebooting the system. I did that also but all in vain.

I verified the mail server using Admin of Cold Fusion server also and it is working properly. Did try to rename the shedule, no success. It did work when I run it Mannually.

Any other suggestion?
0
 

Accepted Solution

by:
Bill_James earned 100 total points
ID: 2657817
You will need CF Server 4.01 update.  One of the Y2K bugs is the scheduler date storage. The scheduler does not work properly without the update.  The update sets it to a 4 digit date.  If you look in your logs you will see that the date says 03/02/100 or 03/02/00.  after the update your scheduled tasks will work and the dates will be 4 digit.
0
 

Author Comment

by:rkchopra
ID: 2659520
Thank you very much for your help. I have started to download the CF 4.01 version. Hope this will work properly after this.

Thanks once again and i am giving you the points also.

Rajesh
0
 
LVL 2

Expert Comment

by:dlewis9
ID: 2662349
Yeah -- I think all my servers are at least on 4.01..didn't know it was a y2k issue..!
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now