sympa-community / sympa

Sympa, Mailing List Management Software
https://www.sympa.community/sympa
GNU General Public License v2.0
241 stars 95 forks source link

DIED: Can't locate object method "extended_headers" via package "Mail::DKIM::Signer" #1685

Closed maxCSA closed 11 months ago

maxCSA commented 1 year ago

Note by admin: This is a problem specific to RPM distribution in EPEL 7 repository only.


Version

6.2.72-2.el7 (EPEL)

Installation method

EPEL on RHEL 7

Expected behavior

Send email as usual

Actual behavior

Crash with the following error message: Jun 13 11:13:25 mx bulk[3285]: err main::#160 > Sympa::Spindle::spin#83 > Sympa::Spindle::ProcessOutgoing::_twist#412 > Sympa::Message::dkim_sign#475 DIED: Can't locate object method "extended_headers" via package "Mail::DKIM::Signer" at /usr/share/sympa/lib/Sympa/Message.pm line 475.

Steps to reproduce

Send any message to any list

Additional information

Once crashed, no message can be sent. I had this error right after fixing this other bug : https://github.com/sympa-community/sympa/issues/1681

DKIM package is installed

rpm -q perl-Mail-DKIM
perl-Mail-DKIM-0.39-8.el7.noarch
ikedas commented 1 year ago

Hi @maxCSA , thank you for reporting the problem.

This is a problem specific to RPM distribution in EPEL 7 repository.

I prepare a patch for now. Could you please apply it and check if the problem will be solved?

ikedas commented 1 year ago

Hi @maxCSA again,

The patch has been updated. Please apply this patch and check if the problem will be solved.

xavierba commented 1 year ago

@maxCSA could you please give a try at this build ? https://koji.fedoraproject.org/koji/taskinfo?taskID=102138575 It has both the Requires for perl-Mail-AuthenticationResults added and the patch from @ikedas. I'll push it to EPEL 7 testing repo once I'll have your feedback

maxCSA commented 1 year ago

@xavierba I tested the packages and I had no problem.

I'm not that familiar with this kind of testing, so just to be sure, I downloaded and installed sympa-6.2.72-3.el7.x86_64.rpm and sympa-nginx-6.2.72-3.el7.x86_64.rpm (downloaded from here : https://koji.fedoraproject.org/koji/buildinfo?buildID=2215304). It automatically installed the perl-Mail-AuthenticationResults depedency. Once done, I got a nice "Powered by Sympa 6.2.72" on the web interface and no more "DIED" error when sending message.

Thanks to @ikedas for the quick fix.

xavierba commented 1 year ago

@maxCSA you did it right, sorry for not giving more directions for testing. I'll submit the package to EPEL 7 testing. Please make sure to let us know if you find more issues. I believe the patch is just a stop gap workaround until a better integrated fix can be worked on by @ikedas. That being said, I'm going to be out until next monday evening starting end of the afternoon, I'll probably not be able to do much until next Tuesday.

xavierba commented 1 year ago

Here's the tracking link for the update: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-ea3f56bcc8 It will go to EPEL 7 stable repository in 7 days. The delay can be shorter if it receives enough positive karma.

ikedas commented 11 months ago

The problematic behavior has been fixed on the downstream. This issue is closed.

ikedas commented 11 months ago

Thanks for reporting & fixing, @maxCSA & @xavierba !