@sdetweil
That worked! No idea what we just did, but the update went through and MM worked fine after reboot, to include the module,
Sam, you’re a wizard as far as I’m concerned. Thanks for taking the time to assist us less savvy folks.
@sdetweil
That worked! No idea what we just did, but the update went through and MM worked fine after reboot, to include the module,
Sam, you’re a wizard as far as I’m concerned. Thanks for taking the time to assist us less savvy folks.
@sdetweil
~/MagicMirror/modules/MMM-Remote-Control $ git status
On branch master
Your branch is behind ‘origin/master’ by 8 commits, and can be fast-forwarded.
(use “git pull” to update your local branch)
Changes not staged for commit:
(use “git add/rm …” to update what will be committed)
(use “git restore …” to discard changes in working directory)
modified: modules.json
deleted: package-lock.json
modified: package.json
no changes added to commit (use “git add” and/or “git commit -a”)
Resurrecting an old thread. Still fairly new to this stuff and trying to learn how to solve problems others have had before…
I’ve got notifications that several modules need to be updated and I’m trying to get them done. Currently attempting to update MMM-Remote-Control using the instructions provided :
cd ~/MagicMirror/modules/MMM-Remote-Control # adapt directory if you are using a different one
git pull
npm install # install (new) dependencies
I am getting the same messages as the OP. I am in the module folder and tried running the rm command and I get this:
~/MagicMirror/modules/MMM-Remote-Control $ rm package-lock.json
rm: cannot remove ‘package-lock.json’: No such file or directory
I thought maybe that meant that I had deleted the package-lock and tried running the update command again, but keep getting the same message.
I tried running the install script again, and when asked if I wanted to update (Y), I ended up with the same problem.
Appreciate any guidance. Running MM v2.30.0 (installed using Sam’s scripts) on RPI 3B+.
@sdetweil you were absolutely right! Leading zeroes (intended for 24-hour time) were the culprit. Not sure how it managed to work previously, but it’s all good now. Thank you for the prompt and perfect response.
Got a new Raspi 3B+ and completed fresh install of MagicMirror. Pulled backed up script from my private repo (thanks for the scripts Sam). Upon importing the script (which was previously working on the old Pi 3B+ running MM), would not start.
Ran config:check and got the following result:
[ERROR] Your configuration file contains syntax errors :(
Line 150 column 14: Parsing error: Invalid number
Looking at the script, there is nothing in that location, just some spacing. I tried deleting the spaces and the error persisted, with the only change being the column (from 14 to 13 to 12 to 10 with all spaces deleted and the text being on the left border). See attached screenshot.
In order to get MM working again, I hastily resolved the problem by deleting the AutoDimmer module (where the error is appearing), which seems to have fixed this particular issue. I am now attempting to update the older Pi with a fresh load and getting the same issue. I did update the AutoDimmer module this time (did not on the first time), no impact. Any ideas?
Also. not directly related, but I had issues with the weather modules on the new Pi/MM setup and current weather was not showing, though I could get the forecast back. Will save that for another topic if I can’t solve it.
@sdetweil
We’re up and running! Thank you so much for your patience. I have learned a lot from this go round and I’m hoping that the next update will go much smoother. I still don’t fully understand how to check the test run for compatibility with my configuration before applying the changes, but I have a little time to get smarter before the next update. Have a great rest of your week.
Force update complete. MM still not working properly, but it’s something different, which I’ll call progress.
[ERROR] (node:2061) UnhandledPromiseRejectionWarning: Error: Cannot find module ‘fetch’
(Full text below)
I see some answers for ‘node-fetch’ in topic #18055, but I’m not sure if that fix will work on this problem. I’m still digging around, but not seeing this exact problem so far. Thanks.
magicmirror@2.25.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js
[15.10.2023 20:57.06.757] [LOG] Starting MagicMirror: v2.25.0
[15.10.2023 20:57.06.798] [LOG] Loading config …
[15.10.2023 20:57.06.803] [DEBUG] config template file not exists, no envsubst
[15.10.2023 20:57.06.851] [LOG] Loading module helpers …
[15.10.2023 20:57.06.884] [LOG] No helper found for module: alert.
[15.10.2023 20:57.07.124] [LOG] Initializing new module helper …
[15.10.2023 20:57.07.126] [LOG] Module helper loaded: updatenotification
[15.10.2023 20:57.07.145] [LOG] No helper found for module: clock.
[15.10.2023 20:57.08.647] [LOG] Initializing new module helper …
[15.10.2023 20:57.08.648] [LOG] Module helper loaded: calendar
[15.10.2023 20:57.08.650] [LOG] No helper found for module: MMM-MonthlyCalendar.
[15.10.2023 20:57.08.651] [LOG] No helper found for module: weather.
[15.10.2023 20:57.11.743] [ERROR] (node:2061) UnhandledPromiseRejectionWarning: Error: Cannot find module ‘fetch’
Require stack:
(removed remainder, same spam messages as previous)
@sdetweil
It was in the previous post, about 2/3 of the way down, just below the obnoxiously large text.
@rmcon said in Error starting after upgrade:
Upgrade started - Sun Oct 15 18:19:04 PDT 2023
system is Linux raspberrypi 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l GNU/Linux
the os is Distributor ID: Raspbian Description: Raspbian GNU/Linux 11 (bullseye) Release: 11 Codename: bullseye
user requested to apply changes
doing test run = false
[96mCheck current Node installation …[0m
[0mNode currently installed. Checking version number.
[0mMinimum Node version: [1mv20.8.0[0m
[0mInstalled Node version: [1mv20.8.0[0m
[92mNo Node.js upgrade necessary.[0m
[96mCheck current NPM installation …[0m
[0mNPM currently installed. Checking version number.
[0mMinimum npm version: [1mV10.1.0[0m
[0mInstalled npm version: [1mV10.1.0[0m
[92mNo npm upgrade necessary.[0m
saving custom.css
remote name = origin
local version 2.25.0 already same as master 2.25.0
restoring custom.css
removing git alias
Upgrade ended - Sun Oct 15 18:19:08 PDT 2023
Also, I appreciate the backup and restore info, will look into that before I move ahead.
@sdetweil
I did the test upgrade then followed it with the apply parameter.
@rmcon said in Error starting after upgrade:
Upgrade started - Sun Oct 15 18:19:04 PDT 2023
system is Linux raspberrypi 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l GNU/Linux
the os is Distributor ID: Raspbian Description: Raspbian GNU/Linux 11 (bullseye) Release: 11 Codename: bullseye
user requested to apply changes
doing test run = false
At this point, I think my only option is to try the force option. Worst case scenario, if I can’t revive the current version, I’ll try to remove MM and start fresh. I think I’ve got the important bits saved somewhere else to make the job a little easier.
I really do appreciate your help with this, as it is not my forte.
Just got a chance to work on this again. Tried doing both upgrade scripts (again) and I’m getting the same results. I reviewed the upgrade.log file but nothing is jumping out at me (full log from today’s efforts below). The only items that seem like they didn’t go as intended are a few modules that may have been partially skipped in the upgrade process (“skipped processing for…” MMM-Wallpaper, MMM-connection-status, MMM-Remote-Control, MMM-BurinIn), but I don’t think those would be related to the problems I’m experiencing when trying to start MM. I may remove those from my config.js file to see in anything changes. Other ideas?
(Apologies for the section of large text below, I can’t figure out why it’s doing that and how to fix it)
Upgrade started - Sun Oct 15 18:17:56 PDT 2023
system is Linux raspberrypi 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l GNU/Linux
the os is Distributor ID: Raspbian Description: Raspbian GNU/Linux 11 (bullseye) Release: 11 Codename: bullseye
doing test run = true, NO updates will be applied!
[96mCheck current Node installation …[0m
[0mNode currently installed. Checking version number.
[0mMinimum Node version: [1mv20.8.0[0m
[0mInstalled Node version: [1mv20.8.0[0m
[92mNo Node.js upgrade necessary.[0m
[96mCheck current NPM installation …[0m
[0mNPM currently installed. Checking version number.
[0mMinimum npm version: [1mV10.1.0[0m
[0mInstalled npm version: [1mV10.1.0[0m
[92mNo npm upgrade necessary.[0m
saving custom.css
remote name = origin
upgrading from version 2.25.0 to 2.25.0
fetching latest revisions
git fetch rc=0
current branch = master
On branch master
Your branch is up to date with ‘origin/master’.
Changes not staged for commit:
(use “git add/rm …” to update what will be committed)
(use “git restore …” to discard changes in working directory)
modified: modules/default/alert/templates/alert.njk
modified: modules/default/alert/templates/notification.njk
modified: modules/default/calendar/calendar.js
modified: modules/default/calendar/calendarfetcher.js
modified: modules/default/calendar/calendarfetcherutils.js
modified: modules/default/compliments/compliments.js
modified: modules/default/helloworld/helloworld.njk
modified: modules/default/newsfeed/fullarticle.njk
modified: modules/default/newsfeed/newsfeed.njk
modified: modules/default/newsfeed/newsfeedfetcher.js
modified: modules/default/newsfeed/oldconfig.njk
modified: modules/default/updatenotification/node_helper.js
modified: modules/default/updatenotification/updatenotification.njk
modified: modules/default/weather/current.njk
modified: modules/default/weather/forecast.njk
modified: modules/default/weather/hourly.njk
modified: modules/default/weather/providers/openweathermap.js
deleted: modules/default/weather/providers/overrideWrapper.js
modified: modules/default/weather/providers/weathergov.js
modified: modules/default/weather/providers/yr.js
modified: modules/default/weather/weather.js
modified: modules/default/weather/weatherprovider.js
modified: package-lock.json
modified: package.json
Untracked files:
(use “git add …” to include in what will be committed)
core
css/save_custom.css
no changes added to commit (use “git add” and/or “git commit -a”)
there are 23 local files that are different than the master repo
modules/default/alert/templates/alert.njk
modules/default/alert/templates/notification.njk
modules/default/calendar/calendar.js
modules/default/calendar/calendarfetcher.js
modules/default/calendar/calendarfetcherutils.js
modules/default/compliments/compliments.js
modules/default/helloworld/helloworld.njk
modules/default/newsfeed/fullarticle.njk
modules/default/newsfeed/newsfeed.njk
modules/default/newsfeed/newsfeedfetcher.js
modules/default/newsfeed/oldconfig.njk
modules/default/updatenotification/node_helper.js
modules/default/updatenotification/updatenotification.njk
modules/default/weather/current.njk
modules/default/weather/forecast.njk
modules/default/weather/hourly.njk
modules/default/weather/providers/openweathermap.js
modules/default/weather/providers/weathergov.js
modules/default/weather/providers/yr.js
modules/default/weather/weather.js
modules/default/weather/weatherprovider.js
package-lock.json
package.json
save/restore files selection = n
restoring modules/default/alert/templates/alert.njk from repo
skipping restore for modules/default/alert/templates/alert.njk, doing test run
restoring modules/default/alert/templates/notification.njk from repo
skipping restore for modules/default/alert/templates/notification.njk, doing test run
restoring modules/default/calendar/calendar.js from repo
skipping restore for modules/default/calendar/calendar.js, doing test run
restoring modules/default/calendar/calendarfetcher.js from repo
skipping restore for modules/default/calendar/calendarfetcher.js, doing test run
restoring modules/default/calendar/calendarfetcherutils.js from repo
skipping restore for modules/default/calendar/calendarfetcherutils.js, doing test run
restoring modules/default/compliments/compliments.js from repo
skipping restore for modules/default/compliments/compliments.js, doing test run
restoring modules/default/helloworld/helloworld.njk from repo
skipping restore for modules/default/helloworld/helloworld.njk, doing test run
restoring modules/default/newsfeed/fullarticle.njk from repo
skipping restore for modules/default/newsfeed/fullarticle.njk, doing test run
restoring modules/default/newsfeed/newsfeed.njk from repo
skipping restore for modules/default/newsfeed/newsfeed.njk, doing test run
restoring modules/default/newsfeed/newsfeedfetcher.js from repo
skipping restore for modules/default/newsfeed/newsfeedfetcher.js, doing test run
restoring modules/default/newsfeed/oldconfig.njk from repo
skipping restore for modules/default/newsfeed/oldconfig.njk, doing test run
restoring modules/default/updatenotification/node_helper.js from repo
skipping restore for modules/default/updatenotification/node_helper.js, doing test run
restoring modules/default/updatenotification/updatenotification.njk from repo
skipping restore for modules/default/updatenotification/updatenotification.njk, doing test run
restoring modules/default/weather/current.njk from repo
skipping restore for modules/default/weather/current.njk, doing test run
restoring modules/default/weather/forecast.njk from repo
skipping restore for modules/default/weather/forecast.njk, doing test run
restoring modules/default/weather/hourly.njk from repo
skipping restore for modules/default/weather/hourly.njk, doing test run
restoring modules/default/weather/providers/openweathermap.js from repo
skipping restore for modules/default/weather/providers/openweathermap.js, doing test run
restoring modules/default/weather/providers/weathergov.js from repo
skipping restore for modules/default/weather/providers/weathergov.js, doing test run
restoring modules/default/weather/providers/yr.js from repo
skipping restore for modules/default/weather/providers/yr.js, doing test run
restoring modules/default/weather/weather.js from repo
skipping restore for modules/default/weather/weather.js, doing test run
restoring modules/default/weather/weatherprovider.js from repo
skipping restore for modules/default/weather/weatherprovider.js, doing test run
restoring package-lock.json from repo
skipping restore for package-lock.json, doing test run
restoring package.json from repo
skipping restore for package.json, doing test run
test merge result rc=‘’ , if empty, no conflicts
skipping merge, only test run
Checking for modules with removed libraries
downloading dumpactivemodules script
skipped processing for MMM-BurnIn, doing test run
processing complete for module MMM-BurnIn**
restoring custom.css
removing git alias
Upgrade ended - Sun Oct 15 18:18:11 PDT 2023
Upgrade started - Sun Oct 15 18:19:04 PDT 2023
system is Linux raspberrypi 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l GNU/Linux
the os is Distributor ID: Raspbian Description: Raspbian GNU/Linux 11 (bullseye) Release: 11 Codename: bullseye
user requested to apply changes
doing test run = false
[96mCheck current Node installation …[0m
[0mNode currently installed. Checking version number.
[0mMinimum Node version: [1mv20.8.0[0m
[0mInstalled Node version: [1mv20.8.0[0m
[92mNo Node.js upgrade necessary.[0m
[96mCheck current NPM installation …[0m
[0mNPM currently installed. Checking version number.
[0mMinimum npm version: [1mV10.1.0[0m
[0mInstalled npm version: [1mV10.1.0[0m
[92mNo npm upgrade necessary.[0m
saving custom.css
remote name = origin
local version 2.25.0 already same as master 2.25.0
restoring custom.css
removing git alias
Upgrade ended - Sun Oct 15 18:19:08 PDT 2023