MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    UNSOLVED Having trouble with launch- perhaps display value?

    Troubleshooting
    3
    11
    386
    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.
    • J
      jayd272 last edited by

      I updated a really old install, and now I am getting the following message. Any ideas on how to solve?

      pi@raspberrypi:~/MagicMirror $ npm run start
      
      > magicmirror@2.20.0 start
      > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      
      [14.09.2022 22:02.09.148] [LOG]   Starting MagicMirror: v2.20.0
      [14.09.2022 22:02.09.161] [LOG]   Loading config ...
      [14.09.2022 22:02.09.172] [LOG]   Loading module helpers ...
      [14.09.2022 22:02.09.782] [LOG]   Initializing new module helper ...
      [14.09.2022 22:02.09.784] [LOG]   Module helper loaded: MMM-HASS
      [14.09.2022 22:02.10.266] [LOG]   Initializing new module helper ...
      [14.09.2022 22:02.10.268] [LOG]   Module helper loaded: MMM-Wallpaper
      [14.09.2022 22:02.10.271] [LOG]   No helper found for module: clock.
      [14.09.2022 22:02.10.602] [LOG]   Initializing new module helper ...
      [14.09.2022 22:02.10.604] [LOG]   Module helper loaded: calendar
      [14.09.2022 22:02.10.608] [LOG]   Initializing new module helper ...
      [14.09.2022 22:02.10.610] [LOG]   Module helper loaded: MMM-TautulliActivity
      [14.09.2022 22:02.10.611] [LOG]   No helper found for module: weather.
      [14.09.2022 22:02.10.647] [LOG]   Initializing new module helper ...
      [14.09.2022 22:02.10.648] [LOG]   Module helper loaded: newsfeed
      [14.09.2022 22:02.10.649] [LOG]   All module helpers loaded.
      [14.09.2022 22:02.10.811] [LOG]   Starting server on port 8080 ... 
      [14.09.2022 22:02.10.835] [LOG]   Server started ...
      [14.09.2022 22:02.10.837] [LOG]   Connecting socket for: MMM-HASS
      [14.09.2022 22:02.10.839] [LOG]   Connecting socket for: MMM-Wallpaper
      [14.09.2022 22:02.10.840] [LOG]   Starting node helper for: MMM-Wallpaper
      [14.09.2022 22:02.10.841] [LOG]   Connecting socket for: calendar
      [14.09.2022 22:02.10.842] [LOG]   Starting node helper for: calendar
      [14.09.2022 22:02.10.844] [LOG]   Connecting socket for: MMM-TautulliActivity
      [14.09.2022 22:02.10.845] [LOG]   Starting module helper: MMM-TautulliActivity
      [14.09.2022 22:02.10.846] [LOG]   Connecting socket for: newsfeed
      [14.09.2022 22:02.10.847] [LOG]   Starting node helper for: newsfeed
      [14.09.2022 22:02.10.849] [LOG]   Sockets connected & modules started ...
      [1716:0914/220210.856927:ERROR:ozone_platform_x11.cc(247)] Missing X server or $DISPLAY
      [1716:0914/220210.857140:ERROR:env.cc(226)] The platform failed to initialize.  Exiting.
      /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV
      
      S 1 Reply Last reply Reply Quote 0
      • S
        sdetweil @jayd272 last edited by

        @jayd272 is your system running in console mode?

        must be full desktop mode

        Sam

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • R
          Remco last edited by

          Hi,
          I got the same issue after updating .

          ==> MagicMirror-error.log <==
          [24318:1012/112446.727714:ERROR:env.cc(226)] The platform failed to initialize. Exiting.
          /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV
          [24496:1012/112454.856543:ERROR:ozone_platform_x11.cc(247)] Missing X server or $DISPLAY
          [24496:1012/112454.856766:ERROR:env.cc(226)] The platform failed to initialize. Exiting.
          /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV
          [24565:1012/112510.603377:ERROR:ozone_platform_x11.cc(247)] Missing X server or $DISPLAY
          [24565:1012/112510.603597:ERROR:env.cc(226)] The platform failed to initialize. Exiting.
          /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV
          [24624:1012/112526.200613:ERROR:ozone_platform_x11.cc(247)] Missing X server or $DISPLAY
          [24624:1012/112526.200835:ERROR:env.cc(226)] The platform failed to initialize. Exiting.

          Did you find a solution?

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

            @Remco can u show the beginning output of npm start…

            first 5 or 6 lines

            Sam

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • R
              Remco last edited by

              $ npm start

              magicmirror@2.21.0 start
              DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

              [12.10.2022 13:36.16.036] [LOG] Starting MagicMirror: v2.21.0
              [12.10.2022 13:36.16.052] [LOG] Loading config …
              [12.10.2022 13:36.16.068] [LOG] Loading module helpers …
              [12.10.2022 13:36.16.074] [LOG] No helper found for module: alert.
              [12.10.2022 13:36.16.114] [LOG] Initializing new module helper …
              [12.10.2022 13:36.16.116] [LOG] Module helper loaded: updatenotification
              [12.10.2022 13:36.16.119] [LOG] No helper found for module: clock.
              [12.10.2022 13:36.16.660] [LOG] Initializing new module helper …
              [12.10.2022 13:36.16.665] [LOG] Module helper loaded: calendar
              [12.10.2022 13:36.16.669] [LOG] No helper found for module: compliments.
              [12.10.2022 13:36.16.671] [LOG] No helper found for module: weather.
              [12.10.2022 13:36.16.720] [LOG] Initializing new module helper …
              [12.10.2022 13:36.16.721] [LOG] Module helper loaded: newsfeed
              [12.10.2022 13:36.16.723] [LOG] All module helpers loaded.
              [12.10.2022 13:36.16.973] [LOG] Starting server on port 8080 …
              [12.10.2022 13:36.17.004] [LOG] Server started …
              [12.10.2022 13:36.17.006] [LOG] Connecting socket for: updatenotification
              [12.10.2022 13:36.17.008] [LOG] Starting module helper: updatenotification
              [12.10.2022 13:36.17.010] [LOG] Connecting socket for: calendar
              [12.10.2022 13:36.17.012] [LOG] Starting node helper for: calendar
              [12.10.2022 13:36.17.014] [LOG] Connecting socket for: newsfeed
              [12.10.2022 13:36.17.018] [LOG] Starting node helper for: newsfeed
              [12.10.2022 13:36.17.019] [LOG] Sockets connected & modules started …
              [24680:1012/133617.027945:ERROR:ozone_platform_x11.cc(247)] Missing X server or $DISPLAY
              [24680:1012/133617.028297:ERROR:env.cc(226)] The platform failed to initialize. Exiting.
              /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV

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

                @Remco ok, some more diagnostics commands

                node -v
                npm -v
                lsb_release -a
                uname -a
                ps -ef | grep -i x11

                how did u upgrade? manual or my script?
                if my script can u send me the installers/upgrade.log

                use my userid at gmail. ( file is too big to post here)

                note that you must be running the graphical desktop for MM full mode to execute …

                server only mode without desktop is ok
                npm run server

                then u would access from some other system

                Sam

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 0
                • R
                  Remco last edited by

                  Hi,

                  I have done a manual update of MM and pi when the problems started.
                  I have also tried to run your installation script but the problem is still there. I have also tried to update node.js and npm to the latest versions.

                  These are requested outputs:

                  $ node -v
                  v18.10.0

                  $ npm -v
                  8.19.2

                  $ lsb_release -a
                  No LSB modules are available.
                  Distributor ID: Raspbian
                  Description: Raspbian GNU/Linux 10 (buster)
                  Release: 10
                  Codename: buster

                  $ uname -a
                  Linux raspberrypi 5.15.56-v7+ #1575 SMP Fri Jul 22 20:28:11 BST 2022 armv7l GNU/Linux

                  $ ps -ef | grep -i x11
                  pi 27931 5155 0 22:18 pts/0 00:00:00 grep --color=auto -i x11

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

                    @Remco said in Having trouble with launch- perhaps display value?:

                    pi 27931 5155 0 22:18 pts/0 00:00:00 grep --color=auto -i x11

                    ok, try this

                    ps -ef  | grep Xorg 
                    

                    is this a server machine?, or does it have a display? where MM is shown?

                    Sam

                    Create a working config
                    How to add modules

                    1 Reply Last reply Reply Quote 0
                    • R
                      Remco last edited by

                      Hi,

                      MM is running on a Pi with it’s own screen.
                      But in the meantime I got it working again. I found this threat with had similar errors as I had when running ‘startx’.

                      After I removed this driver MM started again:
                      sudo mv /usr/share/X11/xorg.conf.d/99-fbturbo.conf ~
                      startx

                      But I do still have the following errors in the error-log:

                      [16183:1013/103255.149031:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
                      [16220:1013/103256.721936:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
                      [16188:1013/103256.801401:ERROR:command_buffer_proxy_impl.cc(126)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.

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

                        @Remco for the gpu errors do

                        add

                        export ELECTRON_DISABLE_GPU=1

                        in the script that starts mm
                        just before the npm start line

                        Sam

                        Create a working config
                        How to add modules

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy