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

[Windows] couchbase-cli looks for "erl" rather than "erl.exe"

    XMLWordPrintable

Details

    • Triaged
    • 1
    • Unknown

    Description

      I'm trying to start server-eshell on a Windows system and get this error.

      C:\>"Program Files\Couchbase\Server\bin\couchbase-cli" server-eshell -c localhost -u Administrator -p asdasd
      WARNING: Cannot locate Couchbase erlang. Attempting to use non-Couchbase erlang
      ERROR: Unable to find the erl executable
      

      So I specify the erlang path

      C:\>"Program Files\Couchbase\Server\bin\couchbase-cli" server-eshell --erl-path "C:\Program Files\Couchbase\Server\bin"  -c localhost -u Administrator -p asdasd
      WARNING: Cannot locate Couchbase erlang. Attempting to use non-Couchbase erlang
      ERROR: Unable to find the erl executable
      

      I see the cbmgr.py code contains

              cb_erl = os.path.join(opts.erl_path, 'erl')
              if os.path.isfile(cb_erl):
                  path = cb_erl
              else:
                  _warning("Cannot locate Couchbase erlang. Attempting to use non-Couchbase erlang")
                  path = 'erl'
      

      If I change "erl" to "erl.exe" the binary is found.

             cb_erl = os.path.join(opts.erl_path, 'erl.exe')
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            pvarley Patrick Varley (Inactive)
            steve.watanabe Steve Watanabe
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty