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
0000337ClearOSapp-content-filter - Content Filterpublic2011-10-18 13:132012-04-18 19:39
Reporteruser2 
Assigned To 
PriorityhighSeveritymajorReproducibilityalways
StatusclosedResolutionopen 
PlatformOSOS Version
Product Version 
Target Version6.2.0 Beta 2Fixed in Version6.2.0 Beta 2 
Summary0000337: Deletion of filter group breaks configuration
DescriptionDeletion of a new filter group wipes out some of the files required for the default configuration of Dansguardian causing the service to stop, and unable to start again

Steps followed show below for information on a clean 5.1 install with all upgrades applied

Additional Information###To reproduce, create new filter group (called testing), note files with 0000002 suffix

[root@system lists]# ls
authplugins bannedsitelist2 exceptionmimetypelist greyurllist2
bannedextensionlist bannedurllist exceptionmimetypelist2 headerregexplist
bannedextensionlist2 bannedurllist2 exceptionphraselist logregexpurllist
bannedextensionlist.all blacklists exceptionregexpurllist logsitelist
bannediplist contentregexplist exceptionsitelist logurllist
bannedmimetypelist contentscanners exceptionsitelist2 phraselists
bannedmimetypelist2 downloadmanagers exceptionurllist pics
bannedmimetypelist.all exceptionextensionlist exceptionurllist2 urlregexplist
bannedphraselist exceptionextensionlist2 filtergroupslist weightedphraselist
bannedregexpheaderlist exceptionfilesitelist greysitelist weightedphraselist2
bannedregexpurllist exceptionfileurllist greysitelist2
bannedsitelist exceptioniplist greyurllist
[root@system lists]# ls ../
authplugins dansguardian.conf.default dansguardianf2.conf lists
contentscanners dansguardian.conf.rpmsave downloadmanagers transparent1x1.gif dansguardian.conf dansguardianf1.conf languages

###Delete group from webconfig,

[root@system lists]# ls
authplugins bannedsitelist exceptioniplist headerregexplist
bannedextensionlist bannedurllist exceptionmimetypelist2 logregexpurllist
bannedextensionlist.all blacklists exceptionphraselist logsitelist
bannediplist contentregexplist exceptionregexpurllist logurllist
bannedmimetypelist contentscanners exceptionsitelist phraselists
bannedmimetypelist.all downloadmanagers exceptionurllist pics
bannedphraselist exceptionextensionlist2 filtergroupslist urlregexplist
bannedregexpheaderlist exceptionfilesitelist greysitelist weightedphraselist
bannedregexpurllist exceptionfileurllist greyurllist
[root@system lists]# ls ../
authplugins dansguardian.conf.default downloadmanagers transparent1x1.gif
contentscanners dansguardian.conf.rpmsave languages
dansguardian.conf dansguardianf1.conf lists

###Stop / start content filter from webconfig

Apr 11 15:35:16 system dansguardian[8872]: Error reading file /etc/dansguardian-av/lists/exceptionextensionlist: No such file or directory
Apr 11 15:35:16 system dansguardian[8872]: Error reading file /etc/dansguardian-av/lists/exceptionextensionlist: No such file or directory
Apr 11 15:35:16 system dansguardian[8872]: Error opening exceptionextensionlist
Apr 11 15:35:16 system dansguardian[8872]: Error opening filter group config: /etc/dansguardian-av/dansguardianf1.conf
Apr 11 15:35:16 system dansguardian[8872]: Error reading filter group conf file(s).
Apr 11 15:35:16 system dansguardian[8872]: Error parsing the dansguardian.conf file or other DansGuardian configuration files

Note the wrong files have been deleted and files that are remaining and not in the original default filter group
exceptionmimetypelist2
exceptionextensionlist2

I also found on a properly configured version of the content filter on my production system, other files were also missing, see below. But my clean VM test had only the two above.
greyurllist
bannedsitelist
greysitelist
bannedurllist
exceptionurllist
exceptionsitelist
weightedphraselist
exceptionmimetypelist
exceptionextensionlist
exceptionfilesitelist




TagsNo tags attached.
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-10-18 13:13 user2 New Issue
2011-10-18 13:13 user2 Issue generated from: 0000071
2011-10-18 13:14 user2 Status new => resolved
2011-10-18 13:14 user2 Fixed in Version => 6.1 Beta 2
2011-10-18 13:14 user2 Target Version => 6.1 Beta 2
2012-04-18 19:39 user2 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