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.

    MagicMirror's Electron not starting up on a fresh Raspberry Pi 4B install

    Scheduled Pinned Locked Moved Solved Troubleshooting
    12 Posts 2 Posters 2.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 @adamambarus
      last edited by

      @adamambarus are you starting from scratch?

      If so, reflash and boot no update
      Then run my install script

      I have seen some problems with startup with node 22. We are only testing on node 20 now.

      All the extra stuff you did is output now as part of startup . Right there in your output

      Also bookworm runs a different display manager on pi4/5, that could be a problem. I haven’t seen that

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      A 2 Replies Last reply Reply Quote 0
      • A Offline
        adamambarus @sdetweil
        last edited by

        @sdetweil
        Sorry, not sure what you mean. On any fresh install, if I install nodejs with apt, I get v22. Shall I install node v20 instead?

        1 Reply Last reply Reply Quote 0
        • A Offline
          adamambarus @sdetweil
          last edited by

          @sdetweil

          Can you tell me the best way of install node/npm from scratch? Right now, on any fresh install, if I install nodejs with apt, I get version 22.

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

            @adamambarus please use my script, or use nvm or n to install a different version
            We need 20.9.0

            https://github.com/sdetweil/MagicMirror_scripts

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            A 2 Replies Last reply Reply Quote 0
            • A Offline
              adamambarus @sdetweil
              last edited by

              @sdetweil Wow… sorry for my confusion, it’s the first time I see this repo. Looks great, with a really good documentation!! Let me try and come back to you!!

              1 Reply Last reply Reply Quote 0
              • A Offline
                adamambarus @sdetweil
                last edited by

                @sdetweil Unfortunately it looks like the raspberry.sh script couldn’t solve the problem

                magicmirror@mm-pi:~/MagicMirror $ DISPLAY=:0 npm start
                
                > magicmirror@2.28.0 start
                > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
                
                [2024-08-08 17:17:39.543] [LOG]   Starting MagicMirror: v2.28.0 
                [2024-08-08 17:17:39.569] [LOG]   Loading config ... 
                [2024-08-08 17:17:39.572] [LOG]   config template file not exists, no envsubst 
                [2024-08-08 17:17:39.575] [LOG]   Loading module helpers ... 
                [2024-08-08 17:17:39.577] [LOG]   No helper found for module: alert. 
                [2024-08-08 17:17:39.585] [LOG]   Initializing new module helper ... 
                [2024-08-08 17:17:39.586] [LOG]   Module helper loaded: updatenotification 
                [2024-08-08 17:17:39.587] [LOG]   No helper found for module: clock. 
                [2024-08-08 17:17:39.713] [LOG]   Initializing new module helper ... 
                [2024-08-08 17:17:39.714] [LOG]   Module helper loaded: calendar 
                [2024-08-08 17:17:39.714] [LOG]   No helper found for module: compliments. 
                [2024-08-08 17:17:39.715] [LOG]   No helper found for module: weather. 
                [2024-08-08 17:17:39.716] [LOG]   No helper found for module: weather. 
                [2024-08-08 17:17:39.809] [LOG]   Initializing new module helper ... 
                [2024-08-08 17:17:39.810] [LOG]   Module helper loaded: newsfeed 
                [2024-08-08 17:17:39.810] [LOG]   All module helpers loaded. 
                [2024-08-08 17:17:39.820] [LOG]   Starting server on port 8080 ...  
                [2024-08-08 17:17:41.045] [LOG]   Server started ... 
                [2024-08-08 17:17:41.048] [LOG]   Connecting socket for: updatenotification 
                [2024-08-08 17:17:41.050] [LOG]   Starting module helper: updatenotification 
                [2024-08-08 17:17:41.052] [LOG]   Connecting socket for: calendar 
                [2024-08-08 17:17:41.054] [LOG]   Starting node helper for: calendar 
                [2024-08-08 17:17:41.055] [LOG]   Connecting socket for: newsfeed 
                [2024-08-08 17:17:41.056] [LOG]   Starting node helper for: newsfeed 
                [2024-08-08 17:17:41.060] [LOG]   Sockets connected & modules started ... 
                [2024-08-08 17:17:41.504] [LOG]   Launching application. 
                [32835:0808/171741.915212:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.StartServiceByName: object_path= /org/freedesktop/DBus: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
                [32969:0808/171742.431782:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
                [32969:0808/171742.432152:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
                [32969:0808/171742.432429:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
                [32969:0808/171742.432560:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
                [32969:0808/171742.432735:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
                [32969:0808/171742.432844:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
                [32969:0808/171742.433025:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
                [32969:0808/171742.433217:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
                [32969:0808/171742.435099:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
                [32969:0808/171742.435268:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
                [32969:0808/171742.435444:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
                [32969:0808/171742.435554:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
                [32969:0808/171742.435707:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
                [32969:0808/171742.435810:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
                [32969:0808/171742.436901:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
                [32969:0808/171742.437029:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
                [32969:0808/171742.440788:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
                [32969:0808/171742.441832:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
                [32969:0808/171742.442262:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
                [32969:0808/171742.442481:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
                [32969:0808/171742.442762:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
                [32969:0808/171742.442958:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
                [32969:0808/171742.443252:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
                [32969:0808/171742.444056:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
                [32969:0808/171742.444452:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
                [32969:0808/171742.444721:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
                [32969:0808/171742.444949:ERROR:gbm_wrapper.cc(74)] Failed to get fd for plane.: No such file or directory (2)
                [32969:0808/171742.445194:ERROR:gbm_wrapper.cc(257)] Failed to export buffer to dma_buf: No such file or directory (2)
                [2024-08-08 17:17:43.230] [INFO]  System information:
                ### SYSTEM:   manufacturer: ; model: ; raspberry: undefined; virtual: false
                ### OS:       platform: linux; distro: Debian GNU/Linux; release: 12; arch: arm64; kernel: 6.6.44-v8+
                ### VERSIONS: electron: 31.3.1; used node: 20.15.1; installed node: 20.16.0; npm: 10.8.1; pm2: 
                ### OTHER:    timeZone: Europe/Stockholm; ELECTRON_ENABLE_GPU: undefined 
                [2024-08-08 17:17:44.291] [LOG]   Create new calendarfetcher for url: https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics - Interval: 604800000 
                [2024-08-08 17:17:44.421] [LOG]   Create new newsfetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000 
                [2024-08-08 17:17:44.426] [INFO]  updatenotification: Updater Class Loaded! 
                [2024-08-08 17:17:44.428] [INFO]  updatenotification: Checking PM2 using... 
                ^C/home/magicmirror/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
                
                magicmirror@mm-pi:~/MagicMirror $ node -v
                v20.16.0
                magicmirror@mm-pi:~/MagicMirror $ npm -v
                10.8.1
                

                I see however that has its own ways install node and npm. Do you have any guess what configuration I could change on my OS?

                S 2 Replies Last reply Reply Quote 0
                • S Offline
                  sdetweil @adamambarus
                  last edited by

                  @adamambarus I don’t see a problem there

                  The gbm_wrapper is a noise error

                  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 @adamambarus
                    last edited by sdetweil

                    @adamambarus you could use raspi-config to set the window manager back to x11, although I haven’t seen any failures on Wayland

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    A 2 Replies Last reply Reply Quote 0
                    • A Offline
                      adamambarus @sdetweil
                      last edited by

                      @sdetweil Nothing seems to work… What about GPU memory? Some advise to increase it, however, others say that it’s not relevant from Raspi 4 (that is why it’s taken out from raspi-config)

                      1 Reply Last reply Reply Quote 0
                      • A Offline
                        adamambarus @sdetweil
                        last edited by

                        @sdetweil Ah I cannot believe. I just noticed that address: "::" was probably blocking the electron instance out… and everything is works as it should with address: "0.0.0.0"

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

                          @adamambarus yes, have to use the right info

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          1 Reply Last reply Reply Quote 0
                          • A adamambarus has marked this topic as solved on

                          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