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

cbcollect_info throws UnboundLocalError exception

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 5.5.0
    • 5.5.0
    • ns_server
    • None
    • Untriaged
    • Centos 64-bit
    • Hide
      Yep, good one.
      Show
      Yep, good one.
    • Yes

    Description

      Recent Vulcan builds have this issue:

      /opt/couchbase/bin/cbcollect_info /tmp/db3b18bd01d746c78381a7bb67d4ae7c.zip 
      Using temporary dir /tmp
      uname (uname -a) - OK
      time and TZ (date; date -u) - OK
      ntp time (ntpdate -q pool.ntp.org || nc time.nist.gov 13 || netcat time.nist.gov 13) - OK
      ntp peers (ntpq -p) - OK
      raw /etc/sysconfig/clock (cat /etc/sysconfig/clock) - Exit code 1
      raw /etc/timezone (cat /etc/timezone) - Exit code 1
      System Hardware (lshw -json || lshw) - OK
      Process list snapshot (export TERM=''; top -Hb -n1 || top -H n1) - OK
      Process list (ps -AwwL -o user,pid,lwp,ppid,nlwp,pcpu,maj_flt,min_flt,pri,nice,vsize,rss,tty,stat,wchan:12,start,bsdtime,command) - OK
      Raw /proc/vmstat (cat /proc/vmstat) - OK
      Raw /proc/mounts (cat /proc/mounts) - OK
      Raw /proc/partitions (cat /proc/partitions) - OK
      Raw /proc/diskstats (cat /proc/diskstats; echo '') - OK
      Taking sample 2 after 1.000000 seconds - OK
      Taking sample 3 after 1.000000 seconds - OK
      Taking sample 4 after 1.000000 seconds - OK
      Taking sample 5 after 1.000000 seconds - OK
      Taking sample 6 after 1.000000 seconds - OK
      Taking sample 7 after 1.000000 seconds - OK
      Taking sample 8 after 1.000000 seconds - OK
      Taking sample 9 after 1.000000 seconds - OK
      Taking sample 10 after 1.000000 seconds - OK
      Raw /proc/interrupts (cat /proc/interrupts) - OK
      Swap configuration (free -t) - OK
      Swap configuration (swapon -s) - OK
      Kernel modules (lsmod) - OK
      Distro version (cat /etc/redhat-release) - OK
      Distro version (lsb_release -a) - Exit code 127
      Distro version (cat /etc/SuSE-release) - Exit code 1
      Distro version (cat /etc/issue) - OK
      Installed software (rpm -qa) - OK
      Hot fix list (rpm -V couchbase-server) - Exit code 1
      Installed software (COLUMNS=300 dpkg -l) - Exit code 127
      Hot fix list (COLUMNS=300 dpkg -V couchbase-server) - Exit code 127
      Extended iostat (iostat -x -p ALL 1 10 || iostat -x 1 10) - OK
      Core dump settings (find /proc/sys/kernel -type f -name '*core*' -print -exec cat '{}' ';') - OK
      sysctl settings (sysctl -a) - OK
      Relevant lsof output (echo moxi memcached beam.smp couch_compact godu sigar_port cbq-engine indexer projector goxdcr cbft eventing-producer | xargs -n1 pgrep | xargs -n1 -r -- lsof -n -p) - OK
      LVM info (lvdisplay) - OK
      LVM info (vgdisplay) - OK
      LVM info (pvdisplay) - OK
      Block device queue settings (find /sys/block/*/queue -type f | xargs grep -vH xxxx | sort) - OK
      Network configuration (ifconfig -a) - OK
      Taking sample 2 after 10.000000 seconds - OK
      Network configuration (echo link addr neigh rule route netns | xargs -n1 -- sh -x -c 'ip $1 list' --) - OK
      Raw /proc/net/dev (cat /proc/net/dev) - OK
      Network link statistics (ip -s link) - OK
      Network status (netstat -anp || netstat -an) - OK
      Network routing table (netstat -rn) - OK
      Network socket statistics (ss -an) - OK
      Extended socket statistics (ss -an --info --processes) - OK
      Arp cache (arp -na) - OK
      Iptables dump (iptables-save) - OK
      Raw /etc/hosts (cat /etc/hosts) - OK
      Raw /etc/resolv.conf (cat /etc/resolv.conf) - OK
      Raw /etc/nsswitch.conf (cat /etc/nsswitch.conf) - OK
      Filesystem (df -ha) - OK
      System activity reporter (sar 1 10) - OK
      System paging activity (vmstat 1 10) - OK
      System uptime (uptime) - OK
      Last logins of users and ttys (last -x || last) - OK
      couchbase user definition (getent passwd couchbase) - OK
      couchbase user limits (su couchbase -s /bin/sh -c "ulimit -a") - OK
      Interrupt status (intrstat 1 10) - Exit code 127
      Processor status (mpstat 1 10) - OK
      System log (cat /var/adm/messages) - Exit code 1
      Raw /proc/uptime (cat /proc/uptime) - OK
      Systemd journal (journalctl | gzip -c > systemd_journal.gz) - OK
      All logs (tar cz /var/log/syslog* /var/log/dmesg /var/log/messages* /var/log/daemon* /var/log/debug* /var/log/kern.log* 2>/dev/null) - Exit code 2
      Relevant proc data (echo moxi memcached beam.smp couch_compact godu sigar_port cbq-engine indexer projector goxdcr cbft eventing-producer | xargs -n1 pgrep | xargs -n1 -- sh -c 'echo $1; cat /proc/$1/status; cat /proc/$1/limits; cat /proc/$1/smaps; cat /proc/$1/numa_maps; cat /proc/$1/task/*/sched; echo' --) - OK
      Processes' environment (echo moxi memcached beam.smp couch_compact godu sigar_port cbq-engine indexer projector goxdcr cbft eventing-producer | xargs -n1 pgrep | xargs -n1 -- sh -c 'echo $1; ( cat /proc/$1/environ | tr \\0 \\n | egrep -v ^CB_MASTER_PASSWORD=\|^CBAUTH_REVRPC_URL=); echo' --) - OK
      Processes' stack (for program in moxi memcached beam.smp couch_compact godu sigar_port cbq-engine indexer projector goxdcr cbft eventing-producer; do for thread in $(pgrep --lightweight $program); do echo $program/$thread:; cat /proc/$thread/stack; echo; done; done) - OK
      NUMA data (numactl --hardware) - OK
      NUMA data (numactl --show) - OK
      NUMA data (cat /sys/devices/system/node/node*/numastat) - OK
      Kernel log buffer (dmesg -T || dmesg -H || dmesg) - OK
      Transparent Huge Pages data (cat /sys/kernel/mm/transparent_hugepage/enabled) - OK
      Transparent Huge Pages data (cat /sys/kernel/mm/transparent_hugepage/defrag) - OK
      Transparent Huge Pages data (cat /sys/kernel/mm/redhat_transparent_hugepage/enabled) - Exit code 1
      Transparent Huge Pages data (cat /sys/kernel/mm/redhat_transparent_hugepage/defrag) - Exit code 1
      Network statistics (netstat -s) - OK
      Full raw netstat (cat /proc/net/netstat) - OK
      CPU throttling info (echo /sys/devices/system/cpu/cpu*/thermal_throttle/* | xargs -n1 -- sh -c 'echo $1; cat $1' --) - OK
      Raw PID 1 scheduler /proc/1/sched (cat /proc/1/sched | head -n 1) - OK
      Raw PID 1 control groups /proc/1/cgroup (cat /proc/1/cgroup) - OK
      Found dump-guts: /opt/couchbase/bin/dump-guts
      Checking for server guts in /opt/couchbase/var/lib/couchbase/initargs...
      product diag header () - OK
      Traceback (most recent call last):
        File "/opt/couchbase/bin/cbcollect_info", line 1420, in <module>
          main()
        File "/opt/couchbase/bin/cbcollect_info", line 1371, in main
          memcached_password, options))
        File "/opt/couchbase/bin/cbcollect_info", line 794, in make_product_task
          "hosts database info for %s" % node,
      UnboundLocalError: local variable 'node' referenced before assignment
      
      

      Attachments

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

        Activity

          People

            Aliaksey Artamonau Aliaksey Artamonau (Inactive)
            pavelpaulau Pavel Paulau (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty