Closed
Description
Seen here: https://github.com/coder/coder/actions/runs/15461129890/job/43522552318
=== FAIL: cli TestServer/Logging/CreatesFile (2.82s)
clitest.go:75: invoking command: coder --global-config /var/folders/y4/8dcllrc96x32z0w3fgrlx6_m0000gn/T/TestServerLoggingCreatesFile2486680519/002 server --log-filter=.* --postgres-url=***127.0.0.1:5432/test_2025_06_05_07_35_16_jxjvtgijva?sslmode=disable --http-address :0 --access-url http://example.com/ --provisioner-daemons=3 --provisioner-types=echo --log-human /var/folders/y4/8dcllrc96x32z0w3fgrlx6_m0000gn/T/TestServerLoggingCreatesFile2486680519/001/coder-logging-test-1008095851
t.go:106: 2025-06-05 07:35:16.826 [debu] cli: started debug logging
t.go:106: 2025-06-05 07:35:16.826 [info] cli: stdout: Started HTTP listener at http://[::]:51869
t.go:106: 2025-06-05 07:35:16.826 [info] cli: ...
msg= stdout: ╔════════════════════════╗
║ View the Web UI: ║
║ http://example.com/ ║
╚════════════════════════╝
t.go:106: 2025-06-05 07:35:16.826 [debu] cli: connecting to postgresql
t.go:106: 2025-06-05 07:35:16.904 [debu] cli: closing tracing
t.go:106: 2025-06-05 07:35:16.904 [debu] cli: tracing closed error=<nil>
clitest.go:261: command "coder server" exited with error: running command "coder server": connect to postgres:
github.com/coder/coder/v2/cli.(*RootCmd).Server.func2
/Users/runner/work/coder/coder/cli/server.go:754
- connect to postgres:
github.com/coder/coder/v2/cli.getAndMigratePostgresDB
/Users/runner/work/coder/coder/cli/server.go:2882
- no rows returned for version select:
github.com/coder/coder/v2/cli.ConnectToPostgres
/Users/runner/work/coder/coder/cli/server.go:2363
clitest.go:172:
Error Trace: /Users/runner/work/coder/coder/cli/clitest/clitest.go:172
/Users/runner/work/_tool/go/1.24.2/arm64/src/runtime/asm_arm64.s:1223
Error: Received unexpected error:
running command "coder server": connect to postgres:
github.com/coder/coder/v2/cli.(*RootCmd).Server.func2
/Users/runner/work/coder/coder/cli/server.go:754
- connect to postgres:
github.com/coder/coder/v2/cli.getAndMigratePostgresDB
/Users/runner/work/coder/coder/cli/server.go:2882
- no rows returned for version select:
github.com/coder/coder/v2/cli.ConnectToPostgres
/Users/runner/work/coder/coder/cli/server.go:2363
Test: TestServer/Logging/CreatesFile
--- FAIL: TestServer/Logging/CreatesFile (2.82s)