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

    LightSquid and 500 - Internal Server Error

    Scheduled Pinned Locked Moved pfSense Packages
    40 Posts 12 Posters 34.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.
    • A Offline
      AudiAddict
      last edited by

      Problem fixed with the help of dvserg!! (THANKS!!)

      He asked me to post the instructions

      • Remove package from GUI
      • Go to the firewall shell and type pkg_info
      • If lightsquid is listed, use PKG_delete to remove it (pkg_delete lightsquid-1.7.1_1)
      • Reinstall from GUI now and it should be fixed!
      1 Reply Last reply Reply Quote 0
      • W Offline
        wilagobler
        last edited by

        That fixed the problem, thanks dvserg and Audi!

        1 Reply Last reply Reply Quote 0
        • T Offline
          tester_02
          last edited by

          YAYYYYYYY.

          That fixed my final issue with pfsense.
          Finally pfsense 1.2.1 with squid/squidguard/bandwidthd/lightsquid ALL WORK!!!!!!

          1 Reply Last reply Reply Quote 0
          • R Offline
            ric2233
            last edited by

            Geat!Thanks wilagobler,Thanks dvserg! ;D ;D ;D ;D

            1 Reply Last reply Reply Quote 0
            • L Offline
              lordarcane
              last edited by

              I´ve done this but cant get Lightsquid to work. Same error message still after the manual uninstall. =/ Any other tips?

              1 Reply Last reply Reply Quote 0
              • A Offline
                AudiAddict
                last edited by

                Uninstall like explained above and then reinstall the package in the gui

                then type in the shell :

                ln -s /usr/local/bin/perl /usr/bin/perl

                Make sure the log setting is switched on for squid and set to the standard dir and then go to lightsquid and refresh/update settings and it should work.

                1 Reply Last reply Reply Quote 0
                • L Offline
                  lordarcane
                  last edited by

                  That totally fixed it! Thank you! =) A great addon to squid! Now I dont really now how I managed without it. =)

                  1 Reply Last reply Reply Quote 0
                  • H Offline
                    helwoe
                    last edited by

                    Hi all,

                    I've tried all the suggestions but still cant get lightsquid report to display anything other than the following:

                    "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

                    folder content:

                    /var/lightsquid/report folder has no data (files/folders) in it so there is a definate problem. Does anyone have any other suggestions?

                    Thanks,

                    helwoe

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      dvserg
                      last edited by

                      1. You must check squid logging for enable, use some time squid, and after refresh LS from GUI
                      2. And check perl for exists - type 'pkg_info' from console (post here pls).

                      SquidGuardDoc EN  RU Tutorial
                      Localization ru_PFSense

                      1 Reply Last reply Reply Quote 0
                      • H Offline
                        helwoe
                        last edited by

                        Thanks for the reply.

                        I took a break (college professor insists we do this) after a few hours and took another look, lightsquid report was working!

                        Nice tool to play with!

                        Cheers

                        1 Reply Last reply Reply Quote 0
                        • I Offline
                          ipnet
                          last edited by

                          Hi all! Still having problems with lightsquid. :-\

                          I reinstalled the package as directed in this thread, made the symlink (ln -s /usr/local/bin/perl /usr/bin/perl), checked permissions on index.cgi, graph.cgi and restarted the box several times. Still getting the 500 error when I ask for the graphics reports. Text reports work OK. Any tips or leads that could help me?

                          BR

                          1 Reply Last reply Reply Quote 0
                          • I Offline
                            ipnet
                            last edited by

                            Anyone has some leads on this issue? It seems to be resolved but it is not working for me!.  :'( Please any help will be appreciated.

                            Best regards.

                            1 Reply Last reply Reply Quote 0
                            • D Offline
                              dvserg
                              last edited by

                              @ipnet:

                              Anyone has some leads on this issue? It seems to be resolved but it is not working for me!.  :'( Please any help will be appreciated.

                              Best regards.

                              Possible look you 'pkg_info' from shell?

                              SquidGuardDoc EN  RU Tutorial
                              Localization ru_PFSense

                              1 Reply Last reply Reply Quote 0
                              • I Offline
                                ipnet
                                last edited by

                                Yes, this is my pkg_info from the shell.

                                pkg_info

                                bandwidthd-2.0.1    Tracks bandwidth usage by IP address
                                bsdinstaller-2.0.2007.0827 BSD Installer mega-package
                                cpdup-1.05          A comprehensive filesystem mirroring program
                                freetype2-2.1.10_3  A free and portable TrueType font rendering engine
                                freetype2-2.2.1_1  A free and portable TrueType font rendering engine
                                gd-2.0.33_4,1      A graphics library for fast creation of images
                                grub-0.97          GRand Unified Bootloader
                                jpeg-6b_4          IJG's jpeg compression utilities
                                libart_lgpl-2.3.19,1 Library for high-performance 2D graphics
                                libiconv-1.9.2_2    A character set conversion library
                                lightsquid-1.7.1    A light and fast web based squid proxy traffic analyser
                                lighttpd-1.4.18    A secure, fast, compliant, and very flexible Web Server
                                lua-5.0.2_1        Small, compilable scripting language providing easy access
                                openldap-client-2.3.40 Open source LDAP client implementation
                                pcre-6.6_1          Perl Compatible Regular Expressions library
                                perl-5.8.8          Practical Extraction and Report Language
                                pkg-config-0.21    A utility to retrieve information about installed libraries
                                pkgconfig-0.20      A utility to retrieve information about installed libraries
                                png-1.2.12_1        Library for manipulating PNG images
                                png-1.2.14          Library for manipulating PNG images
                                png-1.2.8_3        Library for manipulating PNG images
                                squid-2.6.18        HTTP Caching Proxy
                                squid_radius_auth-1.0.8 RADIUS authenticator for squid proxy 2.5 and later

                                BR.

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

                                  Last time I had a problem, the instructions in this thread worked for me.

                                  In summary:
                                  While it was installed in the WebGUI, go to the shell.
                                  pkg_delete lightsquid*
                                  ln -s /usr/local/bin/perl /usr/bin/perl
                                  Go back to the webgui and install it again.

                                  After that, it worked like a charm.

                                  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
                                  • I Offline
                                    ipnet
                                    last edited by

                                    So, you mean to run the pkg_delete command before uninstalling the package from the GUI? Humm, I´ll try! Thanks.
                                    BR

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

                                      Yes, run the pkg_delete command while it is still installed from the WebGUI.

                                      I also added this procedure to the Wiki as an FAQ, so let me know if it doesn't work for you.

                                      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
                                      • I Offline
                                        ipnet
                                        last edited by

                                        :-\ no, it doesn´t work for me. The uninstall goes ok but the symlink tells me that there is already a /usr/bin/perl file. Should I delete this file and run the symlink again? About to give up with lightsquid… :( . Oh! just the graphics interface (graph.cgi only involved) is giving me trouble. Numeric data shows ok.

                                        Regards.

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

                                          What do you see when you try this?

                                          # ls -l /usr/bin/perl
                                          

                                          It should look like this:

                                          lrwxr-xr-x  1 root  wheel  19 Dec 13 17:30 /usr/bin/perl -> /usr/local/bin/perl
                                          

                                          You can also test perl like so:

                                          # /usr/bin/perl -v
                                          

                                          You should get a short answer stating the version and license info.

                                          You might also try looking in the lighthttpd error log:

                                          # cat /var/log/lighttpd.error.log
                                          

                                          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
                                          • I Offline
                                            ipnet
                                            last edited by

                                            What do you see when you try this?
                                            Code:# ls -l /usr/bin/perl

                                            It should look like this:
                                            Code:lrwxr-xr-x  1 root  wheel  19 Dec 13 17:30 /usr/bin/perl -> /usr/local/bin/perl

                                            Yes, I have somethig like it. Only permissions vary. 777 instead of 755

                                            You might also try looking in the lighthttpd error log:
                                            Code:# cat /var/log/lighttpd.error.log

                                            cat /var/log/lighttpd.error.log

                                            2009-02-13 15:30:28: (log.c.75) server started
                                            2009-02-13 15:30:35: (log.c.75) server started
                                            2009-02-13 15:33:43: (mod_cgi.c.1231) cgi died ?
                                            Can't locate GD.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.8/BSDPAN /usr/local/lib/perl5/si                    te_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at /usr/local/www/lightsquid/graph.cgi line 15.
                                            BEGIN failed–compilation aborted at /usr/local/www/lightsquid/graph.cgi line 15.

                                            That´s the problem...graph.cgi compilation fails...

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