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

"We're sorry, but something went wrong." #107

Closed
c4lliope opened this issue Nov 20, 2021 · 3 comments
Closed

"We're sorry, but something went wrong." #107

c4lliope opened this issue Nov 20, 2021 · 3 comments

Comments

@c4lliope
Copy link

c4lliope commented Nov 20, 2021

...If you are the application owner check the logs for more information.

Logs:

root@localhost:~# dokku logs company-core
2021-11-20T16:57:52.676306106Z app[web.1]: {"type":"startup","timestamp":"2021-11-20T16:57:52.674+0000","level":"info","detail":{"kind":"server_configuration","info":{"live_query_options":{"batch_size":100,"refetch_delay":1},"transaction_isolation":"ISOLATION LEVEL READ COMMITTED","enable_maintenance_mode":false,"enabled_log_types":["http-log","websocket-log","startup","webhook-log"],"server_host":"HostAny","websocket_connection_init_timeout":"WSConnectionInitTimeout {unWSConnectionInitTimeout = Seconds {seconds = 3s}}","enable_allowlist":false,"remote_schema_permissions":false,"log_level":"info","auth_hook_mode":null,"use_prepared_statements":true,"unauth_role":null,"stringify_numeric_types":false,"v1-boolean-null-collapse":false,"graceful_shutdown_timeout":60,"enabled_apis":["metadata","graphql","config","pgdump"],"enable_telemetry":true,"enable_console":true,"auth_hook":null,"infer_function_permissions":true,"experimental_features":[],"events_fetch_batch_size":100,"jwt_secret":null,"cors_config":{"allowed_origins":"*","disabled":false,"ws_read_cookie":null},"websocket_compression_options":"NoCompression","console_assets_dir":null,"admin_secret_set":true,"port":5000,"websocket_keep_alive":"KeepAliveDelay {unKeepAliveDelay = Seconds {seconds = 5s}}"}}}
2021-11-20T16:57:52.676389787Z app[web.1]: {"type":"startup","timestamp":"2021-11-20T16:57:52.674+0000","level":"info","detail":{"kind":"postgres_connection","info":{"retries":1,"database_url":"postgres://postgres:...@dokku-postgres-company-core:5432/company_core"}}}
2021-11-20T16:57:53.676623114Z app[web.1]: {"type":"unstructured","timestamp":"2021-11-20T16:57:52.674+0000","level":"info","detail":"Thread processEventQueue (re)started"}
2021-11-20T16:57:53.676654514Z app[web.1]: {"type":"unstructured","timestamp":"2021-11-20T16:57:52.674+0000","level":"info","detail":"Thread asyncActionsProcessor (re)started"}
2021-11-20T16:57:53.676662364Z app[web.1]: {"type":"unstructured","timestamp":"2021-11-20T16:57:52.674+0000","level":"info","detail":"Thread runCronEventsGenerator (re)started"}
2021-11-20T16:57:53.676668974Z app[web.1]: {"type":"unstructured","timestamp":"2021-11-20T16:57:52.674+0000","level":"info","detail":"Thread processScheduledTriggers (re)started"}
2021-11-20T16:57:53.676674614Z app[web.1]: {"type":"unstructured","timestamp":"2021-11-20T16:57:52.674+0000","level":"info","detail":"Thread runTelemetry (re)started"}
2021-11-20T16:57:53.676680334Z app[web.1]: {"type":"startup","timestamp":"2021-11-20T16:57:52.674+0000","level":"info","detail":{"kind":"catalog_migrate","info":"Already at the latest catalog version (47); nothing to do."}}
2021-11-20T16:57:53.676685904Z app[web.1]: {"type":"startup","timestamp":"2021-11-20T16:57:52.674+0000","level":"info","detail":{"kind":"schema-sync","info":"Schema sync enabled. Polling at Milliseconds {milliseconds = 1s}"}}
2021-11-20T16:57:53.676692594Z app[web.1]: {"type":"unstructured","timestamp":"2021-11-20T16:57:52.674+0000","level":"info","detail":"Thread SchemeUpdate.listener (re)started"}
2021-11-20T16:57:53.676698464Z app[web.1]: {"type":"startup","timestamp":"2021-11-20T16:57:52.674+0000","level":"info","detail":{"kind":"schema-sync","info":{"thread_id":"ThreadId 17","instance_id":"9975d94a-d049-4489-a324-16871656b9bd","message":"listener thread started"}}}
2021-11-20T16:57:53.676704784Z app[web.1]: {"type":"unstructured","timestamp":"2021-11-20T16:57:52.674+0000","level":"info","detail":"Thread ourIdleGC (re)started"}
2021-11-20T16:57:53.676722744Z app[web.1]: {"type":"unstructured","timestamp":"2021-11-20T16:57:52.674+0000","level":"warn","detail":"The following environment variables are deprecated and moved to metadata: HASURA_GRAPHQL_PG_CONNECTIONS"}
2021-11-20T16:57:53.676728454Z app[web.1]: {"type":"unstructured","timestamp":"2021-11-20T16:57:52.674+0000","level":"info","detail":"Thread SchemeUpdate.processor (re)started"}
2021-11-20T16:57:53.676734864Z app[web.1]: {"type":"startup","timestamp":"2021-11-20T16:57:52.674+0000","level":"info","detail":{"kind":"schema-sync","info":{"thread_id":"ThreadId 27","instance_id":"9975d94a-d049-4489-a324-16871656b9bd","message":"processor thread started"}}}
2021-11-20T16:57:53.676740634Z app[web.1]: {"type":"startup","timestamp":"2021-11-20T16:57:52.674+0000","level":"info","detail":{"kind":"event_triggers","info":"starting workers"}}
2021-11-20T16:57:53.676745464Z app[web.1]: {"type":"unstructured","timestamp":"2021-11-20T16:57:52.674+0000","level":"info","detail":"Thread asyncActionSubscriptionsProcessor (re)started"}
2021-11-20T16:57:53.676749934Z app[web.1]: {"type":"startup","timestamp":"2021-11-20T16:57:52.674+0000","level":"info","detail":{"kind":"scheduled_triggers","info":"preparing data"}}
2021-11-20T16:57:53.676754584Z app[web.1]: {"type":"schema-sync-thread","timestamp":"2021-11-20T16:57:52.674+0000","level":"info","detail":{"thread_type":"processor","info":{"message":"Schema Version changed with no notifications"}}}
2021-11-20T16:57:53.676759704Z app[web.1]: {"type":"unstructured","timestamp":"2021-11-20T16:57:52.674+0000","level":"info","detail":"Thread checkForUpdates (re)started"}
2021-11-20T16:57:53.676765574Z app[web.1]: {"type":"startup","timestamp":"2021-11-20T16:57:52.674+0000","level":"info","detail":{"kind":"telemetry","info":"Help us improve Hasura! The graphql-engine server collects anonymized usage stats which allows us to keep improving Hasura at warp speed. To read more or opt-out, visit https://hasura.io/docs/latest/graphql/core/guides/telemetry.html"}}
2021-11-20T16:57:53.676771684Z app[web.1]: {"type":"startup","timestamp":"2021-11-20T16:57:52.674+0000","level":"info","detail":{"kind":"server","info":{"time_taken":0.244120087,"message":"starting API server"}}}

Commands used in preparing machine and process:

dokku apps:create company-core
dokku domains:add company-core company-core.assembled.app
dokku postgres:create company-core
dokku postgres:link company-core company-core
dokku config:get company-core DATABASE_URL 
dokku config:set company-core HASURA_GRAPHQL_ADMIN_SECRET='none' 
dokku letsencrypt:enable company-core

On local machine:

eagle:assemble grace$ g clone https://github.com/hasura/graphql-engine-herokuCloning into 'graphql-engine-heroku'...
remote: Enumerating objects: 405, done.
remote: Counting objects: 100% (42/42), done.
remote: Compressing objects: 100% (28/28), done.
remote: Total 405 (delta 22), reused 27 (delta 14), pack-reused 363
Receiving objects: 100% (405/405), 561.12 KiB | 1.24 MiB/s, done.
Resolving deltas: 100% (216/216), done.
eagle:assemble grace$ cd graphql-engine-heroku/
eagle:graphql-engine-heroku grace$ g r add boom dokku@boom.assembled.app:company-core
eagle:graphql-engine-heroku grace$ g b
* master
eagle:graphql-engine-heroku grace$ g k boom master:main
Enumerating objects: 355, done.
Counting objects: 100% (355/355), done.
Delta compression using up to 4 threads
Compressing objects: 100% (162/162), done.
Writing objects: 100% (355/355), 554.67 KiB | 79.24 MiB/s, done.
Total 355 (delta 191), reused 355 (delta 191), pack-reused 0
remote: Resolving deltas: 100% (191/191), done.
-----> Cleaning up...
-----> Building company-core from Dockerfile
remote: build context to Docker daemon  585.2kB
Step 1/9 : FROM hasura/graphql-engine:v2.0.10
v2.0.10: Pulling from hasura/graphql-engine
Digest: sha256:2d9091956f33374627b141143cb5e8e9acf69592f4738cbecf8e60660d141a03
Status: Downloaded newer image for hasura/graphql-engine:v2.0.10
 ---> be3b181b603b
Step 2/9 : ENV HASURA_GRAPHQL_ENABLE_CONSOLE=true
 ---> Running in 6037069a0d4c
