Solved Error: write EFAULT
-
Hi,
i fresh reinstall mm with gateway & google assistant but i’m facing isue to use ext-screen with ext-pir. no time is displayed for ext-screen and in log i’m facing this error :[23.10.2023 18:05.35.444] [ERROR] Whoops! There was an uncaught exception... [23.10.2023 18:05.35.448] [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:930:11) at WriteStream._write (node:net:942: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 e.write (/home/magic/MagicMirror/modules/Gateway/components/hyperwatch.js:1:378) at execSync (node:child_process:981:20) at node:electron/js2c/asar_bundle:2:12708 at Object.getCodepage (/home/magic/MagicMirror/modules/Gateway/node_modules/systeminformation/lib/util.js:556:24) at /home/magic/MagicMirror/modules/Gateway/node_modules/systeminformation/lib/osinfo.js:256:34 at ChildProcess.exithandler (node:child_process:438:5) at ChildProcess.emit (node:events:513:28) at maybeClose (node:internal/child_process:1091:16) at Socket.<anonymous> (node:internal/child_process:449:11) { errno: -14, code: 'EFAULT', syscall: 'write' }
coould you help me to solve this and use ext-pir &screen correctly
-
Hi,
- what is your os ?
- what is node version ?
-
Hi bugsounet,
i’m on raspbian 6.1.21-v8+ and my version of node is v18.17.1 -
also there is a full lo of npm start :
npm start > magicmirror@2.25.0 start > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js [23.10.2023 20:54.04.630] [LOG] Starting MagicMirror: v2.25.0 [23.10.2023 20:54.04.636] [LOG] Loading config ... [23.10.2023 20:54.04.641] [DEBUG] config template file not exists, no envsubst [23.10.2023 20:54.04.647] [LOG] Loading module helpers ... [23.10.2023 20:54.04.649] [LOG] No helper found for module: alert. [23.10.2023 20:54.04.650] [LOG] No helper found for module: clock. [23.10.2023 20:54.04.966] [LOG] Initializing new module helper ... [23.10.2023 20:54.04.967] [LOG] Module helper loaded: calendar [23.10.2023 20:54.04.970] [LOG] Initializing new module helper ... [23.10.2023 20:54.04.971] [LOG] Module helper loaded: MMM-Jeedom [23.10.2023 20:54.04.972] [LOG] No helper found for module: compliments. [23.10.2023 20:54.04.973] [LOG] No helper found for module: weather. [23.10.2023 20:54.05.587] [LOG] Initializing new module helper ... [23.10.2023 20:54.05.588] [LOG] Module helper loaded: MMM-NowPlayingOnSpotify [23.10.2023 20:54.05.805] [LOG] Initializing new module helper ... [23.10.2023 20:54.05.805] [LOG] Module helper loaded: newsfeed [23.10.2023 20:54.05.952] [LOG] Initializing new module helper ... [23.10.2023 20:54.05.952] [LOG] Module helper loaded: EXT-Screen [23.10.2023 20:54.05.960] [LOG] Initializing new module helper ... [23.10.2023 20:54.05.960] [LOG] Module helper loaded: EXT-Pir [23.10.2023 20:54.05.974] [LOG] Initializing new module helper ... [23.10.2023 20:54.05.976] [LOG] Module helper loaded: Gateway [23.10.2023 20:54.05.977] [LOG] All module helpers loaded. [23.10.2023 20:54.05.991] [LOG] Starting server on port 8080 ... [23.10.2023 20:54.06.352] [LOG] Server started ... [23.10.2023 20:54.06.354] [LOG] Connecting socket for: calendar [23.10.2023 20:54.06.355] [LOG] Starting node helper for: calendar [23.10.2023 20:54.06.356] [LOG] Connecting socket for: MMM-Jeedom [23.10.2023 20:54.06.357] [LOG] Connecting socket for: MMM-NowPlayingOnSpotify [23.10.2023 20:54.06.357] [LOG] Connecting socket for: newsfeed [23.10.2023 20:54.06.358] [LOG] Starting node helper for: newsfeed [23.10.2023 20:54.06.359] [LOG] Connecting socket for: EXT-Screen [23.10.2023 20:54.06.360] [LOG] Connecting socket for: EXT-Pir [23.10.2023 20:54.06.361] [LOG] Connecting socket for: Gateway [23.10.2023 20:54.06.362] [LOG] Sockets connected & modules started ... [23.10.2023 20:54.06.403] [LOG] Launching application. [19281:1023/205406.675606:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.portal.Settings.Read: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.portal.Desktop was not provided by any .service files [23.10.2023 20:54.09.246] [LOG] {"jsonrpc": "2.0", "id": "1000", "method": "cmd::execCmd", "params": {"options":"", "apikey": "xxxx", "id": ["5049","5048","5078","5063","5062","5079"]}} [23.10.2023 20:54.09.248] [LOG] { hostname: '192.168.31.101', port: 80, path: '/core/api/jeeApi.php', method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', 'Content-Length': 181 } } [23.10.2023 20:54.09.284] [LOG] Create new calendarfetcher for url: https://calendar.google.com/calendar/ical/xxx- Interval: 3600000 [23.10.2023 20:54.09.428] [LOG] Create new calendarfetcher for url: https://calendar.google.com/calendar/ical/xxx- Interval: 3600000 [23.10.2023 20:54.09.434] [LOG] Create new calendarfetcher for url: https://calendar.google.com/calendar/ical/xxx - Interval: 3600000 [23.10.2023 20:54.09.437] [LOG] {"jsonrpc": "2.0", "id": "1000", "method": "cmd::execCmd", "params": {"options":"", "apikey": "xxx", "id": ["4017","4018","4019","4022","4027","2458"]}} [23.10.2023 20:54.09.439] [LOG] { hostname: '192.168.31.101', port: 80, path: '/core/api/jeeApi.php', method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', 'Content-Length': 181 } } [23.10.2023 20:54.09.461] [LOG] Create new newsfetcher for url: https://www.lesoir.be/rss/2/cible_principale - Interval: 300000 [23.10.2023 20:54.09.471] [LOG] [GATEWAY] Gateway Version: 3.6.3 rev: 231008 [23.10.2023 20:54.09.478] [ERROR] (node:19281) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (Use `electron --trace-deprecation ...` to show where the warning was created) [23.10.2023 20:54.12.689] [LOG] [GATEWAY] [LIB] All libraries loaded! [23.10.2023 20:54.12.693] [LOG] [GATEWAY] MagicMirror address: localhost [23.10.2023 20:54.12.696] [LOG] [GATEWAY] [TRANSLATION] [HOME] Use: fr.home [23.10.2023 20:54.12.745] [LOG] {"jsonrpc": "2.0", "id": "1000", "method": "cmd::execCmd", "params": {"options":"", "apikey": "xxx", "id": ["4017","4018","4019","4022","4027","2458"]}} [23.10.2023 20:54.12.746] [LOG] { hostname: '192.168.31.101', port: 80, path: '/core/api/jeeApi.php', method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', 'Content-Length': 181 } } [23.10.2023 20:54.12.849] [LOG] [GATEWAY] [PM2] checking PM2 using... [23.10.2023 20:54.12.862] [LOG] {"jsonrpc": "2.0", "id": "1000", "method": "cmd::execCmd", "params": {"options":"", "apikey": "xxx", "id": ["5049","5048","5078","5063","5062","5079"]}} [23.10.2023 20:54.12.865] [LOG] { hostname: '192.168.31.101', port: 80, path: '/core/api/jeeApi.php', method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', 'Content-Length': 181 } } [23.10.2023 20:54.13.003] [LOG] Refreshed access token because it has expired. Expired at: 20:54:09 now is: 20:54:13 [23.10.2023 20:54.13.164] [LOG] [GATEWAY] [PM2] You don't use PM2 [23.10.2023 20:54.13.237] [LOG] Refreshed access token because it has expired. Expired at: 21:54:13 now is: 20:54:13 [23.10.2023 20:54.13.246] [LOG] Refreshed access token because it has expired. Expired at: 21:54:13 now is: 20:54:13 [23.10.2023 20:54.13.266] [LOG] Refreshed access token because it has expired. Expired at: 21:54:13 now is: 20:54:13 [23.10.2023 20:54.13.281] [LOG] Refreshed access token because it has expired. Expired at: 21:54:13 now is: 20:54:13 [23.10.2023 20:54.14.917] [ERROR] Whoops! There was an uncaught exception... [23.10.2023 20:54.14.919] [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:930:11) at WriteStream._write (node:net:942: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 e.write (/home/magic/MagicMirror/modules/Gateway/components/hyperwatch.js:1:378) at execSync (node:child_process:981:20) at node:electron/js2c/asar_bundle:2:12708 at getFQDN (/home/magic/MagicMirror/modules/Gateway/node_modules/systeminformation/lib/osinfo.js:171:22) at /home/magic/MagicMirror/modules/Gateway/node_modules/systeminformation/lib/osinfo.js:219:15 at process.processTicksAndRejections (node:internal/process/task_queues:77:11) { errno: -14, code: 'EFAULT', syscall: 'write' } [23.10.2023 20:54.14.920] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [23.10.2023 20:54.14.921] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues [23.10.2023 20:54.15.001] [LOG] {"jsonrpc": "2.0", "id": "1000", "method": "cmd::execCmd", "params": {"options":"", "apikey": "xxx", "id": ["4017","4018","4019","4022","4027","2458"]}} [23.10.2023 20:54.15.002] [LOG] { hostname: '192.168.31.101', port: 80, path: '/core/api/jeeApi.php', method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', 'Content-Length': 181 } } [23.10.2023 20:54.15.007] [LOG] {"jsonrpc": "2.0", "id": "1000", "method": "cmd::execCmd", "params": {"options":"", "apikey": "xxx", "id": ["5049","5048","5078","5063","5062","5079"]}} [23.10.2023 20:54.15.008] [LOG] { hostname: '192.168.31.101', port: 80, path: '/core/api/jeeApi.php', method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', 'Content-Length': 181 } } [23.10.2023 20:54.15.393] [ERROR] Whoops! There was an uncaught exception... [23.10.2023 20:54.15.397] [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:930:11) at WriteStream._write (node:net:942: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 e.write (/home/magic/MagicMirror/modules/Gateway/components/hyperwatch.js:1:378) at execSync (node:child_process:981:20) at node:electron/js2c/asar_bundle:2:12708 at /home/magic/MagicMirror/modules/Gateway/node_modules/systeminformation/lib/system.js:64:21 at ChildProcess.exithandler (node:child_process:422:7) at ChildProcess.emit (node:events:513:28) at maybeClose (node:internal/child_process:1091:16) at Socket.<anonymous> (node:internal/child_process:449:11) at Socket.emit (node:events:513:28) { errno: -14, code: 'EFAULT', syscall: 'write' } [23.10.2023 20:54.15.402] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [23.10.2023 20:54.15.403] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues [23.10.2023 20:54.15.483] [ERROR] Whoops! There was an uncaught exception... [23.10.2023 20:54.15.486] [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:930:11) at WriteStream._write (node:net:942: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 e.write (/home/magic/MagicMirror/modules/Gateway/components/hyperwatch.js:1:378) at execSync (node:child_process:981:20) at node:electron/js2c/asar_bundle:2:12708 at Object.getCodepage (/home/magic/MagicMirror/modules/Gateway/node_modules/systeminformation/lib/util.js:556:24) at /home/magic/MagicMirror/modules/Gateway/node_modules/systeminformation/lib/osinfo.js:256:34 at ChildProcess.exithandler (node:child_process:438:5) at ChildProcess.emit (node:events:513:28) at maybeClose (node:internal/child_process:1091:16) at Socket.<anonymous> (node:internal/child_process:449:11) { errno: -14, code: 'EFAULT', syscall: 'write' } [23.10.2023 20:54.15.492] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [23.10.2023 20:54.15.493] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues [23.10.2023 20:54.16.455] [INFO] Newsfeed-Fetcher: Broadcasting 10 items. [23.10.2023 20:54.17.083] [INFO] Calendar-Fetcher: Broadcasting 22 events from https://calendar.google.com/calendar/ical/\xxx. [23.10.2023 20:54.17.728] [LOG] {"jsonrpc": "2.0", "id": "1000", "method": "cmd::execCmd", "params": {"options":"", "apikey": "xxx", "id": ["4017","4018","4019","4022","4027","2458"]}} [23.10.2023 20:54.17.732] [LOG] { hostname: '192.168.31.101', port: 80, path: '/core/api/jeeApi.php', method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', 'Content-Length': 181 } } [23.10.2023 20:54.17.791] [LOG] {"jsonrpc": "2.0", "id": "1000", "method": "cmd::execCmd", "params": {"options":"", "apikey": "xxx", "id": ["5049","5048","5078","5063","5062","5079"]}} [23.10.2023 20:54.17.794] [LOG] { hostname: '192.168.31.101', port: 80, path: '/core/api/jeeApi.php', method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', 'Content-Length': 181 } } [23.10.2023 20:54.20.761] [INFO] Calendar-Fetcher: Broadcasting 23 events from https://calendar.google.com/calendar/ical/XXX. [23.10.2023 20:54.20.834] [LOG] {"jsonrpc": "2.0", "id": "1000", "method": "cmd::execCmd", "params": {"options":"", "apikey": "xxx", "id": ["4017","4018","4019","4022","4027","2458"]}} [23.10.2023 20:54.20.835] [LOG] { hostname: '192.168.31.101', port: 80, path: '/core/api/jeeApi.php', method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', 'Content-Length': 181 } } [23.10.2023 20:54.20.842] [LOG] {"jsonrpc": "2.0", "id": "1000", "method": "cmd::execCmd", "params": {"options":"", "apikey": "xxx", "id": ["5049","5048","5078","5063","5062","5079"]}} [23.10.2023 20:54.20.844] [LOG] { hostname: '192.168.31.101', port: 80, path: '/core/api/jeeApi.php', method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', 'Content-Length': 181 } } [23.10.2023 20:54.24.023] [INFO] Calendar-Fetcher: Broadcasting 118 events from https://calendar.google.com/calendar/ical/XXX. [23.10.2023 20:54.24.063] [LOG] {"jsonrpc": "2.0", "id": "1000", "method": "cmd::execCmd", "params": {"options":"", "apikey": "xxx", "id": ["4017","4018","4019","4022","4027","2458"]}} [23.10.2023 20:54.24.064] [LOG] { hostname: '192.168.31.101', port: 80, path: '/core/api/jeeApi.php', method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', 'Content-Length': 181 } } [23.10.2023 20:54.24.071] [LOG] {"jsonrpc": "2.0", "id": "1000", "method": "cmd::execCmd", "params": {"options":"", "apikey": "xxx", "id": ["5049","5048","5078","5063","5062","5079"]}} [23.10.2023 20:54.24.073] [LOG] { hostname: '192.168.31.101', port: 80, path: '/core/api/jeeApi.php', method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', 'Content-Length': 181 } } [23.10.2023 20:54.24.104] [LOG] [GATEWAY] [SYSTEMINFO] Read Uptimed [23.10.2023 20:54.24.106] [LOG] [GATEWAY] [SYSTEMINFO] Initialized [23.10.2023 20:54.24.107] [LOG] [GATEWAY] no CLIENT_ID found in your config! [23.10.2023 20:54.24.107] [WARN] [GATEWAY] SmartHome functionality is disabled [23.10.2023 20:54.24.109] [WARN] [GATEWAY] WARN: You are using default username or default password [23.10.2023 20:54.24.119] [WARN] [GATEWAY] WARN: Don't forget to change it! [23.10.2023 20:54.24.297] [ERROR] Whoops! There was an uncaught exception... [23.10.2023 20:54.24.300] [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:930:11) at WriteStream._write (node:net:942: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 e.write (/home/magic/MagicMirror/modules/Gateway/components/hyperwatch.js:1:378) at execSync (node:child_process:981:20) at node:electron/js2c/asar_bundle:2:12708 at getDefaultNetworkInterface (/home/magic/MagicMirror/modules/Gateway/node_modules/systeminformation/lib/network.js:94:20) at /home/magic/MagicMirror/modules/Gateway/node_modules/systeminformation/lib/network.js:200:20 at process.processTicksAndRejections (node:internal/process/task_queues:77:11) { errno: -14, code: 'EFAULT', syscall: 'write' } [23.10.2023 20:54.24.301] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [23.10.2023 20:54.24.303] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues [23.10.2023 20:54.25.365] [ERROR] Whoops! There was an uncaught exception... [23.10.2023 20:54.25.368] [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:930:11) at WriteStream._write (node:net:942: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 e.write (/home/magic/MagicMirror/modules/Gateway/components/hyperwatch.js:1:378) at execSync (node:child_process:981:20) at node:electron/js2c/asar_bundle:2:12708 at getLinuxDHCPNics (/home/magic/MagicMirror/modules/Gateway/node_modules/systeminformation/lib/network.js:553:19) at /home/magic/MagicMirror/modules/Gateway/node_modules/systeminformation/lib/network.js:800:23 at process.processTicksAndRejections (node:internal/process/task_queues:77:11) { errno: -14, code: 'EFAULT', syscall: 'write' } [23.10.2023 20:54.25.373] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [23.10.2023 20:54.25.374] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues [23.10.2023 20:54.25.379] [LOG] [GATEWAY] [HyperWatch] Logger is enabled [23.10.2023 20:54.25.382] [LOG] [GATEWAY] Start listening on port 8081 [23.10.2023 20:54.25.383] [LOG] [GATEWAY] Available locally at http://192.168.31.75:8081 [23.10.2023 20:54.25.384] [LOG] [GATEWAY] Gateway Ready! [23.10.2023 20:54.25.385] [LOG] [GATEWAY] Detected: Gateway [23.10.2023 20:54.26.722] [LOG] {"jsonrpc": "2.0", "id": "1000", "method": "cmd::execCmd", "params": {"options":"", "apikey": "xxx", "id": ["4017","4018","4019","4022","4027","2458"]}} [23.10.2023 20:54.26.723] [LOG] { hostname: '192.168.31.101', port: 80, path: '/core/api/jeeApi.php', method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', 'Content-Length': 181 } } [23.10.2023 20:54.26.792] [LOG] {"jsonrpc": "2.0", "id": "1000", "method": "cmd::execCmd", "params": {"options":"", "apikey": "xxx", "id": ["5049","5048","5078","5063","5062","5079"]}} [23.10.2023 20:54.26.794] [LOG] { hostname: '192.168.31.101', port: 80, path: '/core/api/jeeApi.php', method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', 'Content-Length': 181 } } ^C/home/magic/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
-
generaly this error is on x64 system OS of raspbian
-
yes after all i fresh reinstall all on bulleyes 32bit and everything run smooth now
-
bugsounet