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

    ajgonzales

    @ajgonzales

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

    ajgonzales Unfollow Follow

    Latest posts made by ajgonzales

    • RE: MM won't launch at startup, but will launch manually

      @sdetweil
      I did try adding the command to the first line of the mm.sh script in the installers folder but that didn’t work. Here’s the sequence I run after rebooting, after which I have no issues.

      pm2 stop 0
      xhost +si:localuser:[username]
      pm2 start 0
      

      Here’s the output from those other two commands:

      lsb_release -a
      No LSB modules are available.
      Distributor ID: Ubuntu
      Description:    Ubuntu 24.04 LTS
      Release:        24.04
      Codename:       noble
      
      uname -a
      Linux [computername] 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
      
      posted in Troubleshooting
      A
      ajgonzales
    • RE: MM won't launch at startup, but will launch manually

      In case anyone else has this issue, I was able to able to get it to run via pm2 by running this command first:

      xhost +si:localuser:[username]
      

      Next steps are to figure out how to automatically run that command at startup prior to MM.

      posted in Troubleshooting
      A
      ajgonzales
    • RE: MM won't launch at startup, but will launch manually

      @sdetweil
      was logged in as a user, not root. got the same errors after running the fixuppm2 script and rebooting. here are the results from the other command. looks like it does use wayland:

      aj          2524    2226  0 16:06 tty2     00:00:00 /usr/libexec/gdm-wayland-session env GNOME_SHELL_SESSION_MODE=ubuntu /usr/bin/gnome-session --session=ubuntu
      aj          2938    2674  0 16:06 ?        00:00:03 /usr/bin/Xwayland :0 -rootless -noreset -accessx -core -auth /run/user/1000/.mutter-Xwaylandauth.QXB9M2 -listenfd 4 -listenfd 5 -displayfd 6 -initfd 7 -byteswappedclients
      aj        393102  390657  0 19:44 pts/0    00:00:00 grep --color=auto -i way
      
      
      posted in Troubleshooting
      A
      ajgonzales
    • MM won't launch at startup, but will launch manually

      I installed MM via sdetweil’s script on Ubuntu 24.04. Everything seems to work fine after installation, but after a reboot MM doesn’t start up. Checking the pm2 logs shows these errors, and then it just keeps looping.

      [35781:0511/163537.061675:ERROR:ozone_platform_x11.cc(244)] Missing X server or $DISPLAY
      [35781:0511/163537.061869:ERROR:env.cc(257)] The platform failed to initialize.  Exiting.
      Authorization required, but no authorization protocol specified
      

      I can run MM successfully using

      npm start
      

      from the MagicMirror folder. Any ideas on how I can get it to run at startup?

      posted in Troubleshooting
      A
      ajgonzales