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

cbcollect_info raises syntax error

    XMLWordPrintable

Details

    • Story
    • Resolution: Fixed
    • Major
    • None
    • 2.0-beta
    • None
    • Security Level: Public
    • Mac OS X (the Linux tool doesn't seem to use the same format)

    Description

      Run cbcollect_info:

      File "/usr/local/bin/cbcollect_info", line 323
      LinuxTask("Version file", "cat `dirname "$0"`/../VERSION.txt"),
      ^
      SyntaxError: invalid syntax

      The fault is double quotes are used in the string as well to define the string at Line 241 and elsewhere:

      UnixTask("Directory structure",
      "ls -lR `dirname "$0"`/.. /opt/membase /var/membase /etc/opt/membase"),

      It should be:

      UnixTask("Directory structure",
      'ls -lR `dirname "$0"`/.. /opt/membase /var/membase /etc/opt/membase'),

      The same quote issue is repeated on Linues 323, 324, 325, 328

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            mccouch MC Brown (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty