Christian'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?

Forum: 
Tags: 
Christian's picture

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

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

Add new comment