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

VerifyWithPgWeb test fails (locally and on ci) #5785

Open
davidfowl opened this issue Sep 19, 2024 · 2 comments · May be fixed by #5787
Open

VerifyWithPgWeb test fails (locally and on ci) #5785

davidfowl opened this issue Sep 19, 2024 · 2 comments · May be fixed by #5787
Labels
area-integrations Issues pertaining to Aspire Integrations packages disabled-tests postgres Issues related to Postgres integrations testing ☑️

Comments

@davidfowl
Copy link
Member

Seems like the test is unable to connect to the endpoint. I get a 400 connect refused when I run locally.

 Aspire.Hosting.PostgreSQL.Tests.PostgresFunctionalTests.VerifyWithPgWeb
   Source: PostgresFunctionalTests.cs line 215
   Duration: 5.8 sec

  Message: 
System.Net.Http.HttpRequestException : Response status code does not indicate success: 404 (Not Found).

  Stack Trace: 
HttpResponseMessage.EnsureSuccessStatusCode()
PostgresFunctionalTests.VerifyWithPgWeb() line 241
--- End of stack trace from previous location ---

  Standard Output: 
| [2024-09-19T14:26:15] Aspire.Hosting.DistributedApplication Information: Aspire version: 9.0.0-dev
| [2024-09-19T14:26:15] Aspire.Hosting.DistributedApplication Information: Distributed application starting.
| [2024-09-19T14:26:15] Aspire.Hosting.DistributedApplication Information: Application host directory is: C:\dev\git\aspire\tests\Aspire.Hosting.Tests
| [2024-09-19T14:26:16] Aspire.Hosting.Dcp.DcpHostService Information: Starting DCP with arguments: start-apiserver --monitor 66180 --detach --kubeconfig "C:\Users\davifowl\AppData\Local\Temp\aspire.jyuc02j2.1px\kubeconfig"
| [2024-09-19T14:26:16] Aspire.Hosting.ApplicationModel.ResourceNotificationService Trace: Resource pg1/pg1 update published: ResourceType = PostgresServerResource, CreationTimeStamp = (null), State = { Text = (null), Style = (null) }, HealthStatus = (null) ExitCode = (null), EnvironmentVariables = {  }, Urls = {  }, Properties = {  }
| [2024-09-19T14:26:16] Aspire.Hosting.ApplicationModel.ResourceNotificationService Trace: Resource pg1-pgweb/pg1-pgweb update published: ResourceType = PgWebContainerResource, CreationTimeStamp = (null), State = { Text = (null), Style = (null) }, HealthStatus = (null) ExitCode = (null), EnvironmentVariables = {  }, Urls = {  }, Properties = {  }
| [2024-09-19T14:26:16] Aspire.Hosting.ApplicationModel.ResourceNotificationService Trace: Resource postgres/postgres update published: ResourceType = PostgresDatabaseResource, CreationTimeStamp = (null), State = { Text = (null), Style = (null) }, HealthStatus = (null) ExitCode = (null), EnvironmentVariables = {  }, Urls = {  }, Properties = {  }
| [2024-09-19T14:26:16] Aspire.Hosting.Dcp.ApplicationExecutor Debug: Watching over DCP Service resources.
| [2024-09-19T14:26:16] Aspire.Hosting.Dcp.ApplicationExecutor Debug: Watching over DCP Container resources.
| [2024-09-19T14:26:16] Aspire.Hosting.Dcp.ApplicationExecutor Debug: Watching over DCP Executable resources.
| [2024-09-19T14:26:16] Aspire.Hosting.Dcp.ApplicationExecutor Debug: Watching over DCP Endpoint resources.
| [2024-09-19T14:26:17] Aspire.Hosting.Dcp.start-apiserver.api-server Information: Starting API server...

| [2024-09-19T14:26:17] Aspire.Hosting.Dcp.start-apiserver.api-server Information: API server started	{"Address": "::1", "Port": 58165}

| [2024-09-19T14:26:17] Aspire.Hosting.Dcp.start-apiserver.dcp-host Information: Starting DCP controller host

| [2024-09-19T14:26:17] Aspire.Hosting.Dcp.start-apiserver.dcp-host Information: Started all services	{"count": 1}

| [2024-09-19T14:26:17] Aspire.Hosting.Dcp.dcpctrl Information: starting controller manager

| [2024-09-19T14:26:17] Aspire.Hosting.Dcp.KubernetesService Debug: Successfully read Kubernetes configuration from 'C:\Users\davifowl\AppData\Local\Temp\aspire.jyuc02j2.1px\kubeconfig' after 1444 milliseconds.
| [2024-09-19T14:26:17] Aspire.Hosting.ApplicationModel.ResourceNotificationService Debug: Resource pg1/pg1 changed state: Starting
| [2024-09-19T14:26:17] Aspire.Hosting.ApplicationModel.ResourceNotificationService Trace: Resource pg1/pg1 update published: ResourceType = Container, CreationTimeStamp = (null), State = { Text = Starting, Style = (null) }, HealthStatus = (null) ExitCode = (null), EnvironmentVariables = {  }, Urls = {  }, Properties = { container.image = netaspireci.azurecr.io/library/postgres:16.4 }
| [2024-09-19T14:26:17] Aspire.Hosting.ApplicationModel.ResourceNotificationService Debug: Resource postgres/postgres changed state: Starting
| [2024-09-19T14:26:17] Aspire.Hosting.ApplicationModel.ResourceNotificationService Trace: Resource postgres/postgres update published: ResourceType = PostgresDatabaseResource, CreationTimeStamp = (null), State = { Text = Starting, Style = (null) }, HealthStatus = (null) ExitCode = (null), EnvironmentVariables = {  }, Urls = {  }, Properties = {  }
| [2024-09-19T14:26:17] Aspire.Hosting.ApplicationModel.ResourceNotificationService Debug: Resource pg1-pgweb/pg1-pgweb changed state: Starting
| [2024-09-19T14:26:17] Aspire.Hosting.ApplicationModel.ResourceNotificationService Trace: Resource pg1-pgweb/pg1-pgweb update published: ResourceType = Container, CreationTimeStamp = (null), State = { Text = Starting, Style = (null) }, HealthStatus = (null) ExitCode = (null), EnvironmentVariables = {  }, Urls = {  }, Properties = { container.image = netaspireci.azurecr.io/sosedoff/pgweb:0.15.0 }
| [2024-09-19T14:26:17] Aspire.Hosting.Dcp.ApplicationExecutor Trace: Updating application model resource pg1 with Container resource pg1-qpedzcbw-477e5138
| [2024-09-19T14:26:17] Aspire.Hosting.ApplicationModel.ResourceNotificationService Debug: Resource pg1/pg1 changed state: Starting -> Hidden
| [2024-09-19T14:26:17] Aspire.Hosting.ApplicationModel.ResourceNotificationService Trace: Resource pg1/pg1 update published: ResourceType = Container, CreationTimeStamp = (null), State = { Text = Hidden, Style = (null) }, HealthStatus = (null) ExitCode = (null), EnvironmentVariables = {  }, Urls = {  }, Properties = { container.image = netaspireci.azurecr.io/library/postgres:16.4 }
| [2024-09-19T14:26:17] Aspire.Hosting.DistributedApplication Information: Distributed application started. Press Ctrl+C to shut down.
| [2024-09-19T14:26:17] Aspire.Hosting.ApplicationModel.ResourceNotificationService Trace: Resource pg1/pg1-qpedzcbw-477e5138 update published: ResourceType = Container, CreationTimeStamp = 2024-09-19T07:26:17, State = { Text = (null), Style = (null) }, HealthStatus = (null) ExitCode = (null), EnvironmentVariables = { POSTGRES_HOST_AUTH_METHOD = scram-sha-256, POSTGRES_INITDB_ARGS = --auth-host=scram-sha-256 --auth-local=scram-sha-256, POSTGRES_PASSWORD = 8Z5dqAjkxXCAw5x}+X{n9t, POSTGRES_USER = postgres }, Urls = {  }, Properties = { container.image = netaspireci.azurecr.io/library/postgres:16.4, container.id = , container.command = , container.args = System.Collections.Generic.List`1[System.String], container.ports = System.Collections.Immutable.ImmutableArray`1[System.Int32] }
| [2024-09-19T14:26:17] Aspire.Hosting.Dcp.ApplicationExecutor Trace: Updating application model resource pg1-pgweb with Container resource pg1-pgweb-gkejmzpt-477e5138
| [2024-09-19T14:26:17] Aspire.Hosting.ApplicationModel.ResourceNotificationService Debug: Resource pg1-pgweb/pg1-pgweb changed state: Starting -> Hidden
| [2024-09-19T14:26:17] Aspire.Hosting.ApplicationModel.ResourceNotificationService Trace: Resource pg1-pgweb/pg1-pgweb update published: ResourceType = Container, CreationTimeStamp = (null), State = { Text = Hidden, Style = (null) }, HealthStatus = (null) ExitCode = (null), EnvironmentVariables = {  }, Urls = {  }, Properties = { container.image = netaspireci.azurecr.io/sosedoff/pgweb:0.15.0 }
| [2024-09-19T14:26:17] Aspire.Hosting.ApplicationModel.ResourceNotificationService Trace: Resource pg1-pgweb/pg1-pgweb-gkejmzpt-477e5138 update published: ResourceType = Container, CreationTimeStamp = 2024-09-19T07:26:17, State = { Text = (null), Style = (null) }, HealthStatus = (null) ExitCode = (null), EnvironmentVariables = {  }, Urls = {  }, Properties = { container.image = netaspireci.azurecr.io/sosedoff/pgweb:0.15.0, container.id = , container.command = , container.args = System.Collections.Generic.List`1[System.String], container.ports = System.Collections.Immutable.ImmutableArray`1[System.Int32] }
| [2024-09-19T14:26:17] Aspire.Hosting.Dcp.ApplicationExecutor Trace: Updating application model resource pg1 with Container resource pg1-qpedzcbw-477e5138
| [2024-09-19T14:26:17] Aspire.Hosting.ApplicationModel.ResourceNotificationService Trace: Resource pg1/pg1-qpedzcbw-477e5138 update published: ResourceType = Container, CreationTimeStamp = 2024-09-19T07:26:17, State = { Text = (null), Style = (null) }, HealthStatus = (null) ExitCode = (null), EnvironmentVariables = { POSTGRES_HOST_AUTH_METHOD = scram-sha-256, POSTGRES_INITDB_ARGS = --auth-host=scram-sha-256 --auth-local=scram-sha-256, POSTGRES_PASSWORD = 8Z5dqAjkxXCAw5x}+X{n9t, POSTGRES_USER = postgres }, Urls = {  }, Properties = { container.image = netaspireci.azurecr.io/library/postgres:16.4, container.id = , container.command = , container.args = System.Collections.Generic.List`1[System.String], container.ports = System.Collections.Immutable.ImmutableArray`1[System.Int32] }
| [2024-09-19T14:26:17] Aspire.Hosting.Dcp.ApplicationExecutor Trace: Updating application model resource pg1-pgweb with Container resource pg1-pgweb-gkejmzpt-477e5138
| [2024-09-19T14:26:17] Aspire.Hosting.ApplicationModel.ResourceNotificationService Trace: Resource pg1-pgweb/pg1-pgweb-gkejmzpt-477e5138 update published: ResourceType = Container, CreationTimeStamp = 2024-09-19T07:26:17, State = { Text = (null), Style = (null) }, HealthStatus = (null) ExitCode = (null), EnvironmentVariables = {  }, Urls = {  }, Properties = { container.image = netaspireci.azurecr.io/sosedoff/pgweb:0.15.0, container.id = , container.command = , container.args = System.Collections.Generic.List`1[System.String], container.ports = System.Collections.Immutable.ImmutableArray`1[System.Int32] }
| [2024-09-19T14:26:17] Aspire.Hosting.Dcp.ApplicationExecutor Trace: Updating application model resource pg1 with Container resource pg1-qpedzcbw-477e5138
| [2024-09-19T14:26:17] Aspire.Hosting.ApplicationModel.ResourceNotificationService Debug: Resource pg1/pg1-qpedzcbw-477e5138 changed state: Starting
| [2024-09-19T14:26:17] Aspire.Hosting.ApplicationModel.ResourceNotificationService Trace: Resource pg1/pg1-qpedzcbw-477e5138 update published: ResourceType = Container, CreationTimeStamp = 2024-09-19T07:26:17, State = { Text = Starting, Style = (null) }, HealthStatus = (null) ExitCode = (null), EnvironmentVariables = { POSTGRES_HOST_AUTH_METHOD = scram-sha-256, POSTGRES_INITDB_ARGS = --auth-host=scram-sha-256 --auth-local=scram-sha-256, POSTGRES_PASSWORD = 8Z5dqAjkxXCAw5x}+X{n9t, POSTGRES_USER = postgres }, Urls = {  }, Properties = { container.image = netaspireci.azurecr.io/library/postgres:16.4, container.id = , container.command = , container.args = System.Collections.Generic.List`1[System.String], container.ports = System.Collections.Immutable.ImmutableArray`1[System.Int32] }
| [2024-09-19T14:26:17] Aspire.Hosting.ApplicationModel.ResourceNotificationService Trace: Resource postgres/postgres update published: ResourceType = PostgresDatabaseResource, CreationTimeStamp = (null), State = { Text = Starting, Style = (null) }, HealthStatus = (null) ExitCode = (null), EnvironmentVariables = {  }, Urls = {  }, Properties = {  }
| [2024-09-19T14:26:17] Aspire.Hosting.Dcp.ApplicationExecutor Trace: Updating application model resource pg1-pgweb with Container resource pg1-pgweb-gkejmzpt-477e5138
| [2024-09-19T14:26:17] Aspire.Hosting.ApplicationModel.ResourceNotificationService Debug: Resource pg1-pgweb/pg1-pgweb-gkejmzpt-477e5138 changed state: Starting
| [2024-09-19T14:26:17] Aspire.Hosting.ApplicationModel.ResourceNotificationService Trace: Resource pg1-pgweb/pg1-pgweb-gkejmzpt-477e5138 update published: ResourceType = Container, CreationTimeStamp = 2024-09-19T07:26:17, State = { Text = Starting, Style = (null) }, HealthStatus = (null) ExitCode = (null), EnvironmentVariables = {  }, Urls = {  }, Properties = { container.image = netaspireci.azurecr.io/sosedoff/pgweb:0.15.0, container.id = , container.command = , container.args = System.Collections.Generic.List`1[System.String], container.ports = System.Collections.Immutable.ImmutableArray`1[System.Int32] }
| [2024-09-19T14:26:17] Aspire.Hosting.Dcp.ApplicationExecutor Trace: Updating application model resource pg1 with Container resource pg1-qpedzcbw-477e5138
| [2024-09-19T14:26:17] Aspire.Hosting.ApplicationModel.ResourceNotificationService Trace: Resource pg1/pg1-qpedzcbw-477e5138 update published: ResourceType = Container, CreationTimeStamp = 2024-09-19T07:26:17, State = { Text = Starting, Style = (null) }, HealthStatus = (null) ExitCode = (null), EnvironmentVariables = { POSTGRES_HOST_AUTH_METHOD = scram-sha-256, POSTGRES_INITDB_ARGS = --auth-host=scram-sha-256 --auth-local=scram-sha-256, POSTGRES_PASSWORD = 8Z5dqAjkxXCAw5x}+X{n9t, POSTGRES_USER = postgres }, Urls = {  }, Properties = { container.image = netaspireci.azurecr.io/library/postgres:16.4, container.id = , container.command = , container.args = System.Collections.Generic.List`1[System.String], container.ports = System.Collections.Immutable.ImmutableArray`1[System.Int32] }
| [2024-09-19T14:26:17] Aspire.Hosting.ApplicationModel.ResourceNotificationService Trace: Resource postgres/postgres update published: ResourceType = PostgresDatabaseResource, CreationTimeStamp = (null), State = { Text = Starting, Style = (null) }, HealthStatus = (null) ExitCode = (null), EnvironmentVariables = {  }, Urls = {  }, Properties = {  }
| [2024-09-19T14:26:17] Aspire.Hosting.Dcp.ApplicationExecutor Trace: Updating application model resource pg1-pgweb with Container resource pg1-pgweb-gkejmzpt-477e5138
| [2024-09-19T14:26:17] Aspire.Hosting.ApplicationModel.ResourceNotificationService Trace: Resource pg1-pgweb/pg1-pgweb-gkejmzpt-477e5138 update published: ResourceType = Container, CreationTimeStamp = 2024-09-19T07:26:17, State = { Text = Starting, Style = (null) }, HealthStatus = (null) ExitCode = (null), EnvironmentVariables = {  }, Urls = {  }, Properties = { container.image = netaspireci.azurecr.io/sosedoff/pgweb:0.15.0, container.id = , container.command = , container.args = System.Collections.Generic.List`1[System.String], container.ports = System.Collections.Immutable.ImmutableArray`1[System.Int32] }
| [2024-09-19T14:26:17] Aspire.Hosting.Dcp.ApplicationExecutor Debug: Starting log streaming for pg1-pgweb-gkejmzpt-477e5138.
| [2024-09-19T14:26:17] Aspire.Hosting.Dcp.ApplicationExecutor Debug: Starting log streaming for pg1-qpedzcbw-477e5138.
| [2024-09-19T14:26:18] Aspire.Hosting.Dcp.dcpctrl.NetworkReconciler Information: network created	{"NetworkName": {"name":"default-aspire-network"}, "Reconciliation": 2, "Network": "default-aspire-network-7q98iqeulg"}

| [2024-09-19T14:26:18] Aspire.Hosting.Tests.Resources.pg1 Information: 1: 2024-09-19T14:26:18.3690000Z 14e04b10af7bf13a410c3b9b1498a49280f5e861ba9a78e02e73cafac588cf03
| [2024-09-19T14:26:18] Aspire.Hosting.Tests.Resources.pg1-pgweb Information: 1: 2024-09-19T14:26:18.3450000Z e8e0ecc80f4c6cde6ad039c1114750a8754ac6ac129de91c17595107ee11e36a
| [2024-09-19T14:26:19] Aspire.Hosting.Dcp.dcpctrl.ContainerReconciler Information: Added new ContainerNetworkConnection	{"Container": {"name":"pg1-pgweb-gkejmzpt-477e5138"}, "Reconciliation": 9, "Container": "e8e0ecc80f4c6cde6ad039c1114750a8754ac6ac129de91c17595107ee11e36a", "ContainerNetworkConnection": "/pg1-pgweb-gkejmzpt-477e5138-default-aspire-network-00dm43slp4"}

| [2024-09-19T14:26:19] Aspire.Hosting.Dcp.ApplicationExecutor Trace: Updating application model resource pg1-pgweb with Container resource pg1-pgweb-gkejmzpt-477e5138
| [2024-09-19T14:26:19] Aspire.Hosting.ApplicationModel.ResourceNotificationService Trace: Resource pg1-pgweb/pg1-pgweb-gkejmzpt-477e5138 update published: ResourceType = Container, CreationTimeStamp = 2024-09-19T07:26:17, State = { Text = Starting, Style = (null) }, HealthStatus = (null) ExitCode = (null), EnvironmentVariables = { PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin }, Urls = {  }, Properties = { container.image = netaspireci.azurecr.io/sosedoff/pgweb:0.15.0, container.id = e8e0ecc80f4c6cde6ad039c1114750a8754ac6ac129de91c17595107ee11e36a, container.command = , container.args = System.Collections.Generic.List`1[System.String], container.ports = System.Collections.Immutable.ImmutableArray`1[System.Int32] }
| [2024-09-19T14:26:19] Aspire.Hosting.Dcp.dcpctrl.ContainerReconciler Information: Added new ContainerNetworkConnection	{"Container": {"name":"pg1-qpedzcbw-477e5138"}, "Reconciliation": 10, "Container": "14e04b10af7bf13a410c3b9b1498a49280f5e861ba9a78e02e73cafac588cf03", "ContainerNetworkConnection": "/pg1-qpedzcbw-477e5138-default-aspire-network-a74s3j3kv8"}

