Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment failing on Heroku #76

Open
fchabouis opened this issue Feb 14, 2020 · 4 comments
Open

Deployment failing on Heroku #76

fchabouis opened this issue Feb 14, 2020 · 4 comments

Comments

@fchabouis
Copy link

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

@ghost
Copy link

ghost commented Mar 14, 2020

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

@zenflow
Copy link

zenflow commented May 14, 2020

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

@mpycio
Copy link

mpycio commented Dec 11, 2020

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
Copy link

mpycio commented Dec 11, 2020

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? 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants