tickets #136058
closedDiscourse missing "receive-mail"
0%
Description
Some emails are getting stuck in the mail queue on discourse01.i.o.o with the following error:
temporary failure. Command output: pipe: fatal: pipe_command: execvp /usr/bin/receive-mail: No such file or directory) noreply@forums.opensuse.org
I couldn't find what "receive-mail" is supposed to be.
Updated by hellcp over 1 year ago
It's a script from https://build.opensuse.org/package/show/openSUSE:infrastructure:discourse/rubygem-discourse_mail_receiver, it doesn't get generated correctly I guess
Updated by crameleon over 1 year ago
- Status changed from New to In Progress
- Assignee changed from hellcp to crameleon
Thanks!
Updated by crameleon over 1 year ago
- Assignee changed from crameleon to hellcp
The Salt states had various problems, I repaired some of them (wrong repository names and quoting), but eventually just installed the mentioned package manually to resolve the original problem.
Postfix processes the emails now, but the handler fails:
Sep 19 14:58:09 discourse01 receive-mail[5379]: Unexpected error while invoking mail processor: undefined method `exists?' for File:Class (NoMethodError)
Sep 19 14:58:09 discourse01 receive-mail[5379]: /usr/lib64/ruby/gems/3.2.0/gems/discourse_mail_receiver-4.0.7/lib/mail_receiver/mail_receiver_base.rb:8:in `initialize'
/usr/lib64/ruby/gems/3.2.0/gems/discourse_mail_receiver-4.0.7/lib/mail_receiver/discourse_mail_receiver.rb:11:in `initialize'
/usr/bin/receive-mail:12:in `new'
/usr/bin/receive-mail:12:in `<main>'
Updated by hellcp over 1 year ago
That's a change in ruby 3.2, exists?
alias for exist?
has been removed. It should be fairly straight forward to patch that, though I guess would also be nice to test if there weren't other changes we are missing that would prevent this from working
Updated by crameleon over 1 year ago
- Status changed from In Progress to Workable
Updated by hellcp over 1 year ago
I submitted some changes upstream, but didn't yet update the package https://github.com/discourse/mail-receiver/pull/13
Updated by crameleon over 1 year ago
Thank you! I suggest we wait a few days if they merge it and otherwise add a downstream patch?
Updated by hellcp over 1 year ago
- Tracker changed from communication to tickets
- Status changed from Workable to Resolved
I added a downstream patch to our package by now, let's call this resolved