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.

    Cant Start MMPM GUI

    Scheduled Pinned Locked Moved Troubleshooting
    15 Posts 5 Posters 6.6k Views 4 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.
    • ? Offline
      A Former User
      last edited by

      Hello,

      first of all: I have absolutely 0 (and i mean it that way) programming experience. I have written maybe a few lines of html when I did some Age of Empires Scripts but thats it.

      So far I managed to setup Raspbian 10 (Buster) on my RP4, downloaded MagicMirror2 according to the instructions. Then I upgraded to Python 3.7.3 with PM2 (according to instructions and works)
      and then I installed MMPM (according to instructions)

      Current status:
      Magic Mirror is running. I have it on autostart when the RP4 boots. PM2 lets me use commands to start/stop etc.
      MMPM is running and I can access the CLI and use it as well as download/install modules.

      However whenever I give the CLI the mmpm open --gui command it opens the browser with a Bad Gateway result.

      I have been fooling around with the environment variables and at the moment they are set in this way:

      The MagicMirror config shows 192.168.1.11:8080 as the Mirrors Urls.
      In the env i have the same Url 192.168.1.11:8080
      and for the PM2 Process i have PM2 (however in the examples of the env settings the people who have pm2 write MagicMirro which really confuses me since i have a PM2 process but not a MagicMirror process)

      Can anyone help we with figuring out why the MMPM GUI doesnt work?
      I am happy to supply any information needed :)

      Thanks in advance and may you all have a great day!

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

        @Zar that url should be http://192.168.1.11:8080

        right?

        the desktop browser will add http://
        if it is missing, programs are not so nice

        the thing you started MagicMirror with is the MagicMirror process.

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • ? Offline
          A Former User
          last edited by

          You were absolutely right about the http

          I changed the process now in the env file to MagicMirror. However now there is no connection between mmpm and mm anymore.

          Conclusion: now i have the gui but i mmpm cannot access active modules anymore. i tried switching the process in the env back to pm2 but that doesnt help either.

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

            @Zar I would look at the mmpm wiki
            https://github.com/Bee-Mar/mmpm/wiki/Command-Line-Options

            and open in issue if u need more help

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            S 1 Reply Last reply Reply Quote 0
            • ? Offline
              A Former User
              last edited by

              I did look at the wiki but none of the mmpm commands help with loosing the connection. The right env in this case is pm2 as i figured out by trying under which circumstances mmpm can control mm.

              However since until now not a single module could be loaded i will flash the SD card and start from scratch.

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

                @sdetweil seems the hard way, vs asking the MMPM author

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • ? Offline
                  A Former User
                  last edited by

                  Well mmpm was not the only thing not working ;)

                  I will try to install Magic Mirror through the MMPM commands this time. Maybe that helps.

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

                    @Zar i would just use my scripts…

                    https://github.com/sdetweil/MagicMirror_scripts

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • ? Offline
                      A Former User
                      last edited by

                      Please do me and future askers a favor and dont tell them to use your script. Thats the second flash of the raspberrie now…

                      Your script basically makes it impossible to stop MM because it just restarts npm and PM2 as well as MM every single time you try to shut it down.

                      S mumblebajM 2 Replies Last reply Reply Quote 0
                      • S Do not disturb
                        sdetweil @Guest
                        last edited by sdetweil

                        @Zar pm2’s job is to restart , you can always minimize MM (alt-spacebar, n) and then use pm2 to stop,
                        (alt-ctrl-t to open a terminal window)
                        or use an ssh ssession to the pi and pm2 stop…

                        or not accept pm2 during install … all kinds of ways to handle it…

                        alt-spacebar, n to minimize is the same as for Windows on any app.

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 1
                        • R Offline
                          requiemmg
                          last edited by

                          New question about the GUI here:
                          I have 2 MM installations on 2 R3B+.
                          Both the same config. Both the same Raspian Buster.

                          On one, GUI is working as intended.
                          On the other, for a while now (worked before), I have to reinstall the MMPM GUI after every reboot with mmpm install --gui, then it works.
                          After a reboot -> 502 Bad gateway.
                          MMPM 2.05.

                          Anyone already came across this and has a solution available?

                          1 Reply Last reply Reply Quote 0
                          • M Offline
                            mr190e
                            last edited by

                            I have exactly the same problem: I can’t get MMPM get to autostart after reboot. Any ideas?

                            1 Reply Last reply Reply Quote 0
                            • mumblebajM Offline
                              mumblebaj Module Developer @Guest
                              last edited by

                              @Zar You could just issue a pm2 delete mm and then pm2 save which will get rid of pm2 restarting the mirror. The feature helps with crashes and restarts the mirror automatically.
                              The scripts from @sdetweil is awesome and has helped 100’s on the forum.

                              Check out my modules at: https://github.com/mumblebaj?tab=repositories
                              Check my blog-post: https://mumblebaj.xyz/
                              Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

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

                                @mumblebaj none of my scripts address MMPM
                                (MagicMirror Package Manager)

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                mumblebajM 1 Reply Last reply Reply Quote 0
                                • mumblebajM Offline
                                  mumblebaj Module Developer @sdetweil
                                  last edited by

                                  @sdetweil Still don’t like the response he made to you about not advising people to use your scripts.

                                  Check out my modules at: https://github.com/mumblebaj?tab=repositories
                                  Check my blog-post: https://mumblebaj.xyz/
                                  Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

                                  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 / 1
                                  • 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