• 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.

Magic Mirror doesn't work after a boot

Scheduled Pinned Locked Moved Solved Troubleshooting
27 Posts 2 Posters 6.4k 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.
  • S Offline
    sdetweil @eightbit
    last edited by Dec 14, 2023, 3:31 PM

    @eightbit because you’ve done a lot of pm2 commands and run, the log is large, so lets clear that

    pm2 flush

    then reboot

    alt-spacebar, n
    to minmize the white screen mm, or ssh in

    pm2 logs --lines=nnnn

    nnnn is some number, default 15

    another thing you can do is use my script for pm2 setup

    see https://github.com/sdetweil/MagicMirror_scripts
    last script on the page is fixuppm2

    but first we need to clear the pm2 config
    pm2 stop all
    pm2 delete all
    pm2 save -f

    then run my script…
    it uses the ~/MagicMirror/installers/mm.sh

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    E 1 Reply Last reply Dec 14, 2023, 3:35 PM Reply Quote 0
    • E Offline
      eightbit @sdetweil
      last edited by Dec 14, 2023, 3:35 PM

      @sdetweil Should I delete the mm.sh in my home dir before i run your pm2 fix?

      S 2 Replies Last reply Dec 14, 2023, 3:44 PM Reply Quote 0
      • S Offline
        sdetweil @eightbit
        last edited by Dec 14, 2023, 3:44 PM

        @eightbit no… if it all works then later yes

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @eightbit
          last edited by Dec 14, 2023, 3:45 PM

          @eightbit its only called ‘fix’ cause during my install script you can add pm2 support, or not… so its a separate script if u change your mind later

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          E 1 Reply Last reply Dec 14, 2023, 3:51 PM Reply Quote 0
          • E Offline
            eightbit @sdetweil
            last edited by Dec 14, 2023, 3:51 PM

            @sdetweil Shoot. No luck! When I ran your script it loaded up and started perfectly and after the reboot it is hung on a white screen. In the logs it looks like it’s really trying to do something with the chromium browser but it just hangs and hangs. When it works on a pm2 start mm.sh (or using fixuppm2.sh) the log looks the same but then there are a couple lines after “starting chromium browser now”. I’ll post the log in another post.

            S E 2 Replies Last reply Dec 14, 2023, 3:52 PM Reply Quote 0
            • S Offline
              sdetweil @eightbit
              last edited by Dec 14, 2023, 3:52 PM

              @eightbit I just forgot, did you remove the autostart setup u added in the services?

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              E 1 Reply Last reply Dec 14, 2023, 3:55 PM Reply Quote 0
              • E Offline
                eightbit @eightbit
                last edited by Dec 14, 2023, 3:53 PM

                /home/secretsanta/.pm2/logs/MagicMirror-error.log last 15 lines:
                /home/secretsanta/.pm2/logs/MagicMirror-out.log last 15 lines:
                0|MagicMir | [14.12.2023 07:44.23.049] [LOG] No helper found for module: alert.
                0|MagicMir | [14.12.2023 07:44.23.234] [LOG] Initializing new module helper ...
                0|MagicMir | [14.12.2023 07:44.23.248] [LOG] Module helper loaded: updatenotification
                0|MagicMir | [14.12.2023 07:44.46.958] [LOG] Initializing new module helper ...
                0|MagicMir | [14.12.2023 07:44.46.963] [LOG] Module helper loaded: MMM-GooglePhotos
                0|MagicMir | [14.12.2023 07:44.46.988] [LOG] All module helpers loaded.
                0|MagicMir | [14.12.2023 07:44.47.103] [LOG] Starting server on port 8080 ...
                0|MagicMir | [14.12.2023 07:44.47.496] [LOG] Server started ...
                0|MagicMir | [14.12.2023 07:44.47.499] [LOG] Connecting socket for: updatenotification
                0|MagicMir | [14.12.2023 07:44.47.503] [LOG] Starting module helper: updatenotification
                0|MagicMir | [14.12.2023 07:44.47.525] [LOG] Connecting socket for: MMM-GooglePhotos
                0|MagicMir | [14.12.2023 07:44.47.527] [LOG] Sockets connected & modules started ...
                0|MagicMir | [14.12.2023 07:44.47.529] [LOG]
                0|MagicMir | Ready to go! Please point your browser to: http://localhost:8080
                0|MagicMir | Starting chromium browser now, have patience, it takes a minute
                
                
                S 1 Reply Last reply Dec 14, 2023, 3:57 PM Reply Quote 0
                • E Offline
                  eightbit @sdetweil
                  last edited by Dec 14, 2023, 3:55 PM

                  @sdetweil Yea I cleared out the systemd services I tried to enabled. They are disabled and stopped. I also tried an rc.local startup file to run the .sh file which never worked. I know that’s depreciated but desperate times and desperate measures lol.

                  S 1 Reply Last reply Dec 14, 2023, 3:58 PM Reply Quote 0
                  • S Offline
                    sdetweil @eightbit
                    last edited by Dec 14, 2023, 3:57 PM

                    @eightbit what device is this… you are using my install script which launches

                    run-start.sh

                    this is reserved for armv6 devices…
                    can u check the autostart

                    did you do this??? (answer should be no)
                    https://docs.magicmirror.builders/configuration/autostart.html#using-systemd-systemctl

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    E 1 Reply Last reply Dec 14, 2023, 3:59 PM Reply Quote 0
                    • S Offline
                      sdetweil @eightbit
                      last edited by Dec 14, 2023, 3:58 PM

                      @eightbit also do a

                      free -m

                      see how big the swap space is and total memory

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      E 1 Reply Last reply Dec 14, 2023, 4:01 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 1 / 3
                      1 / 3
                      • First post
                        6/27
                        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