Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kmoralesml opened this issue Nov 24, 2021 · 0 comments

Comments

@kmoralesml
Copy link

kmoralesml commented Nov 24, 2021

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
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant