El servicio esta ahora creado usando traefik.yml y el log me dice…
time = “2020-06-25T14: 29: 57Z” nivel = error msg = “No se puede agregar el certificado /uunn.local.cert para almacenar: no se puede generar el certificado TLS: tls: no se encontraron datos PEM en la entrada del certificado” tlsStoreName = default
Yo había corrido estos dos comandos
docker config create traefik_tls_cert servicios/certs/uunn.local.crt
docker secret create traefik_tls_key servicios/certs/uunn.local.key
como dice la documentación
Este es el log completo
time=“2020-06-25T15:27:13Z” level=info msg=“Configuration loaded from flags.”,
time=“2020-06-25T15:27:13Z” level=info msg=“Traefik version 2.2.1 built on 2020-04-29T18:02:09Z”,
time=“2020-06-25T15:27:13Z” level=info msg=“\nStats collection is disabled.\nHelp us improve Traefik by turning this feature on :)\nMore details on: https://docs.traefik.io/contributing/data-collection/\n”,
time=“2020-06-25T15:27:13Z” level=info msg=“Starting provider aggregator.ProviderAggregator {}”,
time=“2020-06-25T15:27:13Z” level=info msg=“Starting provider *file.Provider {"watch":true,"filename":"/etc/traefik/tls.toml"}”,
time=“2020-06-25T15:27:13Z” level=info msg=“Starting provider *traefik.Provider {}”,
time=“2020-06-25T15:27:13Z” level=info msg=“Starting provider *docker.Provider {"watch":true,"endpoint":"unix:///var/run/docker.sock","defaultRule":"Host({{ normalize .Name }})","swarmMode":true,"network":"traefik-public","swarmModeRefreshSeconds":15000000000}”,
time=“2020-06-25T15:27:13Z” level=error msg=“Unable to append certificate /uunn.local.cert to store: unable to generate TLS certificate : tls: failed to find any PEM data in certificate input” tlsStoreName=default,
time=“2020-06-25T15:27:14Z” level=error msg=“Unable to append certificate /uunn.local.cert to store: unable to generate TLS certificate : tls: failed to find any PEM data in certificate input” tlsStoreName=default,
time=“2020-06-25T15:27:14Z” level=error msg=“Unable to append certificate /uunn.local.cert to store: unable to generate TLS certificate : tls: failed to find any PEM data in certificate input” tlsStoreName=default,
time=“2020-06-25T15:27:28Z” level=error msg=“Unable to append certificate /uunn.local.cert to store: unable to generate TLS certificate : tls: failed to find any PEM data in certificate input” tlsStoreName=default,
time=“2020-06-25T15:27:43Z” level=error msg=“Unable to append certificate /uunn.local.cert to store: unable to generate TLS certificate : tls: failed to find any PEM data in certificate input” tlsStoreName=default,
time=“2020-06-25T15:27:58Z” level=error msg=“Unable to append certificate /uunn.local.cert to store: unable to generate TLS certificate : tls: failed to find any PEM data in certificate input” tlsStoreName=default,
Para el caso del servicio usando traefik.le.yml con Let’s Encrypt
No se levanta el servicio y tira este error el log
traefik_reverse-proxy.0.ihshj1ec47n3@maqui | 2020/06/25 15:31:43 command traefik error: failed to decode configuration from flags: field not found, node: uncoma
Nos interesa usar la opción con Let’s Encrypt como seguimos?
Gracias
Para el caso utilizando certificados provistos por el entorno:
en que dominio estás tratando de levantar? Si estás tratando de inicializar la configuración en un dominio que no es ‘uunn.local’ entonces tenés que generar nuevos certificados para el dominio en cuestión. En el repo (https://hub.siu.edu.ar/siu/expedientes/-/blob/develop/var/template_certs.txt) se incluye ese template de script en donde hay que reemplazar ‘uunn.local’ por el dominio en cuestión. Una vez hecho esto, recrear config y secret traefik_tls_cert y traefik_tls_key por los certificados generados.
Para el caso con lets encrypt:
Tengan en cuenta, que para que esto funcione, el dominio que elijan debe ser público y estar bajo su control.
Para ver que puede estar pasando, suban su archivo traefik.le.yml con las modificaciones que hayan hecho