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.

    Bookworm: MM not starting

    Scheduled Pinned Locked Moved Solved Troubleshooting
    11 Posts 2 Posters 811 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.
    • C Offline
      calimero @sdetweil
      last edited by

      @sdetweil Thank you for your reply.
      You’re talking about this script?

      Behaviour did not change after executing.

      ┌────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
      │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
      ├────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
      │ 1 │ MagicMirror │ default │ 2.29.0 │ fork │ 3229 │ 3s │ 23 │ online │ 0% │ 2.6mb │ pi │ enabled │
      │ 0 │ mm │ default │ N/A │ fork │ 3285 │ 0s │ 3 │ online │ 0% │ 2.6mb │ pi │ disabled │
      └────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘

      pm2 log:

      1|MagicMirror | [2024-10-20 22:48:49.111] [LOG] Starting MagicMirror: v2.29.0
      1|MagicMirror | [2024-10-20 22:48:49.179] [LOG] Loading config …
      1|MagicMirror | [2024-10-20 22:48:49.185] [LOG] config template file not exists, no envsubst
      1|MagicMirror | [2024-10-20 22:48:50.448] [INFO] Checking config file /home/pi/MagicMirror/config/config.js …
      1|MagicMirror | [2024-10-20 22:48:50.667] [INFO] Your configuration file doesn’t contain syntax errors :)
      1|MagicMirror | [2024-10-20 22:48:50.670] [INFO] Checking modules structure configuration …
      1|MagicMirror | [2024-10-20 22:48:50.941] [ERROR] right is not defined

      Do you have a further advice? Thanks in advance!

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

        @calimero said in Bookworm: MM not starting:

        @sdetweil Thank you for your reply.
        You’re talking about this script?

        Behaviour did not change after executing.

        ┌────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
        │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
        ├────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
        │ 1 │ MagicMirror │ default │ 2.29.0 │ fork │ 3229 │ 3s │ 23 │ online │ 0% │ 2.6mb │ pi │ enabled │
        │ 0 │ mm │ default │ N/A │ fork │ 3285 │ 0s │ 3 │ online │ 0% │ 2.6mb │ pi │ disabled │
        └────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘

        pm2 log:

        [ERROR] right is not defined

        looks lik you have a module in a wrong position

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        C 2 Replies Last reply Reply Quote 0
        • C Offline
          calimero @sdetweil
          last edited by

          @sdetweil Touché.

          U’re absolutely right. Just removed the handy PIR-script and installed PIR-Sensor-Lite and forgot the “”. My bad.

          But: Beaviour is like before. I can start the process and access the MM via Browser but it does not start on the local display.

          What works is:

          Browse the MM-IP from whitelistet IP. That’s nice but I’d like to have the MM just showing via autostart on the display which is attached to the PI:(

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

            @sdetweil

            Perhaps I should have named the title “MM not showing” instead of “MM not starting”.

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

              @calimero if you do

              pm2 stop all
              cd ~/MagicMirror 
              npm start
              

              does it come up?

              Sam

              How to add modules

              learning how to use browser developers window for css changes

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

                @sdetweil

                Unfortunately not:

                […]
                ozone_platform_x11.cc(245) Missing X server or $DISPLAY
                env.cc(258)] The platform failed to initialize.
                /home/pi/MagicMIrror/node_modules/electron/dist/electron exited with signal SIGSEGV

                1 Reply Last reply Reply Quote 0
                • C Offline
                  calimero
                  last edited by

                  @sdetweil

                  Nevermind -

                  my last two replys are not published yet.
                  Anyway - I read about a smiliar problem and tried the following:

                  • backup MM folder
                  • use your install-script
                  • removed module and config-content from backup to new folder

                  MM starts up as intended.
                  No idea, what was the issue exactly, but after your installation-script-usage it works as a charm.

                  Thanks for support!

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

                    @calimero glad you got it going.

                    as for your delayed posts

                    everyone with reputation below 2 has their posts reviewed. this to stop all the junk posts

                    i review every such post, and occasionally sleep! lol

                    please don’t double post

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

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

                      @calimero said in Bookworm: MM not starting:

                      backup MM folder
                      use your install-script
                      removed module and config-content from backup to new folder

                      also, I have backup/restore scripts that will do that AND allow you to keep different versions, AND save on github
                      NOT on local machine where it might be lost
                      only saves the config, custom.css and a LIST of the modules (where from)
                      on restore, reinstalls all the modules (in case node.js changed during the time between backup and restore)

                      see
                      https://github.com/sdetweil/MagicMirror-backup-restore

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • S sdetweil has marked this topic as solved on
                      • 1
                      • 2
                      • 2 / 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