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
0007931ClearCenterapp-remote-backup - Remote Server Backuppublic2016-04-02 02:072016-05-03 13:09
Reporterbchambers 
Assigned Todsokoloski 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version7.2.0 Updates 
Target VersionFixed in Version7.2.0 Updates 
Summary0007931: Automatic Backup Fails in certain timezones
DescriptionThis bit of code in /usr/clearos/apps/remote_backup/deploy/rbs_include.php

$tz_abrv = 'UTC';
$tz_offs = 0;
$ph = popen('/bin/date \'+%Z*%z\'', 'r');
if (is_resource($ph)) {
    $buffer = chop(fgets($ph, 4096));
    if (pclose($ph) == 0)
        list($tz_abrv, $tz_offs) = explode('*', $buffer);
}
$tz_name = timezone_name_from_abbr($tz_abrv, $tz_offs * 36);
if (@date_default_timezone_set($tz_name)) return;
if (date_default_timezone_set('UTC')) return;

returns an empty string for tz_name when the 'date' command returned is:

[root@gateway tmp]# date
Sat Apr 2 19:04:46 AEDT 2016

And when this happens, the auto start of the window never triggers.

Need a more reliable way of getting TZ or handle case where tz_name is empty.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2016-04-02 02:07 bchambers New Issue
2016-05-03 13:08 bchambers Assigned To => dsokoloski
2016-05-03 13:08 bchambers Status new => assigned
2016-05-03 13:08 bchambers Status assigned => acknowledged
2016-05-03 13:08 bchambers Status acknowledged => confirmed
2016-05-03 13:09 bchambers Status confirmed => resolved
2016-05-03 13:09 bchambers Fixed in Version => 7.2.0 Updates
2016-05-03 13:09 bchambers Resolution open => fixed
2016-05-03 13:09 bchambers Status resolved => closed

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