Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    SARG: Cannot set the locale LC_ALL to the environment variable

    Scheduled Pinned Locked Moved Cache/Proxy
    3 Posts 3 Posters 3.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      LynnJackson
      last edited by

      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#msg494346

      PFSense      2.1.5 x64
      squid   2.7.9 pkg v.4.3.4
      squidGuard  1.4_4 pkg v.1.9.10

      Please Help

      1 Reply Last reply Reply Quote 0
      • T
        thusitha
        last edited by

        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_configin your local machine with this. Comment SendEnv LANG LC_* line. Then go to your remote machine and start sarg with```
        sarg -x

        1 Reply Last reply Reply Quote 0
        • KOMK
          KOM
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.