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

Non-package Install: Consider sym-links in reloc.sh

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • build
    • None
    • Untriaged
    • 0
    • Unknown

    Description

      As found in a recent customer case, when using a non-packaged install, the reloc.sh script does not handle sym-links.

      In particular, the ones pointing to bin/cbc (e.g. cbc-hash), resulting in:

      [~/opt/couchbase/bin]$ ls -ltr | grep cbc-hash
       
      lrwxrwxrwx. 1 couchbase couchbase    3 Mar 25 06:17 cbc-hash -> cbc
       
      [~/opt/couchbase/bin]$ ./cbc-hash DOC_KEY -U couchbase://localhost/BUCKET  -u Administrator -P Password
       
      /home/couchbase/opt/couchbase/bin/cbc-hash: line 12: /home/couchbase/opt/couchbase/bin/cbc-hash.bin: No such file or directory
      

      A workaround for the cbc sym-links is to use cbc hash (without the hyphen).

      A future fix may involve skipping the reloc wrapper for these sym-links, and perhaps even dropping it more widely if possible.

      Attachments

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

        Activity

          People

            ceej Chris Hillery
            malarky Chris Malarky
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty