Yes, that's right. The cron plugin hasn't been designed to work with this setup. It expects a web root relative path passed to cronsetdirectory(). With multiple sites deployed under the same openbd, that makes the choice ambiguous.

On 10/03/2014 16:21, Aaron J. White wrote:
Hey Mini,
Without any additional experience with the plugin I would assume you are having issues because it's meant to run under a web app with its own OpenBD instance. I know I there used to be some issue with the cfscheduler as well when run under an OpenBD instance with multiple sites and tomcat. Hopefully someone can confirm or give more direction soon.

On Monday, March 10, 2014 10:48:58 AM UTC-5, MiniFireDragon wrote:

      * The documentation says you can set the directory where the
        cron plugin works by using the function CronSetDirectory().
        Have you tried this? Try using this function and choose a
        directory you know you have access to within the web
        application. You mentioned you found the folder within another
        web app folder. You likely have to call CronEnable from the
        same app that the Cron directory is under.

    Yes, I ran the CronSetDirectory() and then did a systemwide search
    for the filename.   I found it in another site's root directory,
    and I am not quite sure why it picked that particular place to put
    them.

    When I ran CronEnable(), all it replies with is YES. No matter
    what I put in the ().  So I can't seem to turn it on or off.  And
    further more it doesn't run anything in those folders it created.



      * How is your OpenBD setup? Do you have multiple sites per
        OpenBd instance or does each of your web apps have its own
        OpenBD instance. From the way the documentation is written is
        seems like the Cron plugin assumes each web app has its own
        OpenBD instance.

    I have 1 openbd, multiple sites.  I followed the directions (for
    the most part) of the attached file. So all I do is edit
    server.xml in tomcat and ad another site.


      * Finally, if your tasks create output you can view the output
        by checking in the /WEB-INF/bluedragon/work/ directory. Maybe
        this will help you troubleshoot more

    My task is to run a script every 5 minutes that checks for a file,
    adds what's in the file to the database, then deletes it. No
    output needed.  To get around this for now, I launched the
    Administrator and used the cfschedule plugin to do it.





    On 3/10/2014 10:23 AM, Aaron J. White wrote:
    Hello Minifire,

    I haven't used the cron plugin myself, but since I'm not sure if
    you'll receive any help anytime soon I do have a suggestion.

      * The documentation says you can set the directory where the
        cron plugin works by using the function CronSetDirectory().
        Have you tried this? Try using this function and choose a
        directory you know you have access to within the web
        application. You mentioned you found the folder within
        another web app folder. You likely have to call CronEnable
        from the same app that the Cron directory is under.
      * How is your OpenBD setup? Do you have multiple sites per
        OpenBd instance or does each of your web apps have its own
        OpenBD instance. From the way the documentation is written is
        seems like the Cron plugin assumes each web app has its own
        OpenBD instance.
      * Finally, if your tasks create output you can view the output
        by checking in the /WEB-INF/bluedragon/work/ directory. Maybe
        this will help you troubleshoot more.

    Hope that is helpful.

    Aaron J. White

    On Monday, March 10, 2014 2:00:57 AM UTC-5, MiniFireDragon wrote:

        Now I have a second problem, it won't let me delete anything
        I put in
        the folder, nor will it let me delete the folder it created.
         As well as
        I can not stop the Crontab from running.

        I have tried:
        <cfoutput>
                 #Cronenable( enable = false )#
             </cfoutput>
        <cfset error = Croneable(false) />
        <cfset error = Croneable('false') />

        On 3/10/2014 1:54 AM, Ernest McCloskey wrote:
        > Ok, I found my directory located in another website folder.
         I guess
        > my next question is how do I set it to be in the current
        website folder?
        >
        > On 3/10/2014 1:37 AM, Ernest McCloskey wrote:
        >> I am searching hi and low on my server for these cron.d
        directories
        >> to appear.
        >>
        >> I ran:
        >>
        >> <cfset CronSetDirectory("/cron.d")>
        >>     <cfoutput>
        >>         #Cronenable( enable = true )#
        >>     </cfoutput>
        >>
        >> in a cfm file on the server, and all I can find is:
        >>
        >> /opt/openbd/bluedragon/work/temp/plugin_cfcron/ all the
        setup folders.
        >>
        >> When I drop files into these folders, nothing happens.
         Where else do
        >> I look?
        >>
        >
        >


-- -- online documentation: http://openbd.org/manual/
    http://groups.google.com/group/openbd?hl=en
    <http://groups.google.com/group/openbd?hl=en>

    ---
    You received this message because you are subscribed to the
    Google Groups "Open BlueDragon" group.
    To unsubscribe from this group and stop receiving emails from it,
    send an email to [email protected] <javascript:>.
    For more options, visit https://groups.google.com/d/optout
    <https://groups.google.com/d/optout>.

--
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en

---
You received this message because you are subscribed to the Google Groups "Open BlueDragon" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.

--
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en

--- You received this message because you are subscribed to the Google Groups "Open BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to