Read the statement by Michael Teeuw here.
Unable to update
-
Hi,
about two weeks ago my MM wont autostart after the nightly restart so I tried to start it manually but kept geeting this error:
pi@raspberrypi:~/MagicMirror $ npm start > magicmirror@2.14.0-develop start /home/pi/MagicMirror > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js [2021-11-14 12:43:43.744] [LOG] Starting MagicMirror: v2.14.0-develop [2021-11-14 12:43:43.759] [LOG] Loading config ... [2021-11-14 12:43:43.775] [LOG] Loading module helpers ... [2021-11-14 12:43:43.782] [LOG] No helper found for module: alert. [2021-11-14 12:43:43.905] [LOG] Initializing new module helper ... [2021-11-14 12:43:43.907] [LOG] Module helper loaded: updatenotification [2021-11-14 12:43:43.909] [LOG] No helper found for module: clock. [2021-11-14 12:43:44.785] [LOG] Initializing new module helper ... [2021-11-14 12:43:44.787] [LOG] Module helper loaded: calendar [2021-11-14 12:43:44.788] [LOG] No helper found for module: compliments. [2021-11-14 12:43:44.789] [LOG] No helper found for module: currentweather. [2021-11-14 12:43:44.790] [LOG] No helper found for module: weatherforecast. [2021-11-14 12:43:45.465] [LOG] Initializing new module helper ... [2021-11-14 12:43:45.466] [LOG] Module helper loaded: MMM-RMV [2021-11-14 12:43:45.468] [LOG] No helper found for module: MMM-MagicMover. [2021-11-14 12:43:45.508] [LOG] Initializing new module helper ... [2021-11-14 12:43:45.509] [LOG] Module helper loaded: MMM-GPIO-Notifications [2021-11-14 12:43:45.514] [LOG] Initializing new module helper ... [2021-11-14 12:43:45.516] [LOG] Module helper loaded: MMM-Screen-Powersave-Notification [2021-11-14 12:43:45.517] [LOG] All module helpers loaded. [2021-11-14 12:43:45.762] [LOG] Starting server on port 8080 ... [2021-11-14 12:43:45.790] [LOG] Server started ... [2021-11-14 12:43:45.792] [LOG] Connecting socket for: updatenotification [2021-11-14 12:43:45.794] [LOG] Connecting socket for: calendar [2021-11-14 12:43:45.795] [LOG] Starting node helper for: calendar [2021-11-14 12:43:45.797] [LOG] Connecting socket for: MMM-RMV [2021-11-14 12:43:45.798] [LOG] node helper: MMM-RMV [2021-11-14 12:43:45.800] [LOG] Connecting socket for: MMM-GPIO-Notifications [2021-11-14 12:43:45.802] [LOG] Connecting socket for: MMM-Screen-Powersave-Notification [2021-11-14 12:43:45.803] [LOG] Sockets connected & modules started ... [2021-11-14 12:43:45.979] [LOG] Launching application. [2021-11-14 12:43:49.622] [LOG] Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/privateinformation/basic.ics - Interval: 300000 [8566:1114/124349.654259:FATAL:nss_util.cc(156)] nss_error=-8023, os_error=0
So I tried upgrading my MM from 2.13 to the latest version using @sdetweil ´s script, but are getting this error message:
pi@raspberrypi:~/MagicMirror $ bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" apply No LSB modules are available. doing test run = false update log will be in /home/pi/MagicMirror/installers/upgrade.log Check current Node installation ... Node currently installed. Checking version number. Minimum Node version: v14.0.0 Installed Node version: v14.5.0 No Node.js upgrade necessary. Check current NPM installation ... NPM currently installed. Checking version number. Minimum npm version: V6.0.0 Installed npm version: V6.14.5 No npm upgrade necessary. saving custom.css upgrading from version 2.13.0 to 2.17.1 fetching latest revisions remote: Enumerating objects: 6945, done. remote: Counting objects: 100% (5614/5614), done. remote: Compressing objects: 100% (1679/1679), done. remote: Total 5090 (delta 3498), reused 4667 (delta 3110), pack-reused 0 Receiving objects: 100% (5090/5090), 1.63 MiB | 1.97 MiB/s, done. Resolving deltas: 100% (3498/3498), completed with 188 local objects. error: failed to unpack compressed delta at offset 4354390 from .git/objects/pack/pack-db4ea21d0b1cda15680425fad53004467289e3d4.pack error: failed to unpack compressed delta at offset 4356319 from .git/objects/pack/pack-db4ea21d0b1cda15680425fad53004467289e3d4.pack fatal: packed object dc9fbb9c24dbc192b766396608b917928f673d06 (stored in .git/objects/pack/pack-db4ea21d0b1cda15680425fad53004467289e3d4.pack) is corrupt error: https://github.com/MichMich/MagicMirror.git did not send all necessary objects MagicMirror git fetch failed restoring custom.css
Forum search didnt help. Any ideas what I could try?
Thanks in advance!
Best regards
-
@sethur odd…
at the command line can you try
git clone https://github.com/MichMich/MagicMirror newmm
also, can u try
sudo apt update sudo apt upgrade
then try again
-
Thank you for your quick answer! I did as you said, trying to update I still get the error:
pi@raspberrypi:~ $ apt list --upgradable Auflistung... Fertig raspberrypi-sys-mods/oldstable 20211005 armhf [aktualisierbar von: 20200514] raspberrypi-ui-mods/oldstable 1.20210706 all [aktualisierbar von: 1.20200611] pi@raspberrypi:~ $ cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 10 (buster)" NAME="Raspbian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
Sorry for the coming single posts, combined it would be flagged as spam by the system.
-
If i try to update the same error as posted is occuring, with a bit different deltas, but the same delta at offset.
If i try to start the MM it is working about a second, then closing again with this output:
pi@raspberrypi:~/MagicMirror $ npm start > magicmirror@2.13.0 start /home/pi/MagicMirror > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js [2021-11-15 08:04:51.959] [LOG] Starting MagicMirror: v2.13.0 [2021-11-15 08:04:51.973] [LOG] Loading config ... [2021-11-15 08:04:51.985] [LOG] Loading module helpers ...
-
and this:
[2021-11-15 08:04:53.997] [LOG] Starting server on port 8080 ... [2021-11-15 08:04:54.026] [LOG] Server started ... [2021-11-15 08:04:54.028] [LOG] Connecting socket for: updatenotification [2021-11-15 08:04:54.030] [LOG] Connecting socket for: calendar [...] [2021-11-15 08:04:58.578] [LOG] MMM-Screen-Powersave-Notification: Resetted screen timeout to 120 seconds! [2021-11-15 08:04:58.700] [INFO] Checking git for module: MMM-GPIO-Notifications [2021-11-15 08:04:58.754] [INFO] Checking git for module: MMM-Screen-Powersave-Notification [2021-11-15 08:05:44.559] [ERROR] Calendar Error. Could not fetch calendar: https://calendar.google.com/calendar/ical/private/basic.ics Error: socket hang up at connResetException (internal/errors.js:559:14) at TLSSocket.socketOnEnd (_http_client.js:436:23) at TLSSocket.emit (events.js:205:15) at endReadableNT (_stream_readable.js:1154:12) at processTicksAndRejections (internal/process/task_queues.js:84:9) { code: 'ECONNRESET' } [2021-11-15 08:05:47.232] [LOG] MMM-GPIO-Notifications: Watched pin: 4 triggered! [2021-11-15 08:05:47.235] [LOG] MMM-GPIO-Notifications: Sending notifications of pin 4... [2021-11-15 08:05:47.237] [LOG] CurProfile: [2021-11-15 08:05:47.238] [LOG] CurProfileString: undefined [2021-11-15 08:05:47.240] [LOG] CurProfile: [2021-11-15 08:05:47.241] [LOG] CurProfileString: undefined [2021-11-15 08:05:50.418] [LOG] Use existing calendar fetcher for url: https://calendar.google.com/calendar/ical/private/basic.ics [2021-11-15 08:05:50.420] [INFO] Calendar-Fetcher: Broadcasting 0 events. [2021-11-15 08:05:50.615] [LOG] MMM-GPIO-Notifications: Received Notification: CONFIG [2021-11-15 08:05:50.619] [LOG] MMM-Screen-Powersave-Notification: Received Notification: CONFIG [3525:1115/080552.029852:FATAL:nss_util.cc(156)] nss_error=-8023, os_error=0
Any more suggestions?
Sorry for the multiple posts due to spam control. Do you need the complete code?
-
@sethur based on all the strange behavior, I think your SD card has become used up
the memory technology is write once, just like SSD disc. they publish a total terabytes written TBW value for the lifetime.
SD cards don’t publish this. but once it’s reached, the filesystem thinks it wrote data out, but sector by sector it did not. apparently there is no notification to the filesystem.
I have lost 10 cards over 4 years. from 8 to 32 gb in size.
u should be able to copy your modules and config off the card to a new card
-
Oh crap. Love a new setup.
Anyways thank you a lot für your quick and helpful support!