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
0011311ClearOSapp-radius - RADIUS Serverpublic2016-12-02 13:382019-06-13 03:35
ReporterNickH 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version7.2.0 
Target VersionFixed in Version 
Summary0011311: Radius logrotate script fails if radius is not running
DescriptionIr radius is not running you get the following logrotate error from anacron:
Redirecting to /bin/systemctl reload radiusd.service
Job for radiusd.service invalid.
error: error running non-shared postrotate script for /var/log/radius/radius.log of '/var/log/radius/radius.log

This is because the logrotate configlet does a "/sbin/service radiusd reload" which is invalid if radiusd is not running. Really it needs to detect if radiusd is running before doing a reload. A condrestart should be avoided as this stops and starts the app rather than reload the config in a running app. If that cannot be achieved, consider using the copytruncate function in the logrotate configlet which would avoid needing to reload radiusd - although it does have its own attendant issues.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0004211)
user2
2016-12-05 15:55

This should be reported upstream. There's a related issue here:

https://bugzilla.redhat.com/show_bug.cgi?id=1187904 [^]
(0004241)
NickH (developer)
2016-12-06 12:16

Downloading the latest package from github shows that the logrotate script was changed in 3.0.7 to use copytruncate (/doc/ChangeLog). I guess we have to wait for upstream to catch up.
(0012191)
NickH (developer)
2019-06-13 03:35

Fixed by upstream release

- Issue History
Date Modified Username Field Change
2016-12-02 13:38 NickH New Issue
2016-12-05 15:52 user2 Status new => confirmed
2016-12-05 15:55 user2 Note Added: 0004211
2016-12-06 12:16 NickH Note Added: 0004241
2019-06-13 03:35 NickH Note Added: 0012191
2019-06-13 03:35 NickH Status confirmed => closed
2019-06-13 03:35 NickH Resolution open => fixed

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