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

looking for core pub.pem in wrong location #6

Closed
kennethlimcp opened this issue Jul 3, 2014 · 4 comments
Closed

looking for core pub.pem in wrong location #6

kennethlimcp opened this issue Jul 3, 2014 · 4 comments

Comments

@kennethlimcp
Copy link
Contributor

Expected to find public key for core 48ff6a065067555008342387 at /Volumes/dd/github/spark-server/js/node_modules/spark-protocol/data/48ff6a065067555008342387.pub.pem
1: Core disconnected: Handshake did not complete in 120 seconds { coreID: '48ff6a065067555008342387', cache_key: undefined }
Session ended for 4
Handshake failed:  Handshake did not complete in 120 seconds { ip: '172.16.10.240',
  cache_key: undefined,
  coreID: '48ff6a065067555008342387' }
1: Core disconnected: Handshake did not complete in 120 seconds { coreID: '48ff6a065067555008342387', cache_key: undefined }
Session ended for 4
Handshake failed:  Handshake did not complete in 120 seconds { ip: '172.16.10.240',
  cache_key: undefined,
  coreID: '48ff6a065067555008342387' }
Connection from: 172.16.10.240, connId: 5
Expected to find public key for core 48ff6a065067555008342387 at /Volumes/dd/github/spark-server/js/node_modules/spark-protocol/data/48ff6a065067555008342387.pub.pem
@dmiddlecamp
Copy link
Contributor

Hmm, that setting should be getting overwritten by the settings.js file property 'coreKeysDir'

what command are you running in which directory? -- are you running the protocol module separately?

@kennethlimcp
Copy link
Contributor Author

Nope. I just fire up with node main.js and see the core connect

@kennethlimcp
Copy link
Contributor Author

@dmiddlecamp,

I just copied to where the spark-server is looking for now and got this:

Connection from: 172.16.10.240, connId: 16
on ready { coreID: '48ff6a065067555008342387',
  ip: '172.16.10.240',
  product_id: 0,
  firmware_version: 6,
  cache_key: undefined }
Core online!

I'm getting PANIC SOS code for now and unable to perform spark list

  1. We need to fix the path where the pub.pem i checked for. I think spark-server installs spark-protocol as a node_modules currently which ends up in the spark-server/js/node_modules/spark-protocol

@kennethlimcp
Copy link
Contributor Author

fixed with spark-protocol commmit ec4971a4f80d564cb31a643f9001a376eec2186

lbt pushed a commit to lbt/spark-server that referenced this issue Feb 28, 2017
Update express & rewrite main.js to es6
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

2 participants