Sidd
04/02/2021, 5:06 PMZanie
04/02/2021, 5:17 PMprefect-server database reset -y
after it spins up to rebuild the tables.-y
auto-confirms, you should_NOT_ run this on unbacked up production dataSidd
04/02/2021, 5:19 PMZanie
04/02/2021, 5:20 PMprefect server start
?Sidd
04/02/2021, 5:24 PMZanie
04/02/2021, 5:25 PMprefect-server
repo instaleldSidd
04/02/2021, 5:25 PMFailed safety check: bad 'hasura.host': '<http://prefect-hasura>'
expected to be one of: 'localhost','hasura','127.0.0.1'
Aborted!
Zanie
04/02/2021, 5:26 PM--unsafe
flag to ignore that, basically we don't want to axe a database we shouldn'tSidd
04/02/2021, 5:26 PMZanie
04/02/2021, 5:26 PMSidd
04/02/2021, 5:34 PMError: HTTPConnectionPool(host='https', port=80): Max retries exceeded with url: //prefect-hasura.prod.demandjump.net:3000/v1/query (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f410d04b050>: Failed to establish a new connection: [Errno -2] Name or service not known'))
Zanie
04/02/2021, 5:40 PMprefect-server database
that may be the root of your problemSidd
04/02/2021, 5:43 PMZanie
04/02/2021, 5:45 PMSidd
04/02/2021, 5:46 PMZanie
04/02/2021, 5:47 PMSidd
04/02/2021, 5:50 PMRunning Alembic migrations...
INFO [alembic.runtime.migration] Context impl PostgresqlImpl.
INFO [alembic.runtime.migration] Will assume transactional DDL.
Could not upgrade the database!
Error: HTTPConnectionPool(host='https', port=80): Max retries exceeded with url: //prefect-hasura.prod.demandjump.net:80/v1/query (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8b1eaab890>: Failed to establish a new connection: [Errno -2] Name or service not known'))
HTTPConnectionPool(host='https'
and not the whole urlZanie
04/02/2021, 5:51 PMPREFECT_SERVER__HASURA__HOST
on that containerSidd
04/02/2021, 5:51 PMhttps
part?Zanie
04/02/2021, 5:52 PM[hasura]
host = "localhost"
port = 3000
graphql_url = "http://${hasura.host}:${hasura.port}/v1alpha1/graphql"
Sidd
04/02/2021, 5:53 PMZanie
04/02/2021, 5:53 PMhost
with http
it's being templated into the graphql_url
with two `http`sSidd
04/02/2021, 5:54 PMZanie
04/02/2021, 5:54 PMSidd
04/02/2021, 5:56 PMPREFECT_SERVER__HASURA__GRAPHQL_URL=<https://prefect-hasura.prod.demandjump.net/v1/graphql>
Zanie
04/02/2021, 6:05 PMSidd
04/02/2021, 6:07 PMUncaught (in promise) Error: passed invalid or empty tenant object
at l.setDefaultTenant (index.js:71)
at vuex.esm.js:840
at vuex.esm.js:462
at Array.forEach (<anonymous>)
at vuex.esm.js:461
at l._withCommit (vuex.esm.js:620)
at l.commit (vuex.esm.js:460)
at l.commit (vuex.esm.js:405)
at tenantNavGuard.js:12
at u (runtime.js:63)
Zanie
04/02/2021, 6:24 PMSidd
04/02/2021, 6:25 PMprefect.utilities.exceptions.ClientError: 400 Client Error: Bad Request for url: <https://prefect-apollo.prod.demandjump.net/graphql>
The following error messages were provided by the GraphQL server:
GRAPHQL_VALIDATION_FAILED: Cannot query field "tenant" on type "Query".
The GraphQL query was:
query {
tenant {
id
}
}
The passed variables were:
null
Zanie
04/02/2021, 6:29 PMSidd
04/02/2021, 6:30 PM