Hi all .. Receiving the below Error while trying ...
# general
g
Hi all .. Receiving the below Error while trying to deploy the Lightdash application. 2025-03-13 091552 [Lightdash] error: Failed to start Lightdash: self-signed certificate in certificate chain Could someone please assist on where do we need to mount this cert to ?
Copy code
> backend@0.1519.1 migrate-production /usr/app/packages/backend
> knex migrate:latest --knexfile dist/knexfile.js
 
Working directory changed to /usr/app/packages/backend/dist
WARNING: Using <http://localhost:8080> as the base SITE_URL for Lightdash. This is not suitable for production. Update with a top-level domain using https such as <https://lightdash.mycompany.com>
Using environment: production
Already up to date
WARNING: Using <http://localhost:8080> as the base SITE_URL for Lightdash. This is not suitable for production. Update with a top-level domain using https such as <https://lightdash.mycompany.com>
2025-03-13 09:15:52 [Lightdash] info: Starting Lightdash server...
2025-03-13 09:15:52 [Lightdash] warn: Missing "SLACK_CLIENT_ID", Slack App will not run
2025-03-13 09:15:52 [Lightdash] info:
   |     |     |     |     |     |     |
   |     |     |     |     |     |     |
   |     |     |     |     |     |     |  
\ | / \ | / \ | / \ | / \ | / \ | / \ | /
  \|/   \|/   \|/   \|/   \|/   \|/   \|/
------------------------------------------
Launch lightdash at <http://localhost:8080>
------------------------------------------
  /|\   /|\   /|\   /|\   /|\   /|\   /|\
/ | \ / | \ / | \ / | \ / | \ / | \ / | \
   |     |     |     |     |     |     |
   |     |     |     |     |     |     |
   |     |     |     |     |     |     |
2025-03-13 09:15:52 [Lightdash] error: Failed to start Lightdash: self-signed certificate in certificate chain
βœ… 1
p
πŸ‘‹ Thanks for your message - someone from the Lightdash support team will get back to you asap. Feel free to add any additional context to the thread here in the meantime (screenshots, app version if you're self-hosting etc.).
g
The Error Image : =================
i
hi @Geethika S Gireesh let me check if I can find the error in our codebase
g
Sure @Irakli
i
But I think the error is more about the certificate being self-signed rather than not found.
electric mint heart 1
I could not find the error in our codebase. Most likely, it’s coming from a third-party library. A key detail here is that you should not be using a self-signed certificate.
electric mint heart 1
g
oh okay.. I"ll check and will come back with further details.
@Irakli There is a code block as below :
Copy code
const keySet = hasJwtConfig
       ? await buildJwtKeySet({
             certificateFilePath: oidc.x509PublicKeyCertPath,
             certificateFile: oidc.x509PublicKeyCert,
             keyFilePath: oidc.privateKeyFilePath,
             keyFile: oidc.privateKeyFile,
         })
       : undefined;
need to figure out on where to update /set the mountpath as the certificate Path is undefined ? Any idea on that ?
i
Hi @Geethika S Gireesh, sorry for the very late response- I probably missed the notification 😞. Did you manage to get this working? Also, could you clarify what you meant by the above message?
need to figure out on where to update /set the mountpath as the certificate Path is undefined ? Any idea on that ?