christianhuth / helm-charts

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

headwind not deploying with external prostgresql #1169

Closed h0jeZvgoxFepBQ2C closed 4 days ago

h0jeZvgoxFepBQ2C commented 1 month 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 1 month 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 1 month ago

Oh ok I see, thank you! ❤️

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

h-mdm commented 1 month 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 1 month 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
h0jeZvgoxFepBQ2C commented 2 weeks ago

Any idea about this? @h-mdm

christianhuth commented 4 days ago

As this is not related to the Helm Chart, I would ask you to create an Issue at the @h-mdm repository.