Bug 1060385
| Summary: | Logconv.pl with an empty access log gives lots of errors | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Sankar Ramalingam <sramling> | |
| Component: | 389-ds-base | Assignee: | Rich Megginson <rmeggins> | |
| Status: | CLOSED ERRATA | QA Contact: | Sankar Ramalingam <sramling> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 6.0 | CC: | jgalipea, mreynolds, nhosoi, nkinder, rmeggins, srkrishn | |
| Target Milestone: | rc | |||
| Target Release: | 6.6 | |||
| Hardware: | All | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | 389-ds-base-1.2.11.15-34.el6 | Doc Type: | Bug Fix | |
| Doc Text: |
Cause: Trying to process an empty log file
Consequence: The script fails to run, and reports a series of Perl errors.
Fix: Check and ignore empty log files
Result: The script can correctly identify and handle an empty log file.
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 1108872 (view as bug list) | Environment: | ||
| Last Closed: | 2014-10-14 07:52:58 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: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1108872 | |||
|
Description
Sankar Ramalingam
2014-02-01 02:14:51 UTC
Upstream ticket: https://fedorahosted.org/389/ticket/47713 Fixed upstream.
Verification steps:
[1] Create empty log file:
# touch /tmp/access
[2] Run logconv
# logconv.pl /tmp/access
[3] There should not be any Perl errors, and the script should report the empty log file: "Skipping empty access log (/tmp/access)..."
This bug has been verified as shown below: [root@hp-ms-01-c04 ~]# touch /tmp/access3 [root@hp-ms-01-c04 ~]# logconv.pl /tmp/access3 Access Log Analyzer 8.0 Command: logconv.pl /tmp/access3 Processing 1 Access Log(s)... [001] /tmp/access3 size (bytes): 0 Skipping empty access log (/tmp/access3)... There was no logging to process, exiting... Cleaning up temp files... Done. This was tested on build number:1.2.11.15-38-389-ds-base Marking the bug as Verified, based on the previous comment from Sriram, Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2014-1385.html |