SARG: Cannot set the locale LC_ALL to the environment variable
-
I am unable to generate reports from sarg and get the following error message when I entered sarg in command prompt
SARG: Cannot set the locale LC_ALL to the environment variable
I also get this message under view report
Error: Could not find report index file. Check and save sarg settings and try to force sarg schedule.
I went to the following Posts and tried the steps other users were getting.
https://forum.pfsense.org/index.php?topic=62988.msg353080#msg353080
https://forum.pfsense.org/index.php?topic=68063.msg372331#msg372331
https://forum.pfsense.org/index.php?topic=47765.msg494346#msg494346PFSense 2.1.5 x64
squid 2.7.9 pkg v.4.3.4
squidGuard 1.4_4 pkg v.1.9.10Please Help
-
I was also face this problem.And I found the solution.This is a common problem if you are connecting remotely, so the solution is to not forward your locale. Therefore Edit
/etc/ssh/ssh_config
in your local machine with this. CommentSendEnv LANG LC_*
line. Then go to your remote machine and start sarg with```
sarg -x -
rm -rf /usr/local/sarg-reports ln -s /usr/pbi/sarg-amd64/local/sarg-reports /usr/local/sarg-reports
This will fix the missing index file error.