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.

    Magic Mirror will not boot but Pi will, Cache issue?

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    25 Posts 2 Posters 7.7k 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.
    • T Offline
      tkaauf32
      last edited by

      The pi will boot but Magic Mirror won’t. I believe I’m having issues with the cache. It was working for a long time but I have since relocated the mirror and it no longer boots the MM program. when I run npm start i get “no helper found for module” and when I try to update my MM program I get “you dont have enough space var/cache/apt/archives”. Any help would be appreciated as it ran quite well a while ago. Do the modules build up data after being run 24/7? I’m also not entirely sure what a cache is if anybody could help. Thanks.

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @tkaauf32
        last edited by

        @tkaauf32

        no helper for module is ok, if the module doesn’t have helper… but u may be out of space

        review /var/log for dusplicates of log files

        syslog.n (these are old, probably ok to delete)
        and syslog

        etc

        this might give u an idea where space is used

        du -a / 2>/dev/null | sort -n -r | head -n 10
        

        note that this starts at the root… I have a remote volume attached so it searches that too… ugh
        and it only shows the top 10… head -n 10, u can up that number… but mostly bet its the logs

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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

          So I am unsure why it was working a month ago but is not working now. Is it always going to run out of space? Do I need a bigger sd card? What exactly are the purposes of the log files?

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @tkaauf32
            last edited by

            @tkaauf32 the system keeps track of all kinds of things…

            i don’t know why now vs before… you would have to find the next newest log file and scan thru it to try to determine what (if anything) important is going on
            here is my list of files in /var/log

            alternatives.log  btmp             dpkg.log        lightdm        syslog       user.log
            apt               daemon.log       faillog         messages       syslog.1     user.log.1
            auth.log          daemon.log.1     fontconfig.log  messages.1     syslog.2.gz  wtmp
            auth.log.1        daemon.log.2.gz  kern.log        messages.2.gz  syslog.3.gz  Xorg.0.log
            auth.log.2.gz     daemon.log.3.gz  kern.log.1      messages.3.gz  syslog.4.gz  Xorg.0.log.old
            auth.log.3.gz     debug            kern.log.2.gz   mongodb        syslog.5.gz
            boot.log          debug.1          kern.log.3.gz   motion         syslog.6.gz
            bootstrap.log     debug.2.gz       lastlog         private        syslog.7.gz
            

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @sdetweil
              last edited by

              @sdetweil do a df -k
              it will give u a quick look at used disk space

              /dev/root                30358348    6863684   22210168  24% /
              

              Sam

              How to add modules

              learning how to use browser developers window for css changes

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

                0_1577725102433_2b034e88-3f97-4120-9de1-0917fd88bb51-image.png Screen Shot 2019-12-30 at 10.58.00 AM

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @tkaauf32
                  last edited by

                  @tkaauf32 ok, disk is full…

                  the du thing above should give u a clue where…

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

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

                    0_1577725265087_95c0ffa2-6bf6-459a-9e75-d1ee858e6efa-image.png Screen Shot 2019-12-30 at 11.00.55 AM

                    So this is what that displays. And I really don’t understand why it is taking up so much space because it worked previously. I don’t know what to remove to give more space?

                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @tkaauf32
                      last edited by

                      @tkaauf32 thats only of your home folder… usually not a problem

                      notice I had /

                      du -a / 2>/dev/null | sort -n -r | head -n 10
                      

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

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

                        Okay so after typing correctly (my apologies, im not very savvy in this)

                        0_1577725523781_910bc738-b0da-4dea-96a3-1b1e1ecdf7ba-image.png

                        Screen Shot 2019-12-30 at 11.04.44 AM

                        S 1 Reply Last reply Reply Quote 0
                        • S Offline
                          sdetweil @tkaauf32
                          last edited by

                          @tkaauf32 change head -n 10 to -n 20

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

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

                            I hope you can decipher this haha

                            0_1577726759666_d55e67d9-9db4-4a13-9820-e92f4186c64d-image.png Screen Shot 2019-12-30 at 11.04.44 AM

                            S 1 Reply Last reply Reply Quote 0
                            • S Offline
                              sdetweil @tkaauf32
                              last edited by

                              @tkaauf32 need with head -n 20, to give more lines of output

                              /opt/Wolfram is taking a bit of space

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              T 1 Reply Last reply Reply Quote 0
                              • T Offline
                                tkaauf32 @sdetweil
                                last edited by

                                @sdetweil I pasted the wrong image. Thanks for your patience with me

                                0_1577727269763_ff6f75b7-7d77-4203-b3c3-6b434617c8a2-image.png Screen Shot 2019-12-30 at 11.25.35 AM

                                S 1 Reply Last reply Reply Quote 0
                                • S Offline
                                  sdetweil @tkaauf32
                                  last edited by

                                  @tkaauf32 its not the logs… not even showing in the top 20.

                                  that /opt/Wolfram is taking 16.7 % or disk space (1146764/6846289)
                                  /usr/lib & share is taking 53%
                                  I would guess that your memory card is too small…

                                  what size is it?
                                  what did u add last?

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  T 1 Reply Last reply Reply Quote 0
                                  • T Offline
                                    tkaauf32 @sdetweil
                                    last edited by

                                    @sdetweil I guess I need to delete the wolfram. I’m using an 8GB but I have’t manually changed anything so I’m surprised that it doesn’t work anymore. Maybe the logs put it over the edge.

                                    S 1 Reply Last reply Reply Quote 0
                                    • S Offline
                                      sdetweil @tkaauf32
                                      last edited by

                                      @tkaauf32 logs are pretty small… do the du /var/logs | sort | head thing, just on the logs folder…

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      T 1 Reply Last reply Reply Quote 0
                                      • T Offline
                                        tkaauf32 @sdetweil
                                        last edited by

                                        @sdetweil Permission denied. Also tried it with /logs and /log. /log says “is a directory” and the latter says permission denied

                                        S 1 Reply Last reply Reply Quote 0
                                        • S Offline
                                          sdetweil @tkaauf32
                                          last edited by sdetweil

                                          @tkaauf32 sorry, typo

                                           du  /var/log 2>/dev/null
                                          

                                          may need sudo

                                          sudo du  /var/log 2>/dev/null
                                          

                                          Sam

                                          How to add modules

                                          learning how to use browser developers window for css changes

                                          T 1 Reply Last reply Reply Quote 0
                                          • T Offline
                                            tkaauf32 @sdetweil
                                            last edited by

                                            @sdetweil 0_1577729903525_58f7d43d-6607-4c09-9993-a57e643fa893-image.png

                                            S 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              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