2013-08-28T15:31:02.200670+00:00 heroku[web.1]: Starting process with command `n
ode app.js`
2013-08-28T15:31:03.
477505+00:00 app[web.1]: at module.exports (/app/node_modules/atlassian-conn
ect-express/lib/index.js:115:10)
2013-08-28T15:31:03.474705+00:00 app[web.1]: throw new Error('Please run \'a
tlas-connect keygen\' to generate this app\
2013-08-28T15:31:03.477505+00:00 app[web.1]: at Function.Module._load (modul
e.js:312:12)
2013-08-28T15:31:03.477505+00:00 app[web.1]: at EventEmitter.Addon (/app/nod
e_modules/atlassian-connect-express/lib/index.js:18:8)
2013-08-28T15:31:03.477505+00:00 app[web.1]: at Function.Module.runMain (mod
ule.js:497:10)
2013-08-28T15:31:03.474249+00:00 app[web.1]: /app/node_modules/atlassian-connect
-express/lib/index.js:53
2013-08-28T15:31:03.474705+00:00 app[web.1]: ^
2013-08-28T15:31:03.473909+00:00 app[web.1]:
2013-08-28T15:31:03.477505+00:00 app[web.1]: at Object.Module._extensions..j
s (module.js:474:10)
2013-08-28T15:31:03.477505+00:00 app[web.1]: Error: Please run 'atlas-connect ke
ygen' to generate this app's RSA key pair.
2013-08-28T15:31:03.477505+00:00 app[web.1]: at EventEmitter.proto._verifyKe
ys (/app/node_modules/atlassian-connect-express/lib/index.js:53:11)
2013-08-28T15:31:03.477505+00:00 app[web.1]: at Module._compile (module.js:4
56:26)
2013-08-28T15:31:03.477685+00:00 app[web.1]: at startup (node.js:119:16)
2013-08-28T15:31:03.477505+00:00 app[web.1]: at Object.<anonymous> (/app/app
.js:29:13)
2013-08-28T15:31:03.477505+00:00 app[web.1]: at Module.load (module.js:356:3
2)
2013-08-28T15:31:04.595552+00:00 heroku[web.1]: Process exited with status 8
2013-08-28T15:31:04.606258+00:00 heroku[web.1]: State changed from starting to c
rashed
heroku config:set AC_PUBLIC_KEY="-----BEGIN PUBLIC KEY-----XXXXXXX-----END PUBLIC KEY-----" --app my-app heroku config:set AC_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----XXXXXX-----END RSA PRIVATE KEY-----" --app myapp
--
You received this message because you are subscribed to the Google Groups "Atlassian Connect Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to atlassian-connec...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
If those are exactly the commands you used, you're app name is different on the two lines ('my-app' vs 'myapp'). Also double check that your keys have newlines in them and look correct when you read them back out with 'heroku config'.
--
heroku config --app my-app
=== my-app Config Vars
AC_PRIVATE_KEY: -----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEA0h3VX1o6vYiDHBy/NMKXWPj6CGbGwiX7TUUBp2T7v6bTXulw
yYL30ZArEH5EwzHoHgOcpwiUQS6zTAiMPbkkotPaqJhKy03EYgX/WWBX0EJYewMa
cYRQxH0X7Y89rY/nKV357vM9Mrc0dx6KURFoliNrMcUb78KBHQ2nhRYhCwiEn0MD
UBuuxg2Moyqur7n2k4gTzioPJOz6MxyKPCOXjkJEl192NilAjjb+PhZIibxgpFKZ
JoZbKdpjsB0oEujHsEe/fy5/LYwWOYW4bYJO2i4sUKkjsXUkyOnO+PMxTARgMiXl
5JrD6iQss6FxumCFETGx3ii08qu0KypKRWhiIQIDAQABAoIBACEKs/00sTwQ9Z08
IA1p9Gb3cEpV7zekxWoXSfVK+hPfZinsx+HIiLQZ2cvUL3gKpxfhNYdG4BmIAIYa
agNi1BIPArm0iT6DUjif/NHPRr/nTwa5LDVhu1nK2jJvbiGXGaD1uFINSjhpewSo
dtPcyvehRkAjYQtJKQiqlwdkvXmAajP2NoQ8eg0af/jn/RZeZJyxBkMA3pwXV60+
aA4dHpx3zTcHNwvml0O4gNWP2ogwNCuAIFUVUgooTmh7hzvUopy+lWzbuuXs6AkX
sbRCQWi13H9Q9pZjUkKej6A8sd+7Cy1IexjowLWzdMkmJPIM3lvZ/+y4ECP7cvdM
RURBRikCgYEA/L13HbkItDBZtUNsginanwGZyjWGr2REf6GXpcqhbsR1qyZ8dLL+
acpPOlSIghPUixQ5NghS2TCFzESqIXiVHEmqUVorr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qur7n2k4gTzioPJOz6MxyKPCOX
jkJEl192NilAjjb+PhZIibxgpFKZJoZbKdpjsB0oEujHsEe/fy5/LYwWOYW4bYJO
2i4sUKkjsXUkyOnO+PMxTARgMiXl5JrD6iQss6FxumCFETGx3ii08qu0KypKRWhi
IQIDAQAB
-----END PUBLIC KEY-----
HEROKU_POSTGRESQL_BLUE_URL: postgres://x...@yyy.com:12345/zzzz
NODE_ENV: production
I think some debugging is the next step. You can try to reproduce this in your local dev env by doing the following:
* Temporarily rename or move your public-key.pem and private-key.pem files so they aren't found by the ace config code
* Run the following (if in bash) to set the environment variables:
$ export AC_PUBLIC_KEY=`cat renamed-public-key.pem`
$ export AC_PRIVATE_KEY=`cat renamed-private-key.pem`
On August 29, 2013 at 3:40:31 AM, Florian Bauer (flo...@die-bauers.name) wrote:
I tried it in many different variants, encodings and different keys - no sucess. Is there any other way to pass the keys? any ideas?
Florian
To unsubscribe from this group and stop receiving emails from it, send an email to atlassian-connect-dev+unsub...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Atlassian Connect Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to atlassian-connec...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.