Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/mongodb/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Heroku 风暴之路与希罗库_Heroku_Stormpath - Fatal编程技术网

Heroku 风暴之路与希罗库

Heroku 风暴之路与希罗库,heroku,stormpath,Heroku,Stormpath,我一直在尝试向Heroku启动Stormpath教程应用程序,但Heroku告诉我“应用程序中出现错误,无法提供您的页面。”。请稍后再试。如果您是应用程序所有者,请查看日志以了解详细信息。” 我检查了日志,主要的问题似乎是“错误:需要API密钥ID和密码”,但我不知道这意味着什么。我已经按照这里的指南在终端中设置了密钥ID和密码。我该怎么做才能让这个东西在Heroku上正常启动 本地运行正常,以下是完整日志: 2016-05-23T00:57:21.912777+00:00 app[web.1]

我一直在尝试向Heroku启动Stormpath教程应用程序,但Heroku告诉我“应用程序中出现错误,无法提供您的页面。”。请稍后再试。如果您是应用程序所有者,请查看日志以了解详细信息。”

我检查了日志,主要的问题似乎是“错误:需要API密钥ID和密码”,但我不知道这意味着什么。我已经按照这里的指南在终端中设置了密钥ID和密码。我该怎么做才能让这个东西在Heroku上正常启动

本地运行正常,以下是完整日志:

2016-05-23T00:57:21.912777+00:00 app[web.1]: > node server.js
2016-05-23T00:57:21.912752+00:00 app[web.1]:
2016-05-23T00:57:21.912773+00:00 app[web.1]: > my-webapp@1.0.0 start /app
2016-05-23T00:57:21.912778+00:00 app[web.1]:
2016-05-23T00:57:23.236038+00:00 app[web.1]: error:  Error: API key ID and secret is required.
2016-05-23T00:57:23.236061+00:00 app[web.1]:     at /app/node_modules/async/lib/async.js:1213:16
2016-05-23T00:57:23.236061+00:00 app[web.1]:     at fn (/app/node_modules/async/lib/async.js:746:34)
2016-05-23T00:57:23.236062+00:00 app[web.1]:     at /app/node_modules/async/lib/async.js:166:37
2016-05-23T00:57:23.236060+00:00 app[web.1]:     at ValidateClientConfigStrategy.process (/app/node_modules/stormpath-config/lib/strategy/ValidateClientConfigStrategy.js:33:12)
2016-05-23T00:57:23.236056+00:00 app[web.1]:     at newError (/app/node_modules/stormpath-config/lib/strategy/ValidateClientConfigStrategy.js:15:14)
2016-05-23T00:57:23.236063+00:00 app[web.1]:     at /app/node_modules/async/lib/async.js:706:43
2016-05-23T00:57:23.236063+00:00 app[web.1]:     at /app/node_modules/async/lib/async.js:167:37
2016-05-23T00:57:23.236065+00:00 app[web.1]:     at Immediate._onImmediate (/app/node_modules/async/lib/async.js:1206:34)
2016-05-23T00:57:23.236066+00:00 app[web.1]:     at tryOnImmediate (timers.js:534:15)
2016-05-23T00:57:23.236066+00:00 app[web.1]:     at processImmediate [as _immediateCallback] (timers.js:514:5)
2016-05-23T00:58:19.594432+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2016-05-23T00:58:19.594683+00:00 heroku[web.1]: Stopping process with SIGKILL
2016-05-23T00:58:20.928062+00:00 heroku[web.1]: State changed from starting to crashed
2016-05-23T00:58:20.879933+00:00 heroku[web.1]: Process exited with status 137
2016-05-23T00:58:40.721955+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=workpls.herokuapp.com request_id=a8142cf5-0e42-402b-b777-69aa7867808a fwd="73.222.253.89" dyno= connect= service= status=503 bytes=
2016-05-23T00:58:41.882687+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=workpls.herokuapp.com request_id=04db8c96-ff75-4535-9aa9-cb1415951742 fwd="73.222.253.89" dyno= connect= service= status=503 bytes=
2016-05-23T01:00:10.489523+00:00 heroku[api]: Release v6 created by brandonlum94@gmail.com
2016-05-23T01:00:10.489494+00:00 heroku[api]: Deploy 7873309 by brandonlum94@gmail.com
2016-05-23T01:00:10.619075+00:00 heroku[slug-compiler]: Slug compilation started
2016-05-23T01:00:10.619085+00:00 heroku[slug-compiler]: Slug compilation finished
2016-05-23T01:00:10.966086+00:00 heroku[web.1]: State changed from crashed to starting
2016-05-23T01:00:12.625037+00:00 heroku[web.1]: Starting process with command `npm start`
2016-05-23T01:00:15.420889+00:00 app[web.1]:
2016-05-23T01:00:15.420908+00:00 app[web.1]: > my-webapp@1.0.0 start /app
2016-05-23T01:00:15.420911+00:00 app[web.1]: > node server.js
2016-05-23T01:00:15.420912+00:00 app[web.1]:
2016-05-23T01:00:16.939751+00:00 app[web.1]: error:  Error: API key ID and secret is required.
2016-05-23T01:00:16.939761+00:00 app[web.1]:     at newError (/app/node_modules/stormpath-config/lib/strategy/ValidateClientConfigStrategy.js:15:14)
2016-05-23T01:00:16.939763+00:00 app[web.1]:     at ValidateClientConfigStrategy.process (/app/node_modules/stormpath-config/lib/strategy/ValidateClientConfigStrategy.js:33:12)
2016-05-23T01:00:16.939764+00:00 app[web.1]:     at fn (/app/node_modules/async/lib/async.js:746:34)
2016-05-23T01:00:16.939765+00:00 app[web.1]:     at /app/node_modules/async/lib/async.js:1213:16
2016-05-23T01:00:16.939766+00:00 app[web.1]:     at /app/node_modules/async/lib/async.js:706:43
2016-05-23T01:00:16.939765+00:00 app[web.1]:     at /app/node_modules/async/lib/async.js:166:37
2016-05-23T01:00:16.939767+00:00 app[web.1]:     at /app/node_modules/async/lib/async.js:167:37
2016-05-23T01:00:16.939768+00:00 app[web.1]:     at Immediate._onImmediate (/app/node_modules/async/lib/async.js:1206:34)
2016-05-23T01:00:16.939769+00:00 app[web.1]:     at tryOnImmediate (timers.js:534:15)
2016-05-23T01:00:16.939770+00:00 app[web.1]:     at processImmediate [as _immediateCallback] (timers.js:514:5)
2016-05-23T01:01:13.074993+00:00 heroku[web.1]: Stopping process with SIGKILL
2016-05-23T01:01:13.074993+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2016-05-23T01:01:13.918547+00:00 heroku[web.1]: State changed from starting to crashed
2016-05-23T01:01:13.916299+00:00 heroku[web.1]: Process exited with status 137
2016-05-23T01:01:16.688198+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=workpls.herokuapp.com request_id=b8b03962-66f9-4b67-be55-009dff78c8b0 fwd="73.222.253.89" dyno= connect= service= status=503 bytes=
2016-05-23T01:01:17.984769+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=workpls.herokuapp.com request_id=5a6a9d91-a144-415c-9293-951aedc0f26b fwd="73.222.253.89" dyno= connect= service= status=503 bytes=
2016-05-23T01:02:40.694187+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=workpls.herokuapp.com request_id=b004fcf9-f3d8-482f-bae3-3e4cfe90160e fwd="73.222.253.89" dyno= connect= service= status=503 bytes=
2016-05-23T01:02:41.552456+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=workpls.herokuapp.com request_id=80a2b214-7a03-4a32-b09d-7ed210685b1e fwd="73.222.253.89" dyno= connect= service= status=503 bytes=
2016-05-23T01:04:23.179785+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=workpls.herokuapp.com request_id=47a5a69e-b26b-4318-9c34-869a1f488e54 fwd="73.222.253.89" dyno= connect= service= status=503 bytes=
2016-05-23T01:04:24.057028+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=workpls.herokuapp.com request_id=1736845b-b276-435d-ac09-dd308592f290 fwd="73.222.253.89" dyno= connect= service= status=503 bytes=
2016-05-23T01:07:39.697756+00:00 heroku[api]: Release v7 created by brandonlum94@gmail.com
2016-05-23T01:07:39.697756+00:00 heroku[api]: Set STORMPATH_SECRET_KEY config vars by brandonlum94@gmail.com
2016-05-23T01:07:40.390722+00:00 heroku[web.1]: State changed from crashed to starting
2016-05-23T01:07:42.158518+00:00 heroku[web.1]: Starting process with command `npm start`
2016-05-23T01:07:44.211079+00:00 app[web.1]:
2016-05-23T01:07:44.211110+00:00 app[web.1]: > my-webapp@1.0.0 start /app
2016-05-23T01:07:44.211113+00:00 app[web.1]: > node server.js
2016-05-23T01:07:44.211119+00:00 app[web.1]:
2016-05-23T01:07:45.303304+00:00 app[web.1]: error:  Error: API key ID and secret is required.
2016-05-23T01:07:45.303317+00:00 app[web.1]:     at newError (/app/node_modules/stormpath-config/lib/strategy/ValidateClientConfigStrategy.js:15:14)
2016-05-23T01:07:45.303318+00:00 app[web.1]:     at ValidateClientConfigStrategy.process (/app/node_modules/stormpath-config/lib/strategy/ValidateClientConfigStrategy.js:33:12)
2016-05-23T01:07:45.303319+00:00 app[web.1]:     at fn (/app/node_modules/async/lib/async.js:746:34)
2016-05-23T01:07:45.303320+00:00 app[web.1]:     at /app/node_modules/async/lib/async.js:1213:16
2016-05-23T01:07:45.303320+00:00 app[web.1]:     at /app/node_modules/async/lib/async.js:166:37
2016-05-23T01:07:45.303321+00:00 app[web.1]:     at /app/node_modules/async/lib/async.js:706:43
2016-05-23T01:07:45.303321+00:00 app[web.1]:     at /app/node_modules/async/lib/async.js:167:37
2016-05-23T01:07:45.303322+00:00 app[web.1]:     at Immediate._onImmediate (/app/node_modules/async/lib/async.js:1206:34)
2016-05-23T01:07:45.303324+00:00 app[web.1]:     at processImmediate [as _immediateCallback] (timers.js:514:5)
2016-05-23T01:07:45.303323+00:00 app[web.1]:     at tryOnImmediate (timers.js:534:15)
2016-05-23T01:08:42.173794+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2016-05-23T01:08:42.173889+00:00 heroku[web.1]: Stopping process with SIGKILL
2016-05-23T01:08:42.972327+00:00 heroku[web.1]: State changed from starting to crashed
2016-05-23T01:08:42.960998+00:00 heroku[web.1]: Process exited with status 137
2016-05-23T01:08:42.973810+00:00 heroku[web.1]: State changed from crashed to starting
2016-05-23T01:08:44.895681+00:00 heroku[web.1]: Starting process with command `npm start`
2016-05-23T01:08:47.490885+00:00 app[web.1]:
2016-05-23T01:08:47.490893+00:00 app[web.1]: > my-webapp@1.0.0 start /app
2016-05-23T01:08:47.490900+00:00 app[web.1]:
2016-05-23T01:08:47.490899+00:00 app[web.1]: > node server.js
2016-05-23T01:08:48.673636+00:00 app[web.1]: error:  Error: API key ID and secret is required.
2016-05-23T01:08:48.673657+00:00 app[web.1]:     at newError (/app/node_modules/stormpath-config/lib/strategy/ValidateClientConfigStrategy.js:15:14)
2016-05-23T01:08:48.673659+00:00 app[web.1]:     at ValidateClientConfigStrategy.process (/app/node_modules/stormpath-config/lib/strategy/ValidateClientConfigStrategy.js:33:12)
2016-05-23T01:08:48.673660+00:00 app[web.1]:     at fn (/app/node_modules/async/lib/async.js:746:34)
2016-05-23T01:08:48.673660+00:00 app[web.1]:     at /app/node_modules/async/lib/async.js:1213:16
2016-05-23T01:08:48.673661+00:00 app[web.1]:     at /app/node_modules/async/lib/async.js:166:37
2016-05-23T01:08:48.673665+00:00 app[web.1]:     at tryOnImmediate (timers.js:534:15)
2016-05-23T01:08:48.673661+00:00 app[web.1]:     at /app/node_modules/async/lib/async.js:706:43
2016-05-23T01:08:48.673666+00:00 app[web.1]:     at processImmediate [as _immediateCallback] (timers.js:514:5)
2016-05-23T01:08:48.673662+00:00 app[web.1]:     at /app/node_modules/async/lib/async.js:167:37
2016-05-23T01:08:48.673664+00:00 app[web.1]:     at Immediate._onImmediate (/app/node_modules/async/lib/async.js:1206:34)
2016-05-23T01:09:44.945559+00:00 app[web.1]: Error waiting for process to terminate: No child processes
2016-05-23T01:09:44.916097+00:00 heroku[web.1]: Stopping process with SIGKILL
2016-05-23T01:09:44.916097+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2016-05-23T01:09:45.800059+00:00 heroku[web.1]: Process exited with status 22
2016-05-23T01:09:45.849441+00:00 heroku[web.1]: State changed from starting to crashed
2016-05-23T01:17:24.998834+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=workpls.herokuapp.com request_id=f573e1ab-6029-4115-b925-3034b93ca7dc fwd="73.222.253.89" dyno= connect= service= status=503 bytes=
2016-05-23T01:17:25.895402+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=workpls.herokuapp.com request_id=eca422af-0a7c-4d10-9bd6-16fc54b6b10d fwd="73.222.253.89" dyno= connect= service= status=503 bytes=
2016-05-23T01:21:00.461372+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=workpls.herokuapp.com request_id=89189a45-6415-48e4-be08-0fb2a83291e8 fwd="73.222.253.89" dyno= connect= service= status=503 bytes=
2016-05-23T01:21:01.050242+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=workpls.herokuapp.com request_id=6d4fa6d5-1feb-4a10-8864-ef50fe72845b fwd="73.222.253.89" dyno= connect= service= status=503 bytes=

