Details
-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
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.