sdetweil / MagicMirror_scripts

Magic Mirror installation and setup scripts
337 stars 61 forks source link

Magic Mirror installation broken when running upgrade script #49

Closed justinreimer closed 1 year ago

justinreimer commented 1 year ago

My magic mirror project seems to have stopped working after running the upgrade script. Bellow is the list of steps I've taken so far.

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

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

ran pm2 stop MagicMirror

ran bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" apply again

hung at line npm WARN invalid config only="prod --omit=dev --no-audit --no-fund --no-update-notifier" set in command line options npm WARN invalid config Must be one of: null, prod, production

Eventuall had to end process

ran pm2 restart MagicMirror

mirror no longer starts up

ran bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" apply again

tried to start from scratch by running install script bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh)"

justinreimer commented 1 year ago

Here is my upgrade log if that helps upgrade.log

justinreimer commented 1 year ago

Not sure if this is just an issue with pm2, or if the magic mirror update is incomplete and causing startup to fail.

sdetweil commented 1 year ago

Ok, looks like npm has removed the option of --only=prod..

i fixed the scripts.. try again

also, you ONLY run upgrade when moving between MM versions (a new release every 90 days) ...

sdetweil commented 1 year ago

correct, install is new.. from nothing..

so rename the MagicMirror folder or delete it

to 'upgrade' the current release , use force instead of apply

justinreimer commented 1 year ago

Yep, running the upgrade script with force worked. Had to remove and reinstall the electron node module as well, but seems to be working now. Thanks

sdetweil commented 1 year ago

can u post the installers/upgrade.log

electron has troubles sometimes, not sure why

justinreimer commented 1 year ago

Yep

upgrade.log

sdetweil commented 1 year ago

thanks they really messed up the options syntax..

fixed the scripts again

justinreimer commented 1 year ago

No problem. Thanks for the quick updates

sdetweil commented 1 year ago

fixed again