| [2024-09-19T14:26:19] Aspire.Hosting.Dcp.ApplicationExecutor Trace: Updating application model resource pg1 with Container resource pg1-qpedzcbw-477e5138
| [2024-09-19T14:26:19] Aspire.Hosting.ApplicationModel.ResourceNotificationService Trace: Resource pg1/pg1-qpedzcbw-477e5138 update published: ResourceType = Container, CreationTimeStamp = 2024-09-19T07:26:17, State = { Text = Starting, Style = (null) }, HealthStatus = (null) ExitCode = (null), EnvironmentVariables = { GOSU_VERSION = 1.17, LANG = en_US.utf8, PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/16/bin, PGDATA = /var/lib/postgresql/data, PG_MAJOR = 16, PG_VERSION = 16.4-1.pgdg120+1, POSTGRES_HOST_AUTH_METHOD = scram-sha-256, POSTGRES_INITDB_ARGS = --auth-host=scram-sha-256 --auth-local=scram-sha-256, POSTGRES_PASSWORD = 8Z5dqAjkxXCAw5x}+X{n9t, POSTGRES_USER = postgres }, Urls = {  }, Properties = { container.image = netaspireci.azurecr.io/library/postgres:16.4, container.id = 14e04b10af7bf13a410c3b9b1498a49280f5e861ba9a78e02e73cafac588cf03, container.command = , container.args = System.Collections.Generic.List`1[System.String], container.ports = System.Collections.Immutable.ImmutableArray`1[System.Int32] }
| [2024-09-19T14:26:19] Aspire.Hosting.ApplicationModel.ResourceNotificationService Trace: Resource postgres/postgres update published: ResourceType = PostgresDatabaseResource, CreationTimeStamp = (null), State = { Text = Starting, Style = (null) }, HealthStatus = (null) ExitCode = (null), EnvironmentVariables = {  }, Urls = {  }, Properties = {  }
| [2024-09-19T14:26:19] Aspire.Hosting.Dcp.dcpctrl.NetworkReconciler Information: connected a container to the network	{"NetworkName": {"name":"default-aspire-network"}, "Reconciliation": 4, "Container": "e8e0ecc80f4c6cde6ad039c1114750a8754ac6ac129de91c17595107ee11e36a", "Network": "default-aspire-network-7q98iqeulg"}

