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

Using asadmin e.g. to get server variables require a username #66

Open
pkiraly opened this issue Apr 21, 2022 · 0 comments
Open

Using asadmin e.g. to get server variables require a username #66

pkiraly opened this issue Apr 21, 2022 · 0 comments

Comments

@pkiraly
Copy link
Member

pkiraly commented Apr 21, 2022

In administering the service you should be able to use Payara's asadmin command line tool, but by default it fails:

$ docker container exec -ti dataverse /bin/bash
# /opt/payara/appserver/bin/asadmin list-jvm-options | grep dataverse
Authentication failed for user: null 

(Usually, this means invalid user name and/or password)

If one tries it from the host, asadmin asks for credentials:

$ docker container exec -ti dataverse /opt/payara/appserver/bin/asadmin list-jvm-options
Enter admin user name:

Solution: Add the admin user name ('admin') and password ('admin') to README

But pipeline still not works. To prevent to be asked again, you should do the following steps:

  1. enter the container command line environment
$ docker container exec -ti dataverse /bin/bash
  1. enter credentials ('admin' and 'admin')
# /opt/payara/appserver/bin/asadmin login
Enter admin user name [Enter to accept default]>
Enter admin password>
# exit
  1. Test if it works:
$ docker container exec -ti dataverse /opt/payara/appserver/bin/asadmin list-jvm-options | grep dataverse
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