-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
gomail: could not send email 1: gomail: invalid address "": mail: no address #18613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This error implies that something tried to send an email to a user with an empty email address. As far as the mailer is concerned the mail was to no-one and had no information at all it. That's why there's no information. The only thing I can think of is that there is a difference in format of the mail messages on the queue as compared to previously - but I can't see any convincing evidence of that in the source code. (When you shutdown gitea before upgrading it's generally recommended that you flush your queues so that on startup there isn't anything the queue in case there are version changes. ) |
But 1848 times in less than 1 second? My user has defined email address. And before the restart I tested my new sync mirror problems (#18607). Maybe it has something to do with this?
How can I flush the queue? |
Something has run
That may well be - but something has tried to send these emails to something without an email address... There might be more information higher up in the logs.
Possibly. It raises the likelihood that your queues are completely corrupt. What is your queue configuration? Do you have multiple Gitea heads? You might be better off clearing them out and starting again.
Or flush each queue manually from the monitoring page. |
I don't have any special [queue.*] configuration. But now I added:
Thx. Should this be done on every Gitea Update? Where is the queue stored? Memcached? DB?
|
How are you running gitea? Are you running multiple Giteas in a cluster? You can check your queue configuration on monitor, review any queue and it will tell you what the inferred configuration is for that queue. On disk queues will store their data by default in In most cases the queue will be a persistable-channel (meaning that there will generally be two or possibly three queues listed) A persistable-channel queue are two queues tied together:
Whilst Gitea is running the in memory channel is used. On shutdown any unprocessed entries are persisted down to the disk queue. On startup the disk queue is emptied with new entries being added and processed from the memory channel. A level queue just has the on disk version. If you're running multiple gitea heads you should use a redis queue. |
No. Single instance. Prevompiled gitea--linux-amd64
Thx. |
@zeripath should this be closen? I didn't see this error anymore. |
If it's no longer happening then we can close |
Uh oh!
There was an error while loading. Please reload this page.
Gitea Version
1.16.0
Git Version
2.25.1
Operating System
Ubuntu 20.04.3
How are you running Gitea?
Precompiled gitea-1.16.0-linux-amd64
Database
PostgreSQL
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Description
During gitea restart I saw this
errors 1848 times in one row in the log.
My questions:
Screenshots
No response
The text was updated successfully, but these errors were encountered: