TurnKey Linux Virtual Appliance Library

tlkbam cronjob and ntpdate issue

c.boulanger's picture

Hi, 

I use the stable core in an amazon instance. I have set up a cronjob:

5  * * * * /usr/bin/tklbam-backup

but the backup is not perfomed. In /var/log/tklbam.log, I see the following message:

##########################
## FIXCLOCK HOOK FAILED ##
##########################

Amazon S3 and Duplicity need a UTC synchronized clock so we invoked the
following command:
    ntpdate -u pool.ntp.org
Unfortunately, something went wrong...
sh: ntpdate: not found

BUT when I do

root@plone:/var/www# apt-get install ntpdate

it gives me:

Reading package lists... Done
Building dependency tree
Reading state information... Done
ntpdate is already the newest version.
ntpdate set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.

And indeed, when I manually invoke ntpdate, it works:

root@plone:/var/www# ntpdate -u pool.ntp.org
7 Nov 12:12:55 ntpdate[18052]: adjust time server 46.51.185.173 offset 0.008337 sec

What could be the problem?

Christian's picture

Guess I should search the

Guess I should search the forum first before posting an issue blush This seems to be related:

http://www.turnkeylinux.org/forum/support/20101106/fixclock-hook-failing-tklbam-inside-shell-script

Liraz Siri's picture

Yep

I'm going to fix this later today, but you can workaround it by just tweaking the fixclock hook.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)