How do I fixed my Application Error in Heroku? - heroku
I can't connect to Heroku due to the following error. I've tried to add a Start script and also a Procfile but it doesn't work. Could someone explan why it doesn't work? I want to know if the error comes from my Github code or from Heroku setup....................................................................................................................................................................................................................................................................................................
Process exited with status 1
2022-08-12T18:36:39.406029+00:00 heroku[web.1]: State changed from starting to crashed
2022-08-12T18:45:08.000000+00:00 app[api]: Build started by user
2022-08-12T18:45:15.000000+00:00 app[api]: Build failed -- check your build output: https://dashboard.heroku.com/apps/3beda483-c8d1-40cb-8452-be76a4a2cd04/activity/builds/c4695503-5efb-4c98-a5df-c3e54b7f6e96
2022-08-12T18:46:24.000000+00:00 app[api]: Build started by user
2022-08-12T18:46:32.000000+00:00 app[api]: Build failed -- check your build output: https://dashboard.heroku.com/apps/3beda483-c8d1-40cb-8452-be76a4a2cd04/activity/builds/2ebbd773-8c1e-44d1-8601-2ddd3d37eabc
2022-08-12T18:49:19.000000+00:00 app[api]: Build started by user
2022-08-12T18:49:43.000000+00:00 app[api]: Build succeeded
2022-08-12T18:49:43.145401+00:00 app[api]: Deploy 5fd7082c by user
2022-08-12T18:49:43.145401+00:00 app[api]: Release v21 created by user
2022-08-12T18:49:43.554237+00:00 heroku[web.1]: State changed from crashed to starting
2022-08-12T18:49:45.494798+00:00 heroku[web.1]: Starting process with command `npm start`
2022-08-12T18:49:47.212235+00:00 app[web.1]:
2022-08-12T18:49:47.212248+00:00 app[web.1]: > backend#1.0.0 start
2022-08-12T18:49:47.212248+00:00 app[web.1]: > nodemon backend.js
2022-08-12T18:49:47.212249+00:00 app[web.1]:
2022-08-12T18:49:47.219072+00:00 app[web.1]: sh: 1: nodemon: not found
2022-08-12T18:49:47.352457+00:00 heroku[web.1]: Process exited with status 127
2022-08-12T18:49:47.471871+00:00 heroku[web.1]: State changed from starting to crashed
2022-08-12T18:49:47.478535+00:00 heroku[web.1]: State changed from crashed to starting
2022-08-12T18:49:49.253068+00:00 heroku[web.1]: Starting process with command `npm start`
2022-08-12T18:49:50.192669+00:00 app[web.1]:
2022-08-12T18:49:50.192679+00:00 app[web.1]: > backend#1.0.0 start
2022-08-12T18:49:50.192680+00:00 app[web.1]: > nodemon backend.js
2022-08-12T18:49:50.192680+00:00 app[web.1]:
2022-08-12T18:49:50.198539+00:00 app[web.1]: sh: 1: nodemon: not found
2022-08-12T18:49:50.322132+00:00 heroku[web.1]: Process exited with status 127
2022-08-12T18:49:50.373383+00:00 heroku[web.1]: State changed from starting to crashed
2022-08-12T18:51:02.066411+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=skiplagged-api.herokuapp.com request_id=a15b411f-0fd7-48b8-92e9-329d3596b36a fwd="98.59.250.254" dyno= connect= service= status=503 bytes= protocol=https
2022-08-12T18:51:02.487274+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=skiplagged-api.herokuapp.com request_id=a2eec186-47af-48d6-bc53-d5da65817a56 fwd="98.59.250.254" dyno= connect= service= status=503 bytes= protocol=https
2022-08-12T18:51:33.000000+00:00 app[api]: Build started by user nemail1000#gmail.com
2022-08-12T18:51:48.363071+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=skiplagged-api.herokuapp.com request_id=b9c98980-0f0f-4fa2-9f3c-8f3bd7384e1f fwd="98.59.250.254" dyno= connect= service= status=503 bytes= protocol=https
2022-08-12T18:51:48.697969+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=skiplagged-api.herokuapp.com request_id=16f119c3-71a6-47bf-b759-3a77aaaa9433 fwd="98.59.250.254" dyno= connect= service= status=503 bytes= protocol=https
2022-08-12T18:51:54.720024+00:00 app[api]: Deploy b124ba5b by user nemail1000#gmail.com
2022-08-12T18:51:54.720024+00:00 app[api]: Release v22 created by user nemail1000#gmail.com
2022-08-12T18:51:55.000000+00:00 app[api]: Build succeeded
2022-08-12T18:51:56.660839+00:00 heroku[web.1]: State changed from crashed to starting
2022-08-12T18:51:58.872145+00:00 heroku[web.1]: Starting process with command `npm start`
2022-08-12T18:52:01.047678+00:00 app[web.1]:
2022-08-12T18:52:01.047692+00:00 app[web.1]: > backend#1.0.0 start
2022-08-12T18:52:01.047693+00:00 app[web.1]: > node backend.js
2022-08-12T18:52:01.047693+00:00 app[web.1]:
2022-08-12T18:52:01.116857+00:00 app[web.1]: node:internal/modules/cjs/loader:936
2022-08-12T18:52:01.116859+00:00 app[web.1]: throw err;
2022-08-12T18:52:01.116859+00:00 app[web.1]: ^
2022-08-12T18:52:01.116860+00:00 app[web.1]:
2022-08-12T18:52:01.116860+00:00 app[web.1]: Error: Cannot find module 'express'
2022-08-12T18:52:01.116860+00:00 app[web.1]: Require stack:
2022-08-12T18:52:01.116861+00:00 app[web.1]: - /app/backend.js
2022-08-12T18:52:01.116862+00:00 app[web.1]: at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
2022-08-12T18:52:01.116862+00:00 app[web.1]: at Function.Module._load (node:internal/modules/cjs/loader:778:27)
2022-08-12T18:52:01.116863+00:00 app[web.1]: at Module.require (node:internal/modules/cjs/loader:1005:19)
2022-08-12T18:52:01.116863+00:00 app[web.1]: at require (node:internal/modules/cjs/helpers:102:18)
2022-08-12T18:52:01.116864+00:00 app[web.1]: at Object.<anonymous> (/app/backend.js:1:17)
2022-08-12T18:52:01.116866+00:00 app[web.1]: at Module._compile (node:internal/modules/cjs/loader:1105:14)
2022-08-12T18:52:01.116866+00:00 app[web.1]: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
2022-08-12T18:52:01.116866+00:00 app[web.1]: at Module.load (node:internal/modules/cjs/loader:981:32)
2022-08-12T18:52:01.116867+00:00 app[web.1]: at Function.Module._load (node:internal/modules/cjs/loader:822:12)
2022-08-12T18:52:01.116867+00:00 app[web.1]: at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) {
2022-08-12T18:52:01.116867+00:00 app[web.1]: code: 'MODULE_NOT_FOUND',
2022-08-12T18:52:01.116867+00:00 app[web.1]: requireStack: [ '/app/backend.js' ]
2022-08-12T18:52:01.116868+00:00 app[web.1]: }
2022-08-12T18:52:01.263649+00:00 heroku[web.1]: Process exited with status 1
2022-08-12T18:52:01.549276+00:00 heroku[web.1]: State changed from starting to crashed
2022-08-12T18:52:37.125830+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=skiplagged-api.herokuapp.com request_id=fca52976-99a7-4842-be30-c22db8173b0c fwd="98.59.250.254" dyno= connect= service= status=503 bytes= protocol=https
2022-08-12T18:52:37.459549+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=skiplagged-api.herokuapp.com request_id=a2a5fd43-005c-4bd2-9837-522dd9c5764c fwd="98.59.250.254" dyno= connect= service= status=503 bytes= protocol=https
2022-08-12T18:55:48.000000+00:00 app[api]: Build started by user nemail1000#gmail.com
2022-08-12T18:56:14.000000+00:00 app[api]: Build succeeded
2022-08-12T18:56:14.195930+00:00 app[api]: Deploy 0cf3fee6 by user nemail1000#gmail.com
2022-08-12T18:56:14.195930+00:00 app[api]: Release v23 created by user nemail1000#gmail.com
2022-08-12T18:56:14.485780+00:00 heroku[web.1]: State changed from crashed to starting
2022-08-12T18:56:16.270776+00:00 heroku[web.1]: Starting process with command `npm start`
2022-08-12T18:56:17.888804+00:00 app[web.1]:
2022-08-12T18:56:17.888819+00:00 app[web.1]: > backend#1.0.0 start
2022-08-12T18:56:17.888819+00:00 app[web.1]: > node backend.js
2022-08-12T18:56:17.888819+00:00 app[web.1]:
2022-08-12T18:56:17.936917+00:00 app[web.1]: node:internal/modules/cjs/loader:936
2022-08-12T18:56:17.936918+00:00 app[web.1]: throw err;
2022-08-12T18:56:17.936918+00:00 app[web.1]: ^
2022-08-12T18:56:17.936919+00:00 app[web.1]:
2022-08-12T18:56:17.936919+00:00 app[web.1]: Error: Cannot find module 'express'
2022-08-12T18:56:17.936919+00:00 app[web.1]: Require stack:
2022-08-12T18:56:17.936920+00:00 app[web.1]: - /app/backend.js
2022-08-12T18:56:17.936921+00:00 app[web.1]: at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
2022-08-12T18:56:17.936921+00:00 app[web.1]: at Function.Module._load (node:internal/modules/cjs/loader:778:27)
2022-08-12T18:56:17.936921+00:00 app[web.1]: at Module.require (node:internal/modules/cjs/loader:1005:19)
2022-08-12T18:56:17.936922+00:00 app[web.1]: at require (node:internal/modules/cjs/helpers:102:18)
2022-08-12T18:56:17.936922+00:00 app[web.1]: at Object.<anonymous> (/app/backend.js:1:17)
2022-08-12T18:56:17.936923+00:00 app[web.1]: at Module._compile (node:internal/modules/cjs/loader:1105:14)
2022-08-12T18:56:17.936923+00:00 app[web.1]: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
2022-08-12T18:56:17.936924+00:00 app[web.1]: at Module.load (node:internal/modules/cjs/loader:981:32)
2022-08-12T18:56:17.936924+00:00 app[web.1]: at Function.Module._load (node:internal/modules/cjs/loader:822:12)
2022-08-12T18:56:17.936924+00:00 app[web.1]: at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) {
2022-08-12T18:56:17.936925+00:00 app[web.1]: code: 'MODULE_NOT_FOUND',
2022-08-12T18:56:17.936925+00:00 app[web.1]: requireStack: [ '/app/backend.js' ]
2022-08-12T18:56:17.936925+00:00 app[web.1]: }
2022-08-12T18:56:18.056972+00:00 heroku[web.1]: Process exited with status 1
2022-08-12T18:56:18.132643+00:00 heroku[web.1]: State changed from starting to crashed
2022-08-12T18:58:17.391471+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=skiplagged-api.herokuapp.com request_id=7f7134e2-6177-44c1-911f-2f427d03a84f fwd="98.59.250.254" dyno= connect= service= status=503 bytes= protocol=https
2022-08-12T18:58:17.797623+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=skiplagged-api.herokuapp.com request_id=771f6d92-ccc4-4495-a5b8-9d87cdb81903 fwd="98.59.250.254" dyno= connect= service= status=503 bytes= protocol=https
Procfile:
Procfile
Package.json:
Package.json
New error From the Comment:Second Error
Heroku Buildpacks and Config Vars
Related
Why Heroku throws 503 error , when my node app trying to connect with MongoDB Atlas?
enter image description here 2021-11-20T11:44:40.554636+00:00 heroku[router]: at=error code=H12 desc="Request timeout" method=GET path="/admin" host=log-store-api.herokuapp.com request_id=f5c13cb1-3e75-4767-8c41-9abd02dcfded fwd="47.11.229.75" dyno=web.1 connect=0ms service=30000ms status=503 bytes=0 protocol=https
heroku[router]: at=error code=H10 when deploying keystonejs-demo
I deploy keystonejs-demo to heroku. It says successfully deplayed, but throws errors when I try to run the application: 2019-04-23T16:17:45.643784+00:00 app[web.1]: 'failed to connect to server [mongo-cluster-ixqtu.mongodb.net:27017] on first connect [MongoError: getaddrinfo ENOTFOUND mongo-cluster-ixqtu.mongodb.net mongo-cluster-ixqtu.mongodb.net:27017]' } 2019-04-23T16:17:45.645113+00:00 app[web.1]: Error: KeystoneJS (Keystone Demo) failed to start - Check that you are running `mongod` in a separate process. 2019-04-23T16:17:45.645116+00:00 app[web.1]: at NativeConnection.<anonymous> (/app/node_modules/keystone/lib/core/openDatabaseConnection.js:62:10) 2019-04-23T16:17:45.645117+00:00 app[web.1]: at NativeConnection.emit (events.js:189:13) 2019-04-23T16:17:45.645119+00:00 app[web.1]: at /app/node_modules/mongoose/lib/connection.js:824:17 2019-04-23T16:17:45.645120+00:00 app[web.1]: at connectCallback (/app/node_modules/mongodb/lib/mongo_client.js:527:5) 2019-04-23T16:17:45.645121+00:00 app[web.1]: at /app/node_modules/mongodb/lib/mongo_client.js:418:11 2019-04-23T16:17:45.645123+00:00 app[web.1]: at process._tickCallback (internal/process/next_tick.js:61:11) 2019-04-23T16:18:17.397825+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=keystone-md2.herokuapp.com request_id=d7ff1bf6-735a-4312-96e6-6ec889a154eb fwd="193.238.220.38" dyno= connect= service= status=503 bytes= protocol=https 2019-04-23T16:18:18.027043+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=keystone-md2.herokuapp.com request_id=0a56b395-e71d-4162-bb21-18e265b31fd8 fwd="193.238.220.38" dyno= connect= service= status=503 bytes= protocol=https connection code: 'mongo': process.env.MONGO_URI || process.env.MONGOLAB_URI || 'mongodb://localhost/keystone-demo',
Heroku: ERR_TOO_MANY_REDIRECTS
I have a java project with spring boot and spring security that I deployed to Heroku, but when I tried to access a simple endpoint to test, typing the url in chrome address bar, I received ERR_TOO_MANY_REDIRECTS. URL I tried to access: https://myapp.herokuapp.com/public/ping-pong/ping/ping endpoint: #RestController #RequestMapping(value = "/public/ping-pong") public class PingPongController { #RequestMapping(value = "/ping/{ping}", method = RequestMethod.GET) public ResponseEntity<String> ping(#PathVariable("ping") final String ping) { try { String resp = "What?"; if (ping.equals("ping")) { resp = "pong"; } return new ResponseEntity<>(resp, HttpStatus.OK); } catch (final Exception e) { System.err.println(e.getMessage()); return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR); } } } Log: 2018-11-18T18:52:29.115442+00:00 heroku[router]: at=info method=GET path="/public/ping-pong/ping/ping" host=myapp.herokuapp.com request_id=a3eaab69-a559-4bae-b32c-7024f7d 5be55 fwd="179.234.39.93" dyno=web.1 connect=1ms service=3ms status=302 bytes=166 protocol=https 2018-11-18T18:52:29.293482+00:00 heroku[router]: at=info method=GET path="/public/ping-pong/ping/ping" host=myapp.herokuapp.com request_id=a5fe02fc-8efc-41d0-a0f0-c54143d 5fa5e fwd="179.234.39.93" dyno=web.1 connect=0ms service=5ms status=302 bytes=166 protocol=https 2018-11-18T18:52:29.472844+00:00 heroku[router]: at=info method=GET path="/public/ping-pong/ping/ping" host=myapp.herokuapp.com request_id=9f2dcf7b-1e5c-4038-ba4b-736d4f8 8f660 fwd="179.234.39.93" dyno=web.1 connect=0ms service=4ms status=302 bytes=166 protocol=https 2018-11-18T18:52:29.646112+00:00 heroku[router]: at=info method=GET path="/public/ping-pong/ping/ping" host=myapp.herokuapp.com request_id=4c8206d7-09b4-43d3-922e-cd84502 ce198 fwd="179.234.39.93" dyno=web.1 connect=0ms service=4ms status=302 bytes=166 protocol=https 2018-11-18T18:52:29.818152+00:00 heroku[router]: at=info method=GET path="/public/ping-pong/ping/ping" host=myapp.herokuapp.com request_id=8f3efc04-8402-4377-8ed3-8732271 d13b9 fwd="179.234.39.93" dyno=web.1 connect=0ms service=4ms status=302 bytes=166 protocol=https This endpoint is working very well locally, so I think the problem could be some configuration on Heroku. Can anyone help me?
Application error after push to Heroku
I'm new to this and I've Googled this problem and nothing has helped. Can someone explain to me what the error is? I've tried to do the git add, commit then pushing to heroku again and that stuff. 2014-08-02T00:19:10.428030+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=practice-pinteresting.herokuapp.com request_id=24c5ed75-ab66-4898-bb58-eaf24ffbefce fwd="98.113.185.141" dyno= connect= service= status=503 bytes= 2014-08-02T00:19:18.838612+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=practice-pinteresting.herokuapp.com request_id=9c7ca0d0-cfb3-4744-afed-be703a5b1d2e fwd="98.113.185.141" dyno= connect= service= status=503 bytes= 2014-08-02T00:19:20.835561+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=practice-pinteresting.herokuapp.com request_id=bf617e64-6239-4ace-87ec-eef119aef160 fwd="98.113.185.141" dyno= connect= service= status=503 bytes= 2014-08-02T00:19:24.217825+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=practice-pinteresting.herokuapp.com request_id=d767da81-9330-472c-aaa4-a53c06c4e303 fwd="98.113.185.141" dyno= connect= service= status=503 bytes= 2014-08-02T00:19:28.047936+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=practice-pinteresting.herokuapp.com request_id=cab55122-63b5-42f6-b444-8cd0537246eb fwd="98.113.185.141" dyno= connect= service= status=503 bytes= 2014-08-02T00:19:30.317759+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=practice-pinteresting.herokuapp.com request_id=79743c93-d65e-435a-8aec-39c87093e475 fwd="98.113.185.141" dyno= connect= service= status=503 bytes=
O.k. figured it out. The "ends" in your pins_controller.rb were messed up. If you remove the end at line 52 (yes the very last one) and at line 40 it should work, it did for me I am looking at your app right now. Just so you know I figured it out by using heroku run rails c sometimes that gives you more useful info, in this case it pointed to your controller and told me about the syntax erros. if you want to copy and paste this code should work below, it does for me, and please do not forget to click the check mark if this solves you issue. class PinsController < ApplicationController before_action :set_pin, only: [:show, :edit, :update, :destroy] def index #pins = Pin.all end def show end def new #pin = Pin.new end def edit end def create #pin = Pin.new(pin_params) if #pin.save redirect_to #pin, notice: 'Pin was successfully created.' else render :new end end def update if #pin.update(pin_params) redirect_to #pin, notice: 'Pin was successfully updated.' else render :edit end end end def destroy #pin.destroy redirect_to pins_url end private #Use callbacks to share common setup or constraints between actions. def set_pin #pin = Pin.find(params[:id]) end # Never trust parameters from the scary internet, only allow the white list through. def pin_params params.require(:pin).permit(:description) end
Heroku code=H10 desc="App crashed" - Can't figure out why it's crashing
I've been searching around on this one for a while and can't find anything that seems to be applicable in my situation. I've been staring at these logs and I can't see what the problem is. This has happened during deployments before, but always seemed to resolve itself. Now this just happened on its own (no deployment) and I can't get out of it. Tried reverting back to a previous version of the app, but it appears I'm stuck. I've reset the dyno and have also done a rake db:migrate. There are some repetitive things in the log, but I just don't know what to read out of them. Anybody have any idea where the problem is? Any guidance would be greatly appreciated. See the logs below. Jun 18 15:51:54 snapclass-production app/heroku-postgres: source=HEROKU_POSTGRESQL_WHITE measure.current_transaction=1077 measure.db_size=6153016bytes measure.tables=0 measure.active-connections=3 measure.waiting-connections=0 measure.index-cache-hit-rate=0.99981 measure.table-cache-hit-rate=0.99349 Jun 18 15:52:06 snapclass-production heroku/router: at=error code=H10 desc="App crashed" method=GET path=/ host=www.snapclass.com fwd="46.165.195.139" dyno= connect= service= status=503 bytes= Jun 18 15:52:07 snapclass-production heroku/router: at=error code=H10 desc="App crashed" method=GET path=/ host=www.snapclass.com fwd="178.255.152.2" dyno= connect= service= status=503 bytes= Jun 18 15:52:12 snapclass-production app/postgres: [47-1] [] LOG: checkpoint starting: time Jun 18 15:52:13 snapclass-production app/postgres: [48-1] [] LOG: checkpoint complete: wrote 0 buffers (0.0%); 0 transaction log file(s) added, 0 removed, 0 recycled; write=0.000 s, sync=0.000 s, total=0.334 s; sync files=0, longest=0.000 s, average=0.000 s Jun 18 15:52:51 snapclass-production app/heroku-postgres: source=HEROKU_POSTGRESQL_WHITE measure.current_transaction=1077 measure.db_size=6153016bytes measure.tables=0 measure.active-connections=3 measure.waiting-connections=0 measure.index-cache-hit-rate=0.99994 measure.table-cache-hit-rate=0.99997 Jun 18 15:53:06 snapclass-production heroku/router: at=error code=H10 desc="App crashed" method=GET path=/ host=www.snapclass.com fwd="95.141.32.46" dyno= connect= service= status=503 bytes= Jun 18 15:53:48 snapclass-production app/heroku-postgres: source=HEROKU_POSTGRESQL_WHITE measure.current_transaction=1077 measure.db_size=6153016bytes measure.tables=0 measure.active-connections=3 measure.waiting-connections=0 measure.index-cache-hit-rate=0.97826 measure.table-cache-hit-rate=0.99999 Jun 18 15:54:06 snapclass-production heroku/router: at=error code=H10 desc="App crashed" method=GET path=/ host=www.snapclass.com fwd="95.211.217.68" dyno= connect= service= status=503 bytes= Jun 18 15:54:17 snapclass-production heroku/router: at=error code=H10 desc="App crashed" method=GET path=/ host=www.snapclass.com fwd="205.197.158.210" dyno= connect= service= status=503 bytes= Jun 18 15:54:17 snapclass-production heroku/router: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=www.snapclass.com fwd="205.197.158.210" dyno= connect= service= status=503 bytes= Jun 18 15:54:25 snapclass-production heroku/router: at=error code=H10 desc="App crashed" method=GET path=/ host=demosidney.snapclass.com fwd="202.46.61.33" dyno= connect= service= status=503 bytes= Jun 18 15:54:44 snapclass-production heroku/web.1: State changed from crashed to starting Jun 18 15:54:44 snapclass-production app/heroku-postgres: source=HEROKU_POSTGRESQL_WHITE measure.current_transaction=1077 measure.db_size=6153016bytes measure.tables=0 measure.active-connections=3 measure.waiting-connections=0 measure.index-cache-hit-rate=0.98897 measure.table-cache-hit-rate=0.99087 Jun 18 15:54:48 snapclass-production heroku/web.1: Starting process with command `bundle exec thin start -R config.ru -e $RAILS_ENV -p 50180` Jun 18 15:55:40 snapclass-production app/heroku-postgres: source=HEROKU_POSTGRESQL_WHITE measure.current_transaction=1077 measure.db_size=6153016bytes measure.tables=0 measure.active-connections=3 measure.waiting-connections=0 measure.index-cache-hit-rate=0.99926 measure.table-cache-hit-rate=0.99996 Jun 18 15:55:50 snapclass-production heroku/web.1: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch Jun 18 15:55:50 snapclass-production heroku/web.1: Stopping process with SIGKILL Jun 18 15:55:51 snapclass-production heroku/web.1: Process exited with status 137 Jun 18 15:55:51 snapclass-production heroku/web.1: State changed from starting to crashed Jun 18 15:55:52 snapclass-production heroku/router: at=error code=H10 desc="App crashed" method=GET path=/ host=demosidney.snapclass.com fwd="119.63.193.130" dyno= connect= service= status=503 bytes= Jun 18 15:55:52 snapclass-production heroku/router: at=error code=H10 desc="App crashed" method=GET path=/snapclasses/sat-prep-math/register host=www.snapclass.com fwd="173.199.115.115" dyno= connect= service= status=503 bytes= Jun 18 15:55:53 snapclass-production heroku/router: at=error code=H10 desc="App crashed" method=GET path=/ host=www.snapclass.com fwd="23.21.36.78" dyno= connect= service= status=503 bytes= Jun 18 15:55:54 snapclass-production heroku/router: at=error code=H10 desc="App crashed" method=GET path=/ host=www.snapclass.com fwd="23.22.98.102" dyno= connect= service= status=503 bytes= Jun 18 15:55:54 snapclass-production heroku/router: at=error code=H10 desc="App crashed" method=GET path=/ host=www.snapclass.com fwd="91.109.115.41" dyno= connect= service= status=503 bytes= Jun 18 15:56:06 snapclass-production heroku/router: at=error code=H10 desc="App crashed" method=GET path=/ host=www.snapclass.com fwd="174.34.224.167" dyno= connect= service= status=503 bytes=
Try following steps: - git push heroku master # if not done - heroku run rake db:migrate - heroku restart Wait couple of minutes...
In my case it was because I was hardcoding the port to be used, I changed using this, and it worked app.listen(process.env.PORT || 3000);
To create a heroku account $heroku create To verify your git configration is well $git remote -v Associate a Git repo with an existing application $heroku git:remote -a herokuapp-name To perform push to master $git push heroku master To get your database to work you will have to migrate to production database $heroku run bundle exec rake db:migrate Then restart heroku restart finaly browse to your location
I have also faced this error, overall this error means that It can't work with your dependencies and one of the reason may be old versions of dependencies. I solved this by following two steps: 1) I updated all my dependencies manually. 2) I changed my Flask API from app.py to err.py (could be helpful to have different name, but not necessary. This worked for me. Hope, it helps!!
I had the main entry in package.json pointing at the wrong directory. Ensure it is pointed to the build output directory. As for my case, I had the server file in the /bin folder so I set my package.json { "main": "build/bin/www.js" "scripts": { "start": "node ." } }
In my case, I was working with express on ES6 using babel, the babel was imported as devDependency (Heroku ignores devDependencies in production) after including them into dependencies it worked for me. "dependencies": { "#babel/register": "^7.8.3", "#babel/core": "^7.8.4", "#babel/preset-env": "^7.8.4" }
changing how I connect to my database on code helped let databaseURL = pgURL if var postgresConfig = PostgresConfiguration(url: databaseURL) { postgresConfig.tlsConfiguration = tls app.databases.use(.postgres( configuration: postgresConfig ), as: .psql) app.middleware.use(ErrorMiddleware.default(environment: app.environment)) app.migrations.add(CreateTranscription()) app.migrations.add(CreateTemplate()) app.routes.defaultMaxBodySize = "10mb" try app.autoMigrate().wait() // register routes try routes(app) } else{ fatalError("DATABASE_URL not configured") }
Setup Proc file in your App web: node build/build.js Heroku Proc file