-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
coder/coder
#21796Labels
Description
Seen here
clitest.go:178:
Error Trace: /home/runner/work/coder/coder/cli/clitest/clitest.go:178
/opt/hostedtoolcache/go/1.24.6/x64/src/runtime/asm_amd64.s:1700
Error: Received unexpected error:
running command "coder server": Failed to start built-in PostgreSQL. Optionally, specify an external deployment with `--postgres-url`:
github.com/coder/coder/v2/cli.startBuiltinPostgres
/home/runner/work/coder/coder/cli/server.go:2178
- could not start postgres using /tmp/TestServerBuiltinPostgres1362760225/002/postgres/bin/bin/pg_ctl start -w -D /tmp/TestServerBuiltinPostgres1362760225/002/postgres/data -o -p 45669:
The files belonging to this database system will be owned by user "runner".
This user must also own the server process.
The database cluster will be initialized with locale "C.UTF-8".
The default text search configuration will be set to "english".
Data page checksums are disabled.
creating directory /tmp/TestServerBuiltinPostgres1362760225/002/postgres/data ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting default time zone ... Etc/UTC
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... ok
syncing data to disk ... ok
Success. You can now start the database server using:
/tmp/TestServerBuiltinPostgres1362760225/002/postgres/bin/bin/pg_ctl -D /tmp/TestServerBuiltinPostgres1362760225/002/postgres/data -l logfile start
waiting for server to start....2025-09-23 08:09:09.890 UTC [52292] LOG: starting PostgreSQL 13.21 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0, 64-bit
2025-09-23 08:09:09.890 UTC [52292] LOG: could not bind IPv6 address "::1": Address already in use
2025-09-23 08:09:09.890 UTC [52292] HINT: Is another postmaster already running on port 45669? If not, wait a few seconds and retry.
2025-09-23 08:09:09.890 UTC [52292] LOG: could not bind IPv4 address "127.0.0.1": Address already in use
2025-09-23 08:09:09.890 UTC [52292] HINT: Is another postmaster already running on port 45669? If not, wait a few seconds and retry.
2025-09-23 08:09:09.890 UTC [52292] WARNING: could not create listen socket for "localhost"
2025-09-23 08:09:09.890 UTC [52292] FATAL: could not create any TCP/IP sockets
2025-09-23 08:09:09.891 UTC [52292] LOG: database system is shut down
stopped waiting
pg_ctl: could not start server
Examine the log output.
Test: TestServer/BuiltinPostgres
server_test.go:189:
Error Trace: /home/runner/work/coder/coder/cli/server_test.go:189
Error: Condition never satisfied
Test: TestServer/BuiltinPostgres
Messages: failed to get access URL
=== FAIL: cli TestServer (64.11s)
Reactions are currently unavailable