· 4 years ago · Jul 29, 2021, 08:00 AM
1docker-compose up
2Creating network "hasura_default" with the default driver
3Creating app ... done
4Creating postgres ... done
5Creating dash ... done
6Creating hasura ... done
7Creating hbp ... done
8Attaching to app, postgres, dash, hasura, hbp
9app | yarn run v1.22.5
10hasura | {"type":"startup","timestamp":"2021-07-29T07:51:39.879+0000","level":"info","detail":{"kind":"server_configuration","info":{"live_query_options":{"batch_size":100,"refetch_delay":1},"transaction_isolation":"ISOLATION LEVEL READ COMMITTED","plan_cache_options":{"plan_cache_size":4000},"enabled_log_types":["http-log","websocket-log","startup","webhook-log"],"server_host":"HostAny","enable_allowlist":false,"log_level":"info","auth_hook_mode":null,"use_prepared_statements":true,"unauth_role":"anonymous","stringify_numeric_types":false,"enabled_apis":["metadata","graphql","config","pgdump"],"enable_telemetry":true,"enable_console":true,"auth_hook":null,"jwt_secret":{"audience":null,"claims_format":"json","claims_namespace":"https://hasura.io/jwt/claims","key":"<JWK REDACTED>","type":"<TYPE REDACTED>","issuer":null},"cors_config":{"allowed_origins":"*","disabled":false,"ws_read_cookie":null},"console_assets_dir":null,"admin_secret_set":true,"port":8080}}}
11hasura | {"type":"startup","timestamp":"2021-07-29T07:51:39.879+0000","level":"info","detail":{"kind":"postgres_connection","info":{"retries":1,"database_url":"postgres://postgres:...@postgres:5432/postgres"}}}
12app | $ nodemon index.js
13dash | yarn run v1.22.5
14app | [nodemon] 2.0.7
15dash | $ svelte-kit start -p 4000
16app | [nodemon] to restart at any time, enter `rs`
17hasura | {"type":"pg-client","timestamp":"2021-07-29T07:51:39.879+0000","level":"warn","detail":{"message":"postgres connection failed, retrying(0)."}}
18hasura | {"type":"pg-client","timestamp":"2021-07-29T07:51:39.879+0000","level":"warn","detail":{"message":"postgres connection failed, retrying(1)."}}
19hasura | {"type":"startup","timestamp":"2021-07-29T07:51:39.879+0000","level":"error","detail":{"kind":"catalog_migrate","info":{"internal":"could not connect to server: Connection refused\n\tIs the server running on host \"postgres\" (192.168.80.4) and accepting\n\tTCP/IP connections on port 5432?\n","path":"$","error":"connection error","code":"postgres-error"}}}
20postgres | The files belonging to this database system will be owned by user "postgres".
21postgres | This user must also own the server process.
22postgres |
23dash | > Listening on http://localhost:4000
24app | [nodemon] watching path(s): *.*
25app | [nodemon] watching extensions: js,mjs,json
26hasura | {"internal":"could not connect to server: Connection refused\n\tIs the server running on host \"postgres\" (192.168.80.4) and accepting\n\tTCP/IP connections on port 5432?\n","path":"$","error":"connection error","code":"postgres-error"}
27postgres | The database cluster will be initialized with locale "en_US.utf8".
28postgres | The default database encoding has accordingly been set to "UTF8".
29postgres | The default text search configuration will be set to "english".
30postgres |
31postgres | Data page checksums are disabled.
32postgres |
33app | [nodemon] starting `node index.js`
34app | {"level":30,"time":1627545098945,"pid":40,"hostname":"0f0a3a5568fb","msg":"Server listening at http://0.0.0.0:8091"}
35app | {"level":30,"time":1627545098945,"pid":40,"hostname":"0f0a3a5568fb","msg":"server listening on http://0.0.0.0:8091"}
36postgres | fixing permissions on existing directory /var/lib/postgresql/data ... ok
37postgres | creating subdirectories ... ok
38postgres | selecting dynamic shared memory implementation ... posix
39postgres | selecting default max_connections ... 100
40postgres | selecting default shared_buffers ... 128MB
41postgres | selecting default time zone ... Etc/UTC
42postgres | creating configuration files ... ok
43postgres | running bootstrap script ... ok
44postgres | performing post-bootstrap initialization ... ok
45postgres | syncing data to disk ... ok
46postgres |
47postgres |
48postgres | Success. You can now start the database server using:
49postgres |
50postgres | pg_ctl -D /var/lib/postgresql/data -l logfile start
51postgres |
52postgres | initdb: warning: enabling "trust" authentication for local connections
53postgres | You can change this by editing pg_hba.conf or using the option -A, or
54postgres | --auth-local and --auth-host, the next time you run initdb.
55postgres | waiting for server to start....2021-07-29 07:51:39.929 UTC [48] LOG: starting PostgreSQL 12.7 (Debian 12.7-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
56postgres | 2021-07-29 07:51:39.930 UTC [48] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
57postgres | 2021-07-29 07:51:39.940 UTC [49] LOG: database system was shut down at 2021-07-29 07:51:39 UTC
58postgres | 2021-07-29 07:51:39.944 UTC [48] LOG: database system is ready to accept connections
59postgres | done
60postgres | server started
61postgres |
62postgres | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
63postgres |
64postgres | 2021-07-29 07:51:40.085 UTC [48] LOG: received fast shutdown request
65postgres | waiting for server to shut down....2021-07-29 07:51:40.086 UTC [48] LOG: aborting any active transactions
66postgres | 2021-07-29 07:51:40.088 UTC [48] LOG: background worker "logical replication launcher" (PID 55) exited with exit code 1
67postgres | 2021-07-29 07:51:40.088 UTC [50] LOG: shutting down
68postgres | 2021-07-29 07:51:40.099 UTC [48] LOG: database system is shut down
69postgres | done
70postgres | server stopped
71postgres |
72postgres | PostgreSQL init process complete; ready for start up.
73postgres |
74postgres | 2021-07-29 07:51:40.197 UTC [1] LOG: starting PostgreSQL 12.7 (Debian 12.7-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
75postgres | 2021-07-29 07:51:40.197 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
76postgres | 2021-07-29 07:51:40.197 UTC [1] LOG: listening on IPv6 address "::", port 5432
77postgres | 2021-07-29 07:51:40.199 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
78postgres | 2021-07-29 07:51:40.207 UTC [67] LOG: database system was shut down at 2021-07-29 07:51:40 UTC
79postgres | 2021-07-29 07:51:40.210 UTC [1] LOG: database system is ready to accept connections
80hbp | yarn run v1.22.5
81hbp | $ node -r ./dist/start.js
82hbp | Applying migrations
83postgres | 2021-07-29 07:51:42.229 UTC [75] ERROR: no schema has been selected to create in at character 28
84postgres | 2021-07-29 07:51:42.229 UTC [75] STATEMENT: CREATE TABLE IF NOT EXISTS migrations (
85postgres | id integer PRIMARY KEY,
86postgres | name varchar(100) UNIQUE NOT NULL,
87postgres | hash varchar(40) NOT NULL, -- sha1 hex encoded hash of the file name and contents, to ensure it hasn't been altered since applying the migration
88postgres | executed_at timestamp DEFAULT current_timestamp
89postgres | );
90postgres |
91hbp | (node:28) UnhandledPromiseRejectionWarning: Error: Migration failed. Reason: An error occurred running 'create-migrations-table'. Rolled back this migration. No further migrations were run. Reason: no schema has been selected to create in
92hbp | at /app/node_modules/postgres-migrations/dist/migrate.js:63:27
93hbp | at processTicksAndRejections (internal/process/task_queues.js:95:5)
94hbp | at async /app/node_modules/postgres-migrations/dist/with-lock.js:25:28
95hbp | at async Object.applyMigrations (/app/dist/shared/migrations.js:13:9)
96hbp | at async start (/app/dist/ts-start.js:10:5)
97hbp | (Use `node --trace-warnings ...` to show where the warning was created)
98hbp | (node:28) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
99hbp | (node:28) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
100hbp | Done in 1.43s.
101hbp exited with code 0
102
103