maindavfs2 - Support: sr #108842, /var/log/messages is not logging...

 
 

sr #108842: /var/log/messages is not logging anything about davfs2

Submitter:  Joseph Kwon <josephkwon>
Submitted:  Fri 26 Jun 2015 04:32:24 AM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  _71007
Open/Closed:  Closed Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 26 Jun 2015 08:12:48 AM UTC, comment #1: 

davfs2 uses the system function syslog with priority LOG_DAEMON and LOG_DEBUG. If these messages don't appear in any of your log files you have to check the configuration of your log facility.

What log facility is used and how it is configured depends on your system and is most probably different from mine. I am not very familiar with these kind of problems. So you should ask Redhat or some help desk for your log facility for help.

Looking at your syslog.conf and rsyslog.conf it seems that your syslog facility ignores debug messages. But I'm not an expert on syslog. A simple line in one of these files may help, e.g.
"daemon.debug  /var/log/messages" in rsyslog.conf. But Im not sure.

Werner

- <_71007>
Fri 26 Jun 2015 04:32:24 AM UTC, original submission:  

Hello,

I've deployed davfs2 on RHEL 6.6 and it works fine.
However I could not find any logs about davfs2.
I need someone to help me.
I've attached configuration files for logging and for davfs2.
Please find it if you think it need to be reviewed.

Following is the snippet of messages file.
There's no davfs2 logs in it.

=======================================================
Jun 21 03:46:01 apxadamdp04 rsyslogd: [origin software="rsyslogd" swVersion="5.8.10" x-pid="28766" x-info="http://www.rsyslog.com"] rsyslogd was HUPed
Jun 21 03:46:41 apxadamdp04 rhsmd: In order for Subscription Manager to provide your system with updates, your system must be registered with the Customer Portal. Please enter your Red Hat login to ensure your system is up-to-date.
Jun 21 04:00:58 apxadamdp04 sudo: iamagent : TTY=pts/0 ; PWD=/home/iamagent ; USER=root ; COMMAND=/bin/cat /etc/group
Jun 21 04:54:08 apxadamdp04 sudo: iamagent : TTY=pts/0 ; PWD=/home/iamagent ; USER=root ; COMMAND=/bin/cat /etc/shadow
Jun 21 04:54:08 apxadamdp04 sudo: iamagent : TTY=pts/0 ; PWD=/home/iamagent ; USER=root ; COMMAND=/bin/cat /etc/group
Jun 22 03:31:02 apxadamdp04 rhsmd: In order for Subscription Manager to provide your system with updates, your system must be registered with the Customer Portal. Please enter your Red Hat login to ensure your system is up-to-date.
Jun 22 04:00:39 apxadamdp04 sudo: iamagent : TTY=pts/0 ; PWD=/home/iamagent ; USER=root ; COMMAND=/bin/cat /etc/group
Jun 22 04:27:19 apxadamdp04 sudo: iamagent : TTY=pts/0 ; PWD=/home/iamagent ; USER=root ; COMMAND=/bin/cat /etc/shadow
Jun 22 04:27:19 apxadamdp04 sudo: iamagent : TTY=pts/0 ; PWD=/home/iamagent ; USER=root ; COMMAND=/bin/cat /etc/group
Jun 23 03:12:02 apxadamdp04 rhsmd: In order for Subscription Manager to provide your system with updates, your system must be registered with the Customer Portal. Please enter your Red Hat login to ensure your system is up-to-date.
Jun 23 04:00:49 apxadamdp04 sudo: iamagent : TTY=pts/0 ; PWD=/home/iamagent ; USER=root ; COMMAND=/bin/cat /etc/group
Jun 23 04:57:34 apxadamdp04 sudo: iamagent : TTY=pts/0 ; PWD=/home/iamagent ; USER=root ; COMMAND=/bin/cat /etc/shadow
Jun 23 04:57:34 apxadamdp04 sudo: iamagent : TTY=pts/0 ; PWD=/home/iamagent ; USER=root ; COMMAND=/bin/cat /etc/group
Jun 23 17:56:37 apxadamdp04 sudo: appadmin : TTY=pts/0 ; PWD=/usr/local/etc/davfs2 ; USER=root ; COMMAND=/bin/su -
Jun 23 20:46:50 apxadamdp04 sudo: appadmin : TTY=pts/0 ; PWD=/home/appadmin ; USER=root ; COMMAND=/bin/su -
Jun 23 21:04:38 apxadamdp04 sudo: appadmin : TTY=pts/0 ; PWD=/home/appadmin ; USER=root ; COMMAND=/bin/su -
Jun 23 21:07:48 apxadamdp04 mount.davfs: opening /home/appadmin/.davfs2/davfs2.conf failed
Jun 23 21:08:32 apxadamdp04 sudo: appadmin : TTY=pts/0 ; PWD=/mnt ; USER=root ; COMMAND=/bin/su -
Jun 23 21:30:30 apxadamdp04 sudo: appadmin : TTY=pts/0 ; PWD=/mnt/ADAM/test09 ; USER=root ; COMMAND=/bin/su -
Jun 23 21:39:04 apxadamdp04 sudo: appadmin : TTY=pts/0 ; PWD=/mnt/ADAM/test09 ; USER=root ; COMMAND=/bin/su -
==========================================================

