appsmithorg / appsmith

Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
https://www.appsmith.com
Apache License 2.0
34.63k stars 3.74k forks source link

[Bug]: applicationConfig settings not being picked up (ex: mail) #35574

Open joaocc opened 3 months ago

joaocc commented 3 months ago

Is there an existing issue for this?

Description

We are trying to deploy appsmith-ee chart v3.3.0 and we defined .applicationConfig to set email related settings:

  APPSMITH_MAIL_ENABLED: "true"
  APPSMITH_MAIL_SMTP_AUTH: "true"
  APPSMITH_MAIL_SMTP_TLS_ENABLED: "true"
  APPSMITH_MAIL_HOST: smtp.sendgrid.net
  APPSMITH_MAIL_PORT: "587"
  APPSMITH_MAIL_USERNAME: apikey
  APPSMITH_MAIL_PASSWORD: xxxxx
  APPSMITH_MAIL_FROM: no-reply@something.domain.here
  APPSMITH_REPLY_TO: no-reply-to@something.domain.here

However, in https://myserver/settings/email the corresponding fields are empty.

This also happens if the values are passed as env-variables using de .secret field.

In both cases, a shell in the pod shows the variables to the correct values.

Steps To Reproduce

deploy using helm chart values.yaml file containing

applicationConfig:
(...)
  APPSMITH_MAIL_ENABLED: "true"
  APPSMITH_MAIL_SMTP_AUTH: "true"
  APPSMITH_MAIL_SMTP_TLS_ENABLED: "true"
  APPSMITH_MAIL_HOST: smtp.sendgrid.net
  APPSMITH_MAIL_PORT: "587"
  APPSMITH_MAIL_USERNAME: apikey
  APPSMITH_MAIL_PASSWORD: xxxxx
  APPSMITH_MAIL_FROM: no-reply@something.domain.here
  APPSMITH_REPLY_TO: no-reply-to@something.domain.here
(...)

Login for the first time, go the email configuration page

Public Sample App

No response

Environment

Production

Severity

High (Blocker to building or releasing)

Issue video log

No response

Version

self-hosted, appsmith-ee:v1.32 (chart 3.3.0)

cdolan92 commented 3 weeks ago

I have the same issue. In my case, nearly all .env variables are not functioning - including a MongoDB URI. Most of the .env variables listed here are incorrect or outdated; https://docs.appsmith.com/getting-started/setup/environment-variables#client-logging

Did you find any work around to this @joaocc ? We're unable to get underway with this because we can't even get the box configured properly.

Nikhil-Nandagopal commented 3 weeks ago

@cdolan92 in this issue, the env variables are only not showing on the UI. But all of them will work. If you are having trouble with the setup, you can reach out to support@appsmith.com to debug why the configuration is incorrect.

cdolan92 commented 3 weeks ago

Hey Nikhil,

Thanks for replying. In my experience the variables were not in the UI, I agree, but it did not appear they were properly being set in the background, either.

For example after deploying if a user tried to use the Forgot Password Link, a warning popped up indicating that email was not configured. Using the reset form did not ultimately send an email, either.

At this point I have to move onto using a different self-install option after trying to debug these configuration issues off and on for a few days. I'll check in on Appsmith next time I've got an opportunity!

Nikhil-Nandagopal commented 3 weeks ago

@cdolan92 sorry to hear that! If you configure it via the UI it should work fine, reach out to us if you need help debugging this.