christianhuth / helm-charts

Helm Charts for various Applications
https://charts.christianhuth.de
MIT License
39 stars 22 forks source link

headwind not deploying with external prostgresql #1169

Open h0jeZvgoxFepBQ2C opened 2 weeks ago

h0jeZvgoxFepBQ2C commented 2 weeks ago
adminEmail: technik@mydomain.com
baseDomain: mydomain.com

postgresql:
  enabled: false

externalPostgresql:
  hostname: myhost.com
  port: 25060
  auth:
    database:     database123
    password:     password123
    username:     username123
    # existingSecret:
    # userPasswordKey:

headwind:
  sharedSecret:
    secretValue: secret123

ingress: 
  enabled: true
  className: "nginx"
  tls:
    - secretName: tls-domain
      hosts:
      - mydomain.com

  hosts:
    - host: "mydomain.com"
      paths:
        - path: /
          pathType: ImplementationSpecific
persistence:
  enabled: true
  storageClass: do-block-storage

leads to?

grep: /usr/local/tomcat/work/init1.sql: No such file or directory
cat: /usr/local/tomcat/work/init1.sql: No such file or directory
rm: cannot remove '/usr/local/tomcat/work/init1.sql': No such file or directory
Can't open /privkey.pem for reading, No such file or directory
140141809620288:error:02001002:system library:fopen:No such file or directory:../crypto/bio/bss_file.c:69:fopen('/privkey.pem','r')
140141809620288:error:2006D080:BIO routines:BIO_new_file:no such file:../crypto/bio/bss_file.c:76:
unable to load private key
Importing keystore /usr/local/tomcat/ssl/hmdm.p12 to /usr/local/tomcat/ssl/hmdm.jks...
keytool error: java.io.FileNotFoundException: /usr/local/tomcat/ssl/hmdm.p12 (No such file or directory)
h-mdm commented 2 weeks ago

Headwind MDM uses a Tomcat web server which also requires keys for HTTPS. This issue is not related to the PostgreSQL location.

There are two ways to fix the issue.

  1. Provide Headwind MDM with the path to HTTPS keys (set HTTPS_LETSENCRYPT=false, and configure HTTPS_CERT, HTTPS_FULLCHAIN, HTTPS_PRIVKEY)

  2. Use HTTP on Tomcat instead of HTTPS (Tomcat works on port 8080). Set PROTOCOL=http

h0jeZvgoxFepBQ2C commented 2 weeks ago

Oh ok I see, thank you! ❤️

Is there a documentation somewhere to read about the settings which you mentioned?

h-mdm commented 2 weeks ago

Not yet... You can refer to .env.example and other Docker files in this repository: https://github.com/h-mdm/hmdm-docker

h0jeZvgoxFepBQ2C commented 2 weeks ago

It seems that the issue with the SSL certificate was fixed by PROTOCOL=http, but I still get now:

2024-10-21T12:58:49.988390402Z grep: /usr/local/tomcat/work/init1.sql: No such file or directory
2024-10-21T12:58:49.990414416Z cat: /usr/local/tomcat/work/init1.sql: No such file or directory
2024-10-21T12:58:49.992455253Z rm: cannot remove '/usr/local/tomcat/work/init1.sql': No such file or directory