Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1227493 - mailgraph service will not start
Summary: mailgraph service will not start
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mailgraph
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: mk
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-02 19:46 UTC by Sjoerd Mullender
Modified: 2016-11-24 19:40 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-24 19:40:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
patch fixing the problem (350 bytes, patch)
2015-06-02 19:46 UTC, Sjoerd Mullender
no flags Details | Diff

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.


Note You need to log in before you can comment on or make changes to this bug.