Request only required information instead of all#3338
Merged
rejas merged 1 commit intoMagicMirrorOrg:developfrom Jan 14, 2024
Merged
Request only required information instead of all#3338rejas merged 1 commit intoMagicMirrorOrg:developfrom
rejas merged 1 commit intoMagicMirrorOrg:developfrom
Conversation
Hopefully this solves the problem with arm64 (reported in PR MagicMirrorOrg#3337).
Collaborator
node@raspberrypi:/opt/magic_mirror$ npm start
> [email protected] start
> DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
[07.01.2024 22:36.05.347] [LOG] Starting MagicMirror: v2.27.0-develop
[07.01.2024 22:36.05.375] [LOG] Loading config ...
[07.01.2024 22:36.05.379] [DEBUG] config template file not exists, no envsubst
[07.01.2024 22:36.05.853] [ERROR] Whoops! There was an uncaught exception...
[07.01.2024 22:36.05.856] [ERROR] Error: write EFAULT
at afterWriteDispatched (node:internal/stream_base_commons:160:15)
at writeGeneric (node:internal/stream_base_commons:151:3)
at WriteStream._writeGeneric (node:net:931:11)
at WriteStream._write (node:net:943:8)
at writeOrBuffer (node:internal/streams/writable:392:12)
at _write (node:internal/streams/writable:333:10)
at WriteStream.write (node:internal/streams/writable:337:10)
at execSync (node:child_process:981:20)
at node:electron/js2c/asar_bundle:2:12708
at getFQDN (/opt/magic_mirror/node_modules/systeminformation/lib/osinfo.js:171:22)
at /opt/magic_mirror/node_modules/systeminformation/lib/osinfo.js:219:15
at process.processTicksAndRejections (node:internal/process/task_queues:77:11) {
errno: -14,
code: 'EFAULT',
syscall: 'write'
}
[07.01.2024 22:36.05.858] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[07.01.2024 22:36.05.859] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MagicMirrorOrg/MagicMirror/issues
[07.01.2024 22:36.05.862] [LOG] Loading module helpers ...
[07.01.2024 22:36.05.865] [LOG] No helper found for module: alert.
[07.01.2024 22:36.05.884] [LOG] Initializing new module helper ...
[07.01.2024 22:36.05.886] [LOG] Module helper loaded: updatenotification
[07.01.2024 22:36.05.899] [LOG] No helper found for module: clock.
[07.01.2024 22:36.06.106] [LOG] Initializing new module helper ...
[07.01.2024 22:36.06.107] [LOG] Module helper loaded: calendar
[07.01.2024 22:36.06.109] [LOG] No helper found for module: compliments.
[07.01.2024 22:36.06.111] [LOG] No helper found for module: weather.
[07.01.2024 22:36.06.314] [LOG] Initializing new module helper ...
[07.01.2024 22:36.06.315] [LOG] Module helper loaded: newsfeed
[07.01.2024 22:36.06.316] [LOG] All module helpers loaded.
[07.01.2024 22:36.06.334] [LOG] Starting server on port 8080 ...
[07.01.2024 22:36.06.340] [WARN] You're using a full whitelist configuration to allow for all IPs
[07.01.2024 22:36.06.359] [LOG] Server started ...
[07.01.2024 22:36.06.361] [LOG] Connecting socket for: updatenotification
[07.01.2024 22:36.06.362] [LOG] Starting module helper: updatenotification
[07.01.2024 22:36.06.363] [LOG] Connecting socket for: calendar
[07.01.2024 22:36.06.365] [LOG] Starting node helper for: calendar
[07.01.2024 22:36.06.366] [LOG] Connecting socket for: newsfeed
[07.01.2024 22:36.06.367] [LOG] Starting node helper for: newsfeed
[07.01.2024 22:36.06.368] [LOG] Sockets connected & modules started ...
[07.01.2024 22:36.06.717] [ERROR] Whoops! There was an uncaught exception...
[07.01.2024 22:36.06.719] [ERROR] Error: write EFAULT
at afterWriteDispatched (node:internal/stream_base_commons:160:15)
at writeGeneric (node:internal/stream_base_commons:151:3)
at WriteStream._writeGeneric (node:net:931:11)
at WriteStream._write (node:net:943:8)
at writeOrBuffer (node:internal/streams/writable:392:12)
at _write (node:internal/streams/writable:333:10)
at WriteStream.write (node:internal/streams/writable:337:10)
at execSync (node:child_process:981:20)
at node:electron/js2c/asar_bundle:2:12708
at Object.getCodepage (/opt/magic_mirror/node_modules/systeminformation/lib/util.js:562:24)
at /opt/magic_mirror/node_modules/systeminformation/lib/osinfo.js:256:34
at ChildProcess.exithandler (node:child_process:438:5)
at ChildProcess.emit (node:events:514:28)
at maybeClose (node:internal/child_process:1091:16)
at Socket.<anonymous> (node:internal/child_process:449:11)
at Socket.emit (node:events:514:28) {
errno: -14,
code: 'EFAULT',
syscall: 'write'
}
[07.01.2024 22:36.06.722] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[07.01.2024 22:36.06.723] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MagicMirrorOrg/MagicMirror/issues
[07.01.2024 22:36.06.796] [ERROR] Whoops! There was an uncaught exception...
[07.01.2024 22:36.06.798] [ERROR] Error: write EFAULT
at afterWriteDispatched (node:internal/stream_base_commons:160:15)
at writeGeneric (node:internal/stream_base_commons:151:3)
at WriteStream._writeGeneric (node:net:931:11)
at WriteStream._write (node:net:943:8)
at writeOrBuffer (node:internal/streams/writable:392:12)
at _write (node:internal/streams/writable:333:10)
at WriteStream.write (node:internal/streams/writable:337:10)
at execSync (node:child_process:981:20)
at node:electron/js2c/asar_bundle:2:12708
at /opt/magic_mirror/node_modules/systeminformation/lib/system.js:64:21
at ChildProcess.exithandler (node:child_process:422:7)
at ChildProcess.emit (node:events:514:28)
at maybeClose (node:internal/child_process:1091:16)
at Socket.<anonymous> (node:internal/child_process:449:11)
at Socket.emit (node:events:514:28)
at Pipe.<anonymous> (node:net:323:12) {
errno: -14,
code: 'EFAULT',
syscall: 'write'
}
[07.01.2024 22:36.06.799] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[07.01.2024 22:36.06.800] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MagicMirrorOrg/MagicMirror/issues
[07.01.2024 22:36.06.813] [LOG] Launching application.
[07.01.2024 22:36.07.184] [INFO] System information:
### SYSTEM: manufacturer: ; model: Docker Container; raspberry: undefined; virtual: false
### OS: platform: linux; distro: Debian GNU/Linux; release: 12; arch: arm64; kernel: 5.15.76-v8+
### VERSIONS: electron: 27.2.1; used node: 18.17.1; installed node: 21.5.0; npm: 10.2.4; pm2:
### OTHER: timeZone: Europe/Berlin; ELECTRON_ENABLE_GPU: undefined
[07.01.2024 22:36.08.945] [LOG] Create new calendarfetcher for url: https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics - Interval: 604800000
[07.01.2024 22:36.09.111] [LOG] Create new newsfetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
[07.01.2024 22:36.09.118] [INFO] updatenotification: Updater Class Loaded!
[07.01.2024 22:36.09.120] [INFO] updatenotification: Checking PM2 using...
[07.01.2024 22:36.09.122] [INFO] Checking git for module: MagicMirror
[07.01.2024 22:36.09.160] [INFO] updatenotification: You are not using pm2
[07.01.2024 22:36.09.886] [INFO] Newsfeed-Fetcher: Broadcasting 25 items.
[07.01.2024 22:36.10.008] [INFO] Calendar-Fetcher: Broadcasting 12 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
|
Collaborator
Author
|
I need to get my Raspberry Pi up and running again. Apparently testing on a Debian laptop is not enough.... |
Collaborator
Author
|
Except for manufacturer and raspberry, all the information is there. Can you remove them from the query? |
Collaborator
|
I'll try to test on my odroid and Jetson nano |
Collaborator
see #3337 (comment) |
Collaborator
|
I got this on odroid (arm7) |
Collaborator
|
got this for /proc/cpuinfo |
rejas
approved these changes
Jan 14, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hopefully this solves the problem with arm64 (reported in PR #3337).