我正在尝试在heroku中发布一个api(这是我第一次发布Node应用,但我真的不知道会发生什么),但是当它在线时,我尝试访问Web但发生错误,这是错误日志
非常感谢
2019-10-11T19:20:51.529105+00:00 heroku[web.1]: Starting process with command `node index.js` 2019-10-11T19:20:50+00:00 app[api]: Build succeeded 2019-10-11T19:20:54.018577+00:00 app[web.1]: (node:4) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect. 2019-10-11T19:20:54.068092+00:00 app[web.1]: (node:4) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor. 2019-10-11T19:20:54.181148+00:00 app[web.1]: conexion exitosa 2019-10-11T19:20:54.191323+00:00 app[web.1]: conexion al servido corriendo 2019-10-11T19:21:14.827099+00:00 heroku[web.1]: source=web.1 dyno=heroku.149313826.d6013ec1-7f6d-49b9-80cc-aa3bba40098e sample#memory_total=21.34MB sample#memory_rss=21.34MB sample#memory_cache=0.00MB sample#memory_swap=0.00MB sample#memory_pgpgin=9275pages sample#memory_pgpgout=3811pages sample#memory_quota=512.00MB 2019-10-11T19:21:36.903445+00:00 heroku[web.1]: source=web.1 dyno=heroku.149313826.d6013ec1-7f6d-49b9-80cc-aa3bba40098e sample#memory_total=21.52MB sample#memory_rss=21.52MB sample#memory_cache=0.00MB sample#memory_swap=0.00MB sample#memory_pgpgin=9320pages sample#memory_pgpgout=3811pages sample#memory_quota=512.00MB 2019-10-11T19:21:52.042196+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch 2019-10-11T19:21:52.066404+00:00 heroku[web.1]: Stopping process with SIGKILL 2019-10-11T19:21:52.126366+00:00 heroku[web.1]: Process exited with status 137 2019-10-11T19:21:52.165104+00:00 heroku[web.1]: State changed from starting to crashed 2019-10-11T19:21:52.168183+00:00 heroku[web.1]: State changed from crashed to starting 2019-10-11T19:21:54.137127+00:00 heroku[web.1]: Starting process with command `node index.js` 2019-10-11T19:21:56.430907+00:00 heroku[web.1]: source=web.1 dyno=heroku.149313826.099c2aa4-f1f6-44ac-bc5d-9751db844a99 sample#memory_total=28.77MB sample#memory_rss=28.77MB sample#memory_cache=0.00MB sample#memory_swap=0.00MB sample#memory_pgpgin=7539pages sample#memory_pgpgout=684pages sample#memory_quota=512.00MB 2019-10-11T19:21:56.474084+00:00 app[web.1]: (node:4) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect. 2019-10-11T19:21:56.504231+00:00 app[web.1]: (node:4) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor. 2019-10-11T19:21:56.605777+00:00 app[web.1]: conexion exitosa 2019-10-11T19:21:56.615172+00:00 app[web.1]: conexion al servido corriendo 2019-10-11T19:22:17.25344+00:00 heroku[web.1]: source=web.1 dyno=heroku.149313826.099c2aa4-f1f6-44ac-bc5d-9751db844a99 sample#memory_total=24.66MB sample#memory_rss=24.66MB sample#memory_cache=0.00MB sample#memory_swap=0.00MB sample#memory_pgpgin=9147pages sample#memory_pgpgout=3855pages sample#memory_quota=512.00MB 2019-10-11T19:22:38.484909+00:00 heroku[web.1]: source=web.1 dyno=heroku.149313826.099c2aa4-f1f6-44ac-bc5d-9751db844a99 sample#load_avg_1m=0.50 2019-10-11T19:22:38.515014+00:00 heroku[web.1]: source=web.1 dyno=heroku.149313826.099c2aa4-f1f6-44ac-bc5d-9751db844a99 sample#memory_total=24.84MB sample#memory_rss=24.84MB sample#memory_cache=0.00MB sample#memory_swap=0.00MB sample#memory_pgpgin=9192pages sample#memory_pgpgout=3855pages sample#memory_quota=512.00MB 2019-10-11T19:22:44.034055+00:00 heroku[router]: at=error code=H20 desc="App boot timeout" method=GET path="/" host=node-rest2019.herokuapp.com request_id=005cac58-d0a0-42a9-9aca-73cb56fcab3d fwd="186.105.14.15" dyno= connect= service= status=503 bytes= protocol=https 2019-10-11T19:22:52.824151+00:00 heroku[router]: at=error code=H20 desc="App boot timeout" method=GET path="/" host=node-rest2019.herokuapp.com request_id=e3d0df11-592e-406b-91c8-ad416099dd64 fwd="186.105.14.15" dyno= connect= service= status=503 bytes= protocol=https 2019-10-11T19:22:54.341068+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch 2019-10-11T19:22:54.366946+00:00 heroku[web.1]: Stopping process with SIGKILL 2019-10-11T19:22:54.59715+00:00 heroku[web.1]: Process exited with status 137 2019-10-11T19:22:54.639135+00:00 heroku[web.1]: State changed from starting to crashed 2019-10-11T19:22:56.678026+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/loteria" host=node-rest2019.herokuapp.com request_id=315637a0-65e1-483e-81e2-b9d74cc09c04 fwd="186.105.14.15" dyno= connect= service= status=503 bytes= protocol=https 2019-10-11T19:22:57.347163+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/loteria" host=node-rest2019.herokuapp.com request_id=8a04574f-907f-4c4c-b53c-0baced379942 fwd="186.105.14.15" dyno= connect= service= status=503 bytes= protocol=https 2019-10-11T19:22:57.543888+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=node-rest2019.herokuapp.com request_id=fdff18ce-adc4-49ba-b588-a96fd207df43 fwd="186.105.14.15" dyno= connect= service= status=503 bytes= protocol=https 2019-10-11T19:38:24+00:00 app[api]: Build started by user nulorincon@gmail.com 2019-10-11T19:38:43.287692+00:00 heroku[web.1]: State changed from crashed to starting 2019-10-11T19:38:42.991797+00:00 app[api]: Deploy e7cdb3d1 by user nulorincon@gmail.com 2019-10-11T19:38:42.991797+00:00 app[api]: Release v4 created by user nulorincon@gmail.com 2019-10-11T19:38:43+00:00 app[api]: Build succeeded 2019-10-11T19:38:45.130725+00:00 heroku[web.1]: Starting process with command `node index.js` 2019-10-11T19:38:47.371176+00:00 heroku[web.1]: Process exited with status 1 2019-10-11T19:38:47.414166+00:00 heroku[web.1]: State changed from starting to crashed 2019-10-11T19:38:47.417324+00:00 heroku[web.1]: State changed from crashed to starting 2019-10-11T19:38:47.102072+00:00 app[web.1]: (node:4) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect. 2019-10-11T19:38:47.150811+00:00 app[web.1]: (node:4) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor. 2019-10-11T19:38:47.31257+00:00 app[web.1]: conexion exitosa 2019-10-11T19:38:47.320644+00:00 app[web.1]: events.js:174 2019-10-11T19:38:47.320647+00:00 app[web.1]: throw er; // Unhandled 'error' event 2019-10-11T19:38:47.320649+00:00 app[web.1]: ^ 2019-10-11T19:38:47.320651+00:00 app[web.1]: 2019-10-11T19:38:47.320654+00:00 app[web.1]: Error: listen EACCES: permission denied 0.0.0.0:80 2019-10-11T19:38:47.320656+00:00 app[web.1]: at Server.setupListenHandle [as _listen2] (net.js:1262:19) 2019-10-11T19:38:47.320658+00:00 app[web.1]: at listenInCluster (net.js:1327:12) 2019-10-11T19:38:47.32066+00:00 app[web.1]: at Server.listen (net.js:1414:7) 2019-10-11T19:38:47.320662+00:00 app[web.1]: at Function.listen (/app/node_modules/express/lib/application.js:618:24) 2019-10-11T19:38:47.320664+00:00 app[web.1]: at mongoose.connect.then (/app/index.js:25:6) 2019-10-11T19:38:47.320666+00:00 app[web.1]: at process._tickCallback (internal/process/next_tick.js:68:7) 2019-10-11T19:38:47.320668+00:00 app[web.1]: Emitted 'error' event at: 2019-10-11T19:38:47.32067+00:00 app[web.1]: at emitErrorNT (net.js:1306:8) 2019-10-11T19:38:47.320672+00:00 app[web.1]: at process._tickCallback (internal/process/next_tick.js:63:19) 2019-10-11T19:38:49.425176+00:00 heroku[web.1]: Starting process with command `node index.js` 2019-10-11T19:38:52.385903+00:00 heroku[web.1]: Process exited with status 1 2019-10-11T19:38:52.435053+00:00 heroku[web.1]: State changed from starting to crashed 2019-10-11T19:38:52.138711+00:00 app[web.1]: (node:4) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect. 2019-10-11T19:38:52.195533+00:00 app[web.1]: (node:4) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor. 2019-10-11T19:38:52.313992+00:00 app[web.1]: conexion exitosa 2019-10-11T19:38:52.327233+00:00 app[web.1]: events.js:174 2019-10-11T19:38:52.327237+00:00 app[web.1]: throw er; // Unhandled 'error' event 2019-10-11T19:38:52.327239+00:00 app[web.1]: ^ 2019-10-11T19:38:52.327241+00:00 app[web.1]: 2019-10-11T19:38:52.327243+00:00 app[web.1]: Error: listen EACCES: permission denied 0.0.0.0:80 2019-10-11T19:38:52.327247+00:00 app[web.1]: at Server.setupListenHandle [as _listen2] (net.js:1262:19) 2019-10-11T19:38:52.32725+00:00 app[web.1]: at listenInCluster (net.js:1327:12) 2019-10-11T19:38:52.327252+00:00 app[web.1]: at Server.listen (net.js:1414:7) 2019-10-11T19:38:52.327254+00:00 app[web.1]: at Function.listen (/app/node_modules/express/lib/application.js:618:24) 2019-10-11T19:38:52.327256+00:00 app[web.1]: at mongoose.connect.then (/app/index.js:25:6) 2019-10-11T19:38:52.327258+00:00 app[web.1]: at process._tickCallback (internal/process/next_tick.js:68:7) 2019-10-11T19:38:52.32726+00:00 app[web.1]: Emitted 'error' event at: 2019-10-11T19:38:52.327262+00:00 app[web.1]: at emitErrorNT (net.js:1306:8) 2019-10-11T19:38:52.327264+00:00 app[web.1]: at process._tickCallback (internal/process/next_tick.js:63:19) 2019-10-11T19:38:53.724849+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/loteria" host=node-rest2019.herokuapp.com request_id=86ed7dd4-cf98-42d7-bf64-fdd387de86de fwd="186.105.14.15" dyno= connect= service= status=503 bytes= protocol=https 2019-10-11T19:38:54.039474+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=node-rest2019.herokuapp.com request_id=eb1092e4-dc50-45c4-b295-1ab333e1435f fwd="186.105.14.15" dyno= connect= service= status=503 bytes= protocol=https