MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. Scruffy
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    S
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 9
    • Groups 0

    Scruffy

    @Scruffy

    0
    Reputation
    1
    Profile views
    9
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    Scruffy Unfollow Follow

    Latest posts made by Scruffy

    • RE: Failed to Connect to Wayland Display

      @sdetweil said:

      @Scruffy I strongly recommend using some backup/restore mechanism,
      please see my backup/restore scripts for one approach.

      they also support versioning, so you can tell one set of changes from another and can go back or forward…
      and move between systems. too…

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

      and I also support the install/upgrade scripts, mentioned in the MM doc, Alternative install section

      OK perfect! I’ll run through this process next time this occurs. Thanks!

      posted in Troubleshooting
      S
      Scruffy
    • RE: Failed to Connect to Wayland Display

      @sdetweil I’m still very new to Linux/Pi so I was concerned I may have corrupted my original config file(s) with all the changes/modifications I was performing when trying to get the original system back up and running.

      I copied over the old config.js which has all my module settings.

      I installed MM from scratch along with all the modules. I then brought up both config.js files in Geany and copied and pasted over my configurations.

      Not the cleanest of methods but it worked lol.

      posted in Troubleshooting
      S
      Scruffy
    • RE: Failed to Connect to Wayland Display

      @sdetweil UPDADE:

      I have MagicMirror back up and running using a new SD card. I’m guessing the old one died for whatever reason since the whole system was becoming extremely sluggish to the point it would take 10 seconds between input commands triggering.

      Glad to be back up and running!

      Thank you again for all your help troubleshooting and support us!

      Cheers!

      posted in Troubleshooting
      S
      Scruffy
    • RE: Failed to Connect to Wayland Display

      @sdetweil Pi 5 4GB

      posted in Troubleshooting
      S
      Scruffy
    • RE: Failed to Connect to Wayland Display

      @sdetweil I ran the command and this is my output.

                   total       used      free      shared     buff/cache   available
      Mem:         3992        2153      210       550        2126         1839
      Swap:        511         30        481
      

      Is the output in MB? Doesn’t seem like it’s to the point where everything is so slow to respond.

      posted in Troubleshooting
      S
      Scruffy
    • RE: Failed to Connect to Wayland Display

      @atwist what did you end up doing? Or are you still without MM working?

      posted in Troubleshooting
      S
      Scruffy
    • RE: Failed to Connect to Wayland Display

      @sdetweil said:

      npm run start:wayland

      Unfortunately, still no go.

      The whole system is feeling sluggish… I wounder if it’s an SD issue…?

      I have a new SD card arriving later today. I’ll image and reinstall MM and report back.

      If it’s still not working, I’ll provide the logs again.

      Cannot thank you enough, @sdetweil. You’re incredibly responsive and your support is greatly appreciated.

      Cheers!

      posted in Troubleshooting
      S
      Scruffy
    • RE: Failed to Connect to Wayland Display

      @sdetweil

      I ran the first command and this is the output:

      ~ $ ps -ef | grep -v grep | grep -i -e xway -e labwc
      ferguson   66504       1  0 15:32 ?        00:00:01 /usr/bin/Xwayland -auth /home/ferguson/.Xauthority :0 -rootless -core -terminate 10 -listenfd 28 -listenfd 29 -displayfd 88 -wm 82
      

      When I run the last commands, it’s still not launching. The MM screen flickers up for a second and then goes away. This isn’t unique to the above steps.

      Logs look similar, if not the same:

      [306765:0406/201018.874374:ERROR:ui/ozone/platform/wayland/host/wayland_connection.cc:202] Failed to connect to Wayland display: No such file or directory (2)
      [306765:0406/201018.874626:ERROR:ui/ozone/platform/wayland/ozone_platform_wayland.cc:281] Failed to initialize Wayland platform
      [306765:0406/201018.874711:ERROR:ui/aura/env.cc:246] The platform failed to initialize.  Exiting.
      /home/ferguson/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV
      [307094:0406/201032.033709:ERROR:ui/ozone/platform/wayland/host/wayland_connection.cc:202] Failed to connect to Wayland display: No such file or directory (2)
      [307094:0406/201032.033832:ERROR:ui/ozone/platform/wayland/ozone_platform_wayland.cc:281] Failed to initialize Wayland platform
      [307094:0406/201032.033866:ERROR:ui/aura/env.cc:246] The platform failed to initialize.  Exiting.
      /home/ferguson/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV
      

      Strange indeed.

      posted in Troubleshooting
      S
      Scruffy
    • RE: Failed to Connect to Wayland Display

      @sdetweil

      I’m having a similar issue and I’ve been following this post but I still can’t resolve the error.

      [94483:0406/164800.222694:ERROR:ui/ozone/platform/wayland/host/wayland_connection.cc:202] Failed to connect to Wayland display: No such file or directory (2)
      [94483:0406/164800.222815:ERROR:ui/ozone/platform/wayland/ozone_platform_wayland.cc:281] Failed to initialize Wayland platform
      [94483:0406/164800.222849:ERROR:ui/aura/env.cc:246] The platform failed to initialize.  Exiting.
      /home/ferguson/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV
      [94821:0406/164812.960910:ERROR:ui/ozone/platform/wayland/host/wayland_connection.cc:202] Failed to connect to Wayland display: No such file or directory (2)
      [94821:0406/164812.962540:ERROR:ui/ozone/platform/wayland/ozone_platform_wayland.cc:281] Failed to initialize Wayland platform
      [94821:0406/164812.962598:ERROR:ui/aura/env.cc:246] The platform failed to initialize.  Exiting.
      

      I’m currently using the following lines in mm.sh

      #!/bin/bash
      cd ~/MagicMirror
      
      if [ $(ps -ef | grep -v grep | grep -i -e xway -e labwc | wc -l) -ne 0 ]; then
         # if WAYLAND_DISPLAYis set, use it, else set to -0
         export WAYLAND_DISPLAY=${WAYLAND_DISPLAY:=wayland-0}
         npm run start:wayland
      else
         npm run start:x11
      fi
      

      Running the PM2 shows the status is online.

      Any help would be greatly appreciated.

      Cheers!

      posted in Troubleshooting
      S
      Scruffy