Local cloud don't find cores

Simply replace https://api.spark.io to http://your_ip_address

You can use the command spark config identify to see the existing access token

I make a "spark config identify"
I can see:
Current profile: server
Using API: http://192.168.0.6:8080
Access Token: Login Failed: invalid_grant

And I don’t know how to make “spark setup”, it ask for my e-mail and for a password but after I receive this error:

Trying to login…
Could not get new access token: server_error
error setting up your core: Unable to login or create a new account

I install the spark local server and it is up,

I install the spark-cli and after use this command: “spark setup” or “spark cloud login” and I insert my email and password and after I receive this error:

Could not get new access token: server_error
login error: server_error

What is the solution?

I’m using raspberry with raspian

Hello,

I am setting up a local server using raspberry, already installed the server and spark spark cli.

when I run the command “spark setup”

It asks an email and then a password, but in the following section it shows an error message saying that it can not connect to the server. See the picture. What is the problem ??

where can I find the token?

@rbbahia,

Please refrain from opening too many thread for the similar issue.

The temporary workaround is to do the following: sudo npm install -g spark-cli@0.4.94 and use spark setup again before reverting to the latest version with sudo npm install -g spark-cli

I sent in a fix and hopefully a right one: https://github.com/spark/spark-cli/pull/164

Thaks, now I have a local Token.

the I up spark server I can see the public key and
found 493849389deviceid

but if I type "spark list"
Checking with the cloud…
Retrieving cores…(this might take a few seconds)
undefined(mycoreid) is offline
undefined (default key) is offline

and if I use "dfu-util -l"
show:

cannot open DFU device: 1d50:607f

Hello I found the solution, need a “sudo” before.

now the core is trying to conect to my server, so in server screen I can see::

my node version is 0.12 downloaded of tutorial link

Core online!
Connection from: 192.168.0.109, connId: 6
CryptoStream transform error TypeError: Cannot read property ‘length’ of null
CryptoStream transform error TypeError: Cannot read property ‘length’ of null
on ready { coreID: ‘54ff6e06667853433411430567’,
ip: ‘192.168.0.109’,
product_id: 0,
firmware_version: 7,
cache_key: ‘_5’ }
Core online!

Core online!
CryptoStream transform error Error: error:06065064:digital envelope
routines:EVP_DecryptFinal_ex:bad decrypt
onSocketData called, but no data sent.
1: Core disconnected: socket close false { coreID: ‘54ff6e066678767911430567’,
cache_key: ‘_109’,
duration: 25.039 }
Session ended for _109
Connection from: 192.168.0.109, connId: 111
CryptoStream transform error TypeError: Cannot read property ‘length’ of null
CryptoStream transform error TypeError: Cannot read property ‘length’ of null
on ready { coreID: ‘54ff6e066678574911430567’,
ip: ‘192.168.0.109’,
product_id: 0,
firmware_version: 7,
cache_key: ‘_110’ }
Core online!
CryptoStream transform error Error: error:06065064:digital envelope
routines:EVP_DecryptFinal_ex:bad decrypt

I need this last help, thanks