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

Error then starting infrastructure #1

Open
alananisimov opened this issue Dec 8, 2024 · 0 comments
Open

Error then starting infrastructure #1

alananisimov opened this issue Dec 8, 2024 · 0 comments

Comments

@alananisimov
Copy link

Executed pnpm run docker:up and electric failed to start up properly. I'm using orbstack but maybe it is not reason

Pnpm version: 9.7.0
Docker version 27.3.1, build ce12230

Complete logs:
WARN[0000] The "POSTGRES_USER" variable is not set. Defaulting to a blank string.
WARN[0000] The "POSTGRES_DB" variable is not set. Defaulting to a blank string.
WARN[0000] The "POSTGRES_USER" variable is not set. Defaulting to a blank string.
WARN[0000] The "POSTGRES_PASSWORD" variable is not set. Defaulting to a blank string.
WARN[0000] The "POSTGRES_DB" variable is not set. Defaulting to a blank string.
[+] Running 6/5
✔ Network electrodrizzle_default Created0.0s 0.1s
✔ Container electrodrizzle-redis-1 Created0.1s 0.1s
✔ Container electrodrizzle-postgres-1 Created0.1s
✔ Container electrodrizzle-electric-1 Created0.1s
✔ Container electrodrizzle-pgbouncer-1 Created0.1s
! pgbouncer The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 0.0s
Attaching to electric-1, pgbouncer-1, postgres-1, redis-1
redis-1 | 1:C 08 Dec 2024 11:48:51.772 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis-1 | 1:C 08 Dec 2024 11:48:51.772 * Redis version=7.4.1, bits=64, commit=00000000, modified=0, pid=1, just started
redis-1 | 1:C 08 Dec 2024 11:48:51.772 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
redis-1 | 1:M 08 Dec 2024 11:48:51.773 * monotonic clock: POSIX clock_gettime
redis-1 | 1:M 08 Dec 2024 11:48:51.776 * Running mode=standalone, port=6379.
redis-1 | 1:M 08 Dec 2024 11:48:51.776 * Server initialized
redis-1 | 1:M 08 Dec 2024 11:48:51.776 * Ready to accept connections tcp
postgres-1 | The files belonging to this database system will be owned by user "postgres".
postgres-1 | This user must also own the server process.
postgres-1 |
postgres-1 | The database cluster will be initialized with locale "en_US.utf8".
postgres-1 | The default database encoding has accordingly been set to "UTF8".
postgres-1 | The default text search configuration will be set to "english".
postgres-1 |
postgres-1 | Data page checksums are disabled.
postgres-1 |
postgres-1 | fixing permissions on existing directory /var/lib/postgresql/data ... ok
postgres-1 | creating subdirectories ... ok
postgres-1 | selecting dynamic shared memory implementation ... posix
postgres-1 | selecting default max_connections ... 100
postgres-1 | selecting default shared_buffers ... 128MB
postgres-1 | selecting default time zone ... UTC
postgres-1 | creating configuration files ... ok
pgbouncer-1 | create pgbouncer config in /etc/pgbouncer
pgbouncer-1 | Changing password for postgres
pgbouncer-1 | New password:
pgbouncer-1 | passwd: password for postgres is unchanged
postgres-1 | running bootstrap script ... ok
pgbouncer-1 | #pgbouncer.ini
pgbouncer-1 | # Description
pgbouncer-1 | # Config file is in “ini” format. Section names are between “[” and “]”.
pgbouncer-1 | # Lines starting with “;” or “#” are taken as comments and ignored.
pgbouncer-1 | # The characters “;” and “#” are not recognized when they appear later in the line.
pgbouncer-1 | [databases]
pgbouncer-1 | * = host=postgres port=5432
pgbouncer-1 |
pgbouncer-1 | [pgbouncer]
pgbouncer-1 | # Generic settings
pgbouncer-1 | listen_addr = 0.0.0.0
pgbouncer-1 | auth_type = any
pgbouncer-1 | ignore_startup_parameters = extra_float_digits
pgbouncer-1 |
pgbouncer-1 | # Log settings
pgbouncer-1 | admin_users = postgres
pgbouncer-1 |
pgbouncer-1 | # Connection sanity checks, timeouts
pgbouncer-1 |
pgbouncer-1 | # TLS settings
pgbouncer-1 |
pgbouncer-1 | # Dangerous timeouts
pgbouncer-1 | ################## end file ##################
pgbouncer-1 | Starting pgbouncer...
pgbouncer-1 | 2024-12-08 11:48:52.017 UTC [1] LOG kernel file descriptor limit: 1048576 (hard: 1048576); max_client_conn: 100, max expected fd use: 112
pgbouncer-1 | 2024-12-08 11:48:52.021 UTC [1] LOG listening on 0.0.0.0:6432
pgbouncer-1 | 2024-12-08 11:48:52.022 UTC [1] LOG listening on unix:/tmp/.s.PGSQL.6432
pgbouncer-1 | 2024-12-08 11:48:52.022 UTC [1] LOG process up: PgBouncer 1.12.0, libevent 2.1.11-stable (epoll), adns: c-ares 1.15.0, tls: OpenSSL 1.1.1d 10 Sep 2019
postgres-1 | sh: locale: not found
postgres-1 | 2024-12-08 11:48:52.093 UTC [36] WARNING: no usable system locales were found
postgres-1 | performing post-bootstrap initialization ... ok
postgres-1 | initdb: warning: enabling "trust" authentication for local connections
postgres-1 | initdb: hint: You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb.
postgres-1 | syncing data to disk ... ok
postgres-1 |
postgres-1 |
postgres-1 | Success. You can now start the database server using:
postgres-1 |
postgres-1 | pg_ctl -D /var/lib/postgresql/data -l logfile start
postgres-1 |
postgres-1 | waiting for server to start....2024-12-08 11:48:52.316 UTC [42] LOG: starting PostgreSQL 16.6 on aarch64-unknown-linux-musl, compiled by gcc (Alpine 13.2.1_git20240309) 13.2.1 20240309, 64-bit
postgres-1 | 2024-12-08 11:48:52.318 UTC [42] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres-1 | 2024-12-08 11:48:52.319 UTC [45] LOG: database system was shut down at 2024-12-08 11:48:52 UTC
postgres-1 | 2024-12-08 11:48:52.321 UTC [42] LOG: database system is ready to accept connections
postgres-1 | done
postgres-1 | server started
postgres-1 |
postgres-1 | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
postgres-1 |
postgres-1 | waiting for server to shut down....2024-12-08 11:48:52.418 UTC [42] LOG: received fast shutdown request
postgres-1 | 2024-12-08 11:48:52.418 UTC [42] LOG: aborting any active transactions
postgres-1 | 2024-12-08 11:48:52.419 UTC [42] LOG: background worker "logical replication launcher" (PID 48) exited with exit code 1
postgres-1 | 2024-12-08 11:48:52.419 UTC [43] LOG: shutting down
postgres-1 | 2024-12-08 11:48:52.420 UTC [43] LOG: checkpoint starting: shutdown immediate
postgres-1 | 2024-12-08 11:48:52.420 UTC [43] LOG: checkpoint complete: wrote 3 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.001 s, sync=0.001 s, total=0.001 s; sync files=2, longest=0.001 s, average=0.001 s; distance=0 kB, estimate=0 kB; lsn=0/14EFD08, redo lsn=0/14EFD08
postgres-1 | 2024-12-08 11:48:52.422 UTC [42] LOG: database system is shut down
postgres-1 | done
postgres-1 | server stopped
postgres-1 |
postgres-1 | PostgreSQL init process complete; ready for start up.
postgres-1 |
postgres-1 | 2024-12-08 11:48:52.530 UTC [1] LOG: starting PostgreSQL 16.6 on aarch64-unknown-linux-musl, compiled by gcc (Alpine 13.2.1_git20240309) 13.2.1 20240309, 64-bit
postgres-1 | 2024-12-08 11:48:52.530 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
postgres-1 | 2024-12-08 11:48:52.530 UTC [1] LOG: listening on IPv6 address "::", port 5432
postgres-1 | 2024-12-08 11:48:52.535 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres-1 | 2024-12-08 11:48:52.536 UTC [56] LOG: database system was shut down at 2024-12-08 11:48:52 UTC
postgres-1 | 2024-12-08 11:48:52.538 UTC [1] LOG: database system is ready to accept connections
electric-1 | ERROR! Config provider Config.Reader failed with:
electric-1 | =ERROR REPORT==== 8-Dec-2024::11:48:52.846443 ===
electric-1 | Error in process <0.10.0> on node electric@70d77cad5e48 with exit value:
electric-1 | {{badmatch,{error,<<"has invalid or missing username">>}},
electric-1 | [{erl_eval,expr,6,[{file,"erl_eval.erl"},{line,652}]},
electric-1 | {elixir_eval,'FILE',1,
electric-1 | [{file,"/app/releases/0.9.4/runtime.exs"},{line,111}]},
electric-1 | {elixir,eval_forms,4,[{file,"src/elixir.erl"},{line,364}]},
electric-1 | {'Elixir.Module.ParallelChecker',verify,1,
electric-1 | [{file,"lib/module/parallel_checker.ex"},
electric-1 | {line,112}]},
electric-1 | {'Elixir.Code',validated_eval_string,3,[{file,"lib/code.ex"},{line,572}]},
electric-1 | {'Elixir.Config','eval!',3,[{file,"lib/config.ex"},{line,290}]},
electric-1 | {'Elixir.Config.Reader','read!',2,
electric-1 | [{file,"lib/config/reader.ex"},{line,92}]}]}
electric-1 |
electric-1 | ** (MatchError) no match of right hand side value: {:error, "has invalid or missing username"}
electric-1 | (stdlib 6.0.1) erl_eval.erl:652: :erl_eval.expr/6
electric-1 | /app/releases/0.9.4/runtime.exs:111: (file)
electric-1 | (elixir 1.17.2) src/elixir.erl:364: :elixir.eval_forms/4
electric-1 | (elixir 1.17.2) lib/module/parallel_checker.ex:112: Module.ParallelChecker.verify/1
electric-1 | (elixir 1.17.2) lib/code.ex:572: Code.validated_eval_string/3
electric-1 | (elixir 1.17.2) lib/config.ex:290: Config.eval!/3
electric-1 | (elixir 1.17.2) lib/config/reader.ex:92: Config.Reader.read!/2
electric-1 |
electric-1 | Runtime terminating during boot ({{badmatch,{error,<<"has invalid or missing username">>}},[{erl_eval,expr,6,[{file,"erl_eval.erl"},{line,652}]},{elixir_eval,'FILE',1,[{file,"/app/releases/0.9.4/runtime.exs"},{line,111}]},{elixir,eval_forms,4,[{file,"src/elixir.erl"},{line,364}]},{'Elixir.Module.ParallelChecker',verify,1,[{file,"lib/module/parallel_checker.ex"},{line,112}]},{'Elixir.Code',validated_eval_string,3,[{file,"lib/code.ex"},{line,572}]},{'Elixir.Config','eval!',3,[{file,"lib/config.ex"},{line,290}]},{'Elixir.Config.Reader','read!',2,[{file,"lib/config/reader.ex"},{line,92}]}]})
electric-1 |
^[[Aelectric-1 | Crash dump is being written to: erl_crash.dump...done
electric-1 exited with code 1
electric-1 | ERROR! Config provider Config.Reader failed with:
electric-1 | ** (MatchError) no match of right hand side value: {:error, "has invalid or missing username"}
electric-1 | (stdlib 6.0.1) erl_eval.erl:652: :erl_eval.expr/6
electric-1 | /app/releases/0.9.4/runtime.exs:111: (file)
electric-1 | (elixir 1.17.2) src/elixir.erl:364: :elixir.eval_forms/4
electric-1 | (elixir 1.17.2) lib/module/parallel_checker.ex:112: Module.ParallelChecker.verify/1
electric-1 | (elixir 1.17.2) lib/code.ex:572: Code.validated_eval_string/3
electric-1 | (elixir 1.17.2) lib/config.ex:290: Config.eval!/3
electric-1 | (elixir 1.17.2) lib/config/reader.ex:92: Config.Reader.read!/2
electric-1 |
electric-1 | Runtime terminating during boot ({{badmatch,{error,<<"has invalid or missing username">>}},[{erl_eval,expr,6,[{file,"erl_eval.erl"},{line,652}]},{elixir_eval,'FILE',1,[{file,"/app/releases/0.9.4/runtime.exs"},{line,111}]},{elixir,eval_forms,4,[{file,"src/elixir.erl"},{line,364}]},{'Elixir.Module.ParallelChecker',verify,1,[{file,"lib/module/parallel_checker.ex"},{line,112}]},{'Elixir.Code',validated_eval_string,3,[{file,"lib/code.ex"},{line,572}]},{'Elixir.Config','eval!',3,[{file,"lib/config.ex"},{line,290}]},{'Elixir.Config.Reader','read!',2,[{file,"lib/config/reader.ex"},{line,92}]}]})
electric-1 |
electric-1 | Crash dump is being written to: erl_crash.dump...done
electric-1 exited with code 1
pgbouncer-1 | 2024-12-08 11:49:52.022 UTC [1] LOG stats: 0 xacts/s, 0 queries/s, in 0 B/s, out 0 B/s, xact 0 us, query 0 us, wait 0 us
electric-1 | ERROR! Config provider Config.Reader failed with:
electric-1 | Runtime terminating during boot ({{badmatch,{error,<<"has invalid or missing username">>}},[{erl_eval,expr,6,[{file,"erl_eval.erl"},{line,652}]},{elixir_eval,'FILE',1,[{file,"/app/releases/0.9.4/runtime.exs"},{line,111}]},{elixir,eval_forms** (MatchError) no match of right hand side value: {:error, "has invalid or missing username"}
electric-1 | (stdlib 6.0.1) erl_eval.erl:652: :erl_eval.expr/6
electric-1 | /app/releases/0.9.4/runtime.exs:111: (file)
electric-1 | (elixir 1.17.2) src/elixir.erl:364: :elixir.eval_forms/4
electric-1 | (elixir 1.17.2) lib/module/parallel_checker.ex:112: Module.ParallelChecker.verify/1
electric-1 | (elixir 1.17.2) lib/code.ex:572: Code.validated_eval_string/3
electric-1 | (elixir 1.17.2) lib/config.ex:290: Config.eval!/3
electric-1 | (elixir 1.17.2) lib/config/reader.ex:92: Config.Reader.read!/2
electric-1 |
electric-1 | ,4,[{file,"src/elixir.erl"},{line,364}]},{'Elixir.Module.ParallelChecker',verify,1,[{file,"lib/module/parallel_checker.ex"},{line,112}]},{'Elixir.Code',validated_eval_string,3,[{file,"lib/code.ex"},{line,572}]},{'Elixir.Config','eval!',3,[{file,"lib/config.ex"},{line,290}]},{'Elixir.Config.Reader','read!',2,[{file,"lib/config/reader.ex"},{line,92}]}]})
electric-1 |
electric-1 | Crash dump is being written to: erl_crash.dump...done
electric-1 exited with code 1
^CGracefully stopping... (press Ctrl+C again to force)
[+] Stopping 4/3
✔ Container electrodrizzle-pgbouncer-1 Stopped 0.2s
✔ Container electrodrizzle-electric-1 Stopped 0.0s
✔ Container electrodrizzle-redis-1 Stopped 0.2s
✔ Container electrodrizzle-postgres-1 Stopped

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