Yup, this is when I ran into the troubles.
Many thanks for the lift, sam.
Will close the issue as it is related to a ‘simple’ module install challenge …
XR
Yup, this is when I ran into the troubles.
Many thanks for the lift, sam.
Will close the issue as it is related to a ‘simple’ module install challenge …
XR
@sdetweil, you are correct.
I determined that the MMM-RTSPStream module is causing the problem for sure, by cross testing the two modules.
Am doing a new install of this as an update install via npm install in the appropriate module folder did not make it work again.
Thank you for your help!
Best XR
@sdetweil, thanks for your swift reply, will do.
@lavolp3
I will have to check that in the evening, as I have not yet disabled any of the modules.
I am struggling with the fact that everything worked fine up to one point, and without me doing anything it stops working smoothly.
If I did anything wrong, I would like to understand the why/how in order to avoid it in the future.
Going to post my findings here.
XR
… and no, I did the manual install.
XR
@sdetweil, did the inputs you recommended.
Following output after changing the run-start.sh file:
> magicmirror@2.10.0 start /home/pi/MagicMirror
> ./run-start.sh
+ ./untrack-css.sh
+ '[' -z :0.0 ']'
++ uname -m
+ arch=armv7l
+ false=false
++ grep -v '^\s//' config/config.js
++ grep -i serveronly:
++ awk '{print tolower($2)}'
++ tr -d ',"'\'''
+ serveronly=
+ serveronly=false
++ pgrep Xorg
+ xorg=484
++ uname
+ mac=Linux
+ '[' false. '!=' false. -o armv7l == armv6l ']'
+ '[' 484. == . -a Linux '!=' Darwin ']'
+ electron js/electron.js
[06:29:21.444] [LOG] Starting MagicMirror: v2.10.0
[06:29:21.459] [LOG] Loading config ...
[06:29:21.470] [LOG] Loading module helpers ...
[06:29:21.593] [LOG] Initializing new module helper ...
[06:29:21.594] [LOG] Module helper loaded: updatenotification
[06:29:21.597] [LOG] No helper found for module: clock.
[06:29:22.784] [LOG] Initializing new module helper ...
[06:29:22.785] [LOG] Module helper loaded: calendar
[06:29:22.989] [LOG] Initializing new module helper ...
[06:29:22.990] [LOG] Module helper loaded: MMM-Fuel
[06:29:23.274] [LOG] Initializing new module helper ...
[06:29:23.275] [LOG] Module helper loaded: MMM-NetworkConnection
[06:29:24.444] [LOG] Initializing new module helper ...
[06:29:24.445] [LOG] Module helper loaded: MMM-DarkSkyForecast
[06:29:26.327] [LOG] Initializing new module helper ...
[06:29:26.328] [LOG] Module helper loaded: MMM-RTSPStream
[06:29:26.415] [LOG] Initializing new module helper ...
[06:29:26.416] [LOG] Module helper loaded: newsfeed
[06:29:26.417] [LOG] All module helpers loaded.
[06:29:26.418] [LOG] Starting server on port 8080 ...
[06:29:26.445] [LOG] Server started ...
[06:29:26.447] [LOG] Connecting socket for: updatenotification
[06:29:26.448] [LOG] Connecting socket for: calendar
[06:29:26.450] [LOG] Starting node helper for: calendar
[06:29:26.451] [LOG] Connecting socket for: MMM-Fuel
[06:29:26.452] [LOG] Starting module helper: MMM-Fuel
[06:29:26.454] [LOG] Connecting socket for: MMM-NetworkConnection
[06:29:26.455] [LOG] MMM-NetworkConnection helper started ...
[06:29:26.456] [LOG] Connecting socket for: MMM-DarkSkyForecast
[06:29:26.457] [LOG] ====================== Starting node_helper for module [MMM-DarkSkyForecast]
[06:29:26.459] [LOG] Connecting socket for: MMM-RTSPStream
[06:29:26.463] [LOG] PM2: Stopping all OMXPlayer Streams...
[06:29:26.468] [LOG] Connecting socket for: newsfeed
[06:29:26.470] [LOG] Starting module: newsfeed
[06:29:26.470] [LOG] Sockets connected & modules started ...
[06:29:27.165] [LOG] Launching application.
[06:29:31.793] [LOG] Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/removed-for-privacy-reasons>
[06:29:32.245] [LOG] Create new news fetcher for url: first-feed - Interval: 300000
[06:29:32.335] [LOG] Create new news fetcher for url: second-feed - Interval: 300000
[06:29:32.340] [LOG] Create new news fetcher for url: third-feed - Interval: 300000
[06:29:33.717] [LOG] starting network connection testing
[06:29:34.289] [LOG] Starting stream stream1 using VLC with args --width 600 --height 340 -I dummy --video-on-top --no-video-deco --no-embedded-video --video-title=stream1 rtsp://admin:removed-for-privacy-reasons@192.168.1.41:554/11...
[06:29:34.383] [INFO] DP2: Running window resizers...
[06:29:36.398] [LOG] Whoops! There was an uncaught exception...
[06:29:36.399] [ERROR] TypeError: Cannot convert undefined or null to object
at Function.keys (<anonymous>)
at stopProcs (/home/pi/MagicMirror/modules/MMM-RTSPStream/node_helper.js:469:32)
at pm2.list (/home/pi/MagicMirror/modules/MMM-RTSPStream/node_helper.js:498:17)
at /home/pi/MagicMirror/modules/MMM-RTSPStream/node_modules/pm2/lib/API.js:606:19
at /home/pi/MagicMirror/modules/MMM-RTSPStream/node_modules/pm2-axon-rpc/lib/client.js:45:10
at Parser.<anonymous> (/home/pi/MagicMirror/modules/MMM-RTSPStream/node_modules/pm2-axon/lib/sockets/req.js:67:8)
at Parser.emit (events.js:182:13)
at Parser._write (/home/pi/MagicMirror/modules/MMM-RTSPStream/node_modules/amp/lib/stream.js:91:16)
at doWrite (_stream_writable.js:410:12)
at writeOrBuffer (_stream_writable.js:394:5)
[06:29:36.408] [LOG] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[06:29:36.409] [LOG] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
[06:29:41.434] [INFO] DP2: Running window resizers...
[06:30:33.602] [LOG] starting network connection testing
[06:31:05.984] [LOG] Whoops! There was an uncaught exception...
[06:31:05.985] [ERROR] { Error: connect EHOSTUNREACH 151.101.2.219:80
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1161:14)
errno: 'EHOSTUNREACH',
code: 'EHOSTUNREACH',
syscall: 'connect',
address: '151.101.2.219',
port: 80 }
[06:31:05.991] [LOG] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[06:31:05.992] [LOG] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
[06:31:20.713] [LOG] Shutting down server...
[06:31:20.715] [LOG] Stopping module helper: updatenotification
[06:31:20.716] [LOG] Stopping module helper: calendar
[06:31:20.717] [LOG] Stopping module helper: MMM-Fuel
[06:31:20.718] [LOG] Stopping module helper: MMM-NetworkConnection
[06:31:20.719] [LOG] Stopping module helper: MMM-DarkSkyForecast
[06:31:20.721] [LOG] Shutting down MMM-RTSPStream streams that were using vlc
[06:31:20.722] [LOG] Killing DevilsPie2...
[06:31:20.727] [LOG] Killing All VLC Streams...
[06:31:20.729] [LOG] Stopping module helper: newsfeed
Output on command ‘uname -a’:
Linux raspberrypi 4.19.75-v7+ #1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l GNU/Linux
Output on command 'lsb_release -a:
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
Codename: buster
Any data I removed above from the output of the start script do not interfere with the problem.
The modules in question, RTSPStream+Calendar+Newsfeed work perfectly with the data I omitted.
Many thanks again, Sam, for looking into this.
Post note: Can the issue really be the EHOSTUNREACH ?
I have not removed the MMM-NetworkConnection module from the config.js file. Yet.
Best
XR
Many thanks, Sam!
Will do first thing in the morning.
XR
Chaps,
After an uneventful (but lucky?) fresh install of MM2.10 plus adding some modules (Network-Connection, RSTPStream, Darksky Weather) everything worked nicely.
Remote access via WinSCP was working fine at any time as well.
Changes to any files are done using Notepad++.
However, several hours later trying to get the screensaver disabled (and no, I did not change the master autostart above the pi-folder structure, but in the pi-subdirectory structure), MM doesn’t start properly anymore.
Very long fetch times of data, resizing of the video stream does not occur anymore, etc.
Behaviour:
The npm log shows the following:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/local/bin/npm', 'start' ]
2 info using npm@6.13.4
3 info using node@v10.15.2
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle magicmirror@2.10.0~prestart: magicmirror@2.10.0
6 info lifecycle magicmirror@2.10.0~start: magicmirror@2.10.0
7 verbose lifecycle magicmirror@2.10.0~start: unsafe-perm in lifecycle true
8 verbose lifecycle magicmirror@2.10.0~start: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/pi/MagicMirror/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
9 verbose lifecycle magicmirror@2.10.0~start: CWD: /home/pi/MagicMirror
10 silly lifecycle magicmirror@2.10.0~start: Args: [ '-c', './run-start.sh' ]
11 silly lifecycle magicmirror@2.10.0~start: Returned: code: 7 signal: null
12 info lifecycle magicmirror@2.10.0~start: Failed to exec start script
13 verbose stack Error: magicmirror@2.10.0 start: `./run-start.sh`
13 verbose stack Exit status 7
13 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:189:13)
13 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:189:13)
13 verbose stack at maybeClose (internal/child_process.js:970:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
14 verbose pkgid magicmirror@2.10.0
15 verbose cwd /home/pi/MagicMirror
16 verbose Linux 4.19.75-v7+
17 verbose argv "/usr/bin/node" "/usr/local/bin/npm" "start"
18 verbose node v10.15.2
19 verbose npm v6.13.4
20 error code ELIFECYCLE
21 error errno 7
22 error magicmirror@2.10.0 start: `./run-start.sh`
22 error Exit status 7
23 error Failed at the magicmirror@2.10.0 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 7, true ]
I tried t figure it out on my own and researched a lot of similar ELIFECYCLE issues in this forum and outside (but never with an error# 7), but I am not able get it right - most probably 'cause I am a Newbie in Linux …
While I do have a clean MM2.10-without-modules image I can resinstall, I would like to know what I did wrong (if indeed I did).
Can anybody please give me a hint, where to look at?
Best
XR
Chaps,
Pethaps again a newbie question, but how do I configure this module for Austria, spritpreisrechner?
Anything ‘special’ to consider?
I do not get an error message for the config.js, but I also do not get a populated list for my Diesel.
Do I need to specify the provider, or does the module do the look up based on my location?
Any hint/help is greatly appreciated.
Many thanks,
XR