6 Replies Latest reply on Feb 2, 2007 1:50 PM by tmschmitt

    PLEASE HELP!!! I'M GOING TO BE FIRED

    DettCom
      PLease help.

      I run a cfm page every 2 minutes to check a RSS feed for certain parameters and if they are found, it will send out an email.

      The problem is that nothing happens when the scheduled tasks are run and I know the conditions are there. However, when I enter the URL of the task in a browser and run it manually, it works.

      Does anyone have any idea??? Thanks
        • 1. Re: PLEASE HELP!!! I'M GOING TO BE FIRED
          Level 7
          The problem is that nothing happens when the scheduled tasks are run and
          I know the conditions are there. However, when I enter the URL of the
          task in a browser and run it manually, it works.

          The first thing I check when this happens is user permission. When you
          enter the URL in the browser it uses YOUR permissions to access the
          resource. When the scheduled task runs, it runs with a built in browser
          that uses the LOG ON AS user account defined in the services panel.
          (This is all windows based, I do not have knowledge how this works on
          other OS systems). By default this account is "localSystem" which has
          NO permissions to resources not on the local system, by default.

          To find out what is happening with your Scheduled Task, check the
          "Publish" parameter on the Schedule Task definition form, and provide a
          path in the "File" parameter. This will store a copy of exactly what
          the scheduled task receives when it is run. Run the task and see what
          is in this file.

          • 2. Re: PLEASE HELP!!! I'M GOING TO BE FIRED
            MichaelSJudd Level 1
            Please post exactly the settings you have for the task.

            Also, the extension IS .cfm, right? :-)(Just checking)

            Also, what CF version, etc.
            • 3. Re: PLEASE HELP!!! I'M GOING TO BE FIRED
              DettCom Level 1
              thanks for responding. Yes it is a .cfm page.

              We're running Windows 2000 Server with ColdFusion 5.

              Thanks

              I copied the page here:




              Task Name
              Duration Start Date End Date (optional)

              Schedule to Run Note: The Scheduler checks for newly scheduled tasks every 1 minutes.

              One-Time at
              Schedules to run the task once on the Start Date and scheduled time. The date and time must be set at least 15 minutes in the future in order for the task to execute successfully.

              Recurring DailyWeeklyMonthly at
              Schedules tasks which occur once every day, week or month for the duration of the task. The scheduling begins on Start Date and occurs every scheduled day at the specified time.

              Daily every minutes, from to
              Schedules the task to repeat multiple times every day during a specific time period. Specify the daily start and end times. The duration of the scheduling of this task is still governed by Start and End Date.

              Operation HTTPRequest Port

              URL
              (add a trailing slash for domain-level links, such as http://www.macromedia.com/)
              Username
              Password
              Request Timeout seconds

              Proxy Server
              Proxy Port
              Publish Save output to a file

              Path
              File
              Resolve URL Resolve internal URLs so that links remain intact

              • 4. Re: PLEASE HELP!!! I'M GOING TO BE FIRED
                MichaelSJudd Level 1
                Which of the schedule types list in your post did you choose?

                Daily every xx minutes would be fine, BUT:

                It's easy to get into trouble if the "start time" and "end time" are not "logical".

                Also, does the task show as being run in the log files? Are there any errors in the log?
                • 5. Re: PLEASE HELP!!! I'M GOING TO BE FIRED
                  DettCom Level 1
                  I have the task running daily every 4 minutes.

                  Times I have as 01:00:00 to 23:59:00

                  I show the logs noting 200 Success. No errors
                  • 6. Re: PLEASE HELP!!! I'M GOING TO BE FIRED
                    tmschmitt Level 1
                    A couple of things to check:
                    -Have you checked your web server logs?
                    -Are you saving the output of the scheduled page to a file? I typically have a few strategic cfoutputs in a scheduled page and write it to a file. This allows you to view the results of the page. You could always create a log, but this is easy and built in to the scheduler.