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.

    Problems with Config.js on Pi4 BlackScreen

    Scheduled Pinned Locked Moved Solved Troubleshooting
    24 Posts 2 Posters 8.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
      dazza120
      last edited by dazza120

      Hi there seems to be a problem with the config.js on the Pi 4 running MagicMirror 2.8.0 this a clean copy of both Buster and the MagicMirror. when i edit the Config file it Black Screens after Pm2 Restart MagicMirror, i can go back into config and Undo the text that i put in but it still black screens after restart, i have also copied over the sample config to replace everything in the config file and then pm2 restart MagicMirror still get a black screen. When ever i alter the config from stock it stops working. Now my saved Config file that was working on 2.7.1 is now toast where I’ve been looking for answers there it appears it is MagicMirror’s fault or Buster implementation of MM. Anyone still up and running on Buster and the New 2.8.0 MM. So kind of confirmed i saved the original config file and overwrite the altered one and its just blackscreen on restart, only one package is installed and that is mmm-nest-status and that isn’t in the config file so it shouldn’t present any issues but i think the new MM isn’t playing nice with Buster on the Pi4

      S 1 Reply Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @dazza120
        last edited by

        @dazza120 ok, let’s stop pm2

        pm2 list
        pm2 stop 0

        Go to the MagicMirror folder
        Then

        npm start dev
        

        In the developers window, select the console tab and scroll up to see any errors.

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • D Offline
          dazza120
          last edited by

          Could this be the problem? Never been any issues with the pi 3 on Rasbian, and thank you sir offering to help much appreciated

          npm ERR! path /home/pi/package.json
          npm ERR! code ENOENT
          npm ERR! errno -2
          npm ERR! syscall open
          npm ERR! enoent ENOENT: no such file or directory, open '/home/pi/package.json'
          npm ERR! enoent This is related to npm not being able to find a file.
          npm ERR! enoent 
          
          npm ERR! A complete log of this run can be found in:
          npm ERR!     /home/pi/.npm/_logs/2019-07-13T16_51_46_205Z-debug.log
          
          
          S 1 Reply Last reply Reply Quote 0
          • S Do not disturb
            sdetweil @dazza120
            last edited by

            @dazza120 must be in the MagicMirror folder for npm start

            Sam

            How to add modules

            learning how to use browser developers window for css changes

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

              @sdetweil hi im getting the dev window then into console bet there is nothing at all in there just > So what do i have to run in the dev window is it cd MagicMirrior then pm2 start MagicMirrior? im lost just work dam you mirror lol

              S 1 Reply Last reply Reply Quote 0
              • S Do not disturb
                sdetweil @dazza120
                last edited by

                @dazza120 pm2 runs the DEFINITION named x. It doesn’t care about folder.

                The setup typically uses the pm2_MagicMirror.json file in installers, or the mm.sh there as well.

                mm.sh has a bug, it uses ~ to mark ‘current user’, but when start on boot, the user is root, not pi. So the startup fails. My new installer fixes that.

                So, edit mm.sh and change the path to
                /home/pi/MagicMirror

                Sam

                How to add modules

                learning how to use browser developers window for css changes

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

                  @sdetweil its in that path already but it is completely empty. should it contain text?

                  S 1 Reply Last reply Reply Quote 0
                  • S Do not disturb
                    sdetweil @dazza120
                    last edited by

                    @dazza120 sorry, what is “it’s”?

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

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

                      @sdetweil /home/pi/MagicMirror The mm.sh should it contain text?

                      S 1 Reply Last reply Reply Quote 0
                      • S Do not disturb
                        sdetweil @dazza120
                        last edited by sdetweil

                        @dazza120 sorry… what is completely empty? mm.sh is in installers folder

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

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

                          @sdetweil i unhide my files and one is in the location i said with no text and the other is in installer as you said with text

                          S 1 Reply Last reply Reply Quote 0
                          • S Do not disturb
                            sdetweil @dazza120
                            last edited by

                            @dazza120 remove the one in MagicMirror… useless

                            Fix the one in installers

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

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

                              @sdetweil ok done, what to do now. ive just copied the installer one and overwrite the magic mirror path one

                              S 1 Reply Last reply Reply Quote 0
                              • S Do not disturb
                                sdetweil @dazza120
                                last edited by sdetweil

                                @dazza120 which one does pm2 want to use? I am not near my computer so can’t get the list of pm2 commands.

                                pm2 – help

                                Did u edit the path in mm.sh?

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

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

                                  @sdetweil no i mearly placed it in the magicmirror folder path. its set to Cd /MagicMirror folder already and pm2 -help isnt displaying a list of pm2 commands

                                  S 1 Reply Last reply Reply Quote 0
                                  • S Do not disturb
                                    sdetweil @dazza120
                                    last edited by

                                    @dazza120 inside needs to be

                                    cd /home/pi/MagicMirror
                                    DISPLAY=:0 npm start
                                    

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

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

                                      @sdetweil changed it what now mate

                                      S 1 Reply Last reply Reply Quote 0
                                      • S Do not disturb
                                        sdetweil @dazza120
                                        last edited by

                                        @dazza120 did u try pm2 now?

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

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

                                          @sdetweil pm2 start or the dev thing?

                                          S 1 Reply Last reply Reply Quote 0
                                          • S Do not disturb
                                            sdetweil @dazza120
                                            last edited by

                                            @dazza120

                                            Let’s get npm start dev working

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            D 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