Claim Code error when setting up Photon on Local Cloud

I am attempting to setup the Photon on the Local Cloud server but am running into the following error:

Error: Unable to obtain claim code

I found this discussion on github regarding the same error:

however the proposed solution (particle core add DEVICE_ID) still results in the same error.

claiming photon on local cloud

$ particle core add DEVICE_ID
Claiming device DEVICE_ID
Successfully claimed device DEVICE_ID

spark-server output

Your server IP address is: 192.168.1.21
server started { host: 'localhost', port: 5683 }
::ffff:192.168.1.21 - - [Thu, 23 Jul 2015 16:24:34 GMT] "POST /v1/devices HTTP/1.1" 200 16 "-" "-"

local cloud setup of photon

$ particle setup
...
? Found "Photon-66KM". Would you like to perform setup on this one now? Yes

! PROTIP: You will need to know the password for your Wi-Fi network (if any) to proceed.
! PROTIP: You can press ctrl + C to quit setup at any time.

> > [Error: Unable to obtain claim code]

spark server output

::ffff:192.168.1.21 - - [Thu, 23 Jul 2015 16:28:42 GMT] "POST /v1/device_claims HTTP/1.1" 404 9 "-" "-"

Any ideas?

You can simply add the Photon private key and it should work.

Check the core_keys directory to see if they are there and reboot the server. It should connect after that