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
0001530ClearCenteryum-marketplace-pluginpublic2014-01-22 16:432018-12-15 09:00
Reporterbchambers 
Assigned Totracker 
PrioritynormalSeverityminorReproducibilityalways
StatusassignedResolutionopen 
PlatformOSOS Version
Product Version6.5.0 
Target VersionFixed in Version 
Summary0001530: wc-yum clutters logs with errors if an update is not found
Descriptionwc-yum -i is dual-use...install and upgrade. If upgrading a package (eg. ClearCenter software updates on cron job), the log file becomes cluttered with:

Jan 19 05:41:15 chambers engine: exception: error: /usr/clearos/apps/base/libraries/Shell.php (207): {"progress": 0, "code": 0, "overall": 0, "details": "Fetching repos
itories.", "errmsg": null}
Jan 19 05:41:15 chambers engine: exception: debug backtrace: /usr/clearos/apps/clearcenter/libraries/Marketplace_Yum.php (131): execute
Jan 19 05:41:15 chambers engine: exception: debug backtrace: /usr/clearos/apps/clearcenter/libraries/Application_Web_Service.php (152): install
Jan 19 05:41:15 chambers engine: exception: debug backtrace: /usr/sbin/clearcenter-update (79): install_update
Jan 19 06:34:03 chambers app-intrusion-protection-updates: Service is up-to-date.

if no update is found. Should exit (code 0) gracefully so exception is not thrown.
Additional InformationEnd of wcYumHelper suggested fix:

self.repos.setProgressBar(wcDownloadCallback(100))
self.buildTransaction()

if len(self.tsInfo) > 0:
    self.processTransaction(None, None, wcProgressCallback(len(self.tsInfo)))
    status['details'] = 'Installation complete.'
else:
    status['progress'] = 100
    status['details'] = 'No packages to update or install.'
status['overall'] = 100
print json.dumps(status)
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0005591)
slords (developer)
2017-05-08 15:01

I don't see anything that points to yum-marketplace-plugin in this report. The fact that Marketplace_Yum.php is referenced might be why this is incorrectly assigned. If there is in fact an issue with yum-marketplace-plugin please provide evidence collected showing this fact.
(0005601)
bchambers (administrator)
2017-05-08 19:03

The referenced python code is in /usr/sbin/wc-yum, not the plugin. Darryl's probably the right guy for this.

- Issue History
Date Modified Username Field Change
2014-01-22 16:43 bchambers New Issue
2014-01-22 16:43 bchambers Status new => assigned
2014-01-22 16:43 bchambers Assigned To => dsokoloski
2017-05-08 12:02 user2 Assigned To dsokoloski => slords
2017-05-08 15:01 slords Note Added: 0005591
2017-05-08 16:42 dloper Assigned To slords => user2
2017-05-08 16:43 dloper Status assigned => feedback
2017-05-08 19:03 bchambers Note Added: 0005601
2017-05-08 19:03 bchambers Status feedback => assigned
2018-12-15 09:00 user2 Assigned To user2 => tracker

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