Project

General

Profile

Actions

tickets #136058

closed

Discourse missing "receive-mail"

Added by crameleon over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Forum
Target version:
-
Start date:
2023-09-19
Due date:
% Done:

0%

Estimated time:

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.

Actions #1

Updated by crameleon over 1 year ago

  • Private changed from Yes to No
Actions #2

Updated by hellcp over 1 year ago

Actions #3

Updated by crameleon over 1 year ago

  • Status changed from New to In Progress
  • Assignee changed from hellcp to crameleon

Thanks!

Actions #4

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>'
Actions #5

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

Actions #6

Updated by crameleon over 1 year ago

  • Status changed from In Progress to Workable
Actions #7

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

Actions #8

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?

Actions #9

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

Actions

Also available in: Atom PDF