ClearFoundation Tracker - ClearOS
View Issue Details
0001121ClearOSapp-date - Date and Timepublic2013-04-26 09:222013-05-07 19:04
user2 
user2 
normaltweaksometimes
closedfixed 
 
6.4.0 Updates6.4.0 Updates 
0001121: Hardware clock sync fails in some VM environments
In some VM environments (including Amazon EC2), the hwclock command does not work. An example backtrace in /var/log/system:

Apr 24 09:07:01 system engine: exception: error: /usr/clearos/apps/base/libraries/Shell.php (207): Cannot access the Hardware Clock via any known method.
Apr 24 09:07:01 system engine: exception: debug backtrace: /usr/clearos/apps/date/libraries/NTP_Time.php (307): execute
Apr 24 09:07:01 system engine: exception: debug backtrace: /usr/sbin/timesync (98): synchronize_hardware_clock

Avoid throwing an exception since this is not really an exception in many cases.
No tags attached.
Issue History
2013-04-26 09:22user2New Issue
2013-04-26 09:23user2Statusnew => confirmed
2013-04-26 09:24user2Checkin
2013-04-26 09:24user2Note Added: 0000826
2013-04-26 09:24user2Statusconfirmed => resolved
2013-04-26 09:24user2Resolutionopen => fixed
2013-05-07 19:04user2Statusresolved => closed
2013-05-07 19:04user2Assigned To => user2
2013-05-07 19:04user2Fixed in Version => 6.4.0 Updates

Notes
(0000826)
user2   
2013-04-26 09:24   
Source Code Changelog
---------------------------------------------------
- Avoid throwing an exception on hardware clock sync (which is not always available) [fixed tracker 0001121]

File Changes
---------------------------------------------------
Details: http://code.clearfoundation.com/svn/revision.php?repname=ClearOS&rev=5936 [^]
U webconfig/apps/date/trunk/libraries/NTP_Time.php