ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Debian apt-get update error

    IT Discussion
    debian 9.1
    5
    25
    2.4k
    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.
    • jrcJ
      jrc
      last edited by jrc

      @jaredbusch said in Debian apt-get update error:

      cd /var
      du -h --max-depth=1 | sort -hr
      

      Add sudo to the front of that so you can get all the folders info.

      So: sudo du -h --max-depth=1 | sort -hr

      JaredBuschJ WLS-ITGuyW 2 Replies Last reply Reply Quote 0
      • JaredBuschJ
        JaredBusch @jrc
        last edited by

        @jrc said in Debian apt-get update error:

        @jaredbusch said in Debian apt-get update error:

        cd /var
        du -h --max-depth=1 | sort -hr
        

        Add sudo to the front of that so you can get all the folders info.

        So: sudo du -h --max-depth=1 | sort -hr

        He is running as root already.

        1 Reply Last reply Reply Quote 0
        • WLS-ITGuyW
          WLS-ITGuy @jrc
          last edited by

          @jrc said in Debian apt-get update error:

          sudo du -h --max-depth=1 | sort -hr

          In /var/www/web/logs I have an access log that is 7.5GB. Can I purge that?

          JaredBuschJ 1 Reply Last reply Reply Quote 0
          • JaredBuschJ
            JaredBusch @WLS-ITGuy
            last edited by

            @wls-itguy said in Debian apt-get update error:

            @jrc said in Debian apt-get update error:

            sudo du -h --max-depth=1 | sort -hr

            In /var/www/web/logs I have an access log that is 7.5GB. Can I purge that?

            Your logs should be cycling. Is this a log for a single day?

            WLS-ITGuyW 3 Replies Last reply Reply Quote 0
            • WLS-ITGuyW
              WLS-ITGuy @JaredBusch
              last edited by

              @jaredbusch doubtful

              JaredBuschJ 1 Reply Last reply Reply Quote 0
              • JaredBuschJ
                JaredBusch @WLS-ITGuy
                last edited by JaredBusch

                @wls-itguy said in Debian apt-get update error:

                @jaredbusch doubtful

                I know the logs are set to cycle by most applications. No idea how your system was setup originally.

                But to answer your question, stop the webserver service apache stop I think for Debian.

                Delete the log

                Start the webserver again service apache start

                The apache process will recreate a new log.

                WLS-ITGuyW 1 Reply Last reply Reply Quote 1
                • WLS-ITGuyW
                  WLS-ITGuy @JaredBusch
                  last edited by

                  @jaredbusch said in Debian apt-get update error:

                  @wls-itguy said in Debian apt-get update error:

                  @jrc said in Debian apt-get update error:

                  sudo du -h --max-depth=1 | sort -hr

                  In /var/www/web/logs I have an access log that is 7.5GB. Can I purge that?

                  Your logs should be cycling. Is this a log for a single day?

                  I'm downloading it now so I can go through it and verify that it isn't all one day. Can I delete it and create a new .log file and go on my way?

                  1 Reply Last reply Reply Quote 0
                  • WLS-ITGuyW
                    WLS-ITGuy @JaredBusch
                    last edited by

                    @jaredbusch said in Debian apt-get update error:

                    @wls-itguy said in Debian apt-get update error:

                    @jaredbusch doubtful

                    I know the logs are set to cycle by most applications. No idea how your system was setup originally.

                    But to answer your question, stop the webserver service apache stop I think for Debian.

                    Delete the log

                    Start the webserver again service apache start

                    The apache process will recreate a new log.

                    Gotcha

                    1 Reply Last reply Reply Quote 0
                    • WLS-ITGuyW
                      WLS-ITGuy @JaredBusch
                      last edited by

                      @jaredbusch said in Debian apt-get update error:

                      @wls-itguy said in Debian apt-get update error:

                      @jrc said in Debian apt-get update error:

                      sudo du -h --max-depth=1 | sort -hr

                      In /var/www/web/logs I have an access log that is 7.5GB. Can I purge that?

                      Your logs should be cycling. Is this a log for a single day?

                      It was not for a single day. It was from day 1 of the server life (25-Sept-2015)

                      dbeatoD 1 Reply Last reply Reply Quote 1
                      • dbeatoD
                        dbeato @WLS-ITGuy
                        last edited by

                        @wls-itguy said in Debian apt-get update error:

                        @jaredbusch said in Debian apt-get update error:

                        @wls-itguy said in Debian apt-get update error:

                        @jrc said in Debian apt-get update error:

                        sudo du -h --max-depth=1 | sort -hr

                        In /var/www/web/logs I have an access log that is 7.5GB. Can I purge that?

                        Your logs should be cycling. Is this a log for a single day?

                        It was not for a single day. It was from day 1 of the server life (25-Sept-2015)

                        Strange, is it doing it now. It should be on your cronjobs daily or weekly.

                        WLS-ITGuyW 1 Reply Last reply Reply Quote 0
                        • WLS-ITGuyW
                          WLS-ITGuy @dbeato
                          last edited by

                          @dbeato said in Debian apt-get update error:

                          @wls-itguy said in Debian apt-get update error:

                          @jaredbusch said in Debian apt-get update error:

                          @wls-itguy said in Debian apt-get update error:

                          @jrc said in Debian apt-get update error:

                          sudo du -h --max-depth=1 | sort -hr

                          In /var/www/web/logs I have an access log that is 7.5GB. Can I purge that?

                          Your logs should be cycling. Is this a log for a single day?

                          It was not for a single day. It was from day 1 of the server life (25-Sept-2015)

                          Strange, is it doing it now. It should be on your cronjobs daily or weekly.

                          Meaning I should put it there or it should already be there?

                          JaredBuschJ dbeatoD 2 Replies Last reply Reply Quote 0
                          • JaredBuschJ
                            JaredBusch @WLS-ITGuy
                            last edited by

                            @wls-itguy little over halfway down the page it mentions how lograte shouldbe happening.

                            https://www.digitalocean.com/community/tutorials/how-to-configure-logging-and-log-rotation-in-apache-on-an-ubuntu-vps

                            Managing Log Rotation Using Logrotate

                            By default, Ubuntu sets up its own log rotation plan with logrotate.

                            This program can take parameters and rotate logs when certain criteria are met. We can see what events cause logrotate to swap the Apache logs by looking in /etc/logrotate.d/apache2:

                            sudo nano /etc/logrotate.d/apache2

                            Here, you can see some of the parameters given to logrotate. First of all, notice the first line is:

                            /var/log/apache2/*.log {

                            This means that logrotate will only operate on those logs in "/var/log/apache2". Keep this in mind if you have chosen a different directory for your logs in your Apache configuration.

                            1 Reply Last reply Reply Quote 3
                            • dbeatoD
                              dbeato @WLS-ITGuy
                              last edited by

                              @wls-itguy said in Debian apt-get update error:

                              eaning I should put it there or it should already be there?

                              It should be already be happening.

                              1 Reply Last reply Reply Quote 1
                              • 1
                              • 2
                              • 2 / 2
                              • First post
                                Last post