And please see if there a problem on rsyslog.conf as the below
==========================================================
# rsyslog v5 configuration file

# For more information see /usr/share/doc/rsyslog-*/rsyslog_conf.html
# If you experience problems, see http://www.rsyslog.com/doc/troubleshoot.html

#### MODULES ####

$ModLoad imuxsock # provides support for local system logging (e.g. via logger command)
$ModLoad imklog   # provides kernel logging support (previously done by rklogd)
#$ModLoad immark  # provides --MARK-- message capability

# Samboo added this line to resolve Aspera log writing problem due to the  imuxsock's rate-limiting
$SystemLogRateLimitInterval 0

# Provides UDP syslog reception
#$ModLoad imudp
#$UDPServerRun 514

# Provides TCP syslog reception
#$ModLoad imtcp
#$InputTCPServerRun 514


#### GLOBAL DIRECTIVES ####

# Use default timestamp format
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat

# File syncing capability is disabled by default. This feature is usually not required,
# not useful and an extreme performance hit
#$ActionFileEnableSync on

# Include all config files in /etc/rsyslog.d/
$IncludeConfig /etc/rsyslog.d/*.conf


#### RULES ####

# Log all kernel messages to the console.
# Logging much else clutters up the screen.
#kern.*                                                 /dev/console

# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
*.info;mail.none;authpriv.none;cron.none;local2.none                /var/log/messages
# local2.info -/var/log/aspera/aspera.log
local2.info -/ASPERA/aspera.log

# The authpriv file has restricted access.
authpriv.*                                              /var/log/secure

# Log all the mail messages in one place.
mail.*                                                  -/var/log/maillog


# Log cron stuff
cron.*                                                  /var/log/cron

# Everybody gets emergency messages
.emerg                                                

# Save news errors of level crit and higher in a special file.
uucp,news.crit                                          /var/log/spooler

# Save boot messages also to boot.log
local7.*                                                /var/log/boot.log


# ### begin forwarding rule ###
# The statement between the begin ... end define a SINGLE forwarding
# rule. They belong together, do NOT split them. If you create multiple
# forwarding rules, duplicate the whole block!
# Remote Logging (we use TCP for reliable delivery)
#
# An on-disk queue is created for this action. If the remote host is
# down, messages are spooled to disk and sent when it is up again.
#$WorkDirectory /var/lib/rsyslog # where to place spool files
#$ActionQueueFileName fwdRule1 # unique name prefix for spool files
#$ActionQueueMaxDiskSpace 1g   # 1gb space limit (use as much as possible)
#$ActionQueueSaveOnShutdown on # save messages to disk on shutdown
#$ActionQueueType LinkedList   # run asynchronously
#$ActionResumeRetryCount -1    # infinite retries if host is down
# remote host is: name/ip:port, e.g. 192.168.0.1:514, port optional
#*.* @@remote-host:514
# ### end of the forwarding rule ###

# A template to for higher precision timestamps + severity logging
$template SpiceTmpl,"%TIMESTAMP%.%TIMESTAMP:::date-subseconds% %syslogtag% %syslogseverity-text%:%msg:::sp-if-no-1st-sp%%msg:::drop-last-lf%\n"

:programname, startswith, "spice-vdagent" /var/log/spice-vdagent.log;SpiceTmpl
============================================================

Thanks in advance.

Joseph

Joseph Kwon <josephkwon>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #34322:  davfs2.conf added by josephkwon (3KiB - application/octet-stream)
file #34323:  rsyslog.conf added by josephkwon (3KiB - application/octet-stream)
file #34324:  syslog.conf added by josephkwon (218B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by _71007 (Posted a comment)
  • -email is unavailable- added by josephkwon (Submitted the item)
  • -email is unavailable- added by josephkwon
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-04-15 _71007 Open/ClosedOpen Closed
    2015-06-26 _71007 StatusNone Done
        Assigned toNone _71007
    2015-06-26 josephkwon Attached File- Added davfs2.conf, #34322
        Attached File- Added rsyslog.conf, #34323
        Attached File- Added syslog.conf, #34324
        Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code