Skip to content

setup.sh appends '--user={admin}' to the root of the application server #12

@kmoralesml

Description

@kmoralesml

Actual

When running the setup script I observed that the generated root has the script user option appended to it. Please see the attached images, and that is, the '--user={someUser}'.
It rendered the query plan viewer unreachable.

Observed on

  • MarkLogic Server : 10.0-8

  • AWS BYOL ami: note, the image is running on AWS Linux 2

  • Directory: regardless of where the queryplan-viewer directory exists

  • Script: setup.sh ran as follows, without specifying DIR, and according to the README

        ./setup.sh ---user=ADMIN_USER --pass=ADMIN_PASS --port=PORT
    

Desired

The setup.sh script should set up the application server root in such a way that it is not suffixed by the --user option.

Workaround

Workaround Option A

Edit line 38 of setup.sh

      DIR="$PWD/${1#./}"

 to

      DIR=`pwd`

Workaround Option B

From the Admin console at 8001, go to the Configure tab of the application server. Then, remove the trailing '--user=someUser' from the root textfield

Attachments below

The attached screenshots show both the FIXED state and the NON-WORKING state.

setup.sh generated this root configuration

1_setupScriptAppServerRoot

2_appServerIncorrectRootFromBrowser

workaround applied

3_appServerRootCorrected
3_qpvFromBrowserWorkingAfterRootCorrection
.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions