Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-30286

audit logs do not get written when installing outside of /opt/couchbase

    XMLWordPrintable

Details

    • Bug
    • Resolution: User Error
    • Major
    • None
    • 5.1.0
    • ns_server
    • None
    • Triaged
    • Unknown

    Description

      We are moving to non-root, non-rpm based deployments following these instructions:

      https://developer.couchbase.com/documentation/server/current/install/rhel-suse-install-intro.html#story-h2-3

      We have observed that audit logs do not get written in this case. The webui contains lots of:

      Audit Write Failure. Attempt to write to audit log on node "ltx1-app1189.stg.linkedin.com" was unsuccessful

       

      Looking at babysitter.log there is a steady stream of

      [ns_server:info,2018-06-27T22:25:32.267Z,babysitter_of_ns_1@127.0.0.1:<0.79.0>:ns_port_server:log:223]memcached<0.79.0>: 2018-06-27T22:25:32.066551Z WARNING Audit: error reading config: error: failed to create log directory "/opt/couchbase/var/lib/couchbase/logs": cb::io::mkdirp("/opt/couchbase") failed: Permission denied
      memcached<0.79.0>: 2018-06-27T22:25:32.066588Z WARNING Audit: error performing configuration
      memcached<0.79.0>: 2018-06-27T22:25:32.156959Z WARNING Audit: error reading config: error: failed to create log directory "/opt/couchbase/var/lib/couchbase/logs": cb::io::mkdirp("/opt/couchbase") failed: Permission denied
      memcached<0.79.0>: 2018-06-27T22:25:32.156996Z WARNING Audit: error performing configuration
      memcached<0.79.0>: 2018-06-27T22:25:32.242174Z WARNING Audit: error reading config: error: failed to create log directory "/opt/couchbase/var/lib/couchbase/logs": cb::io::mkdirp("/opt/couchbase") failed: Permission denied
      memcached<0.79.0>: 2018-06-27T22:25:32.242212Z WARNING Audit: error performing configuration
      

       

      I have run the install/reloc.sh already prior to starting up couchbase server. So far all other functionality works to the best of my knowledge, just not audit logging

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ajit.yagaty Ajit Yagaty [X] (Inactive)
            bweir bweir
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty