SOLVED Problems with Config.js on Pi4 BlackScreen
Hi there seems to be a problem with the config.js on the Pi 4 running MagicMirror 2.8.0 this a clean copy of both Buster and the MagicMirror. when i edit the Config file it Black Screens after Pm2 Restart MagicMirror, i can go back into config and Undo the text that i put in but it still black screens after restart, i have also copied over the sample config to replace everything in the config file and then pm2 restart MagicMirror still get a black screen. When ever i alter the config from stock it stops working. Now my saved Config file that was working on 2.7.1 is now toast where I’ve been looking for answers there it appears it is MagicMirror’s fault or Buster implementation of MM. Anyone still up and running on Buster and the New 2.8.0 MM. So kind of confirmed i saved the original config file and overwrite the altered one and its just blackscreen on restart, only one package is installed and that is mmm-nest-status and that isn’t in the config file so it shouldn’t present any issues but i think the new MM isn’t playing nice with Buster on the Pi4
@dazza120 ok, let’s stop pm2
pm2 stop 0
Go to the MagicMirror folder
npm start dev
In the developers window, select the console tab and scroll up to see any errors.
Could this be the problem? Never been any issues with the pi 3 on Rasbian, and thank you sir offering to help much appreciated
npm ERR! path /home/pi/package.json npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall open npm ERR! enoent ENOENT: no such file or directory, open '/home/pi/package.json' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2019-07-13T16_51_46_205Z-debug.log
@dazza120 must be in the MagicMirror folder for npm start
@sdetweil hi im getting the dev window then into console bet there is nothing at all in there just > So what do i have to run in the dev window is it cd MagicMirrior then pm2 start MagicMirrior? im lost just work dam you mirror lol
@dazza120 pm2 runs the DEFINITION named x. It doesn’t care about folder.
The setup typically uses the pm2_MagicMirror.json file in installers, or the mm.sh there as well.
mm.sh has a bug, it uses ~ to mark ‘current user’, but when start on boot, the user is root, not pi. So the startup fails. My new installer fixes that.
So, edit mm.sh and change the path to
@sdetweil its in that path already but it is completely empty. should it contain text?
@dazza120 sorry, what is “it’s”?