MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    [Pi2] Magic Mirror Wont Startup

    Troubleshooting
    2
    4
    75
    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
      dr4ke616 last edited by

      I’ve had Magic Mirror running for some time now without issues, until space limitations resulted in the app failing to start. After clearing space, updating system packages, and pulling the latest from master (currently at 3dbe8bf), the Magic Mirror app is still failing to start.

      Here is a slimmed down config which i tested on my PC, which works as expected but does not work on my Pi.

      var config = {
          port: 8080,
      
          language: "en",
          timeFormat: 24,
          units: "metric",
      
          modules: [
              {
                  module: "alert",
              },
              {
                  module: "clock",
                  position: "top_left"
              }
          ]
      };
      

      The log output when running npm run start:

      > magicmirror@2.13.0 start /home/pi/MagicMirror
      > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      
      [2020-10-26 14:46:47.896] [LOG]    Starting MagicMirror: v2.13.0
      [2020-10-26 14:46:47.929] [LOG]    Loading config ...
      [2020-10-26 14:46:47.951] [LOG]    Loading module helpers ...
      [2020-10-26 14:46:47.960] [LOG]    No helper found for module: alert.
      [2020-10-26 14:46:47.964] [LOG]    No helper found for module: clock.
      [2020-10-26 14:46:47.966] [LOG]    All module helpers loaded.
      [2020-10-26 14:46:48.502] [LOG]    Starting server on port 8080 ...
      [2020-10-26 14:46:48.556] [LOG]    Server started ...
      [2020-10-26 14:46:48.559] [LOG]    Sockets connected & modules started ...
      

      After the last log line above, the application just exists out and no browser is opened.

      Interestingly, running in server only mode works and I can browse to the UI no problem. Is it possible it’s something odd with electron. The version used is electron@6.0.12

      Some other pieces of relevant info:

      Version:

      Raspberry Pi 2 Model B Rev 1.1
      

      OS:

      Distributor ID:	Raspbian
      Description:	Raspbian GNU/Linux 10 (buster)
      Release:	10
      Codename:	buster
      

      Be great to get some help on this, been digging down various rabbit holes few days now. Thanks.

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

        @dr4ke616 if u ran out of space on your SD card, its probably toast.

        SD card technology is not as we expect it… the memory bits are write once. when u wrote a file again, the hardware marks the old bits as ‘used’ and consumes any unused bits… once out of unused, the card is no longer usable…

        this is ok for music or pics that get written once and then read over and over…
        but not good for an OS that writes all the time…

        start with a new sd card…

        Sam

        Create a working config
        How to add modules

        D 1 Reply Last reply Reply Quote 0
        • D
          dr4ke616 @sdetweil last edited by

          @sdetweil really? Because the pie seems otherwise fine. The issue seems very specific. If it were down to the SD card being unusable, I would expect the pie as a whole to have issues.

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

            @dr4ke616 can only speak to experience…

            Sam

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy