The new wiki is far easier to follow and install than previous versions. I recently flashed a new SD card with Raspbian, the standard Pi software and it installed easily and runs smoother than it did on the iRasbianOS I was using previously. @Peter Van Der Walt thank you for sorting it out for us! I understand complete tech support for this might be a nightmare but keeping the Pi community running is really great! Keep up the good work! That new controller looks pretty slick!
Ok so I had it running once upon a time but on a new insall ( using teh recommended version of RaspiOS, this is my output in a terminal window. If I use the desktop icon, I get nothing.... ~/OpenBuilds-CONTROL $ node index.js Error: The module '/home/pi/OpenBuilds-CONTROL/node_modules/serialport/node_modules/@serialport/bindings/build/Release/bindings.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 80. This version of Node.js requires NODE_MODULE_VERSION 72. Please try re-compiling or re-installing the module (for instance, using `npm rebuild` or `npm install`). at Object.Module._extensions..node (internal/modules/cjs/loader.js:1057:18) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Module.require (internal/modules/cjs/loader.js:887:19) at require (internal/modules/cjs/helpers.js:74:18) at bindings (/home/pi/OpenBuilds-CONTROL/node_modules/bindings/bindings.js:112:48) at Object.<anonymous> (/home/pi/OpenBuilds-CONTROL/node_modules/serialport/node_modules/@serialport/bindings/lib/linux.js:2:36) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) Error: listen EADDRINUSE: address already in use :::3001 at Server.setupListenHandle [as _listen2] (net.js:1316:16) at listenInCluster (net.js:1364:12) at Server.listen (net.js:1450:7) at Object.<anonymous> (/home/pi/OpenBuilds-CONTROL/index.js:87:59) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) at internal/main/run_main_module.js:17:47 { code: 'EADDRINUSE', errno: 'EADDRINUSE', syscall: 'listen', address: '::', port: 3001 } Error: listen EADDRINUSE: address already in use 0.0.0.0:3000 at Server.setupListenHandle [as _listen2] (net.js:1316:16) at listenInCluster (net.js:1364:12) at doListen (net.js:1501:7) at processTicksAndRejections (internal/process/task_queues.js:85:21) { code: 'EADDRINUSE', errno: 'EADDRINUSE', syscall: 'listen', address: '0.0.0.0', port: 3000 }
Shouldn't have -it was a fresh install of RaspiOS. i will go back to teh July img and see if it makes a difference. This was the 08202020 img that was referenced in the wiki somewhere I believe. It did auto update on start up... It looks as though the Node.JS versions might be the issue but not 100 % on that.
Tried that - didn't work. I will rev back to an earlier image. I did have it working on another PI previously. This is a pi400 that I am trying it on.
The install script pi-install.sh from https://raw.githubusercontent.com/OpenBuilds/OpenBuilds-CONTROL/master/pi-install.sh installs Node 12.x for you, check that you didn't have a newer version installed before?
no. New Flash of 088202020 img. I was basing my comment on this error - Error: The module '/home/pi/OpenBuilds-CONTROL/node_modules/serialport/node_modules/@serialport/bindings/build/Release/bindings.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 80. This version of Node.js requires NODE_MODULE_VERSION 72. Please try re-compiling or re-installing the module (for instance, using `npm rebuild` or `npm install`)
Node tries to download the nearest precompiled binary, if it doesnt work, it has to recompile it for you. Thus why we run "npm rebuild" during the install OpenBuilds/OpenBuilds-CONTROL Catching the log of the "try" may have had answers why it didn't work - read the errors As mentioned on the Wiki, we don't really provide tech support for Pi installs, and this is mainly why, linux/node/etc is hard on the Pi, because it sometimes changes without notice, thus why we have the note that its best left to users who want to attempt it knowing they will need the skills to debug it when the install goes wrong as well. While we don't (can't) offer much of our time towards supporting it, we do try... but at least then help us speed it along by providing a little more details than "Tried that, didn't work" (;
All good. Not expecting OB to support - though there might be community input. I will eventually figure out by process of elimination and the error log. Thanks though. Jay
Well this is definitely a problem. Had not used my router in a couple months so when I started it up I did my usual Raspbian updates to make sure everything is current. After that the connect option went dark and got the "waiting on USB" in the window. Decided to do a clean install of everything. Fresh image of Raspbian on the Pi4 and then only ran the Openbuilds script. Same issue as before. Looking at the startup I got the exact same error on NPM version mismatch both times. Posted it below and bolded. Running a rebuild does nothing. This is clearly killing the serial interface and hence the USB. pi@Openbuilds:~ $ bash -c "cd /home/pi/OpenBuilds-CONTROL; git fetch --all; git reset --hard origin/master; MESA_EXTENSION_OVERRIDE=-GL_MESA_framebuffer_flip_y node index.js" Fetching origin ^[[28~HEAD is now at d461051 v1.0.290 Error: The module '/home/pi/OpenBuilds-CONTROL/node_modules/serialport/node_modules/@serialport/bindings/build/Release/bindings.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 80. This version of Node.js requires NODE_MODULE_VERSION 72. Please try re-compiling or re-installing the module (for instance, using `npm rebuild` or `npm install`). at Object.Module._extensions..node (internal/modules/cjs/loader.js:1057:18) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Module.require (internal/modules/cjs/loader.js:887:19) at require (internal/modules/cjs/helpers.js:74:18) at bindings (/home/pi/OpenBuilds-CONTROL/node_modules/bindings/bindings.js:112:48) at Object.<anonymous> (/home/pi/OpenBuilds-CONTROL/node_modules/serialport/node_modules/@serialport/bindings/lib/linux.js:2:36) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) TypeError: Cannot read property 'address' of undefined at Server.<anonymous> (/home/pi/OpenBuilds-CONTROL/index.js:88:41) at Object.onceWrapper (events.js:420:28) at Server.emit (events.js:326:22) at emitListeningNT (net.js:1350:10) at processTicksAndRejections (internal/process/task_queues.js:83:21) TypeError: Cannot read property 'address' of undefined at Server.<anonymous> (/home/pi/OpenBuilds-CONTROL/index.js:92:41) at Object.onceWrapper (events.js:420:28) at Server.emit (events.js:326:22) at emitListeningNT (net.js:1350:10) at processTicksAndRejections (internal/process/task_queues.js:83:21)
Try run electron-rebuild? Thanks for the logs, as mentioned above, logs help immensely Did the raspbian updates change the Nodejs version?
Output from that, still same version error as above..... pi@Openbuilds:~ $ npm install electron-rebuild ^[[28~[..................] \ idealTree:electron-rebuild: sill placeDep ROOT elec[ ...........] npm WARN deprecated [email protected]: this library is no longer supported npm WARN deprecated [email protected]: request has been deprecated, see Request’s Past, Present and Future · Issue #3142 · request/request npm WARN deprecated [email protected]: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future [ ] / reify:node-gyp: http fetch GET 200 https://registry.npmjs.org/node-gyp/-/node-gyp-7.1.2.t ^[[28~[ ] / reify:node-gyp: http fetch GET 200 https://registry.npmjs.org/node-gyp/-/node-gyp-7.1.2.tgz 6183m added 214 packages, and audited 215 packages in 2m 19 packages are looking for funding run `npm fund` for details found 0 vulnerabilities
Getting out of my depth quickly here but I'm thinking that is a possibility. Let me know if there are any specific commands you want me to run and I can help troubleshoot.
I'll have to setup a Pi4 at some point and work the problem it seems. No promises this week, meetings all afternoon, and not in the office tomorrow.
Thanks. I'm going to pull and older copy of Raspbian and run the install bits without the OS updates and see what that does.
Well looks like it isn't related to the version of Raspbian or the RaspiOS updates. Must be something with the NPM install being a newer version. Downloaded 2020-08-20-raspios-buster-armhf.img and ran the script components that were specific to Openbuilds. Exact same error with no other updates.... reset --hard origin/master; MESA_EXTENSION_OVERRIDE=-GL_MESA_framebuffer_flip_y node index.js" Fetching origin HEAD is now at d461051 v1.0.290 Error: The module '/home/pi/OpenBuilds-CONTROL/node_modules/serialport/node_modules/@serialport/bindings/build/Release/bindings.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 80. This version of Node.js requires NODE_MODULE_VERSION 72. Please try re-compiling or re-installing the module (for instance, using `npm rebuild` or `npm install`). at Object.Module._extensions..node (internal/modules/cjs/loader.js:1057:18) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Module.require (internal/modules/cjs/loader.js:887:19) at require (internal/modules/cjs/helpers.js:74:18) at bindings (/home/pi/OpenBuilds-CONTROL/node_modules/bindings/bindings.js:112:48) at Object.<anonymous> (/home/pi/OpenBuilds-CONTROL/node_modules/serialport/node_modules/@serialport/bindings/lib/linux.js:2:36) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) TypeError: Cannot read property 'address' of undefined at Server.<anonymous> (/home/pi/OpenBuilds-CONTROL/index.js:88:41) at Object.onceWrapper (events.js:420:28) at Server.emit (events.js:326:22) at emitListeningNT (net.js:1350:10) at processTicksAndRejections (internal/process/task_queues.js:83:21) TypeError: Cannot read property 'address' of undefined at Server.<anonymous> (/home/pi/OpenBuilds-CONTROL/index.js:92:41) at Object.onceWrapper (events.js:420:28) at Server.emit (events.js:326:22) at emitListeningNT (net.js:1350:10) at processTicksAndRejections (internal/process/task_queues.js:83:21)
Alright, you can try rerunning the install script You are the first beta user though - so let me know if it doesn't work, but then I'll check on monday. Changed it to run under Electron directly, not as a backend+chromium. Should be even better now
Sounds good, I'll load up a fresh image and give it a go. Something else I've been meaning to ask is if you could put TightVNC and XRDP in as optional or maybe a separate script. I've noticed that it kills the built in VNC server after it goes through those installs.
Every windows machine has RDP built in. Just makes support easier Don't know if it still does but RealVNC really tried to cram a subscription and the cloud down my throat - so I've been killing that off on new installs straight away for a while now. xrdp/tightvnc just a little more open
Edit the desktop shortcut to get the commands, then run it twice (first run opens the systray hidden instance) from however you make an application start after login to gui on a pi. I am leave today, but can check closer on Monday, just remind me next week