[MB-7254] error when launch cbdump-config or ebucketmigrator : /usr/bin/env: escript: No such file or directory Created: 22/Nov/12 Updated: 03/Jan/13 Resolved: 29/Nov/12 |
|
| Status: | Resolved |
| Project: | Couchbase Server |
| Component/s: | tools |
| Affects Version/s: | 2.0 |
| Fix Version/s: | 2.0 |
| Security Level: | Public |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Andrei Baranouski | Assignee: | Bin Cui |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
[root@cen-2708 bin]# /opt/couchbase/bin/cbdump-config /opt/couchbase/var/lib/couchbase/config/config.dat
/usr/bin/env: escript: No such file or directory [root@cen-2708 bin]# ./ebucketmigrator /usr/bin/env: escript: No such file or directory |
| Comments |
| Comment by Andrei Baranouski [ 22/Nov/12 ] |
|
I guess usage section also should be updated
%% Examples: %% linux: %% ./bin/cbdump_config.escript var/lib/couchbase/config/config.dat %% windows: %% bin\erlang\escript bin\cbdump_config.escript var\lib\couchbase\config\config.dat %% %% Example of dumping info for a particular node... %% cbdump_config.escript config.dat node ns_1@127.0.0.1 %% %% Example of dumping buckets names of type membase... %% cbdump_config.escript config.dat buckets membase ./cbdump_config.escript: No such file or directory |
| Comment by Farshid Ghods [ 23/Nov/12 ] |
| this script is i think invoked by cbcollect info |
| Comment by Andrei Baranouski [ 24/Nov/12 ] |
|
yes, the same error is in test logs:
2012-11-21 01:30:23,451 - root - ERROR - memcached stats warmup (cbstats -a 127.0.0.1:11210 warmup -b _admin -p _admin) - OK 2012-11-21 01:30:23,451 - root - ERROR - couchbase design docs - bucket:default (couch_dbdump "/opt/couchbase/var/lib/couchbase/data/default/master.couch.1") - OK escript: Failed to open file: cbdump-config uname (uname -a) - OK Directory structure (ls -lR '/opt/couchbase' /opt/membase /var/membase /etc/opt/membase) - Exit code 2 |
| Comment by Bin Cui [ 26/Nov/12 ] |
|
Root cause of the bug is reported on MB-7225 and also on Mb-7242: We change the current bin directory to a different one when extracting database_dir field from ini files. Fix is under http://review.couchbase.org/#/c/22826/ |
| Comment by Andrei Baranouski [ 28/Nov/12 ] |
|
build 1967, it's still reproduced: [root@cen-2708 bin]# ./cbdump-config /usr/bin/env: escript: No such file or directory the issue is in directive of the scripts: #!/usr/bin/env escript 'escript' doesn't exist in PATH [root@cen-2708 bin]# /usr/bin/env HOSTNAME=cen-2708 TERM=xterm SHELL=/bin/bash HISTSIZE=1000 SSH_CLIENT=10.32.18.165 46385 22 OLDPWD=/opt/couchbase SSH_TTY=/dev/pts/0 USER=root LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35: MAIL=/var/spool/mail/root PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin INPUTRC=/etc/inputrc PWD=/opt/couchbase/bin LANG=en_US.UTF-8 SHLVL=1 HOME=/root LOGNAME=root SSH_CONNECTION=10.32.18.165 46385 10.3.121.63 22 LESSOPEN=|/usr/bin/lesspipe.sh %s G_BROKEN_FILENAMES=1 _=/usr/bin/env [root@cen-2708 bin]# whereis escript escript: /opt/couchbase/bin/escript Also note that the description is not accurate. see above |
| Comment by Bin Cui [ 28/Nov/12 ] |
|
http://review.couchbase.org/#/c/22887/
http://review.couchbase.org/#/c/22888/ |
| Comment by Andrei Baranouski [ 28/Nov/12 ] |
| directive for ebucketmigrator also should be updated |
| Comment by Steve Yen [ 29/Nov/12 ] |
| pushed through gerrit |