future-hospital-70237
05/16/2025, 6:19 AMError authenticating email client: 530 Username or passwd is NULL [@sm050103]
. Any suggestion on where to check or how to debug this ?jolly-florist-66728
05/16/2025, 6:19 AM530 Username or passwd is NULL
indicates that either the SMTP username or password is not being correctly passed to the Flyte email notification system. This usually means the secret is not being mounted or referenced properly in your Flyte configuration or Kubernetes environment.
To debug, ensure the following:
- The secret containing the SMTP password is created in the correct Kubernetes namespace (e.g., with kubectl create secret ...).
- The Flyte notification config references the secret name and key correctly, e.g., smtpPasswordSecretName: <your-secret-name>
.
- The secret is mounted as an environment variable or file, and Flyte has access to it. Double-check the spelling and case of the secret name and key.
- Review the Flyte config for the emailer section, as shown in the SMTP notification example and SMTP PR setup instructions.
Would you like a step-by-step checklist or example YAML for setting up SMTP secrets in Flyte?
Sources:
- What's new in Flyte 1.13.2: SMTP notification example
- Flyte PR: Introduced SMTP notification (setup instructions) ๐ 0 button ๐ 0 button ๐ก Hint: Mention @runllm in the thread for followups.future-hospital-70237
05/16/2025, 6:21 AMjolly-florist-66728
05/16/2025, 6:21 AMkubectl create secret generic smtp_ses_password --from-literal=smtp_password=<YOUR_SMTP_PASSWORD> -n flyte
Replace <YOUR_SMTP_PASSWORD>
and flyte
with your actual password and namespace.
2. Reference the secret in your Flyte notification config:
In your Flyte configuration (e.g., flyte-single-binary-local.yaml
or Helm values), set up the notifications section like this:
notifications:
type: sandbox
emailer:
emailServerConfig:
serviceName: smtp
smtpServer: <your-smtp-server>
smtpPort: 25
smtpUsername: <your-smtp-username>
smtpPasswordSecretName: smtp_ses_password
subject: "Notice: Execution \"{{ name }}\" has {{ phase }} in \"{{ domain }}\"."
sender: "<your-sender-email>"
body: >
Execution \"{{ name }}\" has {{ phase }} in \"{{ domain }}\". View details at
<a href=\"http://example.com/projects/{{ project }}/domains/{{ domain }}/executions/{{ name }}\">workflow execution</a>
- smtpPasswordSecretName
must match the Kubernetes secret name.
- The key inside the secret should be smtp_password
(as created above).
3. Mount the secret as an environment variable or file:
Flyte will automatically mount the secret if configured as above. No extra steps are needed if you use the default setup.
4. Restart Flyte pods:
After updating the config or secrets, restart the Flyte pods to pick up the changes.
5. Check logs for errors:
If you still see authentication errors, describe the pod and check the environment variables or mounted files to ensure the secret is present.
References:
- Flyte SMTP notification setup example
- Flyte PR: Introduced SMTP notification (setup instructions)
Let me know if you need a sample Helm values snippet or further troubleshooting steps!
Sources:
- Flyte PR: Introduced SMTP notification (setup instructions)
- Flyte SMTP notification setup example ๐ 0 button ๐ 0 button ๐ก Hint: Mention @runllm in the thread for followups.future-hospital-70237
05/16/2025, 6:25 AMjolly-florist-66728
05/16/2025, 6:25 AMfuture-hospital-70237
05/16/2025, 6:27 AMsmtp_ses_password
and the literal
must be smtp_password
. And then use the smtp_ses_password
as smtpPasswordSecretName
value, and restart the pod. Flyte should automatically creates the file in the /etc/secrets/smtp_ses_password
. Is that correct @ancient-wolf-19325?jolly-florist-66728
05/16/2025, 6:27 AMfuture-hospital-70237
05/16/2025, 6:32 AM_
, and for this question "Would you like instructions on how to check the mounted secret file inside the pod?" yes pleasejolly-florist-66728
05/16/2025, 6:32 AM_
). Use dashes (-
) instead, e.g., smtp-ses-password
(Kubernetes docs). The key inside the secret (e.g., smtp_password
) can contain underscores.
To check the mounted secret file inside the pod:
1. Exec into the pod:
kubectl exec -it <pod-name> -n <namespace> -- /bin/sh
2. List files in `/etc/secrets/`:
ls /etc/secrets/
You should see a file or directory named after your secret, e.g., smtp-ses-password
.
3. View the contents (for debugging only, do not print secrets in production):
cat /etc/secrets/smtp-ses-password/smtp_password
Would you like more detail on troubleshooting if the file is missing?
Sources:
- https://github.com/flyteorg/flyte/issues/3053
- https://github.com/flyteorg/flyte/blob/master/docs/user_guide/productionizing/secrets.md ๐ 0 button ๐ 0 button ๐ก Hint: Mention @runllm in the thread for followups.future-hospital-70237
05/16/2025, 7:06 AMsmtp_password
as the key, made sure that the secret is created properly, but I don't see the /etc/secrets/smtp-ses-password
, what could be wrong ?jolly-florist-66728
05/16/2025, 7:06 AM