Skip to content
This repository has been archived by the owner on Feb 25, 2020. It is now read-only.

Recommended Node.js version #61

Open
ckbehemoth opened this issue Oct 20, 2015 · 9 comments
Open

Recommended Node.js version #61

ckbehemoth opened this issue Oct 20, 2015 · 9 comments

Comments

@ckbehemoth
Copy link

Hello all,

I'm just getting my local spark server installed for testing and I was wondering what the current recommended node.js version is (0.10.X, 0.12.X, or the 4.X). I didn't see it mentioned in the README, etc, so apologies if I failed to RTFM.

TIA,

Bill

@KarbonDallas
Copy link
Contributor

@ckbehemoth,

Hey! I believe 0.12.7 would be the recommended version of Node for spark-server. I do however want to set the expectation that it may be buggy when used with Photons. We have been pushing hard to ship features requested of our cloud by the majority of our users. Unfortunately, in the mean time the spark-server implementation has lagged behind.

This may be frustrating for you if your primary intent is to develop something with a local cloud (rather than just hacking and experimenting). I am more than happy to help you with any issues you run into, but I wanted to make sure this was something you were aware of going into the endeavor!

@chuank
Copy link

chuank commented Oct 20, 2015

It used to be that 0.10.40 was the requirement, and it has to do with the ursa dependency not compiling for 0.12.7. See #57 for the background story.

I just checked https://github.com/quartzjer/ursa, and it seems they have fixed the compatibility for 0.12.7 2 weeks ago, so yeah, I'd give 0.12.7 a shot, and fall back to 0.10.40 if it fails to install

@emilyrose, on a sidenote: any updates on #53, #55, #56? Cheers

@msolters
Copy link

^ yes, a massive +1 for all of those!!

@KarbonDallas
Copy link
Contributor

Sadly, I don't have any updates on these issues just yet. I know that an updated particle-server is an eventuality, but I don't currently have any estimates as far as timeline goes.

With that said, I do appreciate the time that went into reporting these issues! I'm sorry that I can't be more specific or particularly helpful.

@ckbehemoth
Copy link
Author

@emilyrose @chuank

Thanks! I know the spark-server is still getting up to speed w.r.t. the Photon, so no worries. I'd like to help, so I'll be sure to send feedback/updates as I stumble my way through getting it working.

More TK,

Bill

@KarbonDallas
Copy link
Contributor

@ckbehemoth,

That is super awesome and I am more than happy to help facilitate your continued discovery! Please feel free to open issues if you run into anything that you think needs attention.

— Emily

@chuank
Copy link

chuank commented Oct 29, 2015

@ckbehemoth, I've had to deploy another instance of my local cloud, and after rebuilding everything from scratch I can unfortunately confirm that spark-server works only on node 10.x and not 12.x – I still get the same Cryptostream errors as described in #48.

While the ursa module compiled without issue, there's just something with openssl decryption that's incompatible between 10.x and 12.x.

My local cloud is on a RPi2, running Debian Jessie, 4.1.12-v7+.
Perhaps others who deployed their local cloud on other platforms can share their experience here? I have not tried running spark-server on a mbp or desktop pc.

@ckbehemoth
Copy link
Author

@chuank Thanks! Your setup sounds like mine. I'll be curious (in my copious free time :P ) to take a look at the differences between the versions w.r.t. the crypto. Gonna have to wait until after Halloween, though...

@PseudoSky
Copy link

Hey, I think this might help (maybe not for windows people though).
Haven't extensively tested it, but you should be able to run

cd spark-server      # Or not if you're there already
npm install          # from higher node versions ( I used v0.12.5 )
nano node_modules/spark-protocol/lib/CryptoStream.js

Then modify it with the changes in this particle-iot/spark-protocol#14

lbt pushed a commit to lbt/spark-server that referenced this issue Feb 28, 2017
change spark-protocol nodemon watch folder
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants