diladele / websafety

Simple and powerful web filter for HTTP and HTTPS traffic
https://www.diladele.com
241 stars 24 forks source link

ICAP server stops after missing /opt/websafety/var/spool/privacy/custom.txt #2187

Closed ra-at-diladele-com closed 5 months ago

ra-at-diladele-com commented 6 months ago

After importing the backup zip file with enabled custom privacy protection definition file the ICAP server stops with the following error

[2024-Jan-03 10:14:52] [erro] unexpected exception in daemon: 
load_module_privacy - privacy subscription '/opt/websafety/var/spool/privacy/custom.txt' is not accessible or does not exist
main - fatal exception, error: load_module_privacy - privacy subscription '/opt/websafety/var/spool/privacy/custom.txt' is 
not accessible or does not exist

This error occurs because there is no empty custom.txt file in the folder of a new 8.7 build.

ra-at-diladele-com commented 6 months ago

To fix that run the following commands in the terminal console

touch /opt/websafety/var/spool/privacy/custom.txt
chown root:root /opt/websafety/var/spool/privacy/custom.txt

Or just uncheck the UI / Web Filter / Definitions / Privacy / [ ] Custom checkbox and hit Save and Restart.

ra-at-diladele-com commented 6 months ago

In default 9.0 added that empty missing file to /opt/websafety/var/spool/privacy/custom.txt

ra-at-diladele-com commented 6 months ago

move to known issues after testing, do not close until 9.0 is released (march 2024).