| [2024-09-19T14:26:20] Aspire.Hosting.Dcp.dcpctrl.NetworkReconciler Information: connected a container to the network	{"NetworkName": {"name":"default-aspire-network"}, "Reconciliation": 5, "Container": "14e04b10af7bf13a410c3b9b1498a49280f5e861ba9a78e02e73cafac588cf03", "Network": "default-aspire-network-7q98iqeulg"}

| [2024-09-19T14:26:20] Aspire.Hosting.Dcp.ApplicationExecutor Trace: Updating application model resource pg1-pgweb with Container resource pg1-pgweb-gkejmzpt-477e5138
| [2024-09-19T14:26:20] Aspire.Hosting.ApplicationModel.ResourceNotificationService Debug: Resource pg1-pgweb/pg1-pgweb-gkejmzpt-477e5138 changed state: Starting -> Running
| [2024-09-19T14:26:20] Aspire.Hosting.ApplicationModel.ResourceNotificationService Trace: Resource pg1-pgweb/pg1-pgweb-gkejmzpt-477e5138 update published: ResourceType = Container, CreationTimeStamp = 2024-09-19T07:26:17, State = { Text = Running, Style = (null) }, HealthStatus = (null) ExitCode = (null), EnvironmentVariables = { PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin }, Urls = {  }, Properties = { container.image = netaspireci.azurecr.io/sosedoff/pgweb:0.15.0, container.id = e8e0ecc80f4c6cde6ad039c1114750a8754ac6ac129de91c17595107ee11e36a, container.command = , container.args = System.Collections.Generic.List`1[System.String], container.ports = System.Collections.Immutable.ImmutableArray`1[System.Int32] }
| [2024-09-19T14:26:20] Aspire.Hosting.Tests.Resources.pg1-pgweb Information: 2: 2024-09-19T14:26:20.4900000Z 
| [2024-09-19T14:26:20] Aspire.Hosting.Tests.Resources.pg1-pgweb Information: 3: 2024-09-19T14:26:20.4900000Z e8e0ecc80f4c6cde6ad039c1114750a8754ac6ac129de91c17595107ee11e36a
| [2024-09-19T14:26:20] Aspire.Hosting.ApplicationModel.ResourceNotificationService Trace: Resource pg1/pg1 update published: ResourceType = Container, CreationTimeStamp = (null), State = { Text = Hidden, Style = (null) }, HealthStatus = Unhealthy ExitCode = (null), EnvironmentVariables = {  }, Urls = {  }, Properties = { container.image = netaspireci.azurecr.io/library/postgres:16.4 }
| [2024-09-19T14:26:20] Aspire.Hosting.ApplicationModel.ResourceNotificationService Trace: Resource pg1/pg1-qpedzcbw-477e5138 update published: ResourceType = Container, CreationTimeStamp = 2024-09-19T07:26:17, State = { Text = Starting, Style = (null) }, HealthStatus = Unhealthy ExitCode = (null), EnvironmentVariables = { GOSU_VERSION = 1.17, LANG = en_US.utf8, PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/16/bin, PGDATA = /var/lib/postgresql/data, PG_MAJOR = 16, PG_VERSION = 16.4-1.pgdg120+1, POSTGRES_HOST_AUTH_METHOD = scram-sha-256, POSTGRES_INITDB_ARGS = --auth-host=scram-sha-256 --auth-local=scram-sha-256, POSTGRES_PASSWORD = 8Z5dqAjkxXCAw5x}+X{n9t, POSTGRES_USER = postgres }, Urls = {  }, Properties = { container.image = netaspireci.azurecr.io/library/postgres:16.4, container.id = 14e04b10af7bf13a410c3b9b1498a49280f5e861ba9a78e02e73cafac588cf03, container.command = , container.args = System.Collections.Generic.List`1[System.String], container.ports = System.Collections.Immutable.ImmutableArray`1[System.Int32] }
| [2024-09-19T14:26:20] Aspire.Hosting.ApplicationModel.ResourceNotificationService Trace: Resource postgres/postgres update published: ResourceType = PostgresDatabaseResource, CreationTimeStamp = (null), State = { Text = Starting, Style = (null) }, HealthStatus = Unhealthy ExitCode = (null), EnvironmentVariables = {  }, Urls = {  }, Properties = {  }
| [2024-09-19T14:26:20] Aspire.Hosting.Tests.Resources.pg1-pgweb Error: 4: 2024-09-19T14:26:20.4950290Z time="2024-09-19T14:26:20Z" level=info msg="session manager cleanup enabled" timeout=3h0m0s
| [2024-09-19T14:26:20] Aspire.Hosting.Tests.Resources.pg1-pgweb Information: 5: 2024-09-19T14:26:20.4948339Z Pgweb v0.15.0 (git: 9717d3a13273e2cbec1eff6745135d58ba434fd4) (go: go1.20.14) (build time: 2024-03-15T05:21:33Z) (arch: linux/amd64)
| [2024-09-19T14:26:20] Aspire.Hosting.Tests.Resources.pg1-pgweb Information: 6: 2024-09-19T14:26:20.4948603Z Starting server...
| [2024-09-19T14:26:20] Aspire.Hosting.Tests.Resources.pg1-pgweb Information: 7: 2024-09-19T14:26:20.4948642Z To view database open http://0.0.0.0:8081/ in browser
| [2024-09-19T14:26:20] System.Net.Http.HttpClient.Default.LogicalHandler Information: Start processing HTTP request POST http://localhost:58172/api/info
| [2024-09-19T14:26:20] System.Net.Http.HttpClient.Default.ClientHandler Information: Sending HTTP request POST http://localhost:58172/api/info
| [2024-09-19T14:26:21] Aspire.Hosting.Dcp.dcpctrl.NetworkReconciler Information: disconnected a container from the network	{"NetworkName": {"name":"default-aspire-network"}, "Reconciliation": 7, "Container": "ep-2b0f8595d6f8d84e19d1b664f8b5a377667d44ed9629a744960de2b363c4c947", "Network": "default-aspire-network-7q98iqeulg"}

| [2024-09-19T14:26:21] Aspire.Hosting.Dcp.ApplicationExecutor Trace: Updating application model resource pg1 with Container resource pg1-qpedzcbw-477e5138
| [2024-09-19T14:26:21] Aspire.Hosting.ApplicationModel.ResourceNotificationService Debug: Resource pg1/pg1-qpedzcbw-477e5138 changed state: Starting -> Running
| [2024-09-19T14:26:21] Aspire.Hosting.ApplicationModel.ResourceNotificationService Trace: Resource pg1/pg1-qpedzcbw-477e5138 update published: ResourceType = Container, CreationTimeStamp = 2024-09-19T07:26:17, State = { Text = Running, Style = (null) }, HealthStatus = Unhealthy ExitCode = (null), EnvironmentVariables = { GOSU_VERSION = 1.17, LANG = en_US.utf8, PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/16/bin, PGDATA = /var/lib/postgresql/data, PG_MAJOR = 16, PG_VERSION = 16.4-1.pgdg120+1, POSTGRES_HOST_AUTH_METHOD = scram-sha-256, POSTGRES_INITDB_ARGS = --auth-host=scram-sha-256 --auth-local=scram-sha-256, POSTGRES_PASSWORD = 8Z5dqAjkxXCAw5x}+X{n9t, POSTGRES_USER = postgres }, Urls = {  }, Properties = { container.image = netaspireci.azurecr.io/library/postgres:16.4, container.id = 14e04b10af7bf13a410c3b9b1498a49280f5e861ba9a78e02e73cafac588cf03, container.command = , container.args = System.Collections.Generic.List`1[System.String], container.ports = System.Collections.Immutable.ImmutableArray`1[System.Int32] }
| [2024-09-19T14:26:21] Aspire.Hosting.ApplicationModel.ResourceNotificationService Debug: Resource postgres/postgres changed state: Starting -> Running
| [2024-09-19T14:26:21] Aspire.Hosting.ApplicationModel.ResourceNotificationService Trace: Resource postgres/postgres update published: ResourceType = PostgresDatabaseResource, CreationTimeStamp = (null), State = { Text = Running, Style = (null) }, HealthStatus = Unhealthy ExitCode = (null), EnvironmentVariables = {  }, Urls = {  }, Properties = {  }
| [2024-09-19T14:26:21] Aspire.Hosting.Dcp.dcpctrl.ServiceReconciler Information: service /pg1-pgweb-477e5138 is now in state Ready	{"ServiceName": {"name":"pg1-pgweb-477e5138"}, "Reconciliation": 7}

| [2024-09-19T14:26:21] Aspire.Hosting.ApplicationModel.ResourceNotificationService Trace: Resource pg1-pgweb/pg1-pgweb-gkejmzpt-477e5138 update published: ResourceType = Container, CreationTimeStamp = 2024-09-19T07:26:17, State = { Text = Running, Style = (null) }, HealthStatus = (null) ExitCode = (null), EnvironmentVariables = { PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin }, Urls = {  }, Properties = { container.image = netaspireci.azurecr.io/sosedoff/pgweb:0.15.0, container.id = e8e0ecc80f4c6cde6ad039c1114750a8754ac6ac129de91c17595107ee11e36a, container.command = , container.args = System.Collections.Generic.List`1[System.String], container.ports = System.Collections.Immutable.ImmutableArray`1[System.Int32] }
| [2024-09-19T14:26:21] Aspire.Hosting.ApplicationModel.ResourceNotificationService Trace: Resource pg1-pgweb/pg1-pgweb-gkejmzpt-477e5138 update published: ResourceType = Container, CreationTimeStamp = 2024-09-19T07:26:17, State = { Text = Running, Style = (null) }, HealthStatus = (null) ExitCode = (null), EnvironmentVariables = { PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin }, Urls = { http = http://localhost:58172, http target port = http://127.0.0.1:58174 }, Properties = { container.image = netaspireci.azurecr.io/sosedoff/pgweb:0.15.0, container.id = e8e0ecc80f4c6cde6ad039c1114750a8754ac6ac129de91c17595107ee11e36a, container.command = , container.args = System.Collections.Generic.List`1[System.String], container.ports = System.Collections.Immutable.ImmutableArray`1[System.Int32] }
| [2024-09-19T14:26:21] System.Net.Http.HttpClient.Default.ClientHandler Information: Received HTTP response headers after 571.1013ms - 404
| [2024-09-19T14:26:21] Polly Information: Execution attempt. Source: '-standard//Standard-Retry', Operation Key: '', Result: '404', Handled: 'False', Attempt: '0', Execution Time: 582.1358ms
| [2024-09-19T14:26:21] System.Net.Http.HttpClient.Default.LogicalHandler Information: End processing HTTP request after 602.8427ms - 404
| [2024-09-19T14:26:21] Aspire.Hosting.Dcp.ApplicationExecutor Debug: Log streaming for pg1-pgweb-gkejmzpt-477e5138 was cancelled.
| [2024-09-19T14:26:21] Aspire.Hosting.Dcp.ApplicationExecutor Debug: Log streaming for pg1-qpedzcbw-477e5138 was cancelled.

The HTTP request returns {"error":"connection refused","status":400}.

cc @Alirexaa

@davidfowl davidfowl added area-integrations Issues pertaining to Aspire Integrations packages testing ☑️ disabled-tests postgres Issues related to Postgres integrations labels Sep 19, 2024
@Alirexaa
Copy link
Contributor

Alirexaa commented Sep 19, 2024

@davidfowl, I ran the test locally and it passed.
I think connection refused occurs because the Postgres instance is not in a healthy state and we should wait for Postgres to be healthy.

@davidfowl
Copy link
Member Author

Hmm it was failing on my branch consistently. I wonder if anything affected it in that change…

@Alirexaa Alirexaa linked a pull request Sep 19, 2024 that will close this issue
16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-integrations Issues pertaining to Aspire Integrations packages disabled-tests postgres Issues related to Postgres integrations testing ☑️
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants