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

Lightsquid log rotate bug

Scheduled Pinned Locked Moved pfSense Packages
11 Posts 3 Posters 5.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.
  • I
    Igor
    last edited by Aug 2, 2007, 3:06 PM

    Looks like there is a bug in lightsquid rotate cron entry:
    Hello,

    I have lightsquid and squid installed, and I have lightsquid set to rotate logs, but it doesn't do it.  After looking at the cron job this is what I found the crontab entry to say:

    0      0      *      *      */1    root    /usr/local/etc/squid
    /usr/local/sbin/squid -k rotate > /dev/null

    I believe it should say:

    0      0      *      *      */1    root  /usr/local/sbin/squid -k
    rotate > /dev/null

    1 Reply Last reply Reply Quote 0
    • D
      dvserg
      last edited by Aug 2, 2007, 3:59 PM

      @Igor:

      I believe it should say:

      0       0       *       *       */1     root  /usr/local/sbin/squid -k
      rotate > /dev/null

      Thanks, i will test this bug

      SquidGuardDoc EN  RU Tutorial
      Localization ru_PFSense

      1 Reply Last reply Reply Quote 0
      • I
        Igor
        last edited by Aug 3, 2007, 11:46 AM

        Thanks dvserg.

        1 Reply Last reply Reply Quote 0
        • M
          mbedyn
          last edited by Aug 29, 2007, 11:52 AM

          for me logs rotate does not work to..
          but I got:

          /usr/local/etc/squid  /usr/local/sbin/squid -k rotate > /dev/null

          /usr/local/etc/squid: Permission denied.

          when I tried running script by myself

          1 Reply Last reply Reply Quote 0
          • D
            dvserg
            last edited by Aug 29, 2007, 4:49 PM

            @mbedyn:

            for me logs rotate does not work to..
            but I got:

            /usr/local/etc/squid  /usr/local/sbin/squid -k rotate > /dev/null

            /usr/local/etc/squid: Permission denied.

            when I tried running script by myself

            What you squid version?

            SquidGuardDoc EN  RU Tutorial
            Localization ru_PFSense

            1 Reply Last reply Reply Quote 0
            • M
              mbedyn
              last edited by Aug 30, 2007, 12:34 AM

              2.6.5_1-p15 that is shown in package version

              1 Reply Last reply Reply Quote 0
              • D
                dvserg
                last edited by Aug 30, 2007, 6:43 AM

                @mbedyn:

                2.6.5_1-p15 that is shown in package version

                Ok. I return from rest in net monday & test this problem.

                SquidGuardDoc EN  RU Tutorial
                Localization ru_PFSense

                1 Reply Last reply Reply Quote 0
                • M
                  mbedyn
                  last edited by Sep 10, 2007, 2:44 PM Sep 10, 2007, 1:45 PM

                  hi
                  dvserg, any news about this bug? Did you looked at this closer? my log file is groving fast  :P

                  I have found another possible bug.. there is some misconfiguration in graphing option i suppouse..
                  take a look into a screenshot

                  lightsquid.jpg
                  lightsquid.jpg_thumb

                  1 Reply Last reply Reply Quote 0
                  • D
                    dvserg
                    last edited by Sep 11, 2007, 5:41 AM

                    Rotate bug fixed (probably)
                    Pls check now.
                    Thanks

                    SquidGuardDoc EN  RU Tutorial
                    Localization ru_PFSense

                    1 Reply Last reply Reply Quote 0
                    • M
                      mbedyn
                      last edited by Sep 11, 2007, 4:22 PM Sep 11, 2007, 1:48 PM

                      ups… something goes wrong..
                      after reinstaling the package, something wrong was happend with my config..  :-[
                      webGUI does not show any my settings.. it shows standard GUI I have  lost webGUui password.
                      Unfortunately I was be able to log in through ssh with my old password
                      I have seen error message
                      [code]Warning: Invalid argument supplied for foreach() in /etc/inc/util.inc on line 328

                      I looked at the lines and there is nothing wrong with theese code..

                       327                         foreach($config['interfaces'] as $name => $int) {
                          328                                 if($int['if'] == $ifname) $friendly = $name;
                          329                         }
                      
                      

                      I have changed webGUI password, log in into webGUI.
                      status.php shows that router keep all settings, packages etc.. but webGUI does not  :-
                      I do not know what I should do next….
                      -upgrade the system with newest snapshot? what about config.. will be keeped after upgrade?
                      -restore config from backup? what will happned if some core files are broken ???

                      any suggestions?
                      Michael

                      update...
                      I have restored all config from backup.. everything back to normal..
                      I let you know about rotate log bug...
                      ;)

                      1 Reply Last reply Reply Quote 0
                      • M
                        mbedyn
                        last edited by Sep 12, 2007, 12:35 PM

                        Log rotate function works perfect now..  ;D
                        many thanks

                        Michael

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                          [[user:consent.lead]]
                          [[user:consent.not_received]]