× Warning! This forum is in archival status. New contributions may not work.
[campsite-support] error Could not save cron job files
  • Hi,

    I got stucked with a Campsite installation on one of my servers when it came
    *the* "automated tasks".

    It says:
    *Error*: *Could* *not* *save* *cron* *job* *files*. *Could* *not* *run* *the
    * *crontab* *executable*.

    I checked *the* permission, *they* should be fine. In *the* beginning of
    *the* installation all *the* requirements were filled as well.

    Anything that I *could* pass for server people to fix?

    Yours,


    --
    Alaa Anabtawi
  • 10 Comments sorted by
  • Hi,
    What Linux flavor are your server running ?


    On Wed, Jan 20, 2010 at 9:52 AM, Alaa Anabtawi wrote:
    > Hi,
    >
    > I got stucked with a Campsite installation on one of my servers when it came
    > the "automated tasks".
    >
    > It says:
    > Error: Could not save cron job files. Could not run the crontab executable.
    >
    > I checked the permission, they should be fine. In the beginning of
    > the installation all the requirements were filled as well.
    >
    > Anything that I could pass for server people to fix?
    >
    > Yours,
    >
    >
    > --
    > Alaa Anabtawi
    >



    --
    /holman
  • Linux 2.6.18-028stab064.8 #1 SMP Fri Nov 6 11:28:25 MSK 2009 x86_64 x86_64
    x86_64 GNU/Linux



    On Wed, Jan 20, 2010 at 5:05 PM, Holman Romero wrote:

    > Hi,
    > What Linux flavor are your server running ?
    >
    >
    > On Wed, Jan 20, 2010 at 9:52 AM, Alaa Anabtawi wrote:
    > > Hi,
    > >
    > > I got stucked with a Campsite installation on one of my servers when it
    > came
    > > the "automated tasks".
    > >
    > > It says:
    > > Error: Could not save cron job files. Could not run the crontab
    > executable.
    > >
    > > I checked the permission, they should be fine. In the beginning of
    > > the installation all the requirements were filled as well.
    > >
    > > Anything that I could pass for server people to fix?
    > >
    > > Yours,
    > >
    > >
    > > --
    > > Alaa Anabtawi
    > >
    >
    >
    >
    > --
    > /holman
    >



    --
    Alaa Anabtawi
  • Hum... it doesn't tell me exactly what is your Linux distro, sorry. I
    was asking you because it might be some Debian/Ubuntu specific code in
    our installer causing the failure.

    Anyway, what you need to do is to make sure the system user running
    Apache is able to create/write its own crontab file.


    On Wed, Jan 20, 2010 at 10:13 AM, Alaa Anabtawi wrote:
    > Linux 2.6.18-028stab064.8 #1 SMP Fri Nov 6 11:28:25 MSK 2009 x86_64 x86_64
    > x86_64 GNU/Linux
    >
    >
    > On Wed, Jan 20, 2010 at 5:05 PM, Holman Romero
    > wrote:
    >>
    >> Hi,
    >> What Linux flavor are your server running ?
    >>
    >>
    >> On Wed, Jan 20, 2010 at 9:52 AM, Alaa Anabtawi wrote:
    >> > Hi,
    >> >
    >> > I got stucked with a Campsite installation on one of my servers when it
    >> > came
    >> > the "automated tasks".
    >> >
    >> > It says:
    >> > Error: Could not save cron job files. Could not run the crontab
    >> > executable.
    >> >
    >> > I checked the permission, they should be fine. In the beginning of
    >> > the installation all the requirements were filled as well.
    >> >
    >> > Anything that I could pass for server people to fix?
    >> >
    >> > Yours,
    >> >
    >> >
    >> > --
    >> > Alaa Anabtawi
    >> >
    >>
    >>
    >>
    >> --
    >> /holman
    >
    >
    >
    > --
    > Alaa Anabtawi
    >



    --
    /holman
  • how can i do that

    if the linux falvor are importantat , how can i get it to you

    many thanks in advance

    best regards

    On Wed, Jan 20, 2010 at 5:28 PM, Holman Romero wrote:

    > Hum... it doesn't tell me exactly what is your Linux distro, sorry. I
    > was asking you because it might be some Debian/Ubuntu specific code in
    > our installer causing the failure.
    >
    > Anyway, what you need to do is to make sure the system user running
    > Apache is able to create/write its own crontab file.
    >
    >
    > On Wed, Jan 20, 2010 at 10:13 AM, Alaa Anabtawi wrote:
    > > Linux 2.6.18-028stab064.8 #1 SMP Fri Nov 6 11:28:25 MSK 2009 x86_64
    > x86_64
    > > x86_64 GNU/Linux
    > >
    > >
    > > On Wed, Jan 20, 2010 at 5:05 PM, Holman Romero
    > > wrote:
    > >>
    > >> Hi,
    > >> What Linux flavor are your server running ?
    > >>
    > >>
    > >> On Wed, Jan 20, 2010 at 9:52 AM, Alaa Anabtawi
    > wrote:
    > >> > Hi,
    > >> >
    > >> > I got stucked with a Campsite installation on one of my servers when
    > it
    > >> > came
    > >> > the "automated tasks".
    > >> >
    > >> > It says:
    > >> > Error: Could not save cron job files. Could not run the crontab
    > >> > executable.
    > >> >
    > >> > I checked the permission, they should be fine. In the beginning of
    > >> > the installation all the requirements were filled as well.
    > >> >
    > >> > Anything that I could pass for server people to fix?
    > >> >
    > >> > Yours,
    > >> >
    > >> >
    > >> > --
    > >> > Alaa Anabtawi
    > >> >
    > >>
    > >>
    > >>
    > >> --
    > >> /holman
    > >
    > >
    > >
    > > --
    > > Alaa Anabtawi
    > >
    >
    >
    >
    > --
    > /holman
    >



    --
    Alaa Anabtawi
  • i have ssh acsess, may be trhis will help

    kind regards

    On Wed, Jan 20, 2010 at 5:28 PM, Holman Romero wrote:

    > Hum... it doesn't tell me exactly what is your Linux distro, sorry. I
    > was asking you because it might be some Debian/Ubuntu specific code in
    > our installer causing the failure.
    >
    > Anyway, what you need to do is to make sure the system user running
    > Apache is able to create/write its own crontab file.
    >
    >
    > On Wed, Jan 20, 2010 at 10:13 AM, Alaa Anabtawi wrote:
    > > Linux 2.6.18-028stab064.8 #1 SMP Fri Nov 6 11:28:25 MSK 2009 x86_64
    > x86_64
    > > x86_64 GNU/Linux
    > >
    > >
    > > On Wed, Jan 20, 2010 at 5:05 PM, Holman Romero
    > > wrote:
    > >>
    > >> Hi,
    > >> What Linux flavor are your server running ?
    > >>
    > >>
    > >> On Wed, Jan 20, 2010 at 9:52 AM, Alaa Anabtawi
    > wrote:
    > >> > Hi,
    > >> >
    > >> > I got stucked with a Campsite installation on one of my servers when
    > it
    > >> > came
    > >> > the "automated tasks".
    > >> >
    > >> > It says:
    > >> > Error: Could not save cron job files. Could not run the crontab
    > >> > executable.
    > >> >
    > >> > I checked the permission, they should be fine. In the beginning of
    > >> > the installation all the requirements were filled as well.
    > >> >
    > >> > Anything that I could pass for server people to fix?
    > >> >
    > >> > Yours,
    > >> >
    > >> >
    > >> > --
    > >> > Alaa Anabtawi
    > >> >
    > >>
    > >>
    > >>
    > >> --
    > >> /holman
    > >
    > >
    > >
    > > --
    > > Alaa Anabtawi
    > >
    >
    >
    >
    > --
    > /holman
    >



    --
    Alaa Anabtawi
  • dear Holman

    am trying to solve this scinse yesterday with no succsess,

    any hints to do these cronjobs manually , for e.g from ssh

    best regards


    On Wed, Jan 20, 2010 at 6:30 PM, Alaa Anabtawi wrote:

    > i have ssh acsess, may be trhis will help
    >
    > kind regards
    >
    > On Wed, Jan 20, 2010 at 5:28 PM, Holman Romero wrote:
    >
    >> Hum... it doesn't tell me exactly what is your Linux distro, sorry. I
    >> was asking you because it might be some Debian/Ubuntu specific code in
    >> our installer causing the failure.
    >>
    >> Anyway, what you need to do is to make sure the system user running
    >> Apache is able to create/write its own crontab file.
    >>
    >>
    >> On Wed, Jan 20, 2010 at 10:13 AM, Alaa Anabtawi wrote:
    >> > Linux 2.6.18-028stab064.8 #1 SMP Fri Nov 6 11:28:25 MSK 2009 x86_64
    >> x86_64
    >> > x86_64 GNU/Linux
    >> >
    >> >
    >> > On Wed, Jan 20, 2010 at 5:05 PM, Holman Romero >> >
    >> > wrote:
    >> >>
    >> >> Hi,
    >> >> What Linux flavor are your server running ?
    >> >>
    >> >>
    >> >> On Wed, Jan 20, 2010 at 9:52 AM, Alaa Anabtawi
    >> wrote:
    >> >> > Hi,
    >> >> >
    >> >> > I got stucked with a Campsite installation on one of my servers when
    >> it
    >> >> > came
    >> >> > the "automated tasks".
    >> >> >
    >> >> > It says:
    >> >> > Error: Could not save cron job files. Could not run the crontab
    >> >> > executable.
    >> >> >
    >> >> > I checked the permission, they should be fine. In the beginning of
    >> >> > the installation all the requirements were filled as well.
    >> >> >
    >> >> > Anything that I could pass for server people to fix?
    >> >> >
    >> >> > Yours,
    >> >> >
    >> >> >
    >> >> > --
    >> >> > Alaa Anabtawi
    >> >> >
    >> >>
    >> >>
    >> >>
    >> >> --
    >> >> /holman
    >> >
    >> >
    >> >
    >> > --
    >> > Alaa Anabtawi
    >> >
    >>
    >>
    >>
    >> --
    >> /holman
    >>
    >
    >
    >
    > --
    > Alaa Anabtawi
    >



    --
    Alaa Anabtawi
  • Hi Alaa,

    If possible, give me ssh access to the server so that I can see by
    myself and figure out what is wrong. If not, what you can do is to
    comment lines number 114, 115 and 116 in the
    install/classes/CampInstallationBase.php file and run the installer
    again. However, after finishing the installation you would have to
    create those cron jobs entries by hand.

    Best,


    On Thu, Jan 21, 2010 at 5:09 AM, Alaa Anabtawi wrote:
    > dear Holman
    >
    >
  • Vote Up0Vote Down KarenKaren
    Posts: 19Member
    I'm not an expert in Linux just yet...how would I go about creating these specific cron jobs by hand? I've had to resort to commenting out 114-116 unfortunately....
  • Hi Karen,

    We develop Campsite on Ubuntu, so it is by nature our main platform
    target, although Campsite is known to run on practically any Linux
    flavor (like RedHat), only not as straight as it does on Ubuntu.
    Anyway, this is just for your information, it is not an excuse by any
    means. We are now in the middle of a big and positive change and as
    consequence we can say Campsite will properly support all those main
    platforms. In fact, you can see we already have a ticket scheduled in
    our roadmap for 3.4 release
    http://dev.sourcefabric.org/browse/CS-2085

    You should create this entries on your cron:

    * * * * * /your/path/to/campsite/bin/campsite-autopublish
    0 */4 * * * /your/path/to/campsite/bin/campsite-indexer
    0 */8 * * * /your/path/to/campsite/bin/subscription-notifier
    */2 * * * * /your/path/to/campsite/bin/events-notifier
    0 */4 * * * /your/path/to/campsite/bin/campsite-statistics

    Do not forget to change "/your/path/to/campsite/" to fit your installation.

    Easiest way to do it is by running (as a root user):

    crontab -u apache -e

    After that, you will be presented an editor where you can type/paste
    those entries. Save and that's it. You do not need to restart cron to
    make these new jobs have effect.

    Let us know how it goes.

    Best,


    On Fri, May 21, 2010 at 5:45 PM, Karen
    <campsite-support@lists.sourcefabric.org> wrote:
    >
    > I'm not an expert in Linux just yet...how would I go about creating these specific cron jobs by hand? I've had to resort to commenting out 114-116 unfortunately....
    >


    --
    Holman Romero
    Senior Software Engineer, Sourcefabric

    holman.romero@sourcefabric.org

    http://www.sourcefabric.org
  • Vote Up0Vote Down KarenKaren
    Posts: 19Member
    Thank you. That did seem to work on this particular Red Hat installation. I'm looking forward to the next release! Thanks for your response.