0

please help, i have no idea. I am getting this from my heroku logs.

i am on ruby 2.3 rails 5.1

2019-03-20T15:05:15.000000+00:00 app[api]: Build succeeded
2019-03-20T15:05:53.943996+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=aqueous-reef-51265.herokuapp.com request_id=5c0b7d49-b20e-4469-a483-88093fd77f5e fwd="41.66.199.69" dyno= connect= service= status=503 bytes= protocol=https
2019-03-20T15:05:54.781463+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=aqueous-reef-51265.herokuapp.com request_id=de8a1df2-fc24-4e69-8b36-7cb1e92a73da fwd="41.66.199.69" dyno= connect= service= status=503 bytes= protocol=https
2019-03-20T15:05:58.794279+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=aqueous-reef-51265.herokuapp.com request_id=d53446ea-a1bd-474e-ad6c-ddf62b74689f fwd="41.66.199.69" dyno= connect= service= status=503 bytes= protocol=https
2019-03-20T15:05:59.021626+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=aqueous-reef-51265.herokuapp.com request_id=63bd925f-fc04-4169-94ce-d08afd620a57 fwd="41.66.199.69" dyno= connect= service= status=503 bytes= protocol=https
^CTerminate batch job (Y/N)? y
8
  • Your application crashes (throws an exception.) Commented Mar 20, 2019 at 15:50
  • Have you tried heroku restart ? Also you could find more information here: stackoverflow.com/questions/13496827/… Commented Mar 20, 2019 at 15:50
  • yes i have done heroku restart a dozen times Commented Mar 20, 2019 at 15:56
  • i checked on the link u sent and i tried the heroku run rails console, and found an issue => rescue in spec': Specified 'sqlite3' for database adapter, but the gem is not loaded. Add gem 'sqlite3'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord). (Gem::LoadError) Commented Mar 20, 2019 at 15:58
  • but i have the gem in my gem file. => this is it. and have bundle installed => # Use sqlite3 as the database for Active Record group :development do gem 'sqlite3' end gem 'jquery-rails' group :production do gem 'pg' gem 'rails_12factor' end Commented Mar 20, 2019 at 15:59

1 Answer 1

0

Try to run heroku local or heroku run rails c. The first command will try to run the server locally and the second will run the rails console on your heroku server. Both of them should crash because of the error that is causing your heroku app to fail to launch, but they should provide a more detailed explanation as to the cause. I have seen this error a couple times before and one time it was because I wasn't autoloading classes correctly, i.e require 'devise in application.rb and the other time it was because there was an error in a controller class name.

Sign up to request clarification or add additional context in comments.

6 Comments

$ heroku local [WARN] ENOENT: no such file or directory, open 'Procfile' [OKAY] package.json file found - trying 'npm start' [WARN] ENOENT: no such file or directory, open 'Procfile' [OKAY] package.json file found - trying 'npm start' 4:09:20 PM web.1 | npm [DONE] Killing all processes with signal SIGINT 4:09:20 PM web.1 | ERR! missing script: start 4:09:20 PM web.1 | npm ERR! A complete log of this run can be found in: 4:09:20 PM web.1 | npm ERR! C:\Users\User\AppData\Roaming\npm-cache_logs\2019-03-20T16_09_20_215Z-debug.log 4:09:20 PM web.1 Exited with exit code null
What's in your Procfile?
@Micheal Callahan please i think i can't find the procfile in my app
It is in the root of your project, if you don't have one you'll have to create one. There is documentation at Heroku's Dev Center
$heroku local 9:17:01 AM web.1 | *** SIGUSR2 not implemented, signal based restart unavailable! 9:17:01 AM web.1 | *** SIGUSR1 not implemented, signal based restart unavailable! 9:17:01 AM web.1 | *** SIGHUP not implemented, signal based logs reopening unavailable! 9:17:01 AM web.1 | Puma starting in single mode... 9:17:01 AM web.1 | * Version 3.12.1 (ruby 2.3.3-p222), codename: Llamas in Pajamas 9:17:01 AM web.1 | * Min threads: 5, max threads: 5 9:17:01 AM web.1 | * Environment: development 9:17:05 AM web.1 | * Listening on tcp://0.0.0.0:5000 9:17:05 AM web.1 | Use Ctrl-C to stop
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.