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

keep on getting "Package installation failed. User "guest" is not a member of the "dba" group." #213

Open
JoernT opened this issue Feb 26, 2024 · 4 comments · May be fixed by #239
Open
Assignees
Labels
bug Something isn't working

Comments

@JoernT
Copy link
Member

JoernT commented Feb 26, 2024

What happened?

I have an existing .existdb.json which is configured with user 'admin' and empty pass (for local development) but xst keeps on complaining : "Package installation failed. User "guest" is not a member of the "dba" group."

System Information

Build: eXist-6.2.0 (c8fa4958b6d4a50bd0cba7f3e76a150226414187)
Java: 1.8.0_382 (Azul Systems, Inc.)
OS: Mac OS X 14.2.1 (aarch64)

(should output xst version too). It is:
1.6.1

Relevant shell output

Package installation failed. User "guest" is not a member of the "dba" group.
@JoernT JoernT added the bug Something isn't working label Feb 26, 2024
@JoernT
Copy link
Member Author

JoernT commented Feb 26, 2024

same applies when using latest 1.9.4

@JoernT
Copy link
Member Author

JoernT commented Feb 26, 2024

for completeness: here's my .existdb.json


{
    "servers": {
        "localhost": {
            "server": "http://localhost:8080/exist",
            "user": "admin",
            "password": "",
            "root": "/db/apps/jhb"
        }
    },
    "sync": {
        "server": "localhost",
        "ignore": [
            ".existdb.json",
            ".git/**",
            "components/**",
            "node_modules/**",
            "bower_components/**",
            "build/**",
            "webtest/**"
        ]
    }
}

@line-o
Copy link
Member

line-o commented Aug 22, 2024

What is the command you are running? Are you passing --config path/to/my/.existdb.json?

@DrRataplan
Copy link

DrRataplan commented Oct 29, 2024

Getting the same. The defaults documented in https://github.com/eXist-db/xst?tab=readme-ov-file#with-environment-variables are not applied.

To repro: go to a random folder and run

touch repro.xar;
xst package install ./repro.xar;

Expected:

Error: experr:EXPATH00 Missing descriptor from package: /db/pkgtmp/repro.xar

Actual:

Package installation failed. User "guest" is not a member of the "dba" group.

Getting the env variables is delegated to node-exist, which defaults to guest/guest: https://github.com/eXist-db/node-exist/blob/main/components/connection.js#L45.

If we want to do our documented defaulting, we should fix it at https://github.com/eXist-db/xst/blob/main/utility/connection.js#L27. Just do something like this:

// Apply our defaults: XST usually requires admin privileges. the guest user node_exist defaults to is usually not sufficient (and often does not exist)
connectionOptions.basic_auth = { user: 'admin', 'password': '', ...connectionOptions.basic_auth };

@DrRataplan DrRataplan linked a pull request Oct 29, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants