[MB-4703] cbbrowse_logs fails on mac osx Created: 27/Jan/12  Updated: 20/May/14  Resolved: 20/May/14

Status: Closed
Project: Couchbase Server
Component/s: installer, tools
Affects Version/s: 1.8.0
Fix Version/s: bug-backlog
Security Level: Public

Type: Bug Priority: Major
Reporter: James Mauss Assignee: Maria McDuff (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment: mac

Attachments: File cbbrowse_logs    
Triage: Untriaged

 Description   
./cbbrowse_logs
./cbbrowse_logs: line 11: exec: erl: not found

 Comments   
Comment by Farshid Ghods (Inactive) [ 15/May/12 ]
this solved the issue for me
Comment by Jens Alfke [ 15/May/12 ]
So, do you just need me to check in the modified file?
Comment by Farshid Ghods (Inactive) [ 15/May/12 ]
no please ignore that file.
i applied this fix ( similar to how we fix other cb* scripts ) and didn't work
farshid-2:membasex farshid$ git diff
diff --git a/Membase/install-couchbase.sh b/Membase/install-couchbase.sh
index b03dd96..5f8dbf9 100755
--- a/Membase/install-couchbase.sh
+++ b/Membase/install-couchbase.sh
@@ -56,6 +56,7 @@ echo "fixing path for cb* commands"
 echo "$install_absolute_path"
 sed -ie "s,$install_absolute_path,../,g" bin/couchbase-cli
 sed -ie "s,$install_absolute_path,../,g" bin/cbstats
+sed -ie "s,$install_absolute_path,../,g" bin/cbbrowse_logs
 sed -ie "s,$install_absolute_path,../,g" bin/cbflushctl
 sed -ie "s,$install_absolute_path,../,g" bin/cbadm-online-restore
 sed -ie "s,$install_absolute_path,../,g" bin/cbadm-online-update

but that didn't work either.


to build membasex you can checkout branch-1.8.1.xml and run
xcodebuild -target "Couchbase Server Zip"
Comment by Dipti Borkar [ 30/May/12 ]
Jens . please take a look at this with high priority. we are getting closer to ship 1.8.1
Comment by Jens Alfke [ 13/Jun/12 ]
http://review.couchbase.org/#change,17234
Comment by Peter Wansch (Inactive) [ 15/Jun/12 ]
Jens,
Can you patch this against 1.8.1 and then merge to trunk? Alk reviewed your change ok.
Thanks!
Comment by Karan Kumar (Inactive) [ 18/Jun/12 ]
http://review.couchbase.org/#change,17327
Comment by Karan Kumar (Inactive) [ 21/Jun/12 ]
/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/erl: line 28: /Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/lib/erlang/erts-5.8.*/bin/erlexec: No such file or directory
/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/erl: line 28: exec: /Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/lib/erlang/erts-5.8.*/bin/erlexec: cannot execute: No such file or directory
Comment by Karan Kumar (Inactive) [ 21/Jun/12 ]
This is on the latest 181 build, which has the above review merged.
Comment by Karan Kumar (Inactive) [ 21/Jun/12 ]
Workaround is having the absoute path.

http://builds.hq.northscale.net/latestbuilds/couchbase-server-community_x86_64_1.8.1-927-rel.dmg

 /Applications/Couchbase\ Server.app/Contents/Resources/couchbase-core/bin/cbbrowse_logs -h
option log requires 1 arguments
Usage: <progname> -report_dir <dir> [-log <name>]
Comment by Karan Kumar (Inactive) [ 21/Jun/12 ]
We are seeing a different error.
@ketaki is going to open a new bug for cbbrowse_logs.
Comment by Thuan Nguyen [ 22/Jun/12 ]
Integrated in github-ns-server-2-0 #380 (See [http://qa.hq.northscale.net/job/github-ns-server-2-0/380/])
    MB-4703: Make cbbrowse_logs command work on Mac OS (Revision 329625efba18a8479c992dab2bb8bf7eba453f90)

     Result = SUCCESS
Farshid Ghods :
Files :
* Makefile
* cbbrowse_logs.in
* cbbrowse_logs
Comment by scalabl3 [ 14/Jan/14 ]
Couchbase 2.2 on Mac OS X (Mavericks)
Comment by Bin Cui [ 14/Jan/14 ]
I cannot reproduce it for 2.2 on Mac.

Please write down the detail steps that you reproduce the problem.
Comment by scalabl3 [ 14/Jan/14 ]
If you click on the "all" tab in the bottom comments area of the page (the tabs right above the comments) it shows it there, not sure why it's over there and not in verifications steps:

I'll copy it here:

cbbrowse_logs xdcr
ls: /usr/local/bin/../var/lib/couchbase/logs: No such file or directory
/usr/local/bin/cbbrowse_logs: line 30: exec: erl: not found

cbbrowse_logs xdcr.1
ls: /usr/local/bin/../var/lib/couchbase/logs: No such file or directory
/usr/local/bin/cbbrowse_logs: line 30: exec: erl: not found

cbbrowse_logs -report_dir "/Users/jasdeep/Library/Application\ Support/Couchbase/var/lib/couchbase/logs" xdcr
ls: /usr/local/bin/../var/lib/couchbase/logs: No such file or directory
/usr/local/bin/cbbrowse_logs: line 30: exec: erl: not found

cbbrowse_logs -report_dir "/Users/jasdeep/Library/Application\ Support/Couchbase/var/lib/couchbase/logs" -log xdcr.1
ls: /usr/local/bin/../var/lib/couchbase/logs: No such file or directory
/usr/local/bin/cbbrowse_logs: line 30: exec: erl: not found
Comment by Bin Cui [ 14/Jan/14 ]
couchbases-MacBook-Pro-2:bin couchbase$ ./cbbrowse_logs xdcr
[xdcr:info,2014-01-06T10:30:11.649,ns_1@127.0.0.1:ns_server_sup<0.314.0>:xdc_replication_sup:start_link:26]start XDCR bucket replicator supervisor...
[xdcr:info,2014-01-06T10:30:11.655,ns_1@127.0.0.1:ns_server_sup<0.314.0>:xdc_rep_manager:start_link:49]start XDCR replication manager...
[xdcr:debug,2014-01-06T10:30:11.656,ns_1@127.0.0.1:xdc_rep_manager<0.474.0>:xdc_rep_manager:open_or_create_replicator_db:254]rep db did not exist, create a new one
[xdcr:info,2014-01-06T10:39:32.544,ns_1@127.0.0.1:ns_server_sup<0.2696.0>:xdc_replication_sup:start_link:26]start XDCR bucket replicator supervisor...
[xdcr:info,2014-01-06T10:39:32.544,ns_1@127.0.0.1:ns_server_sup<0.2696.0>:xdc_rep_manager:start_link:49]start XDCR replication manager...
[xdcr:info,2014-01-07T15:16:07.191,ns_1@127.0.0.1:ns_server_sup<0.1096.0>:xdc_replication_sup:start_link:26]start XDCR bucket replicator supervisor...
[xdcr:info,2014-01-07T15:16:07.193,ns_1@127.0.0.1:ns_server_sup<0.1096.0>:xdc_rep_manager:start_link:49]start XDCR replication manager...
couchbases-MacBook-Pro-2:bin couchbase$

I wonder if your setup is clean or not.
Comment by scalabl3 [ 14/Jan/14 ]
that's super weird. it was a fresh install (but it has been a while)
Comment by scalabl3 [ 14/Jan/14 ]
my logs are in: ~/Library/Application Support/Couchbase/var/lib/couchbase/logs
Comment by scalabl3 [ 14/Jan/14 ]
Version: 2.2.0 enterprise edition (build-821)
Comment by Bin Cui [ 14/Jan/14 ]
I just found that i tested 2.5 build. Can you try that?
Comment by scalabl3 [ 14/Jan/14 ]
I can later, sure, I am in the middle of using couchbase in my app, i will add a comment when I have tested 2.5, but it definitely not working for me in 2.2
Comment by Maria McDuff (Inactive) [ 20/May/14 ]
fixed in 3.0: Verified in build 674.

Marias-MacBook-Pro:bin maria$ ./cbbrowse_logs xdcr
[xdcr:info,2014-03-27T17:33:59.546,ns_1@127.0.0.1:ns_server_sup<0.318.0>:xdc_replication_sup:start_link:26]start XDCR bucket replicator supervisor...
[xdcr:info,2014-03-27T17:33:59.547,ns_1@127.0.0.1:ns_server_sup<0.318.0>:xdc_rep_manager:start_link:54]start XDCR replication manager...
[xdcr:debug,2014-03-27T17:33:59.548,ns_1@127.0.0.1:xdc_rep_manager<0.489.0>:xdc_rep_manager:open_or_create_replicator_db:259]rep db did not exist, create a new one
[xdcr:info,2014-03-27T17:34:17.515,ns_1@127.0.0.1:ns_server_sup<0.667.0>:xdc_replication_sup:start_link:26]start XDCR bucket replicator supervisor...
[xdcr:info,2014-03-27T17:34:17.516,ns_1@127.0.0.1:ns_server_sup<0.667.0>:xdc_rep_manager:start_link:54]start XDCR replication manager...
[xdcr:info,2014-04-08T18:00:24.356,ns_1@127.0.0.1:ns_server_sup<0.1491.0>:xdc_replication_sup:start_link:26]start XDCR bucket replicator supervisor...
[xdcr:info,2014-04-08T18:00:24.358,ns_1@127.0.0.1:ns_server_sup<0.1491.0>:xdc_rep_manager:start_link:54]start XDCR replication manager...
[xdcr:info,2014-05-13T17:48:15.873,ns_1@127.0.0.1:ns_server_sup<0.1492.0>:xdc_replication_sup:start_link:26]start XDCR bucket replicator supervisor...
[xdcr:info,2014-05-13T17:48:15.875,ns_1@127.0.0.1:ns_server_sup<0.1492.0>:xdc_rep_manager:start_link:54]start XDCR replication manager...
[xdcr:info,2014-05-13T17:53:04.432,ns_1@127.0.0.1:ns_server_sup<0.299.0>:xdc_replication_sup:start_link:26]start XDCR bucket replicator supervisor...
[xdcr:info,2014-05-13T17:53:04.434,ns_1@127.0.0.1:ns_server_sup<0.299.0>:xdc_rep_manager:start_link:54]start XDCR replication manager...
[xdcr:info,2014-05-20T17:09:29.151,ns_1@127.0.0.1:ns_server_sup<0.299.0>:xdc_replication_sup:start_link:26]start XDCR bucket replicator supervisor...
[xdcr:info,2014-05-20T17:09:29.154,ns_1@127.0.0.1:ns_server_sup<0.299.0>:xdc_rep_manager:start_link:54]start XDCR replication manager...
Marias-MacBook-Pro:bin maria$ pwd
/Users/maria/Downloads/couchbase-server-enterprise_x86_64_3.0.0-674-rel/Couchbase Server.app/Contents/Resources/couchbase-core/bin
Generated at Tue Oct 21 05:41:59 CDT 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.