SmartThings-MyQ-Edge icon indicating copy to clipboard operation
SmartThings-MyQ-Edge copied to clipboard

Unable to install Server

Open HeliManCdn opened this issue 2 years ago • 9 comments

I am unable to install either the Windows 64 or MacOS server. Windows briefly opens a cmd window that closes immediately when run as administrator, then no installer shows up, it just closes the window.

MacOS, the download is not in a format that runs as an installer so I can't run it. It only opens as a text file.

I realize I may be missing some basic info on how to make these work, please accept my apologies if I'm supposed to already know some hidden secret to installing files like these.

HeliManCdn avatar Oct 19 '22 16:10 HeliManCdn

The .EXE file is not an installer. That's the server itself. You need to open a command prompt (doesn't need to run as administrator), and run the .EXE file. The server will then run. You'll need to create the config.json file and add your MyQ login & password to it per the instructions.

If you want the server to run everytime Windows starts, try using Task Scheduler and create a task to start the exe during Windows startup.

rvs007 avatar Oct 21 '22 21:10 rvs007

I've tried both versions of windows, running from command prompt I get:

This version of c:\MyQ\myQBridgeServer-win.exe is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher.

I'm running Windows 10 Home 21H2 on an older Intel Stick, Intel(R) Atom(TM) x5-Z8330 CPU @ 1.44GHz 1.44 GHz, 2GB RAM, 32-bit operating system, x64-based processor.

Is there a way to get a build for this machine?

swerb73 avatar Oct 30 '22 12:10 swerb73

Can you check out the latest version and see if you still have this issue?

brbeaird avatar Nov 04 '22 14:11 brbeaird

Can you check out the latest version and see if you still have this issue? Hi @brbeaird, same issue:

c:\MyQ>myQBridgeServer-win.exe This version of c:\MyQ\myQBridgeServer-win.exe is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher.

swerb73 avatar Nov 08 '22 16:11 swerb73

I am not sure on this one. I'm using pkg to build the node into an executable. It seems like it should work for you if your stick is running 64-bit Windows, but my machine just may not be able to fully emulate what you need. https://github.com/vercel/pkg

If you really want to play with it, you could:

  1. Install NodeJS
  2. Run npm install -g pkg
  3. Clone this repository
  4. From inside the src/server directory, run "pkg server.js" and see if maybe it'll build one that's usable for you.

brbeaird avatar Nov 09 '22 05:11 brbeaird

I am not sure on this one. I'm using pkg to build the node into an executable. It seems like it should work for you if your stick is running 64-bit Windows, but my machine just may not be able to fully emulate what you need. https://github.com/vercel/pkg

If you really want to play with it, you could:

  1. Install NodeJS
  2. Run npm install -g pkg
  3. Clone this repository
  4. From inside the src/server directory, run "pkg server.js" and see if maybe it'll build one that's usable for you.

Thanks, I'm not familiar with the pkg process, but here's what I get after cloning and running as you indicate above: C:\MyQ\src\server>pkg server.js

[email protected] Targets not specified. Assuming: node12-linux-x86, node12-macos-x86, node12-win-x86 Fetching base Node.js binaries to PKG_CACHE_PATH fetched-v12.22.11-linux-x86 [ ] 0% Error! 404: Not Found Not found in remote cache: {"tag":"v3.4","name":"node-v12.22.11-linux-x86"} Building base binary from source: built-v12.22.11-linux-x86 Error! Not able to build for 'linux' here, only for 'win'

Somehow it's targeting linux, but I'm on Windows?

swerb73 avatar Nov 13 '22 23:11 swerb73

Interesting. You can explicitly set the target. What if you run this?

pkg server.js -o myQBridgeServer --targets node12-win-x86 --no-bytecode --public-packages "*" --public

or this?

pkg server.js -o myQBridgeServer --targets node12-win-x64 --no-bytecode --public-packages "*" --public

brbeaird avatar Nov 14 '22 16:11 brbeaird

