Thank you for resending the same link I sent you. That was not helpful. And like I pointed out your response to that user made little sense. Please specifically what the code I need to include in my project(s) to fix.
Only seems to be happening to my project, but I have changed nothing when it comes to this module and I believe it started to happen after a recent update with one of the ABP updates along the way. Hard to pinpoint when it started happening as it's not something that causes an error anywhere but I'd like to figure out what is causing it.
Don't know. I'm giving you all the error information. Seems like you answered a similar issue recently but your response to that user makes little sense. This is out of the box functionality that does not appear to be working for whatever reason.
https://support.abp.io/QA/Questions/4611/Error-message-after-migrate-from-v-440-to-V701-Blazor-Server-APP--Tired
Hi,
No steps to reproduce. It's just happening. Yes it happens with a new database as well.
I got past the initial error.....however the out of the box solution STILL does not work within a local docker environment. Actually I'm in a worse position now as the API does not even load properly now.
Can you please provide step by step documentation on how to get the out of the box solution you created to work within a local docker environment.
Again, I am using exactly the same version of ABP you used and cannot get it to run.
Thanks.
So, not surprisingly to me the out of the box solution produced using the version you specified be used does not even build, so I'll have to spend some time here first figuring out what the issue is in the build before trying out the solution you suggested.
Any assistance you could provide to the error I'm getting out of the box would be very helpful.
PS C:\bookstore\bookstore\etc\docker> .\run-docker.ps1 docker-compose : Creating network "bookstore-network" with driver "bridge" At C:\bookstore\bookstore\etc\docker\run-docker.ps1:16 char:1
+ CategoryInfo : NotSpecified: (Creating networ...driver "bridge":String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
[2/3] COPY bin/Release/net7.0/publish/ app/:
failed to compute cache key: "/bin/Release/net7.0/publish" not found: not found Service 'db-migrator' failed to build : Build failed
So, not surprisingly to me the out of the box solution produced using the version you specified be used does not even build, so I'll have to spend some time here first figuring out what the issue is in the build before trying out the solution you suggested.
Currently, the generated docker-compose.yml file for a tiered solution only has the 'web' service defined in it, but I'm more concerned about all the url settings needed to run ABP, such as the ones for oidc, etc
On which version did you come across this behavior? This problem should have been fixed on version 7.1.0-rc.
Here is the
docker-compose.yml
file I've just generated for a tiered mvc project named Acme.BookStore on latest rc version 7.1.0-rc.3:version: '3.7' services: bookstore-web: image: acme/bookstore-web:latest container_name: bookstore-web hostname: bookstore-web build: context: ../../ dockerfile: src/Acme.BookStore.Web/Dockerfile.local environment: - ASPNETCORE_URLS=https://+:443;http://+:80; - Kestrel__Certificates__Default__Path=/root/certificate/localhost.pfx - Kestrel__Certificates__Default__Password=91f91912-5ab0-49df-8166-23377efaf3cc - App__SelfUrl=https://localhost:44353 - AuthServer__RequireHttpsMetadata=false - AuthServer__IsContainerizedOnLocalhost=true - AuthServer__Authority=https://localhost:44334/ - RemoteServices__Default__BaseUrl=http://bookstore-api - RemoteServices__AbpAccountPublic__BaseUrl=http://bookstore-authserver - AuthServer__MetaAddress=http://bookstore-authserver - Redis__Configuration=redis ports: - "44353:443" depends_on: - bookstore-api restart: on-failure volumes: - ./certs:/root/certificate networks: - abp-network bookstore-api: image: acme/bookstore-api:latest container_name: bookstore-api hostname: bookstore-api build: context: ../../ dockerfile: src/Acme.BookStore.HttpApi.Host/Dockerfile.local environment: - ASPNETCORE_URLS=https://+:443;http://+:80; - Kestrel__Certificates__Default__Path=/root/certificate/localhost.pfx - Kestrel__Certificates__Default__Password=91f91912-5ab0-49df-8166-23377efaf3cc - App__SelfUrl=https://localhost:44354 - App__HealthCheckUrl=http://bookstore-api/health-status - AuthServer__RequireHttpsMetadata=false - AuthServer__Authority=http://bookstore-authserver - ConnectionStrings__Default=Data Source=sql-server;Initial Catalog=BookStore;User Id=sa;Password=myPassw0rd;MultipleActiveResultSets=true;TrustServerCertificate=True; - Redis__Configuration=redis ports: - "44354:443" depends_on: sql-server: condition: service_healthy redis: condition: service_healthy restart: on-failure volumes: - ./certs:/root/certificate networks: - abp-network bookstore-authserver: image: acme/bookstore-authserver:latest container_name: bookstore-authserver build: context: ../../ dockerfile: src/Acme.BookStore.AuthServer/Dockerfile.local environment: - ASPNETCORE_URLS=https://+:443;http://+:80; - App__SelfUrl=https://localhost:44334 - App__CorsOrigins=https://localhost:44353,https://localhost:44354 - AuthServer__RequireHttpsMetadata=false - AuthServer__Authority=http://bookstore-authserver - Kestrel__Certificates__Default__Path=/root/certificate/localhost.pfx - Kestrel__Certificates__Default__Password=91f91912-5ab0-49df-8166-23377efaf3cc - ConnectionStrings__Default=Data Source=sql-server;Initial Catalog=BookStore;User Id=sa;Password=myPassw0rd;MultipleActiveResultSets=true;TrustServerCertificate=True; - Redis__Configuration=redis ports: - "44334:443" depends_on: sql-server: condition: service_healthy redis: condition: service_healthy restart: on-failure volumes: - ./certs:/root/certificate networks: - abp-network db-migrator: image: acme/bookstore-db-migrator:latest container_name: db-migrator build: context: ../../ dockerfile: src/BookStore.DbMigrator/Dockerfile.local environment: - OpenIddict__Applications__BookStore_Web__RootUrl=https://localhost:44353 - OpenIddict__Applications__BookStore_Swagger__RootUrl=https://localhost:44354 - ConnectionStrings__Default=Data Source=sql-server;Initial Catalog=BookStore;User Id=sa;Password=myPassw0rd;MultipleActiveResultSets=true;TrustServerCertificate=True; depends_on: sql-server: condition: service_healthy networks: - abp-network sql-server: container_name: sql-server image: mcr.microsoft.com/mssql/server:2019-latest ports: - "1434:1433" environment: SA_PASSWORD: "myPassw0rd" ACCEPT_EULA: "Y" volumes: - sqldata:/var/opt/mssql networks: - abp-network healthcheck: test: /opt/mssql-tools/bin/sqlcmd -S sql-server -U sa -P "myPassw0rd" -Q "SELECT 1" -b -o /dev/null interval: 10s timeout: 3s retries: 10 start_period: 10s redis: container_name: redis image: redis:alpine ports: - "6379:6379" networks: - abp-network healthcheck: test: ["CMD", "redis-cli","ping"] volumes: sqldata: name: bookstore_sqldata networks: abp-network: name: bookstore-network driver: bridge
You can try to use this and update as you see fit.
As I indicated in the initial support ticket I am running 7.0.2. However let me take what you outlined and apply it to what my current docker-compose is currently.
Can you also show me what your OpenIddictApplications table looks like as well please?
Currently, the generated docker-compose.yml file for a tiered solution only has the 'web' service defined in it, but I'm more concerned about all the url settings needed to run ABP, such as the ones for oidc, etc
On which version did you come across this behavior? This problem should have been fixed on version 7.1.0-rc.
Here is the
docker-compose.yml
file I've just generated for a tiered mvc project named Acme.BookStore on latest rc version 7.1.0-rc.3:version: '3.7' services: bookstore-web: image: acme/bookstore-web:latest container_name: bookstore-web hostname: bookstore-web build: context: ../../ dockerfile: src/Acme.BookStore.Web/Dockerfile.local environment: - ASPNETCORE_URLS=https://+:443;http://+:80; - Kestrel__Certificates__Default__Path=/root/certificate/localhost.pfx - Kestrel__Certificates__Default__Password=91f91912-5ab0-49df-8166-23377efaf3cc - App__SelfUrl=https://localhost:44353 - AuthServer__RequireHttpsMetadata=false - AuthServer__IsContainerizedOnLocalhost=true - AuthServer__Authority=https://localhost:44334/ - RemoteServices__Default__BaseUrl=http://bookstore-api - RemoteServices__AbpAccountPublic__BaseUrl=http://bookstore-authserver - AuthServer__MetaAddress=http://bookstore-authserver - Redis__Configuration=redis ports: - "44353:443" depends_on: - bookstore-api restart: on-failure volumes: - ./certs:/root/certificate networks: - abp-network bookstore-api: image: acme/bookstore-api:latest container_name: bookstore-api hostname: bookstore-api build: context: ../../ dockerfile: src/Acme.BookStore.HttpApi.Host/Dockerfile.local environment: - ASPNETCORE_URLS=https://+:443;http://+:80; - Kestrel__Certificates__Default__Path=/root/certificate/localhost.pfx - Kestrel__Certificates__Default__Password=91f91912-5ab0-49df-8166-23377efaf3cc - App__SelfUrl=https://localhost:44354 - App__HealthCheckUrl=http://bookstore-api/health-status - AuthServer__RequireHttpsMetadata=false - AuthServer__Authority=http://bookstore-authserver - ConnectionStrings__Default=Data Source=sql-server;Initial Catalog=BookStore;User Id=sa;Password=myPassw0rd;MultipleActiveResultSets=true;TrustServerCertificate=True; - Redis__Configuration=redis ports: - "44354:443" depends_on: sql-server: condition: service_healthy redis: condition: service_healthy restart: on-failure volumes: - ./certs:/root/certificate networks: - abp-network bookstore-authserver: image: acme/bookstore-authserver:latest container_name: bookstore-authserver build: context: ../../ dockerfile: src/Acme.BookStore.AuthServer/Dockerfile.local environment: - ASPNETCORE_URLS=https://+:443;http://+:80; - App__SelfUrl=https://localhost:44334 - App__CorsOrigins=https://localhost:44353,https://localhost:44354 - AuthServer__RequireHttpsMetadata=false - AuthServer__Authority=http://bookstore-authserver - Kestrel__Certificates__Default__Path=/root/certificate/localhost.pfx - Kestrel__Certificates__Default__Password=91f91912-5ab0-49df-8166-23377efaf3cc - ConnectionStrings__Default=Data Source=sql-server;Initial Catalog=BookStore;User Id=sa;Password=myPassw0rd;MultipleActiveResultSets=true;TrustServerCertificate=True; - Redis__Configuration=redis ports: - "44334:443" depends_on: sql-server: condition: service_healthy redis: condition: service_healthy restart: on-failure volumes: - ./certs:/root/certificate networks: - abp-network db-migrator: image: acme/bookstore-db-migrator:latest container_name: db-migrator build: context: ../../ dockerfile: src/BookStore.DbMigrator/Dockerfile.local environment: - OpenIddict__Applications__BookStore_Web__RootUrl=https://localhost:44353 - OpenIddict__Applications__BookStore_Swagger__RootUrl=https://localhost:44354 - ConnectionStrings__Default=Data Source=sql-server;Initial Catalog=BookStore;User Id=sa;Password=myPassw0rd;MultipleActiveResultSets=true;TrustServerCertificate=True; depends_on: sql-server: condition: service_healthy networks: - abp-network sql-server: container_name: sql-server image: mcr.microsoft.com/mssql/server:2019-latest ports: - "1434:1433" environment: SA_PASSWORD: "myPassw0rd" ACCEPT_EULA: "Y" volumes: - sqldata:/var/opt/mssql networks: - abp-network healthcheck: test: /opt/mssql-tools/bin/sqlcmd -S sql-server -U sa -P "myPassw0rd" -Q "SELECT 1" -b -o /dev/null interval: 10s timeout: 3s retries: 10 start_period: 10s redis: container_name: redis image: redis:alpine ports: - "6379:6379" networks: - abp-network healthcheck: test: ["CMD", "redis-cli","ping"] volumes: sqldata: name: bookstore_sqldata networks: abp-network: name: bookstore-network driver: bridge
You can try to use this and update as you see fit.
As I indicated in the initial support ticket I am running 7.0.2. However let me take what you outlined and apply it to what my current docker-compose is currently.
We're preparing to guide explaining how to run ABP application using docker-compose on localhost environment. Postgres is not supported currently.
You need to update the docker-compose.yml file and update the sql-server service with a postgres image and update the connectionstrings based on that.
Afterwards, please share the problems you come across.
That is fine but I don't use Postgres inside a container docker. I have a local running postgres db installation and in fact I've had this working for a while.
My main issue is getting the 3 tiers (web, api and auth server) talking to each other within the separate containers. When can I expect this 'guide'? Currently, the generated docker-compose.yml file for a tiered solution only has the 'web' service defined in it, but I'm more concerned about all the url settings needed to run ABP, such as the ones for oidc, etc