MaRDI4NFDI / portal-compose

docker-composer repo for mardi
https://portal.mardi4nfdi.de
GNU General Public License v3.0
3 stars 1 forks source link

Fix certificate problem: https://docker.dev.fiz-karlsruhe.de/v2/ #440

Closed eloiferrer closed 10 months ago

eloiferrer commented 10 months ago

Issue description: There is a certificate problem that is causing problems in the staging environment (https://github.com/MaRDI4NFDI/portal-compose/actions/runs/7124239296/job/19398141105) and also locally.

This might impact the portal in the next automatic pull in a couple of hours.

This is the error: Get "https://docker.dev.fiz-karlsruhe.de/v2/": tls: failed to verify certificate: x509: certificate has expired or is not yet valid: current time 2023-12-07T05:36:37Z is after 2023-12-06T23:59:59Z

TODOS:

Acceptance-Criteria

Checklist for this issue:

physikerwelt commented 10 months ago

I created backup images on the server.

docker image tag docker.dev.fiz-karlsruhe.de/oai-provider:1.2.7 ghcr.io/mardi4nfdi/oai-provider:1.2.7
docker image tag docker.dev.fiz-karlsruhe.de/cassandra-backup:5.2  ghcr.io/mardi4nfdi/cassandra-backup:5.2
ocker image tag docker.dev.fiz-karlsruhe.de/oai-backend:1.2.8  ghcr.io/mardi4nfdioai-backend:1.2.8

now I just need to create a PAT and push them to gh... I wonder if I can get it done before the next meeting at 3pm

physikerwelt commented 10 months ago

The images have been backed up

docker login ghcr.io
docker image push ghcr.io/mardi4nfdi/oai-provider:1.2.7
docker image push ghcr.io/mardi4nfdi/cassandra-backup:5.2
docker image tag docker.dev.fiz-karlsruhe.de/oai-backend:1.2.8  ghcr.io/mardi4nfdi/oai-backend:1.2.8
docker image push ghcr.io/mardi4nfdi/oai-backend:1.2.8
rm ~/.docker/config.json
physikerwelt commented 10 months ago

The deployment fails


 mediawiki/template.env | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)
[+] Pulling 39/39
 ✔ cassandra-oai-setup Skipped - Image is already being pulled by cassandra-oai                                                                            0.0s 
 ✔ mysql-repl Skipped - Image is already being pulled by mysql                                                                                             0.0s 
 ✔ setup_prometheus Skipped - Image is already being pulled by setup_grafana                                                                               0.0s 
 ✔ wdqs-updater Skipped - Image is already being pulled by wdqs                                                                                            0.0s 
 ✔ wikibase_jobrunner Skipped - Image is already being pulled by wikibase                                                                                  0.0s 
 ✘ wikibase Error                                                                                                                                          0.6s 
 ✘ nginx Error                                                                                                                                             0.6s 
 ✘ node_exporter Error                                                                                                                                     0.6s 
 ✘ goaccess Error                                                                                                                                          0.6s 
 ✘ elasticsearch-oai Error                                                                                                                                 0.6s 
 ✘ elasticsearch Error                                                                                                                                     0.6s 
 ✘ matomo Error                                                                                                                                            0.6s 
 ✘ importer-api Error                                                                                                                                      0.6s 
 ✘ formulasearch Error                                                                                                                                     0.6s 
 ✘ mysql Error                                                                                                                                             0.6s 
 ✘ mongo Error                                                                                                                                             0.6s 
 ✘ cassandra-backup Error                                                                                                                                  0.6s 
 ✘ elasticsearch-oai-setup Error                                                                                                                           0.6s 
 ✘ backup Error                                                                                                                                            0.6s 
 ✘ latexml Error                                                                                                                                           0.6s 
 ✘ importer Error                                                                                                                                          0.6s 
 ✘ jaeger Error                                                                                                                                            0.6s 
 ✘ cassandra-oai Error                                                                                                                                     0.6s 
 ✘ setup_grafana Error                                                                                                                                     0.6s 
 ✘ oai-backend Error                                                                                                                                       0.6s 
 ✘ grafana Error                                                                                                                                           0.6s 
 ✘ oai-provider Error                                                                                                                                      0.6s 
 ✘ portainer Error                                                                                                                                         0.6s 
 ✘ quickstatements Error                                                                                                                                   0.6s 
 ✘ prometheus Error                                                                                                                                        0.6s 
 ✘ wdqs Error                                                                                                                                              0.6s 
 ✘ uptime-kuma Error                                                                                                                                       0.6s 
 ✘ swmath_postgres Error                                                                                                                                   0.6s 
 ✘ wdqs-proxy Error                                                                                                                                        0.6s 
 ✘ watchtower Error                                                                                                                                        0.6s 
 ✘ wdqs-frontend Error                                                                                                                                     0.6s 
 ✘ scholia Error                                                                                                                                           0.6s 
 ✘ reverse-proxy Error                                                                                                                                     0.6s 
 ✘ whoami Error                                                                                                                                            0.6s 
Error response from daemon: Get "https://docker.dev.fiz-karlsruhe.de/v2/": tls: failed to verify certificate: x509: certificate has expired or is not yet valid: current time 2023-12-07T16:20:48+01:00 is after 2023-12-06T23:59:59Z
physikerwelt commented 10 months ago

This was fixed by our admins very timely. It now works again.