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

    LightSquid setup

    Scheduled Pinned Locked Moved pfSense Packages
    6 Posts 2 Posters 12.3k 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.
    • R
      Ramosel
      last edited by

      New to the forum, setting up LightSquid and reading some of the setup docs around the web I've encountered a small inconsistency and just wanted to run it by those with experience…  In both the "settings" page and many of the tutorials I've read, they show that the squid logs need to be enabled and show the log store at /var/squid/log (singular).  However, the default when a fresh setup is done is for the default store to be at /var/squid/logs (plural).

      Is the LightSquid setup dependent on "log" vs. "logs"

      Just keep getting errors when accessing the reports tab

      LigthSquid diagnostic.
      Error : report folder '/var/lightsquid/report' not contain any valid data! Please run lightparser.pl (and check 'report' folder content)
      Please check config file !
      Variable         value
      $tplpatph         /usr/local/www/lightsquid/tpl
      $templatename base
      $langpatph         /usr/local/share/lightsquid/lang
      $langname         eng
      $reportpath         /var/lightsquid/report
      Access to '/var/lightsquid/report' folder yes
      $graphreport 1

      Thanks for any help,
      Rick

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        In the lightsquid package code…

        
        	if (!empty($config['installedpackages']['squid']['config'][0]['log_dir']))
        		define('LS_SQUIDLOGPATH', $config['installedpackages']['squid']['config'][0]['log_dir']);
        	else
        		define('LS_SQUIDLOGPATH', '/var/squid/logs');
        
        

        Looks like it should be defaulting to logs (plural) unless you have configured a custom location in squid.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • R
          Ramosel
          last edited by

          @jimp:

          In the lightsquid package code…

          
          	if (!empty($config['installedpackages']['squid']['config'][0]['log_dir']))
          		define('LS_SQUIDLOGPATH', $config['installedpackages']['squid']['config'][0]['log_dir']);
          	else
          		define('LS_SQUIDLOGPATH', '/var/squid/logs');
          
          

          Looks like it should be defaulting to logs (plural) unless you have configured a custom location in squid.

          Thanks Jim,
          While I was waiting, I uninstalled LightSquid and killed the configuration file.  Changed the (apparently new) Squid default location to "log" and re-installed LightSquid.  I let it stew for 24 hours and its working fine this morning… now getting the web based reports.

          I say "apparently new" because I've only just started with pfSense and my install of squid defaulted the log store directory to "logs".  My research looking for why I had no report functionality showed a lot of screen prints and discussions using "log".  Even the LightSquid setup screen notes reference "log".  So I don't know... was the default log at one time?

          Your and Chris' book now resides in my bathroom and is really proving to be an interesting daily read (yes, I have a sick and now somewhat damaged mind) ;D

          Rick

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            The default paths did change, but it's been so long since it happened I don't even remember when that took place.

            Nothing wrong with reading the book there. :-)
            There's another book coming for 2.1, should be done in the near future to coincide with the 2.1 release

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • R
              Ramosel
              last edited by

              @jimp:

              Nothing wrong with reading the book there. :-)
              There's another book coming for 2.1, should be done in the near future to coincide with the 2.1 release

              Jim, can the book be pre-ordered somewhere?  Be nice to have it in hand when the update goes live

              Rick

              1 Reply Last reply Reply Quote 0
              • jimpJ
                jimp Rebel Alliance Developer Netgate
                last edited by

                Not yet, should be in the near future. Only have a few more chapters left to edit, and 2.1 is about to hit RC1.

                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

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