我在Stormpath工作,所以就跳进来。我们最近发布了一个新版本的express stormpath库,该库查找与Heroku上默认包含的环境变量名称不同的环境变量

我现在要在Heroku文档中解决这个问题

在此期间,您可以采取以下措施使工作正常进行:

$ heroku config:set STORMPATH_APPLICATION_HREF=$(heroku config:get STORMPATH_URL)
$ heroku config:set STORMPATH_CLIENT_APIKEY_ID=$(heroku config:get STORMPATH_API_KEY_ID)
$ heroku config:set STORMPATH_CLIENT_APIKEY_SECRET=$(heroku config:get STORMPATH_API_KEY_SECRET)
上述命令将复制Stormpath的Heroku环境变量,并正确命名


很抱歉给您带来困惑,我现在正在努力解决这个问题=)

我在Stormpath工作,所以就跳到这里来吧。我们最近发布了一个新版本的express stormpath库,该库查找与Heroku上默认包含的环境变量名称不同的环境变量

我现在要在Heroku文档中解决这个问题

在此期间,您可以采取以下措施使工作正常进行:

$ heroku config:set STORMPATH_APPLICATION_HREF=$(heroku config:get STORMPATH_URL)
$ heroku config:set STORMPATH_CLIENT_APIKEY_ID=$(heroku config:get STORMPATH_API_KEY_ID)
$ heroku config:set STORMPATH_CLIENT_APIKEY_SECRET=$(heroku config:get STORMPATH_API_KEY_SECRET)
上述命令将复制Stormpath的Heroku环境变量,并正确命名


