Bug 9062 - Logs of MCC cannot work (without rsyslog)
Summary: Logs of MCC cannot work (without rsyslog)
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 8039
  Show dependency treegraph
 
Reported: 2013-02-13 15:16 CET by Pierre Jarillon
Modified: 2013-05-25 17:16 CEST (History)
5 users (show)

See Also:
Source RPM: drakconf
CVE:
Status comment:


Attachments

Description Pierre Jarillon 2013-02-13 15:16:53 CET
MCC -> Options -> Display Logs 
opens a popup window (Title: A tool to monitor your logs) in which I can read:
while openinng "/var/log/explanations" logfile: No such file or directory.

Using MCC never write anything else in this window called "A tool to monitor your logs".
This is useful to know the name of the processus especially with a localized version of MCC.
Comment 1 Manuel Hiebel 2013-02-14 13:22:24 CET
does it work if you install and enable rsyslog ?

Source RPM: (none) => drakconf

Comment 2 Pierre Jarillon 2013-02-14 14:25:31 CET
Yes!

But it should be useful to tell to the user that /var/log/explanations does exist and contains more informations.
This can be done with a text which appears at the top of the pop-up window when it is opened.
Is the button "Save" useful now? It could be replaced with "Show /var/log/explanations" with kwrite or vim.
Manuel Hiebel 2013-02-14 15:24:57 CET

Blocks: (none) => 8039
Assignee: bugsquad => thierry.vignaud
Summary: Logs of MCC cannot work => Logs of MCC cannot work (without rsyslog)

Glen Ogilvie 2013-03-27 11:10:01 CET

CC: (none) => nelg

Comment 3 Pierre Jarillon 2013-04-07 19:27:07 CEST
Mageia3 beta4: Just after a fresh install, the problem is still there :-(
Comment 4 Colin Guthrie 2013-04-29 20:38:37 CEST
I've pushed a change to svn that should now insist on installing a syslog-daemon. This is just a stop-gap. Long term we should ensure it's capable of talking to the journal directly (which should allow much better log experiences overall).

FWIW, I found two bugs in the mode of logdrak as used here...

1. When called with --explain=drakxtools, it searches the log for all occurrences of log items from this program. Nice in theory but not so much in practice as filtering function designed to work in the GUI helpfully makes all the tests fail and thus doesn't output any historical log snippets.

This should be fixed with this patch:


diff --git a/perl-install/standalone/logdrake b/perl-install/standalone/logdrake
index 145a38e..1977fee 100755
--- a/perl-install/standalone/logdrake
+++ b/perl-install/standalone/logdrake
@@ -264,8 +264,10 @@ sub parse_file {
       $test = sub { $_[0] !~ /$en/ };
   } elsif ($ey && !$en) {
       $test = sub { $_[0] =~ /$ey/ };
-  } else {
+  } elsif ($ey && $en) {
       $test = sub { $_[0] =~ /$ey/ && $_[0] !~ /$en/ };
+  } else {
+      $test = sub { 1 };
   }
 
   foreach (@all) {



Then it goes on to tail the file. It would appear to simply then output everything it finds in the file without handling the --explain filtering nor any other tests.

I kinda lost interest in patching it at this point. I don't see the point in fixing up years old bugs when this should get an almost complete reimplementation for the journal if anyone is truely interested.

I think this bug is sufficiently fixed for now (only issue remaining would be *starting* rsyslog or syslog-ng after installing them...)

CC: (none) => mageia, thierry.vignaud

Comment 5 Anne Nicolas 2013-05-01 17:19:33 CEST
Closing it. See also 8722

Status: NEW => RESOLVED
CC: (none) => ennael1
Resolution: (none) => FIXED

Comment 6 Morgan Leijström 2013-05-24 12:11:10 CEST
Reopening, fix is not complete;

I installed RC3 initially, since then updated.
I have syslog-ng installed (due to a forum tip), so viewing the logs in MCC works, and Ctrl-Alt-F12 shows log.  But with this, the MCC log window is plain empty!

It seems rsyslog is needed to the MCC own log  rsyslog.

I uninstalled syslog-ng, and in MCC main panel menu, enabled log, and now a message pops up telling syslog-daemon need to be installed.  What it actually install is rsyslog.  And only after reboot it worked.

So it seems MCC log wiewing specifically need rsyslog... It should then check for it and installit (and remove coflicting syslog-ng if it is installed)
(OR make it work with syslog-ng.)

And that popup could also tell reboot is necessary.

Status: RESOLVED => REOPENED
CC: (none) => fri
Resolution: FIXED => (none)

Comment 7 Colin Guthrie 2013-05-25 13:31:50 CEST
Please open a new bug for this as I think we should keep this one closed. The log viewer not working with syslog-ng is a separate issue to what this bug was really fixing IMHO and is arguably a regression over previous versions (tho' I cannot think of why this would be the case of the top of my head)

Keep in mind also that the MMC log window is basically a view on to the /var/log/explanations file and to be honest I think it's a really pointless thing anyway as the parsing and filtering it does on the output makes little sense to me when I poked at that code recently as noted in comment 4 above. Anyway, like I say, it's probably best done on a separate bug now if that's OK.

Status: REOPENED => RESOLVED
Resolution: (none) => FIXED

Comment 8 Morgan Leijström 2013-05-25 17:16:26 CEST
OK, -> Bug 10280

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