LockerProject / Locker

Locker - the "me" platform
http://lockerproject.org/
BSD 3-Clause "New" or "Revised" License
1.07k stars 123 forks source link

'SyntaxError: Unexpected token' on first run #950

Open chadwetsell opened 12 years ago

chadwetsell commented 12 years ago

Going through the initial install/setup steps, and got everything working, but when I run ./locker I get the following error, and then everything shuts down.

2 Jun 18:49:05 - error: Uncaught exception: 2 Jun 18:49:05 - error: [SyntaxError: Unexpected token }] 2 Jun 18:49:05 - error: 'SyntaxError: Unexpected token }\n at Object.parse (native)\n at Object.init (/Users/chad/Locker/Ops/registry.js:40:20)\n at /Users/chad/Locker/lockerd.js:143:18\n at /Users/chad/Locker/Common/node/ldatastore.js:25:9\n at /Users/chad/Locker/Common/node/lmongo.js:51:9\n at Object.connect (/Users/chad/Locker/Common/node/lmongo.js:19:30)\n at Object.init (/Users/chad/Locker/Common/node/lmongo.js:47:11)\n at Object.init (/Users/chad/Locker/Common/node/ldatastore.js:22:12)\n at Object.init (/Users/chad/Locker/Common/node/lsyncmanager.js:72:16)\n at Object.init (/Users/chad/Locker/Common/node/lsyncmanager.js:96:15)'

2 Jun 18:49:05 - info: Shutting down...

Has anyone else run into this just getting started? I'm new to the project so not sure how to resolve. Can't seem to find any clues in the referenced files. Thanks!

bf4 commented 12 years ago

I'm getting the same error, osx mountain lion, first did make deps for everything, then nuked ./deps and brew install imagemagick mongo clucene and the other stuff on the page, but it wants an older node, so I did make deps, make, etc. got the same error again. also tried running it with PATH="./deps/local/bin:$PATH" ./locker

update: I figured it out. I had commented out some lines in the apikeys.json which failed parsing by the Ops/registry.js module. removing the commented out lines worked.