Spark Local Cloud

Hi guys,

I’m running a spark local cloud and I follow the how-to as posted on github.

My server is working fine and my core is online there, as you can see on the output:

Your server IP address is: 192.168.0.34
server started { host: ‘localhost’, port: 5683 }
Connection from: 192.168.0.5, connId: 1
on ready { coreID: ‘#######################’,
ip: ‘192.168.0.5’,
product_id: 0,
firmware_version: 11,
cache_key: ‘_0’ }
Core online!

My point is when I try to list the cores they appear offline as you can see here:

pi@raspberrypi ~ $ spark list
Checking with the cloud…
Retrieving cores… (this might take a few seconds)
lio1 (#######################) is offline
lio2 (#######################) is offline

I’m thinking that the command spark list is trying to access my cores on the Spark Web Cloud.

How can I see my cores online on my local server?

Best Regards,

Leonardo Martins

You will need this: https://github.com/spark/spark-cli/blob/master/README.md#spark-config

1 Like

Sorry for being stupid @kennethlimcp, but which part I should follow especifically?

tks.

The link brings you to spark config command so read that portion? :slight_smile:

1 Like

Cool… Now I understood. But when I change via spark config local, and try to spark cloud login I’m not able. How can I create the local user? Sorry I’m noobie…

I would recommend you this tutorial: https://community.spark.io/t/tutorial-local-cloud-1st-time-instructions-30-nov-14/5589

2 Likes

Thanks man… All working, all I did was: spark setup created a new account and claimed my core…

1 Like

@kennethlimcp:

Please, Create a local user with

$ spark config apiUrl http : // localhost: 8080

as the example and
generates errors after me asking me renewed token.

**: ~ / $ spark spark -server config Local apiUrl http : // localhost: 8080
: ~ / $ spark spark -server cloud list**

Checking With The cloud ...
Retrieving cores ... ( This might take a few seconds )
*********************************
      **Please login - it Appears May Have your access_token expired**
*********************************
listDevices got error: invalid_grant
Potentially unhandled rejection [2 ] invalid_grant ( WARNING : Error non - used)

I try login and asks me email and password.

How would I set up email and password to new local user ?

Mistakes come back to spark until user with the command:

$ spark config spark

And after I login with spark cloud user .

How to work with the new user ?, i need a new token for this user ?.

Thank you for your help.