When I run the x86 version it starts with what looks like an error: C:\MyQ\src\server>pkg server.js -o myQBridgeServer --targets node12-win-x86 --no-bytecode --public-packages "*" --public

[email protected] Fetching base Node.js binaries to PKG_CACHE_PATH fetched-v12.22.11-win-x86 [ ] 0% Error! 404: Not Found Not found in remote cache: {"tag":"v3.4","name":"node-v12.22.11-win-x86"} Building base binary from source: built-v12.22.11-win-x86 Fetching Node.js source archive from nodejs.org... Extracting Node.js source archive...

Then ends with:

vcbuild.bat Applying patches Error! Error: spawnSync patch ENOENT at Object.spawnSync (internal/child_process.js:1041:20) at spawnSync (child_process.js:616:24) at C:\Users\shann\AppData\Roaming\npm\node_modules\pkg\node_modules\pkg-fetch\lib-es5\utils.js:148:51 at step (C:\Users\shann\AppData\Roaming\npm\node_modules\pkg\node_modules\pkg-fetch\lib-es5\utils.js:33:23) at Object.next (C:\Users\shann\AppData\Roaming\npm\node_modules\pkg\node_modules\pkg-fetch\lib-es5\utils.js:14:53) at C:\Users\shann\AppData\Roaming\npm\node_modules\pkg\node_modules\pkg-fetch\lib-es5\utils.js:8:71 at new Promise () at __awaiter (C:\Users\shann\AppData\Roaming\npm\node_modules\pkg\node_modules\pkg-fetch\lib-es5\utils.js:4:12) at spawn (C:\Users\shann\AppData\Roaming\npm\node_modules\pkg\node_modules\pkg-fetch\lib-es5\utils.js:145:12) at C:\Users\shann\AppData\Roaming\npm\node_modules\pkg\node_modules\pkg-fetch\lib-es5\build.js:221:60

When I run the x64 version I get: C:\MyQ\src\server>pkg server.js -o myQBridgeServer --targets node12-win-x64 --no-bytecode --public-packages "*" --public

[email protected] Warning Cannot find module 'axios' from 'C:\MyQ\src\server' in C:\MyQ\src\server\server.js Warning Cannot find module 'express' from 'C:\MyQ\src\server' in C:\MyQ\src\server\server.js Warning Cannot find module '@hjdhjd/myq' from 'C:\MyQ\src\server' in C:\MyQ\src\server\server.js Warning Cannot find module 'node-ssdp-response' from 'C:\MyQ\src\server' in C:\MyQ\src\server\server.js

Thanks for your help!

swerb73 avatar Nov 19 '22 22:11 swerb73

Hmm. Maybe try it without specifying the node version? Something like --targets win-x86 ?

brbeaird avatar Nov 28 '22 16:11 brbeaird

Hmm. Maybe try it without specifying the node version? Something like --targets win-x86 ?

OK, I'm switching over to a Mac to try and make all of this (and other things) work better. Now when I download the Mac server it doesn't appear to show up as an app so I can't run it. Is there a trick to getting MacOS to recognize it as an app and run it when I open it?

swerb73 avatar Dec 12 '22 23:12 swerb73

Hmm. Maybe try it without specifying the node version? Something like --targets win-x86 ?

OK, I'm switching over to a Mac to try and make all of this (and other things) work better. Now when I download the Mac server it doesn't appear to show up as an app so I can't run it. Is there a trick to getting MacOS to recognize it as an app and run it when I open it?

Hi @brbeaird - just checking in on any ideas with the Mac build, trying on a Mac instead.

swerb73 avatar Dec 26 '22 17:12 swerb73

Unfortunately, I do not have a Mac available to test, so I can't offer much assistance on that. You could check the thread in the SmartThings thread - I'm pretty sure a few people commented on the Mac executable there. https://community.smartthings.com/t/st-edge-smartthings-myq-edge

brbeaird avatar Jan 10 '23 22:01 brbeaird