trixbox server time keeps getting off 40+ minutes
hello, i am running trixbox ce v2.4.0 and Asterisk 1.4.17-1 and am having an issue with the time being incorrect. i have checked the bios and the time/date in there is correct. i have also tried the command: date -s 'Thu Aug 16 22:30:00 EDT 2007' (putting the correct date, time, and time zone in place). i then reboot the server after doing the command and the time sticks but somewhere along the line it jumps ahead 40+ minutes. not sure exactly how long it takes to change back but it is less than 24 hours. i have searched for information on if there are other things to fix this like maybe a config file w/ a time server address that it uses or something that i need to change? any help would be greatly appreciated.
http://www.trixbox.org/forums/trixbox-forums/trixbox-ce-project-b...
This is a forum post where I was offering a bounty on a trixbox module for updating the time and date through the trixbox web gui. One of the later posts has a script which can be scheduled in cron to run once and hour or whatever to update the time using NTP.
if you use webmin you can configure the server to synch its time elsewhere. or you can command line this to synch. I suppose you could even edit the NTP.conf file directly using your favorite editor.
here is a link to the ntpdc command line man page which gives all the commands to set this for your server
http://linux.die.net/man/1/ntpdc
hope this helps,
cheers,
Jason - FtOCC Administrator
First a couple questions. Is time your only problem or are there other problems (audio issues)? Massive time drifts are indicative of motherboard driver issues and or small incompatibilities between your CPU and motherboard. These issues will often present as not only time drifts but other larger audio problems.
Use ntpd. It should be setup by default. Ntp will refuse to adjust time drifts that are very large. To get it back on track:
service ntpd stop
ntpdate 0.pool.ntp.org
service ntpd start
If you are still having time drifts after this, you may need to look at a different motherboard, updating the BIOS of your motherboard (for more processor support), or trying a different version of CentOS (like moving from Trixbox 2.x 2.4.x).
Hope this helps.
To answer your question: in theory it works. Linux will load new drivers for motherboard chipsets, nic cards, etc. In practice, I've seen some really strange things happen when moving drives between different sets of hardware, so YMMV.
My recommendation is to do a backup and restore on a fresh install on new hardware just to avoid potential issues.


Member Since:
2006-12-28