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

cbbackupmgr collect-logs failed to use env CB_ARCHIVE_PATH

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • 5.5.0
    • 5.5.0
    • tools
    • None
    • centos 7.4
    • Triaged
    • Centos 64-bit
    • No

    Description

      Install Couchbase Server 5.5.0-1689 on a centos 7 server.
      Create default bucket.
      set CB_ARCHIVE_PATH to /tmp/logs
      Run cbbackupmgr collect-logs, logs wrote to backup repo, not /tmp/logs

      [root@s44015 ~]# rm -rf /tmp/entbackup/*
      [root@s44015 ~]# /opt/couchbase/bin/cbbackupmgr config -r backup -a /tmp/entbackup/
      Backup repository `backup` created successfully in archive `/tmp/entbackup/`
      [root@s44015 ~]# export CB_ARCHIVE_PATH=/tmp/logs
      [root@s44015 ~]# ls /tmp/logs
      [root@s44015 ~]# ls /tmp/entbackup/logs
      backup.log
      [root@s44015 ~]# echo $CB_ARCHIVE_PATH
      /tmp/logs
      [root@s44015 ~]#   /opt/couchbase/bin/cbbackupmgr  collect-logs -a /tmp/entbackup
      Collecting logs succeeded, logs are located in `/tmp/entbackup/logs`
      [root@s44015 ~]# ls /tmp/logs
      [root@s44015 ~]# ls /tmp/entbackup/logs/
      backup.log  collectinfo-2018-01-18T103205-cbbackupmgr.zip
      [root@s44015 ~]# more /opt/couchbase/VERSION.txt 
      5.5.0-1689
      [root@s44015 ~]#
      

      Attachments

        Issue Links

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

          Activity

            People

              thuan Thuan Nguyen
              thuan Thuan Nguyen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty