check-if-email-exists icon indicating copy to clipboard operation
check-if-email-exists copied to clipboard

Application error after new deployment on Heroku

Open ashokque opened this issue 4 years ago • 3 comments

I deployed app on Heroku but after installation, I received Application error message, while accessing it on the URL along with following message

An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command heroku logs --tail

I would appreciate any help.

Thank you.

ashokque avatar Oct 05 '21 12:10 ashokque

As proposed in the error messsge, can you check the logs heroku logs --tail?

amaury1093 avatar Oct 05 '21 13:10 amaury1093

I think it's RCH_HTTP_HOST variable. What exactly do you put inside it? Domain name or IP?

Following are the logs

2021-10-05T22:12:49.361560+00:00 heroku[web.1]: State changed from starting to crashed 2021-10-06T03:52:28.337470+00:00 heroku[web.1]: State changed from crashed to starting 2021-10-06T03:52:28.869960+00:00 heroku[web.1]: Starting process with command ./target/release/heroku 2021-10-06T03:52:29.691619+00:00 app[web.1]: thread 'main' panicked at 'Environment variable RCH_HTTP_HOST is malformed.: AddrParseError(())', src/bin/heroku.rs:41:10 2021-10-06T03:52:29.691632+00:00 app[web.1]: note: run with RUST_BACKTRACE=1 environment variable to display a backtrace 2021-10-06T03:52:29.827305+00:00 heroku[web.1]: Process exited with status 101 2021-10-06T03:52:30.096222+00:00 heroku[web.1]: State changed from starting to crashed

ashokque avatar Oct 06 '21 16:10 ashokque

Ah yeah, it should be 0.0.0.0.

From where did you deploy the Heroku app actually? Is that https://github.com/reacherhq/backend? If so, then it should have been set https://github.com/reacherhq/backend/blob/master/app.json.

amaury1093 avatar Oct 06 '21 16:10 amaury1093

Related to https://github.com/reacherhq/backend/issues/195. Closing.

amaury1093 avatar Aug 15 '22 09:08 amaury1093