Removing intermediate container 6037069a0d4c
 ---> 4bdd2e9b685f
Step 3/9 : ENV HASURA_GRAPHQL_DEV_MODE=true
 ---> Running in d3a67f749e68
Removing intermediate container d3a67f749e68
 ---> 88c11983dcb8
Step 4/9 : ENV HASURA_GRAPHQL_PG_CONNECTIONS=15
 ---> Running in f87ff9c06820
Removing intermediate container f87ff9c06820
 ---> e8326edcf704
Step 5/9 : CMD graphql-engine     --database-url $DATABASE_URL     serve     --server-port $PORT
 ---> Running in 351634039fa0
Removing intermediate container 351634039fa0
 ---> da5dd4a3d9dd
Step 6/9 : LABEL com.dokku.app-name=company-core
 ---> Running in ee34c6c02e75
Removing intermediate container ee34c6c02e75
 ---> e1ab567e7bcd
Step 7/9 : LABEL dokku=
 ---> Running in a609153ba218
Removing intermediate container a609153ba218
 ---> f3a6d701c8e2
Step 8/9 : LABEL org.label-schema.schema-version=1.0
 ---> Running in 40734f4b1a58
Removing intermediate container 40734f4b1a58
 ---> 41bb41af0104
Step 9/9 : LABEL org.label-schema.vendor=dokku
 ---> Running in 8e08d90fd0d8
Removing intermediate container 8e08d90fd0d8
 ---> 8d351ad1ef76
Successfully built 8d351ad1ef76
Successfully tagged dokku/company-core:latest
-----> Releasing company-core...
-----> Checking for predeploy task
       No predeploy task found, skipping
-----> Checking for release task
       No release task found, skipping
-----> Checking for first deploy postdeploy task
       No first deploy postdeploy task found, skipping
-----> No Procfile found in app image
=====> Processing deployment checks
       No CHECKS file found. Simple container checks will be performed.
       For more efficient zero downtime deployments, create a CHECKS file. See https://dokku.com/docs/deployment/zero-downtime-deploys/ for examples
-----> Deploying company-core via the docker-local scheduler...
-----> Deploying web (count=1)
       Attempting pre-flight checks (web.1)
       Waiting for 10 seconds (web.1)
       Default container check successful (web.1)
-----> Running post-deploy
-----> Configuring company-core.assembled.app...(using built-in template)
-----> Creating http nginx.conf
       Reloading nginx
-----> Renaming containers
       Renaming container company-core.web.1.upcoming-16640 (e6c43f6ee68d) to company-core.web.1
-----> Checking for postdeploy task
       No postdeploy task found, skipping
-----> Updated schedule file
=====> Application deployed:
       http://company-core.assembled.app

To boom.assembled.app:company-core
 * [new branch]      master -> main
eagle:graphql-engine-heroku grace$ 

See also https://company-core.assembled.app, displaying error.

@c4lliope
Copy link
Author

As recommended by @josegonzales here,
I ran dokku git:from-image company-core hasura/graphql-engine:v2.0.10 and had a change in error message.
See https://company-core.assembled.app/console for a "resource does not exist" message.

@c4lliope
Copy link
Author

Logs:

2021-11-21T19:20:03.184201026Z app[web.1]: {"type":"startup","timestamp":"2021-11-21T19:20:02.182+0000","level":"info","detail":{"kind":"server","info":{"time_taken":0.235918983,"message":"starting API server"}}}
2021-11-21T19:20:36.703439042Z app[web.1]: {"type":"http-log","timestamp":"2021-11-21T19:20:36.703+0000","level":"error","detail":{"operation":{"error":{"path":"$","error":"resource does not exist","code":"not-found"},"request_id":"cfec9d38-3970-48ba-b013-1810876c5709","response_size":65,"request_mode":"error"},"request_id":"cfec9d38-3970-48ba-b013-1810876c5709","http_info":{"status":404,"http_version":"HTTP/1.1","url":"/","ip":"172.58.188.255","method":"GET","content_encoding":null}}}
2021-11-21T19:20:43.654440251Z app[web.1]: {"type":"http-log","timestamp":"2021-11-21T19:20:43.654+0000","level":"error","detail":{"operation":{"error":{"path":"$","error":"resource does not exist","code":"not-found"},"request_id":"b079c3c9-9b4f-4b4a-a4ab-d554609ec83c","response_size":65,"request_mode":"error"},"request_id":"b079c3c9-9b4f-4b4a-a4ab-d554609ec83c","http_info":{"status":404,"http_version":"HTTP/1.1","url":"/console","ip":"172.58.188.255","method":"GET","content_encoding":null}}}

@c4lliope
Copy link
Author

As easy as:

dokku config:set company-core HASURA_GRAPHQL_ENABLE_CONSOLE=true

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

1 participant