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

Lightsquid broken after last upgrade

Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
27 Posts 12 Posters 18.1k 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 Offline
    linuxpro
    last edited by Dec 20, 2007, 6:20 PM

    i from china.
    english is poor.

    my lightsquid conf

    #!/usr/bin/perl
    #
    # LightSquid Project (c) 2004-2005 Sergey Erokhin aka ESL
    #
    # This program is free software; you can redistribute it and/or
    # modify it under the terms of the GNU General Public License
    # as published by the Free Software Foundation; either version 2
    # of the License, or (at your option) any later version.
    #
    # detail see in gnugpl.txt
    
    # -------------------- GLOBAL VARIABLES  ---------------------------
    
    #path to additional `cfg` files
    $cfgpath = "/usr/local/etc/lightsquid";
    #path to `tpl` folder
    $tplpath = "/usr/local/www/lightsquid/tpl";
    #path to `lang` folder
    $langpath = "/usr/local/share/lightsquid/lang";
    #path to `report` folder
    $reportpath = "/var/lightsquid/report";
    #path to access.log
    $logpath = "/var/squid/log";
    #path to `ip2name` folder
    $ip2namepath = "/usr/local/libexec/lightsquid";
    
    #path to `lockfile` ;-)
    $lockpath            =$reportpath;
    
    #if lockfile older $maxlocktime second, remove old lock file.
    $maxlocktime	     = 30*60;
    
    #if 1 - lightparser generate some statistic
    $debug               = 0;  
    #if 1 - lightparser generate skip details, 2 ..., 3 ..., ....
    $debug2              = 0;
    
    # -------------------- LightParser VARIABLES  ---------------------------
    #squid log type
    #if native squid format (default squid, see in doc) - must be 0
    #if EmulateHttpdLog ON - set 1
    #digit - for speed optimization
    #try it set to 1 if parser generate warning
    #
    #see also month2dec below !!!!
    #
    $squidlogtype = 0;
    
    #if you want skip some sites from stat, example our local www server
    #WARNING !!!, don't leave this variable empty !!!
    #example, if you want skip LOCAL site, put it here
    #$skipurl             = "zdd.com|192\.168\.1\.|cnn.com";
    $skipurl = "zzz\.zzz";
    
    #define sobroutine file for convertion from IP into name
    #if you want skip some ip from log - return "SKIP THIS IP" ;-)
    #detail see in ip2name folder, 
    
    $ip2name = "ip";;
    
    #use for convert from Text to Dec convertion if EmualteHttpdLog format !!!!
    #fix it if need 
    %month2dec = ( Jan => 1, Feb => 2, Mar => 3, Apr => 4, May => 5,Jun => 6,
                   Jul => 7, Aug => 8, Sep => 9, Oct => 10, Nov => 11,Dec => 12);
    
    # -------------------- Common (Parser & Web) VARIABLES  ----------------------
    #create & use time report statistic (logsize = logsize*2) ;-))
    $timereport          = 1;
    
    # -------------------- WEB VARIABLES  ----------------------------------------
    
    #language
    #see `lang` folder (avaible: bg,eng,fr,hu,it,pt_br,ru,sp)
    $lang = "eng";;
    
    #html template name
    #see template folder `tpl/$templatename/`
    $templatename = "novopf";;
    #$templatename        ="ric";
    #$templatename        ="base.css";
    
    #define type of decimal output
    #fine  123456789 -> 123,456,789
    #class 123456789 ->       117.7 G
    $DecOutType="class";
    
    # define delimiter for thousands (in `fine` mode)
    # = " " -> 12 345 678 
    # = "," -> 12,345,678
    # = ""  ->   12345678
    $decdelimiter        = " ";
    
    #if you dont need Group mode, do =0
    $showgrouplink	     = 1;
    
    #if not zero, groups look like "01\. Group1", if zero - "Group1"
    $showgroupid         = 1;
    
    #if you dont need oversize report , do =0
    $showoversizelink    = 1;
    
    #show how many data user send to internet
    $showputpost         = 0;
    #if putpost higer this variable (in percent), highlight it
    $putpostwarninglevel =15;
    
    #use or not .realname files 
    #.realname contain pair userid -> Full User Name
    $userealname         = 1;
    
    #if url size exceed $bigfilelimit - add this file into report
    $bigfilelimit        = 2*1024*1024; 
    
    #user maximum size per day limit (oversize)
    $perusertrafficlimit = 10*1024*1024;
    
    # weekend display mode
    # both - select sunday & monday
    # monday - only monday 
    $weekendmode="both";
    
    #how many site show in TopSites report
    $topsiteslimit       = 500;
    
    #how many site show in user time report
    $usertimelimit       = 200;
    
    #if you want user traffic GRAPHIC report, set it in 1
    #WARNING !!!, need libgd, GD.PM & other external modules !!!
    #please run check-setup.pl for check library !!!!
    $graphreport         = 1;
    
    #higest value on graph report
    # for user month report (0.05*(...) = 50mb)
    $graphmaxuser=0.05*(1024*1024*1024);
    # for all user month report (1.05*(...) = 1 Gb)
    $graphmaxall =0.80*(1024*1024*1024);
    
    #color scheme for GRAPHICs, avaible "orange","blue","green","yellow","brown","red"
    $barcolor = "green";;
    
    #-------------------------------------------------------------------------- Group support
    #
    
    sub CreateGroupFile($) {
      my $path=shift;
    
      open Fi,"<$cfgpath/group.cfg";
      open Fo,">$path/.group";
      while (<fi>) {
        print Fo $_;
      }
      close Fo;
      close Fi;
    }
    
    #-------------------------------------------------------------------------- RealName support
    #
    
    sub CreateRealnameFile($) {
      my $path=shift;
    
      open Fi,"<$cfgpath/realname.cfg";
      open Fo,">$path/.realname";
      while (<fi>) {
        print Fo $_;
      }
      close Fo;
      close Fi;
    }</fi></fi> 
    

    111.PNG
    111.PNG_thumb

    1 Reply Last reply Reply Quote 0
    • L Offline
      linuxpro
      last edited by Dec 24, 2007, 3:43 AM

      After testing, by default, it is no problem.

      However, I use a custom district. Squid on to the / cache inside.

      I changed the conf Lightsquid, there have also been 500 that error message.

      Not solve the current swap.

      1 Reply Last reply Reply Quote 0
      • T Offline
        trentster
        last edited by Dec 26, 2007, 12:20 AM

        I also am having this problem on a fresh install of 1.2-RC3.

        It seems that the report is not even being generated by lightsquid when I click "refresh now" or "refresh all"

        Also get the error message "500 - internal server error"

        Any Ideas on a fix, as we use this a lot for reports for our clients.

        Thanks

        Mark

        1 Reply Last reply Reply Quote 0
        • D Offline
          dvserg
          last edited by Dec 26, 2007, 10:04 AM Dec 26, 2007, 9:59 AM

          Looking this ticket - problem here:

          http://cvstrac.pfsense.com/tktview?tn=1536

          Lighttpd error log after adding perl-5.8.8_1 to system
          /libexec/ld-elf.so.1: /usr/local/lib/perl5/5.8.8/mach/CORE/libperl.so: Undefined symbol "__sbmaskrune"

          Also about problem
          http://groups.google.com.br/group/lucky.freebsd.gnome/browse_thread/thread/98c1a9561b55d303/5a7d72db34f5398e?lnk=raot

          SquidGuardDoc EN  RU Tutorial
          Localization ru_PFSense

          1 Reply Last reply Reply Quote 0
          • D Offline
            dvserg
            last edited by Dec 26, 2007, 11:48 AM

            temporary way for solve problem - copy library
            /usr/local/lib/perl5/5.8.8/mach/CORE/libperl.so
            from perl-5.8.8 ver.

            For example this may be:

            • before installation LightSquid store this lib (must be only perl-5.8.8 on 'pkg_info')
            • after installation LightSquid - restore lib (old lib must be renamed)

            SquidGuardDoc EN  RU Tutorial
            Localization ru_PFSense

            1 Reply Last reply Reply Quote 0
            • M Offline
              mbedyn
              last edited by Dec 27, 2007, 10:29 AM

              Hello
              i do not clearly uderstand how to solve this…
              pkg_info shows both ver. of perl, 5.8.8 and 5.8.8_1
              I have only one folder 5.8.8 in /usr/local/lib/perl5/
              I suppouse, I have to find the old library somwhere over the internet, and replace new one? Am i right?

              1 Reply Last reply Reply Quote 0
              • D Offline
                dvserg
                last edited by Dec 27, 2007, 11:28 AM

                this method actually before for installation LS
                Mail me - i send this lib to you

                SquidGuardDoc EN  RU Tutorial
                Localization ru_PFSense

                1 Reply Last reply Reply Quote 0
                • J Offline
                  jester16
                  last edited by Dec 28, 2007, 6:14 AM

                  @dvserg:

                  this method actually before for installation LS
                  Mail me - i send this lib to you

                  Thanks, worked like a charm

                  1 Reply Last reply Reply Quote 0
                  • N Offline
                    newera
                    last edited by Dec 29, 2007, 4:50 AM

                    @dvserg:

                    this method actually before for installation LS
                    Mail me - i send this lib to you

                    I faced the same problem too. Can you post the lib file at here? So we can download and replace it easily.

                    Many thanks!

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      dvserg
                      last edited by Dec 29, 2007, 6:17 AM

                      Use this URL:
                      http://diskatel.narod.ru/libperl.so

                      SquidGuardDoc EN  RU Tutorial
                      Localization ru_PFSense

                      1 Reply Last reply Reply Quote 0
                      • T Offline
                        tdickson
                        last edited by Dec 31, 2007, 10:17 PM

                        Thanks As well!!! Worked for me too!
                        -tim

                        1 Reply Last reply Reply Quote 0
                        • E Offline
                          eckman
                          last edited by Jan 25, 2008, 6:32 AM

                          Can anyone give me some instruction to do this from the web admin page? I am not sure how to do this otherwise. Any help would be appreciated.

                          Thanks
                          Glenn

                          1 Reply Last reply Reply Quote 0
                          • T Offline
                            tdickson
                            last edited by Mar 5, 2008, 9:17 PM

                            Well after upgrading to 1.2 final today - I got the 500 internal server error again.
                            I reapplied this patch, but it didn't work this time, so I went to uninstall and reinstall the package - which failed.
                            Now when I go to reinstall the package I get:

                            Downloading package configuration file… done.
                            Saving updated package information... done.
                            Downloading Lightsquid and its dependencies... done.
                            Checking for successful package installation... failed!

                            Installation aborted.

                            How might I clear out whatever is needed to get this thing running again?  BTW... my other site that was upgraded to 1.2 yesterday is running perfectly fine.
                            -Tim

                            1 Reply Last reply Reply Quote 0
                            • F Offline
                              fribert
                              last edited by Mar 6, 2008, 6:51 AM

                              I hate to post 'metoos', but I'm seeing this problem too.
                              If I go and do a pkg_info, it shows perl 5.8.8, shoouldn't that be correct?
                              Well, anyways, I would like to try out the copying of the perl file you recommended, but where should I copy it to?
                              And being a newbied on this, how do I get the file transfered to the pfsense machine?

                              Best regards

                              1 Reply Last reply Reply Quote 0
                              • T Offline
                                tdickson
                                last edited by Mar 6, 2008, 4:27 PM

                                Over write this file with the attached above

                                /usr/local/lib/perl5/5.8.8/mach/CORE/libperl.so

                                It worked for me the first time!

                                1 Reply Last reply Reply Quote 0
                                • F Offline
                                  fribert
                                  last edited by Mar 6, 2008, 7:41 PM

                                  I still can't make it work.

                                  I downloaded the libperl.so from the link.
                                  I went to 'command' the webgui, and uploaded the file (to /tmp).
                                  I then moved the file from /tmp/libperl.so to /usr/local/lib/perl5/5.8.8/mach/CORE/libperl.so

                                  Still fails.

                                  Do I need to restart the server or ???

                                  1 Reply Last reply Reply Quote 0
                                  • F Offline
                                    fribert
                                    last edited by Mar 8, 2008, 10:51 AM

                                    @fribert:

                                    I still can't make it work.

                                    Still fails.

                                    Do I need to restart the server or ???

                                    Very odd, I just tried again, and now it installed!!! I didn't change anything since yesterday, so did the package change in any way?

                                    Well, this is just a happy camper, now I just need to figure out how to use it (I don't see any new menu items?).

                                    /Fribse

                                    1 Reply Last reply Reply Quote 0
                                    • D Offline
                                      dvserg
                                      last edited by Mar 8, 2008, 1:39 PM

                                      Very odd, I just tried again, and now it installed!!! I didn't change anything since yesterday, so did the package change in any way?
                                      

                                      I make changes. Old url broken - replaced to new.

                                      How use:

                                      • enable in squid log option & work some time (for have some log statistic's)
                                      • looking option in Status/Proxy report (for quick - press button 'Refresh now')
                                      • looking 'Lightsquid report' page.

                                      SquidGuardDoc EN  RU Tutorial
                                      Localization ru_PFSense

                                      1 Reply Last reply Reply Quote 0
                                      • F Offline
                                        fribert
                                        last edited by Mar 8, 2008, 2:11 PM

                                        Ahh, got it, thankyou!

                                        1 Reply Last reply Reply Quote 0
                                        • T Offline
                                          tdickson
                                          last edited by Mar 10, 2008, 4:38 PM

                                          Thank you, thank you , thank you!!!

                                          This is by far the most useful report I've come across for monitoring usage.
                                          Thanks again!
                                          -Tim

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received