SYSTEM WARNING: 'file_get_contents(https://www.clearos.com/?rendertype=json&get=header): failed to open stream: Connection refused' in '/var/www/virtual/newwrapper/cf_topmenu.inc' line 5

ClearOS Bug Tracker


View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007021ClearOSapp-date - Date and Timepublic2016-01-13 13:322016-02-16 12:54
Reporterdloper 
Assigned Touser2 
PrioritylowSeverityminorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version6.7.0 
Target Version6.7.0 UpdatesFixed in Version 
Summary0007021: NTP sometimes fails to update
DescriptionNTP can sometimes fail to synchronize under ClearOS. This can be the result of a block on the firewall or the ISP firewall. When this happens, updates from time.clearsdn.com will fail.

[root@gateway2 ~]# ntpdate time.clearsdn.com
13 Jan 15:22:39 ntpdate[21169]: no server suitable for synchronization found

A workaround is to use an unprivileged port

[root@gateway2 ~]# ntpdate -u time.clearsdn.com
13 Jan 15:22:44 ntpdate[21171]: adjust time server 132.163.4.101 offset -0.000106 sec

If the update to time should fail, this other method should be used or at least attempted.

TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0002551)
user2
2016-01-13 13:45

The ntpdate call already uses -u.

https://github.com/clearos/app-date/blob/6f067e130bd026cbd7bd8fbdf1f8bd941fdeb1d9/libraries/NTP_Time.php#L290 [^]

(0002591)
user2
2016-02-16 12:54

No feedback. Closing.

- Issue History
Date Modified Username Field Change
2016-01-13 13:32 dloper New Issue
2016-01-13 13:45 user2 Note Added: 0002551
2016-01-13 13:45 user2 Assigned To => user2
2016-01-13 13:45 user2 Status new => feedback
2016-02-16 12:54 user2 Note Added: 0002591
2016-02-16 12:54 user2 Status feedback => closed
2016-02-16 12:54 user2 Resolution open => no change required

SYSTEM WARNING: 'file_get_contents(https://www.clearos.com/?rendertype=json&get=footer): failed to open stream: Connection refused' in '/var/www/virtual/newwrapper/cf_footer.inc' line 7