-
-
Notifications
You must be signed in to change notification settings - Fork 226
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
Newest version of Chromium can not be run at root - causes OctoDash not to run #1632
Comments
OctoDash v2.1.2 If I repeat the process, and do not perform a 'sudo apt -y update; sudo apt -y upgrade' then octodash does work. |
Is there a way to downgrade the version chrome without doing a new install? |
That's basically what I did when I didn't do the apt update/upgrade. But this is a larger issue, as the chromium capabilities will eventually become main stream in img releases, causing the software to fail out of the box. Locking octodash into a specific version limit of chromium will cause larger issues down the road. |
@JeremyProffitt could you please detail how you start octodash ? |
@pciavald using the option to start on boot in the install script. That in turn adds the start up to /root/.bashrc |
v2.1.2 is still running on Electron 9, which is fairly outdated by now (12 is the current version). The beta is already running on Electron 12. I don't know whether that fixes the chromium issue or whether that still persists, but if you have the time and want to test some stuff feel free to try the beta and report back :) |
Just had a look at the electron repository and they say it's due to Electron being run with the root user (which OctoDash shouldn't do if you've installed everything with the script). Do you executed the script in a superuser context by any chance? The issue you linked is also from 2016 and has been fixed in 2017, so I think there is something else going on here. |
The installation script was not run as root, this is validated by the ask of a password during installation. As for the electron issue, I don't know enough about electron to know, but I'm a senior dev ops engineer, so happy to poke around if you have additional questions. But this use case, install octoprint, update then install octodash is extremely happy path and failed multiple times on multiple configurations in my lab. |
@JeremyProffitt could you please post the output of:
Looking at the install script, if it had been ran as a regular user, it should not have written to |
Oh I totally over read that, if OctoDash is started from the |
Closing since there were no updates. Please reopen with the requested information if this is still valid. |
When system boots, OctoDash will not run, erroring out:
When I reviewed this error, it appears Chromium no longer supports being run as root - https://crbug.com/638180
How to recreate:
Download and burn to sd card / usb drive, OctoPi (octopi-buster-armhf-lite-0.18.0) from https://octoprint.org/download/
Boot Raspberry Pi 4 with HDMI display or 7" LCD
login and run: apt -y update; apt -y upgrade
install Octodash & Reboot
Full Error message:
The text was updated successfully, but these errors were encountered: