Error sending email

After an user click the “SEND EMAIL” button in NocoDB the “Please check your email to reset the password” message appears on the page but in my self-hosted server occurs:

{“level”:50,“time”:1789992462735,“pid”:13,“hostname”:“f903b5103d12”,“req”:{“id”:“FF923DF5-BBC6-4458-8D05-366B593B049F”,“method”:“POST”,“url”:“/api/v1/auth/password/forgot”},“context”:“_0x276fcd”,“msg”:“Error sending email”}

and no email is sended to the user.

My stack variables are listed below:

services:
nocodb:
image: ‘nocodb/nocodb:latest’
restart: unless-stopped
environment:
NC_AUTH_JWT_SECRET: ‘xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx’
NC_DB: ‘xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx’
NC_DOCKER: ‘0.6’
NC_REDIS_URL: ‘redis://192.168.2.55:6379/4’
NC_TOOL_DIR: ‘/usr/app/data/’
NODE_ENV: ‘production’
PATH: ‘/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin’
PORT: ‘8080’
NC_SMTP_HOST: ‘smtp.gmail.com’
NC_SMTP_PORT: ‘587’
NC_SMTP_USERNAME: 'unionsindicaldeclase@gmail.com’
NC_SMTP_PASSWORD: ‘xxxxxxxxxxxxxxxxxxxxxxxx’
NC_SMTP_SECURE: ‘true’
NC_SITE_URL: ‘xxxxxxxxxxxxxxxxxxxxx’
NC_LOG_LEVEL: “debug”
ports:

  • ‘8080:8080’

What was wrong? Thanks in advance.

Please check your SMTP settings & SMTP provider if you can find out more why the email is throwing error. Since it self-hosted, its hard for us to figure the exact reason.

And we will improvise the surfacing of error to UI.

Hi,

I checked all my SMTP settings & SMTP provider and everything’s ok but again the log only shows:

{“level”:50,“time”:1790058830127,“pid”:12,“hostname”:“fd5a53a08a15”,“req”:{“id”:“88E0871C-D2F5-4029-AFF0-5E02D156AD43”,“method”:“POST”,“url”:“/api/v1/auth/password/forgot”},“context”:“_0x276fcd”,“msg”:“Error sending email”}

Is there a way to have more detail about this error?

Thanks again.

Hi,
I probably have the same trouble on my self-install with docker, no reset email sent…

How did you look into it ?

1.Get the name, in my case nocodb-nocodb-1:
~# docker ps -a --filter “name=nocodb”
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
8b4873d31fa3 nocodb/nocodb:latest “/usr/bin/dumb-init …” 13 hours ago Up 9 hours 0.0.0.0:8080->8080/tcp, [::]:8080->8080/tcp nocodb-nocodb-1

  1. tail the logs:
    ~# docker logs -f --tail 50 nocodb-nocodb-1

3.Throw the Reset your password page

4.Check the logs. In my case:
{“level”:50,“time”:1790109776936,“pid”:13,“hostname”:“8b4873d31fa3”,“req”:{“id”:“861F483B-206D-4CFD-87F0-40826F8B55C7”,“method”:“POST”,“url”:“/api/v1/auth/password/forgot”},“context”:“_0x276fcd”,“msg”:“Error sending email”}