Bug 1895580 - mrtg.service fails to start: Can't locate locale.pm
Summary: mrtg.service fails to start: Can't locate locale.pm
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mrtg
Version: 33
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Vitezslav Crhonek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-11-07 09:43 UTC by Juan Orti Alcaine
Modified: 2020-11-18 02:19 UTC (History)
2 users (show)

Fixed In Version: mrtg-2.17.7-7.fc33
Clone Of:
Environment:
Last Closed: 2020-11-18 02:19:39 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Juan Orti Alcaine 2020-11-07 09:43:42 UTC
Description of problem:
When starting mrtg.service it fails with the error:

mrtg[140865]: Can't locate locale.pm in @INC (you may need to install the locale module) (@INC contains: /usr/bin/../lib64/mrtg2 /usr/bin /usr/local/lib64/perl5/5.32 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /usr/bin/../lib64/mrtg2/locales_mrtg.pm line 137.

Version-Release number of selected component (if applicable):
mrtg-2.17.7-6.fc33.x86_64

How reproducible:
Always

Steps to Reproduce:
1. dnf install -y mrtg
2. systemctl enable --now mrtg.timer
3. systemctl status mrtg.service

Actual results:

nov 07 10:37:42 systemd[1]: Started Multi-router Traffic Grapher.
nov 07 10:37:42 mrtg[140865]: Can't locate locale.pm in @INC (you may need to install the locale module) (@INC contains: /usr/bin/../lib64/mrtg2 /usr/bin /usr/local/lib64/perl5/5.32 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /usr/bin/../lib64/mrtg2/locales_mrtg.pm line 137.
nov 07 10:37:42 mrtg[140865]: BEGIN failed--compilation aborted at /usr/bin/../lib64/mrtg2/locales_mrtg.pm line 137.
nov 07 10:37:42 mrtg[140865]: Compilation failed in require at /usr/bin/mrtg line 96.
nov 07 10:37:42 mrtg[140865]: BEGIN failed--compilation aborted at /usr/bin/mrtg line 96.
nov 07 10:37:42 systemd[1]: mrtg.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
nov 07 10:37:42 systemd[1]: mrtg.service: Failed with result 'exit-code'.

Expected results:
All dependencies installed

Additional info:

Comment 1 Juan Orti Alcaine 2020-11-07 09:46:24 UTC
Installing perl-locale fixes the issue

Comment 2 Vitezslav Crhonek 2020-11-09 11:08:08 UTC
Thank you, reproduced. I'll add perl-locale to requires.

Comment 3 Fedora Update System 2020-11-09 12:54:04 UTC
FEDORA-2020-533c422757 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-533c422757

Comment 4 Fedora Update System 2020-11-10 02:19:27 UTC
FEDORA-2020-533c422757 has been pushed to the Fedora 33 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-533c422757`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-533c422757

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2020-11-18 02:19:39 UTC
FEDORA-2020-533c422757 has been pushed to the Fedora 33 stable repository.
If problem still persists, 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.