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 33.2k 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.
    • 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
                • jimpJ Offline
                  jimp Rebel Alliance Developer Netgate
                  last edited by

                  What about these?

                  # find / -name "GD.pm"
                  /usr/local/lib/perl5/site_perl/5.8.8/mach/GD.pm
                  
                  # pkg_info | grep -i "gd-2*"
                  gd-2.0.35,1         A graphics library for fast creation of images
                  p5-GD-2.39          A perl5 interface to Gd Graphics Library version2
                  
                  # cat /var/db/pkg/p5-GD-2.39/+REQUIRED_BY
                  lightsquid-1.7.1_1
                  

                  I'm not sure why yours wouldn't be properly pulling the dependencies like it should.

                  I suppose you could also try to remove lightsquid, gd, p5-GD, and so on and reinstall.

                  I wonder if perl uninstalled, removed the GD lib, but the package info for GD is still hanging out and thinks it is installed.

                  Sounds like a real mess, but recoverable if that's the case.

                  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
                  • D Offline
                    dvserg
                    last edited by

                    2 ipnet
                    If yuu not solve you problem up to monday, i ready online help to you.

                    SquidGuardDoc EN  RU Tutorial
                    Localization ru_PFSense

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

                      No need to do that dvserg. Thanks a lot anyway. It is not critical for us right now. We´ll try to debug this pointing to the GD graphics package.

                      BR

                      1 Reply Last reply Reply Quote 0
                      • B Offline
                        bkleyens
                        last edited by

                        I still get the "500 - Internal Server Error" on pfSense 1.2-RELEASE

                        When I type:

                        # pkg_info | grep -i "gd-2*"
                        

                        I get no output - these two packages are not installed. How can I get them installed?

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