• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

SD memory card is slowly filling up

Scheduled Pinned Locked Moved Hardware
12 Posts 2 Posters 2.3k Views 2 Watching
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.
  • D Offline
    drx1984
    last edited by Sep 3, 2020, 1:10 PM

    it looks like this
    1.png

    S 1 Reply Last reply Sep 3, 2020, 1:24 PM Reply Quote 0
    • S Offline
      sdetweil @drx1984
      last edited by sdetweil Sep 3, 2020, 1:26 PM Sep 3, 2020, 1:24 PM

      @drx1984 clear the logs. pm2 flush
      altho I might want to find out what all that is.

      u can dump a little
      pm2 logs --lines=???
      ???= some number, default is 15

      u can also.look at them in the ~/.pm2/logs
      folder

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      D 1 Reply Last reply Sep 3, 2020, 1:47 PM Reply Quote 0
      • D Offline
        drx1984
        last edited by Sep 3, 2020, 1:40 PM

        how do I do that? (I’m a beginner sry)
        can I turn off the log?
        how do i get to the pm2 folder? that should be in the “root” folder right? somehow I have no notice.

        1 Reply Last reply Reply Quote 0
        • D Offline
          drx1984 @sdetweil
          last edited by Sep 3, 2020, 1:47 PM

          @sdetweil
          I was able to do something and I found this post:
          https://forum.magicmirror.builders/topic/917/pm2-logs/7
          I then entered the command “pm2 flush” and I already have 21GB of free space again, that looks very good.
          could I automate something like that? or deactivate the pm2 log?

          S 1 Reply Last reply Sep 3, 2020, 1:59 PM Reply Quote 0
          • S Offline
            sdetweil @drx1984
            last edited by Sep 3, 2020, 1:59 PM

            @drx1984 I gave u the pm2 flush command

            if u install winscp on your pc box, and enable ssh on your pi, you can get a file manager.over the pi files from your pc
            then just double click to edit like u do on the pc. right click to rename/delete

            I would have looked at the log to find out what modules are generating all that content.

            far as I know there is no way to turn off the log.

            maybe
            pm2 help
            would some some options

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            S 1 Reply Last reply Sep 3, 2020, 2:03 PM Reply Quote 0
            • S Offline
              sdetweil @sdetweil
              last edited by Sep 3, 2020, 2:03 PM

              @drx1984

              also file location

              ~
              means users home folder
              so when logged on as pi, that means
              /home/pi

              so from my post
              ~/.pm2/logs means
              /home/pi/.pm2/logs

              u can get there over ssh, or using a terminal window on the pi, or a file manager on the pi, just like u do on widows

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              D 1 Reply Last reply Sep 3, 2020, 2:22 PM Reply Quote 0
              • D Offline
                drx1984 @sdetweil
                last edited by Sep 3, 2020, 2:22 PM

                @sdetweil
                yes I had already installed the program WinSCP, but I don’t see this folder pm2 ??? ( see image)

                Yes that would be interesting which modules cause these logs. next time I won’t just delete it.

                2.png

                D 1 Reply Last reply Sep 3, 2020, 2:24 PM Reply Quote 0
                • D Offline
                  drx1984 @drx1984
                  last edited by Sep 3, 2020, 2:24 PM

                  @drx1984 said in SD memory card is slowly filling up:

                  @sdetweil
                  yes I had already installed the program WinSCP, but I don’t see this folder pm2 ??? ( see image)

                  Yes that would be interesting which modules cause these logs. next time I won’t just delete it.

                  2.png

                  ah it was hidden all clear, thank you

                  D 1 Reply Last reply Sep 3, 2020, 2:27 PM Reply Quote 0
                  • D Offline
                    drx1984 @drx1984
                    last edited by Sep 3, 2020, 2:27 PM

                    @drx1984 said in SD memory card is slowly filling up:

                    @drx1984 said in SD memory card is slowly filling up:

                    @sdetweil
                    yes I had already installed the program WinSCP, but I don’t see this folder pm2 ??? ( see image)

                    Yes that would be interesting which modules cause these logs. next time I won’t just delete it.

                    2.png

                    ah it was hidden all clear, thank you

                    I saw that there is a tool for deleting the pm2 log, do you know it: https://github.com/keymetrics/pm2-logrotate

                    S 1 Reply Last reply Sep 3, 2020, 2:39 PM Reply Quote 0
                    • S Offline
                      sdetweil @drx1984
                      last edited by sdetweil Sep 3, 2020, 2:42 PM Sep 3, 2020, 2:39 PM

                      @drx1984 no. but looks interesting

                      as for hidden, for others, see

                      https://winscp.net/forum/viewtopic.php?t=24963

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        7/12
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy