graphql-engine-heroku icon indicating copy to clipboard operation
graphql-engine-heroku copied to clipboard

Deployment failing on Heroku

Open fchabouis opened this issue 5 years ago • 4 comments

Hi, I've just tried to deploy hasura on heroku, following the doc. The deployment is successful, but when I open the app, I get an application error.

"Application error

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 "

Is the heroku deployment still maintained ? Thanks

fchabouis avatar Feb 14 '20 14:02 fchabouis

Try running heroku logs --tail and paste the logs here.

ghost avatar Mar 14 '20 04:03 ghost

Or even just copy the logs from the Heroku web UI.. I wonder what the problem is.

zenflow avatar May 14 '20 18:05 zenflow

I'm having the same issue, used deploy button and app fails. Data from heroku logs:

2020-12-11T11:56:12.382069+00:00 heroku[web.1]: State changed from crashed to starting
2020-12-11T11:56:13.559351+00:00 heroku[web.1]: Starting process with command `/bin/sh -c graphql-engine\ \ \ \ \ --database-url\ \$DATABASE_URL\ \ \ \ \ serve\ \ \ \ \ --server-port\ \48678`
2020-12-11T11:56:16.097285+00:00 app[web.1]: Invalid option `--server-port'
2020-12-11T11:56:16.097308+00:00 app[web.1]:
2020-12-11T11:56:16.098165+00:00 app[web.1]: Usage: graphql-engine [--host <HOST>] [-p|--port <PORT>] [-u|--user <USER>]
2020-12-11T11:56:16.099017+00:00 app[web.1]: [--password <PASSWORD>] [--database-url <DATABASE-URL>]
2020-12-11T11:56:16.099775+00:00 app[web.1]: [-d|--dbname <DBNAME>]
2020-12-11T11:56:16.100907+00:00 app[web.1]: [-o|--pg-connection-options <DATABASE-OPTIONS>]
2020-12-11T11:56:16.101550+00:00 app[web.1]: [--retries NO OF RETRIES] COMMAND
2020-12-11T11:56:16.163516+00:00 heroku[web.1]: Process exited with status 1

mpycio avatar Dec 11 '20 12:12 mpycio

The problem was between the keyboard and the chair, although the error was a bit confusing. I've used an incorrect env key for DATABASE_URL (HASURA_GRAPHQL_DATABASE_URL) because naming consistency? 👍

mpycio avatar Dec 11 '20 12:12 mpycio