很抱歉造成混淆,我正在修复此问题=)

您好,您能告诉我们您为heroku应用程序设置的环境变量的名称吗?有关正确的名称,请参阅express stormpath模块的文档。谢谢设置STORMPATH\u CLIENT\u APIKEY\u ID=您的\u ID\u此处设置STORMPATH\u CLIENT\u APIKEY\u SECRET=您的\u SECRET\u此处设置STORMPATH\u应用程序\u HREF=您的\u应用程序\u HREF//抱歉设置格式。我已经根据原始帖子中链接的指南设置了这3个变量。我从Stormpath控制台下载的文件以及应用程序详细信息中的href中获得了API密钥和密钥。您好,您能告诉我们您为heroku应用程序设置的环境变量的名称吗?有关正确的名称,请参阅express stormpath模块的文档。谢谢设置STORMPATH\u CLIENT\u APIKEY\u ID=您的\u ID\u此处设置STORMPATH\u CLIENT\u APIKEY\u SECRET=您的\u SECRET\u此处设置STORMPATH\u应用程序\u HREF=您的\u应用程序\u HREF//抱歉设置格式。我已经根据原始帖子中链接的指南设置了这3个变量。我从Stormpath控制台下载的文件以及应用程序详细信息中的href中获得了API密钥和密钥。我尝试了:Stormpath\u应用程序\u href:xxxxxxxxxxxx Stormpath\u客户端\u密钥\u ID:xxxxxxxxxxxx Stormpath\u客户端\u密钥\u密钥:xxxxxxxxxxxx Stormpath\u密钥:xxxxxxxxxxxxSTORM\u PATH\u SECRET\u KEY:xxxxxxxxxxxxx最后一个无效,您拼写的STORMPATH错误,应该是STORMPATH而不是STORM\u PATH。我将正确拼写的一个作为第四个条目:“STORMPATH\u SECRET\u KEY:xxxxxxxxxxxxx”。如何在评论中添加新行?我在终端中输入了heroku config,它说href、apikey_id和apikey_secret是我为我的应用程序设置的。不,我的意思是,它们需要设置为:
STORMPATH_客户端_apikey_id
STORMPATH_客户端_apikey_secret
,以及
STORMPATH_应用程序_href
(就像我的示例代码一样)。我得到:"! 配置:get无效。格式必须为FOO=bar。“我在Windows命令提示符下,按原样尝试了您的代码。我必须改变什么吗?我尝试了heroku config:set STORMPATH\u APPLICATION\u HREF=STORMPATH\u URL,但在日志中无效。以下是heroku配置:STORMPATH\u应用程序\u HREF:STORMPATH\u URL STORMPATH\u客户端\u APIKEY\u ID:STORMPATH\u API\u密钥\u密码:STORMPATH\u API\u密钥\u密码已尝试:STORMPATH\u应用程序\u HREF:xxxxxxxxxxxxx STORMPATH\u客户端\u APIKEY\u ID:xxxxxxxxxxxxxxxxxxxxx STORMPATH\u客户端\u APIKEY\u密码:xxxxxxxxxxxxxxxxxSTORMPATH\u SECRET\u KEY:xxxxxxxxxxxxxxxx STORM\u PATH\u SECRET\u KEY:xxxxxxxxxxxxxxxxx最后一个无效,您拼写的STORMPATH错误,应该是STORMPATH而不是STORM\u PATH。我将拼写正确的一个作为第四个条目:“STORMPATH\u SECRET\u KEY:xxxxxxxxxxxxx”。如何在评论中添加新行?我在终端中输入了heroku config,它说href、apikey_id和apikey_secret是我为我的应用程序设置的。不,我的意思是,它们需要设置为:
STORMPATH_客户端_apikey_id
STORMPATH_客户端_apikey_secret
,以及
STORMPATH_应用程序_href
(就像我的示例代码一样)。我得到:"! 配置:get无效。格式必须为FOO=bar。“我在Windows命令提示符下,按原样尝试了您的代码。我必须改变什么吗?我尝试了heroku config:set STORMPATH\u APPLICATION\u HREF=STORMPATH\u URL,但在日志中无效。这是heroku配置:STORMPATH\u应用程序\u HREF:STORMPATH\u URL STORMPATH\u客户端\u密钥\u ID:STORMPATH\u API\u密钥\u ID STORMPATH\u客户端\u密钥\u机密:STORMPATH\u API\u密钥\u机密