CMCuritiba / extranet-cmc

Extranet da Câmara Municipal de Curitiba baseado em Plone 6 - Volto.
GNU General Public License v3.0
2 stars 1 forks source link

Corrigir erro 404 no acesso ao deploy local nas configurações do traefik. #58

Closed ramiroluz closed 10 months ago

ramiroluz commented 1 year ago

Corrigir erro 404 no acesso ao deploy local nas configurações do traefik.

image

Logs do Webserver - Traefik

(extranet-cmc) ramiro@silver-dragon:~/workspace/cmcuritiba/portal-volto/devops$ make logs-webserver 
++ tput setaf 2
++ tput sgr0
+ echo '==> Logs for webserver in dev '
==> Logs for webserver in dev 
+ docker --context dev service logs plone_traefik
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:27:18Z" level=info msg="Configuration loaded from flags."
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:27:18Z" level=info msg="Traefik version 2.10.5 built on 2023-10-11T13:54:02Z"
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:27:18Z" level=info msg="\nStats collection is disabled.\nHelp us improve Traefik by turning this feature on :)\nMore details on: https://doc.traefik.io/traefik/contributing/data-collection/\n"
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:27:18Z" level=info msg="Starting provider aggregator aggregator.ProviderAggregator"
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:27:18Z" level=info msg="Starting provider *traefik.Provider"
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:27:18Z" level=info msg="Starting provider *docker.Provider"
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:27:18Z" level=info msg="Starting provider *acme.ChallengeTLSALPN"
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:27:18Z" level=info msg="Starting provider *acme.Provider"
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:27:18Z" level=info msg="Testing certificate renew..." providerName=le.acme ACME CA="https://acme-v02.api.letsencrypt.org/directory"
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:27:19Z" level=warning msg="Defaulting to first available network (&{\"plone_nw-internal\" \"10.0.2.5\" '\\x00' \"\" \"mkbjyxgiczm9jta7g95msex09\"}) for container \"plone_frontend.2\"." serviceName=svc-frontend providerName=docker container=plone-frontend-v5i58y0ktx39vy5jwu2kvugnl
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:27:19Z" level=warning msg="Defaulting to first available network (&{\"plone_nw-internal\" \"10.0.2.7\" '\\x00' \"\" \"mkbjyxgiczm9jta7g95msex09\"}) for container \"plone_frontend.1\"." providerName=docker container=plone-frontend-zruw4b90v6xqkzmc3h7h7wjz7 serviceName=svc-frontend
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:27:19Z" level=warning msg="Defaulting to first available network (&{\"ingress\" \"10.0.0.4\" '\\x00' \"\" \"rnmhaxdw0s22z86ssf2gcbryg\"}) for container \"plone_traefik.1\"." container=plone-traefik-4uc7a9ng96ogprlb7xwd6i4qz serviceName=plone-traefik providerName=docker
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:27:19Z" level=error msg="service \"plone-traefik\" error: port is missing" providerName=docker container=plone-traefik-4uc7a9ng96ogprlb7xwd6i4qz
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:27:23Z" level=error msg="middleware \"gzip@docker\" does not exist" entryPointName=http routerName=frontend@docker
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:27:23Z" level=error msg="middleware \"gzip@docker\" does not exist" routerName=frontend@docker entryPointName=https
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:27:35Z" level=warning msg="Defaulting to first available network (&{\"plone_nw-internal\" \"10.0.2.5\" '\\x00' \"\" \"mkbjyxgiczm9jta7g95msex09\"}) for container \"plone_frontend.2\"." providerName=docker container=plone-frontend-v5i58y0ktx39vy5jwu2kvugnl serviceName=svc-frontend
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:27:35Z" level=warning msg="Defaulting to first available network (&{\"plone_nw-internal\" \"10.0.2.7\" '\\x00' \"\" \"mkbjyxgiczm9jta7g95msex09\"}) for container \"plone_frontend.1\"." container=plone-frontend-zruw4b90v6xqkzmc3h7h7wjz7 serviceName=svc-frontend providerName=docker
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:27:35Z" level=warning msg="Defaulting to first available network (&{\"ingress\" \"10.0.0.4\" '\\x00' \"\" \"rnmhaxdw0s22z86ssf2gcbryg\"}) for container \"plone_traefik.1\"." providerName=docker serviceName=plone-traefik container=plone-traefik-4uc7a9ng96ogprlb7xwd6i4qz
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:27:35Z" level=error msg="service \"plone-traefik\" error: port is missing" providerName=docker container=plone-traefik-4uc7a9ng96ogprlb7xwd6i4qz
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:27:43Z" level=error msg="Unable to obtain ACME certificate for domains \"portal-volto-local\": cannot get ACME client get directory at 'https://acme-v02.api.letsencrypt.org/directory': Get \"https://acme-v02.api.letsencrypt.org/directory\": dial tcp: lookup acme-v02.api.letsencrypt.org on 127.0.0.11:53: server misbehaving" providerName=le.acme ACME CA="https://acme-v02.api.letsencrypt.org/directory" routerName=rt-frontend@docker rule="Host(`portal-volto-local`)"
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:27:49Z" level=warning msg="Defaulting to first available network (&{\"plone_nw-internal\" \"10.0.2.5\" '\\x00' \"\" \"mkbjyxgiczm9jta7g95msex09\"}) for container \"plone_frontend.2\"." serviceName=svc-frontend providerName=docker container=plone-frontend-v5i58y0ktx39vy5jwu2kvugnl
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:27:49Z" level=warning msg="Defaulting to first available network (&{\"plone_nw-internal\" \"10.0.2.7\" '\\x00' \"\" \"mkbjyxgiczm9jta7g95msex09\"}) for container \"plone_frontend.1\"." providerName=docker container=plone-frontend-zruw4b90v6xqkzmc3h7h7wjz7 serviceName=svc-frontend
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:27:49Z" level=warning msg="Defaulting to first available network (&{\"ingress\" \"10.0.0.4\" '\\x00' \"\" \"rnmhaxdw0s22z86ssf2gcbryg\"}) for container \"plone_traefik.1\"." container=plone-traefik-4uc7a9ng96ogprlb7xwd6i4qz providerName=docker serviceName=plone-traefik
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:27:49Z" level=error msg="service \"plone-traefik\" error: port is missing" providerName=docker container=plone-traefik-4uc7a9ng96ogprlb7xwd6i4qz
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:28:04Z" level=warning msg="Defaulting to first available network (&{\"plone_nw-internal\" \"10.0.2.5\" '\\x00' \"\" \"mkbjyxgiczm9jta7g95msex09\"}) for container \"plone_frontend.2\"." providerName=docker container=plone-frontend-v5i58y0ktx39vy5jwu2kvugnl serviceName=svc-frontend
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:28:04Z" level=warning msg="Defaulting to first available network (&{\"plone_nw-internal\" \"10.0.2.7\" '\\x00' \"\" \"mkbjyxgiczm9jta7g95msex09\"}) for container \"plone_frontend.1\"." serviceName=svc-frontend providerName=docker container=plone-frontend-zruw4b90v6xqkzmc3h7h7wjz7
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:28:04Z" level=warning msg="Defaulting to first available network (&{\"ingress\" \"10.0.0.4\" '\\x00' \"\" \"rnmhaxdw0s22z86ssf2gcbryg\"}) for container \"plone_traefik.1\"." providerName=docker container=plone-traefik-4uc7a9ng96ogprlb7xwd6i4qz serviceName=plone-traefik
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:28:04Z" level=error msg="service \"plone-traefik\" error: port is missing" container=plone-traefik-4uc7a9ng96ogprlb7xwd6i4qz providerName=docker
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:28:19Z" level=warning msg="Defaulting to first available network (&{\"plone_nw-internal\" \"10.0.2.5\" '\\x00' \"\" \"mkbjyxgiczm9jta7g95msex09\"}) for container \"plone_frontend.2\"." providerName=docker container=plone-frontend-v5i58y0ktx39vy5jwu2kvugnl serviceName=svc-frontend
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:28:19Z" level=warning msg="Defaulting to first available network (&{\"plone_nw-internal\" \"10.0.2.7\" '\\x00' \"\" \"mkbjyxgiczm9jta7g95msex09\"}) for container \"plone_frontend.1\"." serviceName=svc-frontend providerName=docker container=plone-frontend-zruw4b90v6xqkzmc3h7h7wjz7
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:28:19Z" level=warning msg="Defaulting to first available network (&{\"ingress\" \"10.0.0.4\" '\\x00' \"\" \"rnmhaxdw0s22z86ssf2gcbryg\"}) for container \"plone_traefik.1\"." providerName=docker container=plone-traefik-4uc7a9ng96ogprlb7xwd6i4qz serviceName=plone-traefik
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:28:19Z" level=error msg="service \"plone-traefik\" error: port is missing" container=plone-traefik-4uc7a9ng96ogprlb7xwd6i4qz providerName=docker
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:28:19Z" level=warning msg="Defaulting to first available network (&{\"plone_nw-internal\" \"10.0.2.3\" '\\x00' \"\" \"mkbjyxgiczm9jta7g95msex09\"}) for container \"plone_backend.2\"." serviceName=svc-backend providerName=docker container=plone-backend-wrxkpqz870v0kfe8mtyfu3oah
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:28:19Z" level=warning msg="Defaulting to first available network (&{\"plone_nw-internal\" \"10.0.2.13\" '\\x00' \"\" \"mkbjyxgiczm9jta7g95msex09\"}) for container \"plone_backend.1\"." serviceName=svc-backend providerName=docker container=plone-backend-z3s8jql0hfed28ckozvy5i85a
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:28:19Z" level=error msg="middleware \"gzip@docker\" does not exist" entryPointName=https routerName=frontend@docker
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:28:19Z" level=error msg="middleware \"gzip@docker\" does not exist" entryPointName=http routerName=frontend@docker
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:28:19Z" level=error msg="middleware \"gzip@docker\" does not exist" entryPointName=https routerName=rt-backend-api@docker
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:28:19Z" level=error msg="middleware \"gzip@docker\" does not exist" entryPointName=https routerName=rt-backend-classic@docker
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:28:19Z" level=error msg="Unable to obtain ACME certificate for domains \"portal-volto-local\": cannot get ACME client get directory at 'https://acme-v02.api.letsencrypt.org/directory': Get \"https://acme-v02.api.letsencrypt.org/directory\": dial tcp: lookup acme-v02.api.letsencrypt.org on 127.0.0.11:53: server misbehaving" providerName=le.acme ACME CA="https://acme-v02.api.letsencrypt.org/directory" routerName=rt-frontend@docker rule="Host(`portal-volto-local`)"
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:28:34Z" level=warning msg="Defaulting to first available network (&{\"plone_nw-internal\" \"10.0.2.5\" '\\x00' \"\" \"mkbjyxgiczm9jta7g95msex09\"}) for container \"plone_frontend.2\"." providerName=docker container=plone-frontend-v5i58y0ktx39vy5jwu2kvugnl serviceName=svc-frontend
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:28:34Z" level=warning msg="Defaulting to first available network (&{\"plone_nw-internal\" \"10.0.2.7\" '\\x00' \"\" \"mkbjyxgiczm9jta7g95msex09\"}) for container \"plone_frontend.1\"." providerName=docker container=plone-frontend-zruw4b90v6xqkzmc3h7h7wjz7 serviceName=svc-frontend
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:28:34Z" level=warning msg="Defaulting to first available network (&{\"ingress\" \"10.0.0.4\" '\\x00' \"\" \"rnmhaxdw0s22z86ssf2gcbryg\"}) for container \"plone_traefik.1\"." providerName=docker container=plone-traefik-4uc7a9ng96ogprlb7xwd6i4qz serviceName=plone-traefik
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:28:34Z" level=error msg="service \"plone-traefik\" error: port is missing" providerName=docker container=plone-traefik-4uc7a9ng96ogprlb7xwd6i4qz
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:28:34Z" level=warning msg="Defaulting to first available network (&{\"plone_nw-internal\" \"10.0.2.3\" '\\x00' \"\" \"mkbjyxgiczm9jta7g95msex09\"}) for container \"plone_backend.2\"." providerName=docker serviceName=svc-backend container=plone-backend-wrxkpqz870v0kfe8mtyfu3oah
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:28:34Z" level=warning msg="Defaulting to first available network (&{\"plone_nw-internal\" \"10.0.2.13\" '\\x00' \"\" \"mkbjyxgiczm9jta7g95msex09\"}) for container \"plone_backend.1\"." container=plone-backend-z3s8jql0hfed28ckozvy5i85a serviceName=svc-backend providerName=docker
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:28:49Z" level=warning msg="Defaulting to first available network (&{\"plone_nw-internal\" \"10.0.2.5\" '\\x00' \"\" \"mkbjyxgiczm9jta7g95msex09\"}) for container \"plone_frontend.2\"." providerName=docker container=plone-frontend-v5i58y0ktx39vy5jwu2kvugnl serviceName=svc-frontend
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:28:49Z" level=warning msg="Defaulting to first available network (&{\"plone_nw-internal\" \"10.0.2.7\" '\\x00' \"\" \"mkbjyxgiczm9jta7g95msex09\"}) for container \"plone_frontend.1\"." container=plone-frontend-zruw4b90v6xqkzmc3h7h7wjz7 serviceName=svc-frontend providerName=docker
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:28:49Z" level=warning msg="Defaulting to first available network (&{\"ingress\" \"10.0.0.4\" '\\x00' \"\" \"rnmhaxdw0s22z86ssf2gcbryg\"}) for container \"plone_traefik.1\"." providerName=docker container=plone-traefik-4uc7a9ng96ogprlb7xwd6i4qz serviceName=plone-traefik
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:28:49Z" level=error msg="service \"plone-traefik\" error: port is missing" container=plone-traefik-4uc7a9ng96ogprlb7xwd6i4qz providerName=docker
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:28:49Z" level=warning msg="Defaulting to first available network (&{\"plone_nw-internal\" \"10.0.2.3\" '\\x00' \"\" \"mkbjyxgiczm9jta7g95msex09\"}) for container \"plone_backend.2\"." serviceName=svc-backend providerName=docker container=plone-backend-wrxkpqz870v0kfe8mtyfu3oah
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:28:49Z" level=warning msg="Defaulting to first available network (&{\"plone_nw-internal\" \"10.0.2.13\" '\\x00' \"\" \"mkbjyxgiczm9jta7g95msex09\"}) for container \"plone_backend.1\"." providerName=docker container=plone-backend-z3s8jql0hfed28ckozvy5i85a serviceName=svc-backend
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:29:04Z" level=warning msg="Defaulting to first available network (&{\"plone_nw-internal\" \"10.0.2.5\" '\\x00' \"\" \"mkbjyxgiczm9jta7g95msex09\"}) for container \"plone_frontend.2\"." providerName=docker container=plone-frontend-v5i58y0ktx39vy5jwu2kvugnl serviceName=svc-frontend
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:29:04Z" level=warning msg="Defaulting to first available network (&{\"plone_nw-internal\" \"10.0.2.7\" '\\x00' \"\" \"mkbjyxgiczm9jta7g95msex09\"}) for container \"plone_frontend.1\"." serviceName=svc-frontend providerName=docker container=plone-frontend-zruw4b90v6xqkzmc3h7h7wjz7
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:29:04Z" level=warning msg="Defaulting to first available network (&{\"ingress\" \"10.0.0.4\" '\\x00' \"\" \"rnmhaxdw0s22z86ssf2gcbryg\"}) for container \"plone_traefik.1\"." providerName=docker container=plone-traefik-4uc7a9ng96ogprlb7xwd6i4qz serviceName=plone-traefik
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:29:04Z" level=error msg="service \"plone-traefik\" error: port is missing" providerName=docker container=plone-traefik-4uc7a9ng96ogprlb7xwd6i4qz
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:29:04Z" level=warning msg="Defaulting to first available network (&{\"plone_nw-internal\" \"10.0.2.3\" '\\x00' \"\" \"mkbjyxgiczm9jta7g95msex09\"}) for container \"plone_backend.2\"." providerName=docker container=plone-backend-wrxkpqz870v0kfe8mtyfu3oah serviceName=svc-backend
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | time="2023-10-26T12:29:04Z" level=warning msg="Defaulting to first available network (&{\"plone_nw-internal\" \"10.0.2.13\" '\\x00' \"\" \"mkbjyxgiczm9jta7g95msex09\"}) for container \"plone_backend.1\"." providerName=docker container=plone-backend-z3s8jql0hfed28ckozvy5i85a serviceName=svc-backend
plone_traefik.1.4uc7a9ng96og@portal-volto.localhost    | 10.0.0.2 - - [26/Oct/2023:12:29:05 +0000] "GET / HTTP/1.1" 404 19 "-" "-" 1 "-" "-" 0ms
plone_traefik.1.m3yd4rtg7hrl@portal-volto.localhost    | time="2023-10-25T21:08:58Z" level=info msg="Configuration loaded from flags."
plone_traefik.1.m3yd4rtg7hrl@portal-volto.localhost    | time="2023-10-25T21:08:58Z" level=info msg="Traefik version 2.10.5 built on 2023-10-11T13:54:02Z"
plone_traefik.1.m3yd4rtg7hrl@portal-volto.localhost    | time="2023-10-25T21:08:58Z" level=info msg="\nStats collection is disabled.\nHelp us improve Traefik by turning this feature on :)\nMore details on: https://doc.traefik.io/traefik/contributing/data-collection/\n"
plone_traefik.1.m3yd4rtg7hrl@portal-volto.localhost    | time="2023-10-25T21:08:58Z" level=info msg="Starting provider aggregator aggregator.ProviderAggregator"
(extranet-cmc) ramiro@silver-dragon:~/workspace/cmcuritiba/portal-volto/devops$ 
ramiroluz commented 10 months ago

Faltava criar o site na stack de deploy local. O comando make stack-create-site resolve.

(extranet-cmc) ramiro@silver-dragon:~/workspace/cmcuritiba/portal-volto$ make stack-create-site

... ... ...

Requirement already satisfied: Products.Sessions in ./lib/python3.11/site-packages (from Products.PluggableAuthService->plone.protect->plone.app.z3cform->plone.app.relationfield->plone.app.linkintegrity->plone.api>=1.8.4->pas.plugins.oidc) (4.15)

[notice] A new release of pip is available: 23.3.1 -> 23.3.2 [notice] To update, run: python -m pip install --upgrade pip (extranet-cmc) ramiro@silver-dragon:~/workspace/cmcuritiba/portal-volto$