Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boot time startup on Ubuntu 24.04 with Wayland, fails #5820

Open
sdetweil opened this issue May 13, 2024 · 1 comment
Open

boot time startup on Ubuntu 24.04 with Wayland, fails #5820

sdetweil opened this issue May 13, 2024 · 1 comment

Comments

@sdetweil
Copy link

sdetweil commented May 13, 2024

What's going wrong?

when our app MagicMirror (uses Electron browser) starts at boot time, the electron runtime is confused,
looking for X11, but can't find display, etc..

but if we start from command line, it works.

How could we reproduce this issue?

install Ubuntu 24.04 desktop
install the MM app using my script

bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh)"

say yes to use pm2

(you can run the fixuppm2 script if you forget, or want to add it later )

bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/fixuppm2.sh)"

sudo reboot,
app should start (works ok on raspi OS 64 bit, on pi4 or 5 with wayland), but fails with error below (tested on AMD and ARM (macos))
forcing wayland doesn't help
setting wayland_display doesn't help..
see https://discourse.ubuntu.com/t/environment-variables-for-wayland-hackers/12750
the app never recovers altho wayland came up ok.

Supporting information

app reports

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

open terminal window
pm2 stop all
then pm2 start 0
and app comes up ok.

Run the following commands

$ pm2 report

[somefile.txt](https://github.com/Unitech/pm2/files/15299199/somefile.txt)

the pm2 error log
pm2error.log

@sdetweil sdetweil changed the title boot ti,e startup on Ubuntu 24.04 with Wayland off boot ti,e startup on Ubuntu 24.04 with Wayland, fails May 13, 2024
@sdetweil sdetweil changed the title boot ti,e startup on Ubuntu 24.04 with Wayland, fails boot time startup on Ubuntu 24.04 with Wayland, fails May 13, 2024
@sdetweil
Copy link
Author

sdetweil commented May 16, 2024

reference diff between wayland and x11 autostart
https://forums.raspberrypi.com/viewtopic.php?t=314455
enclosed link to guides
https://github.com/thagrol/Guides

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant