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

error when launch cbdump-config or ebucketmigrator : /usr/bin/env: escript: No such file or directory

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: tools
    • Security Level: Public
    • Labels:
      None

      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

      # Subject Project Status CR V
      For Gerrit Dashboard: &For+MB-7254=message:MB-7254

        Activity

        Hide
        andreibaranouski Andrei Baranouski added a comment -

        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

        Show
        andreibaranouski Andrei Baranouski added a comment - 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
        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        this script is i think invoked by cbcollect info

        Show
        farshid Farshid Ghods (Inactive) added a comment - this script is i think invoked by cbcollect info
        Hide
        andreibaranouski Andrei Baranouski added a comment -

        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

        Show
        andreibaranouski Andrei Baranouski added a comment - 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
        Hide
        bcui Bin Cui added a comment -

        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/

        Show
        bcui Bin Cui added a comment - 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/
        Hide
        andreibaranouski Andrei Baranouski added a comment -

        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

        Show
        andreibaranouski Andrei Baranouski added a comment - 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
        Show
        bcui Bin Cui added a comment - http://review.couchbase.org/#/c/22887/ http://review.couchbase.org/#/c/22888/
        Hide
        andreibaranouski Andrei Baranouski added a comment -

        directive for ebucketmigrator also should be updated

        Show
        andreibaranouski Andrei Baranouski added a comment - directive for ebucketmigrator also should be updated
        Hide
        steve Steve Yen added a comment -

        pushed through gerrit

        Show
        steve Steve Yen added a comment - pushed through gerrit

          People

          • Assignee:
            bcui Bin Cui
            Reporter:
            andreibaranouski Andrei Baranouski
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes