enioka-Haute-Couture / jqm

An asynchronous job manager
Apache License 2.0
96 stars 25 forks source link

JQM Administration portal login with user 'root' #499

Open FabianSteels opened 2 years ago

FabianSteels commented 2 years ago

Hi all, I intent to start an instance of JQM with Docker. This instance is connected to a Postgresql database.

Everything seems OK except I don't have found a way to setup the 'root' password of the JQM Administration portal. As I don't know the root password, I'm blocked on the login portal.

The explanation in the doc doesn't work with Docker.

Then click on “login”, and submit authentication data for user “root” (its password can be reset through the CLI if needed).

Here is my env variables

JAVA_ALPINE_VERSION | 8.212.04-r0
JAVA_HOME | /usr/lib/jvm/java-1.8-openjdk/jre
JAVA_OPTS | -Xms128m -Xmx512m -XX:MaxMetaspaceSize=128m
JAVA_VERSION | 8u212
JQM_CREATE_NODE_IF_MISSING | 1
JQM_CREATE_NODE_TEMPLATE | TEMPLATE_WEB
JQM_HEALTHCHECK_URL | http://localhost:44863/ws/simple/localnode/health
JQM_INIT_MODE | SINGLE
JQM_NODE_NAME | jqm
JQM_NODE_WS_INTERFACE | 0.0.0.0
JQM_POOL_CONNSTR | jdbc:postgresql://172.26.0.34:5432/jqm
JQM_POOL_DRIVER | org.postgresql.Driver
JQM_POOL_INIT_SQL |  
JQM_POOL_MAX | 10
JQM_POOL_PASSWORD | mysecretpassword
JQM_POOL_USER | postgres
JQM_POOL_VALIDATION_QUERY | SELECT 1 FROM public.message
JQM_ROOT | /jqm
LANG | C.UTF-8
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/jvm/java-1.8-openjdk/jre/bin:/usr/lib/jvm/java-1.8-openjdk/bin

Any idea? Thanks.

lyasmineh commented 2 years ago

Hi everyone,

Encountered the same issue ...

Thank you in advance

marcanpilami commented 1 year ago

Hi, authentication is by default disabled on the Docker container. So you should not have to login. Perhaps you have enabled security and locked yourself out. In that case you can just use the CLI with Docker: docker exec <YOUR_CONTAINER_ID> java -jar jqm.jar -r <YOUR_NEW_PASSWORD>

Does that answer your questions?