Unsolved EXT-Music player does not work
-
this is given when I was executing npm run rebuild
-
Where can I find terminal output ? I am on Raspberry Pi
Thanks you
-
just copy/past
pi@raspberrypi:~/MagicMirror/modules/EXT-MusicPlayer $ npm run rebuild > EXT-MusicPlayer@1.3.2 rebuild > installer/rebuild.sh Welcome to EXT-MusicPlayer v1.3.2 rebuild script This script will erase current build and reinstall it Do you want to continue ? [Y/n] Your choice: y Deleting: package-lock.json node_modules Done. Updating... HEAD est maintenant à 88fc482 Merge branch 'dev' of https://github.com/bugsounet/EXT-MusicPlayer into dev Déjà à jour. Done Reinstalling... > EXT-MusicPlayer@1.3.2 preinstall > installer/preinstall.sh -d 'libudev-dev' Welcome to EXT-MusicPlayer v1.3.2 No root checking... Checking EXT-MusicPlayer: pi/pi Checking MagicMirror: pi/pi Checking OS... OS Detected: linux-gnueabihf (raspbian 12 aarch64) Checking all dependencies... All Dependencies needed are installed ! > EXT-MusicPlayer@1.3.2 postinstall > installer/postinstall.sh -r -m -b Minify Main code... Found: 4 files to minify Process File: ../EXT-MusicPlayer.js Process File: ../node_helper.js Process File: ../components/playerLib.js Process File: ../components/musicplayer.js Done Rebuild MagicMirror... ✔ Rebuild Complete Done Support is now moved in a dedicated Server: https://forum.bugsounet.fr @bugsounet EXT-MusicPlayer is now installed !
-
> EXT-MusicPlayer@1.3.2 rebuild /home/pi/MagicMirror/modules/EXT-MusicPlayer > installer/rebuild.sh Welcome to EXT-MusicPlayer v1.3.2 rebuild script This script will erase current build and reinstall it Do you want to continue ? [Y/n] Your choice: y Deleting: package-lock.json node_modules Done. Updating... HEAD is now at 87e4c32 v1.3.2 Already up to date. Done Reinstalling... > EXT-MusicPlayer@1.3.2 preinstall /home/pi/MagicMirror/modules/EXT-MusicPlayer > installer/preinstall.sh -d 'libudev-dev' Welcome to EXT-MusicPlayer v1.3.2 No root checking... Checking EXT-MusicPlayer: pi/pi Checking MagicMirror: pi/pi Checking OS... OS Detected: linux-gnu (debian 12 aarch64) Checking all dependencies... All Dependencies needed are installed ! > drivelist@11.2.2 install /home/pi/MagicMirror/modules/EXT-MusicPlayer/node_modules/drivelist > prebuild-install --runtime napi || node-gyp rebuild (node:13684) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only. (Use `node --trace-deprecation ...` to show where the warning was created) Traceback (most recent call last): File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 50, in <module> sys.exit(gyp.script_main()) ^^^^^^^^^^^^^^^^^ File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 554, in script_main return main(sys.argv[1:]) ^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 547, in main return gyp_main(args) ^^^^^^^^^^^^^^ File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 520, in gyp_main [generator, flat_list, targets, data] = Load( ^^^^^ File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 136, in Load result = gyp.input.Load(build_files, default_variables, includes[:], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 2782, in Load LoadTargetBuildFile(build_file, data, aux_data, File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 391, in LoadTargetBuildFile build_file_data = LoadOneBuildFile(build_file_path, data, aux_data, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 234, in LoadOneBuildFile build_file_contents = open(build_file_path, 'rU').read() ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ValueError: invalid mode: 'rU' while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16) gyp ERR! stack at ChildProcess.emit (node:events:517:28) gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:292:12) gyp ERR! System Linux 6.6.20+rpt-rpi-v8 gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/pi/MagicMirror/modules/EXT-MusicPlayer/node_modules/drivelist gyp ERR! node -v v18.19.1 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! drivelist@11.2.2 install: `prebuild-install --runtime napi || node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the drivelist@11.2.2 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2024-04-13T09_41_56_159Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! EXT-MusicPlayer@1.3.2 rebuild: `installer/rebuild.sh` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the EXT-MusicPlayer@1.3.2 rebuild script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2024-04-13T09_41_56_384Z-debug.log pi@raspberrypi:~/MagicMirror/modules/EXT-MusicPlayer $
-
[13.04.2024 17:49.47.299] [WARN] [33mYou're using a full whitelist configuration to allow for all IPs[39m [14054:0413/174948.942374:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [14054:0413/174948.942933:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [14054:0413/174948.943806:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [14054:0413/174948.946693:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [14054:0413/174948.947575:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [14054:0413/174948.948330:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [14054:0413/174948.948910:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [14054:0413/174948.951940:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [14054:0413/174948.952321:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [14054:0413/174948.953413:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [14054:0413/174948.953802:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [14054:0413/174948.954847:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [14054:0413/174948.955514:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [14054:0413/174948.956008:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [13.04.2024 17:49.57.652] [ERROR] Whoops! There was an uncaught exception... [13.04.2024 17:49.57.660] [ERROR] Error: write EFAULT at afterWriteDispatched (node:internal/stream_base_commons:160:15) at writeGeneric (node:internal/stream_base_commons:151:3) at Socket._writeGeneric (node:net:931:11) at Socket._write (node:net:943:8) at writeOrBuffer (node:internal/streams/writable:392:12) at _write (node:internal/streams/writable:333:10) at Socket.write (node:internal/streams/writable:337:10) at r.write (/home/pi/MagicMirror/modules/MMM-GoogleAssistant/components/hyperwatch.js:6:543) at execSync (node:child_process:981:20) at node:electron/js2c/asar_bundle:2:12708 at getFQDN (/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/systeminformation/lib/osinfo.js:171:22) at /home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/systeminformation/lib/osinfo.js:219:15 at process.processTicksAndRejections (node:internal/process/task_queues:77:11) { errno: -14, code: 'EFAULT', syscall: 'write' } [13.04.2024 17:49.57.661] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [13.04.2024 17:49.57.661] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues [13.04.2024 17:49.58.296] [ERROR] Whoops! There was an uncaught exception... [13.04.2024 17:49.58.297] [ERROR] Error: write EFAULT at afterWriteDispatched (node:internal/stream_base_commons:160:15) at writeGeneric (node:internal/stream_base_commons:151:3) at Socket._writeGeneric (node:net:931:11) at Socket._write (node:net:943:8) at writeOrBuffer (node:internal/streams/writable:392:12) at _write (node:internal/streams/writable:333:10) at Socket.write (node:internal/streams/writable:337:10) at r.write (/home/pi/MagicMirror/modules/MMM-GoogleAssistant/components/hyperwatch.js:6:543) at execSync (node:child_process:981:20) at node:electron/js2c/asar_bundle:2:12708 at /home/pi/MagicMirror/modules/MMM-GoogleAssistant/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) { errno: -14, code: 'EFAULT', syscall: 'write' } [13.04.2024 17:49.58.298] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [13.04.2024 17:49.58.300] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues [13.04.2024 17:49.58.350] [ERROR] Whoops! There was an uncaught exception... [13.04.2024 17:49.58.367] [ERROR] Error: write EFAULT at afterWriteDispatched (node:internal/stream_base_commons:160:15) at writeGeneric (node:internal/stream_base_commons:151:3) at Socket._writeGeneric (node:net:931:11) at Socket._write (node:net:943:8) at writeOrBuffer (node:internal/streams/writable:392:12) at _write (node:internal/streams/writable:333:10) at Socket.write (node:internal/streams/writable:337:10) at r.write (/home/pi/MagicMirror/modules/MMM-GoogleAssistant/components/hyperwatch.js:6:543) at execSync (node:child_process:981:20) at node:electron/js2c/asar_bundle:2:12708 at Object.getCodepage (/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/systeminformation/lib/util.js:576:24) at /home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/systeminformation/lib/osinfo.js:260: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) { errno: -14, code: 'EFAULT', syscall: 'write' } [13.04.2024 17:49.58.368] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [13.04.2024 17:49.58.371] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues [13.04.2024 17:49.58.692] [ERROR] [MUSIC] ./components/playerLib.js Loading error! Error: Cannot find module 'drivelist' Require stack: - /home/pi/MagicMirror/modules/EXT-MusicPlayer/components/playerLib.js - /home/pi/MagicMirror/modules/EXT-MusicPlayer/node_helper.js - /home/pi/MagicMirror/js/app.js - /home/pi/MagicMirror/js/electron.js - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js - at node:internal/modules/cjs/loader:1084:15 at Function.<anonymous> (node:electron/js2c/browser_init:2:116646) at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) at node:internal/modules/cjs/loader:929:27 at Function._load (node:electron/js2c/asar_bundle:2:13327) at Module.require (node:internal/modules/cjs/loader:1150:19) at require (node:internal/modules/cjs/helpers:121:18) at Object.<anonymous> (/home/pi/MagicMirror/modules/EXT-MusicPlayer/components/playerLib.js:4:16) at Module._compile (node:internal/modules/cjs/loader:1271:14) at Object..js (node:internal/modules/cjs/loader:1326:10) at Module.load (node:internal/modules/cjs/loader:1126:32) at node:internal/modules/cjs/loader:967:12 at Function._load (node:electron/js2c/asar_bundle:2:13327) at Module.require (node:internal/modules/cjs/loader:1150:19) at require (node:internal/modules/cjs/helpers:121:18) at /home/pi/MagicMirror/modules/EXT-MusicPlayer/node_helper.js:95:39 { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/pi/MagicMirror/modules/EXT-MusicPlayer/components/playerLib.js', '/home/pi/MagicMirror/modules/EXT-MusicPlayer/node_helper.js', '/home/pi/MagicMirror/js/app.js', '/home/pi/MagicMirror/js/electron.js', '/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js', undefined ] } [13.04.2024 17:49.59.843] [ERROR] [MUSIC] Warning: 1 @bugsounet library not loaded ! [13.04.2024 17:49.59.844] [ERROR] [MUSIC] Try to solve it with `npm run rebuild` in EXT-MusicPlayer directory [13.04.2024 17:50.01.512] [WARN] [GA] WARN: You are using default username or default password [13.04.2024 17:50.01.513] [WARN] [GA] WARN: Don't forget to change it! [13.04.2024 17:50.01.622] [ERROR] Whoops! There was an uncaught exception... [13.04.2024 17:50.01.623] [ERROR] Error: write EFAULT at afterWriteDispatched (node:internal/stream_base_commons:160:15) at writeGeneric (node:internal/stream_base_commons:151:3) at Socket._writeGeneric (node:net:931:11) at Socket._write (node:net:943:8) at writeOrBuffer (node:internal/streams/writable:392:12) at _write (node:internal/streams/writable:333:10) at Socket.write (node:internal/streams/writable:337:10) at r.write (/home/pi/MagicMirror/modules/MMM-GoogleAssistant/components/hyperwatch.js:6:543) at execSync (node:child_process:981:20) at node:electron/js2c/asar_bundle:2:12708 at getDefaultNetworkInterface (/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/systeminformation/lib/network.js:94:20) at /home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/systeminformation/lib/network.js:200:20 at process.processTicksAndRejections (node:internal/process/task_queues:77:11) { errno: -14, code: 'EFAULT', syscall: 'write' } [13.04.2024 17:50.01.623] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [13.04.2024 17:50.01.623] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues [13.04.2024 17:50.03.057] [ERROR] Whoops! There was an uncaught exception... [13.04.2024 17:50.03.058] [ERROR] Error: write EFAULT at afterWriteDispatched (node:internal/stream_base_commons:160:15) at writeGeneric (node:internal/stream_base_commons:151:3) at Socket._writeGeneric (node:net:931:11) at Socket._write (node:net:943:8) at writeOrBuffer (node:internal/streams/writable:392:12) at _write (node:internal/streams/writable:333:10) at Socket.write (node:internal/streams/writable:337:10) at r.write (/home/pi/MagicMirror/modules/MMM-GoogleAssistant/components/hyperwatch.js:6:543) at execSync (node:child_process:981:20) at node:electron/js2c/asar_bundle:2:12708 at getLinuxDHCPNics (/home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/systeminformation/lib/network.js:553:19) at /home/pi/MagicMirror/modules/MMM-GoogleAssistant/node_modules/systeminformation/lib/network.js:800:23 at process.processTicksAndRejections (node:internal/process/task_queues:77:11) { errno: -14, code: 'EFAULT', syscall: 'write' } [13.04.2024 17:50.03.059] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [13.04.2024 17:50.03.059] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
-
[ERROR] Error: write EFAULT
: I have correct it in main core of MM² v2.27.0For
EXT-MusicPlayer
, I have updated (again) to v1.3.3:- update all deps and update drivelist to v12.x (latest). It seams that it not works with node v18.x (only with > v20)
-
I got this when I update MM2
git pull
Updating 118e2123…5ea8a346
error: Your local changes to the following files would be overwritten by merge:
package.json
Please commit your changes or stash them before you merge.
Aborting -
After stash, googel assistant stopped working
-
And… Wiki don’t help?
-
Did you try the following from the wiki?
Refresh / Major Updating
This new command allow force reinstall or update all MMM-GoogleAssistant components:
MMM-GoogleAssistantand all EXTs installed
This command make automatic things !This command can be used when a new MagicMirror² version is installed
When you have too many MMM-GoogleAssistant components to update
When you want to refresh (like a first install) all MMM-GoogleAssistant componentscd ~/MagicMirror/modules/MMM-GoogleAssistant
npm run refresh -
thank you guys for your patience. I updated GoogleAssistant, but get more alerts when running magic mirror and the error about music player is still there. I am thinking about to do it from the scratch. I mean I will install a pure clean rasbian system install magic mirror. And then the first module I install would be EXT-MusicPlayer to see if it works. how do you think about the idea
-
@risingsun6 sometimes a clean install is the way to go. I would suggest the following if you go that route
- Clean OS load
- Install Magicmirror 2.27
- Start magicmirror default configuration to ensure it’s loaded with no errors
- Install mmm-google assistant
- Update the config file
- Start magic mirror and test google assistant
- Use the google assistant web interface to load ext-music player and to update config.js
- Restart the mirror and test the player
-
@risingsun6 once you get everything running zip the entire magicmirror folder. Then you can usually recover to a “last known good state” by unzipping the files with overwrite or just delete the “bad” magicmirror folder and unzip the saved version.