Bug 1227493

Summary: mailgraph service will not start
Product: [Fedora] Fedora Reporter: Sjoerd Mullender <sjoerd>
Component: mailgraphAssignee: mk
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: bjohnson, frank, mk
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-24 19:40:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch fixing the problem none

Description Sjoerd Mullender 2015-06-02 19:46:05 UTC
Created attachment 1034004 [details]
patch fixing the problem

Description of problem:
When the system boots, a failure is reported for mailgraph.

Version-Release number of selected component (if applicable):
mailgraph-1.14-21.fc22.noarch

How reproducible:
100%

Steps to Reproduce:
1.Install mailgraph (and mailgraph-selinux if using selinux)
2.systemctl start mailgraph.service
3.systemctl status mailgraph.service

Actual results:
mailgraph.service doesn't start, systemctl status mailgraph.service says:

● mailgraph.service - mailgraph mail log file analyzer
   Loaded: loaded (/usr/lib/systemd/system/mailgraph.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2015-06-02 21:24:00 CEST; 35s ago
  Process: 619 ExecStart=/usr/sbin/mailgraph -d -l $MAILLOG --daemon-rrd=/var/lib/mailgraph $OPTIONS (code=exited, status=255)

Jun 02 21:24:00 taling.mullender.nl mailgraph[619]: Global symbol "$time" req...
Jun 02 21:24:00 taling.mullender.nl mailgraph[619]: Global symbol "$text" req...
Jun 02 21:24:00 taling.mullender.nl mailgraph[619]: Global symbol "$time" req...
Jun 02 21:24:00 taling.mullender.nl mailgraph[619]: Global symbol "$text" req...
Jun 02 21:24:00 taling.mullender.nl mailgraph[619]: Can't use global $1 in "m...
Jun 02 21:24:00 taling.mullender.nl mailgraph[619]: /usr/sbin/mailgraph has t...
Jun 02 21:24:00 taling.mullender.nl systemd[1]: mailgraph.service: control p...5
Jun 02 21:24:00 taling.mullender.nl systemd[1]: Failed to start mailgraph ma....
Jun 02 21:24:00 taling.mullender.nl systemd[1]: Unit mailgraph.service enter....
Jun 02 21:24:00 taling.mullender.nl systemd[1]: mailgraph.service failed.
Hint: Some lines were ellipsized, use -l to show in full.


Expected results:
mailgraph.service starts up.

Additional info:
The fix is simple.  There is a typo in /usr/sbin/mailgraph: replace "elseif" with "elsif".

Comment 1 Fedora Admin XMLRPC Client 2016-06-28 16:47:48 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 2 Fedora End Of Life 2016-07-19 14:29:46 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 3 Sjoerd Mullender 2016-09-28 17:19:12 UTC
Reopening since this is still an issue.
I must say, this is embarrassing.  The fix is totally trivial, and included in the report, but it is not applied.

I'll reiterate the fix:

sed -i 's/elseif/elsif/' /usr/sbin/mailgraph

Comment 4 mk 2016-09-28 19:28:06 UTC
Thanks Sjoerd for reporting this. I just pushed a fix to git [1], and have also submitted updates for F23, F24 and F25 that should soon be available in updates-testing.

[1] http://pkgs.fedoraproject.org/cgit/rpms/mailgraph.git/commit/?id=8958952e055a74d9f70562816d9e703744d74704

Comment 5 Fedora Update System 2016-09-28 20:51:43 UTC
mailgraph-1.14-26.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-0f1ff95358

Comment 6 Fedora Update System 2016-09-29 01:52:18 UTC
mailgraph-1.14-26.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-a1f6e004db

Comment 7 Fedora Update System 2016-09-29 02:49:21 UTC
mailgraph-1.14-26.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-e4226bdd8d

Comment 8 Fedora Update System 2016-10-09 02:47:57 UTC
mailgraph-1.14-26.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2016-10-09 06:21:16 UTC
mailgraph-1.14-26.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2016-10-09 09:22:40 UTC
mailgraph-1.14-26.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.