[MB-4703] cbbrowse_logs fails on mac osx Created: 27/Jan/12  Updated: 23/Jul/12  Resolved: 26/Jun/12

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

Type: Bug Priority: Major
Reporter: James Mauss Assignee: Peter Wansch
Resolution: Fixed Votes: 0
Labels: next_sprint
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment: mac

Attachments: File cbbrowse_logs    

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

 Comments   
Comment by Farshid Ghods [ 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 [ 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 [ 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 [ 18/Jun/12 ]
http://review.couchbase.org/#change,17327
Comment by Karan Kumar [ 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 [ 21/Jun/12 ]
This is on the latest 181 build, which has the above review merged.
Comment by Karan Kumar [ 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 [ 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
Generated at Sat May 18 23:39:17 CDT 2013 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.