full-stack-fastapi-template icon indicating copy to clipboard operation
full-stack-fastapi-template copied to clipboard

Traefik errors and lack of ports on Vanilla generated project

Open nhooey opened this issue 4 years ago • 0 comments

When I generate a vanilla project, I get the following errors in Traefik when --log.level=DEBUG is added to the list of parameters in the command section of the proxy service of the docker-compose.yml file.

There are also no ports defined, so nothing can route to the Docker services.

Docker services without ports:

$ docker service ls
ID                  NAME                     MODE                REPLICAS            IMAGE                   PORTS
r03uhk3bmf18        foo-ai_backend        replicated          1/1                 backend:prod
saske9m62zuk        foo-ai_celeryworker   replicated          1/1                 celeryworker:prod
fkcfig3gnyfu        foo-ai_db             replicated          1/1                 postgres:12
0ypc3dugh0sz        foo-ai_flower         replicated          0/1                 mher/flower:latest
zde06687r304        foo-ai_frontend       replicated          1/1                 frontend:prod
o0n82j04z1nl        foo-ai_pgadmin        replicated          1/1                 dpage/pgadmin4:latest
uumvz5vurtub        foo-ai_proxy          replicated          1/1                 traefik:v2.2
1vlcziehost8        foo-ai_queue          replicated          1/1                 rabbitmq:3

Traefik error messages:

[email protected]    | time="2020-11-20T23:21:31Z" level=debug msg="Filtering disabled container" providerName=docker container=foo-ai-queue-xwyn793nym649tvx6gwn1q8l0
[email protected]    | time="2020-11-20T23:21:31Z" level=debug msg="Filtering disabled container" providerName=docker container=foo-ai-db-uei76h3qftfp8hjnkc2aok0co
[email protected]    | time="2020-11-20T23:21:31Z" level=debug msg="Container pruned by constraint expression: \"Label(`traefik.constraint-label-stack`, `foo.ai`)\"" providerName=docker container=foo-ai-pgadmin-p66knn54yzv24w16cf1renzei
[email protected]    | time="2020-11-20T23:21:31Z" level=debug msg="Filtering disabled container" container=foo-ai-celeryworker-6aabujem3m5ahoigp7vvewp3t providerName=docker
[email protected]    | time="2020-11-20T23:21:31Z" level=debug msg="Container pruned by constraint expression: \"Label(`traefik.constraint-label-stack`, `foo.ai`)\"" providerName=docker container=foo-ai-proxy-wts9xpxsn5o7fddwu838enjsi
[email protected]    | time="2020-11-20T23:21:31Z" level=debug msg="Configuration received from provider docker: {\"http\":{\"routers\":{\"foo-ai-backend-http\":{\"service\":\"foo-ai-backend\",\"rule\":\"PathPrefix(`/api`) || PathPrefix(`/docs`) || PathPrefix(`/redoc`)\"},\"foo-ai-frontend-http\":{\"service\":\"foo-ai-frontend\",\"rule\":\"PathPrefix(`/`)\"}},\"services\":{\"foo-ai-backend\":{\"loadBalancer\":{\"servers\":[{\"url\":\"http://10.0.3.14:80\"}],\"passHostHeader\":true}},\"foo-ai-frontend\":{\"loadBalancer\":{\"servers\":[{\"url\":\"http://10.0.3.6:80\"}],\"passHostHeader\":true}}}},\"tcp\":{},\"udp\":{}}" providerName=docker
[email protected]    | time="2020-11-20T23:21:31Z" level=info msg="Skipping same configuration" providerName=docker
[email protected]    | time="2020-11-20T23:21:46Z" level=debug msg="Filtering disabled container" providerName=docker container=foo-ai-queue-xwyn793nym649tvx6gwn1q8l0
[email protected]    | time="2020-11-20T23:21:46Z" level=debug msg="Filtering disabled container" container=foo-ai-db-uei76h3qftfp8hjnkc2aok0co providerName=docker
[email protected]    | time="2020-11-20T23:21:46Z" level=debug msg="Container pruned by constraint expression: \"Label(`traefik.constraint-label-stack`, `foo.ai`)\"" container=foo-ai-pgadmin-p66knn54yzv24w16cf1renzei providerName=docker
[email protected]    | time="2020-11-20T23:21:46Z" level=debug msg="Container pruned by constraint expression: \"Label(`traefik.constraint-label-stack`, `foo.ai`)\"" providerName=docker container=foo-ai-proxy-wts9xpxsn5o7fddwu838enjsi
[email protected]    | time="2020-11-20T23:21:46Z" level=debug msg="Configuration received from provider docker: {\"http\":{\"routers\":{\"foo-ai-frontend-http\":{\"service\":\"foo-ai-frontend\",\"rule\":\"PathPrefix(`/`)\"}},\"services\":{\"foo-ai-frontend\":{\"loadBalancer\":{\"servers\":[{\"url\":\"http://10.0.3.6:80\"}],\"passHostHeader\":true}}}},\"tcp\":{},\"udp\":{}}" providerName=docker
[email protected]    | time="2020-11-20T23:21:46Z" level=debug msg="No entryPoint defined for this router, using the default one(s) instead: [http]" routerName=foo-ai-frontend-http
[email protected]    | time="2020-11-20T23:21:46Z" level=debug msg="Creating middleware" routerName=foo-ai-frontend-http@docker serviceName=foo-ai-frontend middlewareName=pipelining middlewareType=Pipelining entryPointName=http
[email protected]    | time="2020-11-20T23:21:46Z" level=debug msg="Creating load-balancer" routerName=foo-ai-frontend-http@docker serviceName=foo-ai-frontend entryPointName=http
[email protected]    | time="2020-11-20T23:21:46Z" level=debug msg="Creating server 0 http://10.0.3.6:80" entryPointName=http routerName=foo-ai-frontend-http@docker serviceName=foo-ai-frontend serverName=0
[email protected]    | time="2020-11-20T23:21:46Z" level=debug msg="Added outgoing tracing middleware foo-ai-frontend" entryPointName=http routerName=foo-ai-frontend-http@docker middlewareType=TracingForwarder middlewareName=tracing
[email protected]    | time="2020-11-20T23:21:46Z" level=debug msg="Creating middleware" middlewareName=traefik-internal-recovery entryPointName=http middlewareType=Recovery
[email protected]    | time="2020-11-20T23:21:46Z" level=debug msg="No default certificate, generating one"

nhooey avatar Nov 20 '20 23:11 nhooey