Read the statement by Michael Teeuw here.
v2.18.0 update gave black screen, then nothing.
-
@richard238 ok, fun times…
so, do
cd ~ mv MagicMirror MagicMirror.save git clone https://github.com/MichMich/MagicMirror.git cd MagicMirror npm install --only=prod cd config cp config.js.sample config.js cd ..
then npm start
-
Clean install - works perfectly! :)
pi@magicmirror:~/MagicMirror $ cd config pi@magicmirror:~/MagicMirror/config $ cp config.js.sample config.js pi@magicmirror:~/MagicMirror/config $ cd .. pi@magicmirror:~/MagicMirror $ npm start > magicmirror@2.18.0 start > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js [06.01.2022 16:30.01.197] [LOG] Starting MagicMirror: v2.18.0 [06.01.2022 16:30.01.222] [LOG] Loading config ... [06.01.2022 16:30.01.238] [LOG] Loading module helpers ... [06.01.2022 16:30.01.243] [LOG] No helper found for module: alert. [06.01.2022 16:30.01.307] [LOG] Initializing new module helper ... [06.01.2022 16:30.01.311] [LOG] Module helper loaded: updatenotification [06.01.2022 16:30.01.315] [LOG] No helper found for module: clock. [06.01.2022 16:30.01.765] [LOG] Initializing new module helper ... [06.01.2022 16:30.01.768] [LOG] Module helper loaded: calendar [06.01.2022 16:30.01.771] [LOG] No helper found for module: compliments. [06.01.2022 16:30.01.773] [LOG] No helper found for module: weather. [06.01.2022 16:30.01.843] [LOG] Initializing new module helper ... [06.01.2022 16:30.01.845] [LOG] Module helper loaded: newsfeed [06.01.2022 16:30.01.848] [LOG] All module helpers loaded. [06.01.2022 16:30.02.152] [LOG] Starting server on port 8080 ... [06.01.2022 16:30.02.183] [LOG] Server started ... [06.01.2022 16:30.02.185] [LOG] Connecting socket for: updatenotification [06.01.2022 16:30.02.187] [LOG] Starting module helper: updatenotification [06.01.2022 16:30.02.189] [LOG] Connecting socket for: calendar [06.01.2022 16:30.02.190] [LOG] Starting node helper for: calendar [06.01.2022 16:30.02.191] [LOG] Connecting socket for: newsfeed [06.01.2022 16:30.02.192] [LOG] Starting node helper for: newsfeed [06.01.2022 16:30.02.193] [LOG] Sockets connected & modules started ... [06.01.2022 16:30.02.845] [LOG] Launching application. [8846:0106/163005.246382:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization [8886:0106/163005.631441:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process. [06.01.2022 16:30.12.077] [LOG] Create new calendarfetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000 [06.01.2022 16:30.12.157] [LOG] Create new newsfetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000 [06.01.2022 16:30.12.258] [INFO] Checking git for module: default [06.01.2022 16:30.13.590] [INFO] Calendar-Fetcher: Broadcasting 10 events. [06.01.2022 16:30.13.638] [INFO] Newsfeed-Fetcher: Broadcasting 64 items.
-
@richard238 ok!.. run this to get rid of the sandbox problem
bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/fixsandbox)"
then
cd ~/MagicMirror/modules # save the new default modules folder mv default default.new cd .. # copy all the modules from old install (incl default) preserve ownership and dates, need sudo to copy git info sudo cp -r -p ~/MagicMirror.save/modules/* modules cd modules # remove the copied default modules rm -rf default # restore the saved default mv default.new default
copy your full function config.js to MagicMirror/config
and try it outcd ~/MagicMirror npm start
-
pi@magicmirror:~ $ cd ~/MagicMirror/modules pi@magicmirror:~/MagicMirror/modules $ mv default default.new pi@magicmirror:~/MagicMirror/modules $ sudo cp -r -p ~/MagicMirror.save/modules/* modules cp: target 'modules' is not a directory
Tried it without the space…
pi@magicmirror:~/MagicMirror/modules $ sudo cp -r -p ~/MagicMirror.save/modules/*modules cp: missing destination file operand after '/home/pi/MagicMirror.save/modules/*modules' Try 'cp --help' for more information. pi@magicmirror:~/MagicMirror/modules $
-
I have to leave shortly Sam.
Thank you for all your help with this today, I’ll try again tomorrow.
Richard.
-
@richard238 ok
you forgot the cd …
cd .. # copy all the modules from old install (incl default) preserve ownership and dates, need sudo to copy git info sudo cp -r -p ~/MagicMirror.save/modules/* modules
-
Trying to rename config.js to sample,
Error when getting information for file “/home/pi/MagicMirror/config/config.js”: No such file or directory Error renaming file /home/pi/MagicMirror/config/config.js: No such file or directory
Yet I can see it, I can query it for permissions…
Back tomorrow.
Richard. -
@richard238 said in v2.18.0 update gave black screen, then nothing.:
Error when getting information for file “/home/pi/MagicMirror/config/config.js”
you need to copy from save
cd ~/MagicMirror.save/config cp -p config.js ~/Magicmirror/config
-
Good morning Sam.
Tried that late yesterday, and yes, it works.
And this morning, I copiedcustom.css
from
/home/pi/MagicMirror.save/css
to
/home/pi/MagicMirror/css
This too is working perfectly.
Is there anything else to do, housekeeping maybe, or is that it now?
-
@richard238 if everything is running ok then I think you are done, and can delete the
MagicMirror.save folder