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

Default Username / Password not working in latest image #23

Open
elbarsal opened this issue Jan 28, 2021 · 12 comments
Open

Default Username / Password not working in latest image #23

elbarsal opened this issue Jan 28, 2021 · 12 comments
Assignees

Comments

@elbarsal
Copy link

It seems the default username / password (admin / password) are not working in the latest release. I went back to 1.2.5 and it worked again. Tested with both docker and podman.

@key-networks key-networks self-assigned this Jan 30, 2021
@key-networks
Copy link
Owner

The new process for building and using this image is here: https://github.com/key-networks/ztncui-aio

Note that you need an environment file (example 'denv' is provided in the git repo) that specifies the password. Let us know if this helps.

@changchichung
Copy link

@key-networks
can you please update the readme how to pass "denv" ??
I can't get the correct login/password ...

@changchichung
Copy link

@key-networks
can you please update the readme how to pass "denv" ??
I can't get the correct login/password ...

never mind , it's working now
I always thought denv was a typo .....

@mmdjiji
Copy link

mmdjiji commented Oct 28, 2021

I think you need give some tips when first login with username admin, or that will be a trap for users. (Just a sincere suggestion)

@mmdjiji
Copy link

mmdjiji commented Oct 28, 2021

Of course I see the tips from repo ztncui-aio that you can use this command to check the default password:

cat /var/log/docker-ztncui.log

But it doesn't work.

@mmdjiji
Copy link

mmdjiji commented Oct 28, 2021

I finally solved by set an env variable ZTNCUI_PASSWD=password when the container be created.

@hugalafutro
Copy link

I am running into same issue even with the env variable.

sammael@vm-docker:~/docker/ztncui-aio$ docker-compose config
services:
  ztncui-aio:
    container_name: ztncui-aio
    environment:
      HTTPS_PORT: '3443'
      MYDOMAIN: ztncui.docker.test
      NODE_ENV: production
      ZTNCUI_PASSWD: password
    image: keynetworks/ztncui
    ports:
    - published: 3443
      target: 3443
    - published: 3180
      target: 3180
    volumes:
    - /home/sammael/docker/ztncui-aio/data/ztncui:/opt/key-networks/ztncui/etc:rw
    - /home/sammael/docker/ztncui-aio/data/zt1:/var/lib/zerotier-one:rw
version: '3.3'

trying logging in with admin / password I get Authentication failed, please check your username and password. Inside container:

sammael@vm-docker:~/docker/ztncui-aio$ docker exec -it ztncui-aio bash
root@dc17398c1384:/# cat /var/log/docker-ztncui.log
Set Your IP Address to continue.
If you don't do that, I will automatically detect.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    13  100    13    0     0     46      0 --:--:-- --:--:-- --:--:--    46
YOUR IP: [REDACTED]
ZTNCUI ENV CONFIGURATION:
NODE_ENV=production
MYADDR=[REDACTED]
HTTP_PORT=3000
HTTPS_PORT=3443
Warning: connect.session() MemoryStore is not
designed for a production environment, as it will leak
memory, and will not scale past a single process.
Listening for HTTP requests on port 3000 on localhost
Listening for HTTPS requests on port 3443 on all interfaces
GET /login 200 154.345 ms - 2292
GET /bscss/bootstrap.min.css 200 3.503 ms - 121457
GET /stylesheets/style.css 200 0.994 ms - 2867
GET /jqjs/jquery.min.js 304 1.508 ms - -
GET /bsjs/bootstrap.min.js 304 1.292 ms - -
GET /images/key-logo.svg 304 0.556 ms - -
GET /fonts/glyphicons-halflings-regular.woff2 304 0.815 ms - -
POST /login 302 18.060 ms - 56
GET /login 200 1.509 ms - 2408
GET /bscss/bootstrap.min.css 200 1.789 ms - 121457
GET /stylesheets/style.css 200 1.085 ms - 2867
GET /jqjs/jquery.min.js 304 2.025 ms - -
GET /bsjs/bootstrap.min.js 304 1.645 ms - -
GET /images/key-logo.svg 304 0.840 ms - -
GET /fonts/glyphicons-halflings-regular.woff2 304 1.553 ms - -
GET / 200 24.070 ms - 1309
GET /bscss/bootstrap.min.css 200 2.754 ms - 121457
GET /stylesheets/style.css 200 2.500 ms - 2867
GET /bsjs/bootstrap.min.js 200 2.146 ms - 39680
GET /jqjs/jquery.min.js 200 1.892 ms - 88145
GET /images/key-logo.svg 200 0.716 ms - 3249
GET /fonts/glyphicons-halflings-regular.woff2 200 0.949 ms - 18028
GET /login 200 0.861 ms - 2292

where I don't see any mention of password. @mmdjiji could you by chance post exact steps how you made it work ?

@machsix
Copy link

machsix commented Apr 3, 2022

Delete the volumes and recreate the docker container helps

@rupesh43210
Copy link

I am running into same issue even with the env variable.

sammael@vm-docker:~/docker/ztncui-aio$ docker-compose config
services:
  ztncui-aio:
    container_name: ztncui-aio
    environment:
      HTTPS_PORT: '3443'
      MYDOMAIN: ztncui.docker.test
      NODE_ENV: production
      ZTNCUI_PASSWD: password
    image: keynetworks/ztncui
    ports:
    - published: 3443
      target: 3443
    - published: 3180
      target: 3180
    volumes:
    - /home/sammael/docker/ztncui-aio/data/ztncui:/opt/key-networks/ztncui/etc:rw
    - /home/sammael/docker/ztncui-aio/data/zt1:/var/lib/zerotier-one:rw
version: '3.3'

trying logging in with admin / password I get Authentication failed, please check your username and password. Inside container:

sammael@vm-docker:~/docker/ztncui-aio$ docker exec -it ztncui-aio bash
root@dc17398c1384:/# cat /var/log/docker-ztncui.log
Set Your IP Address to continue.
If you don't do that, I will automatically detect.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    13  100    13    0     0     46      0 --:--:-- --:--:-- --:--:--    46
YOUR IP: [REDACTED]
ZTNCUI ENV CONFIGURATION:
NODE_ENV=production
MYADDR=[REDACTED]
HTTP_PORT=3000
HTTPS_PORT=3443
Warning: connect.session() MemoryStore is not
designed for a production environment, as it will leak
memory, and will not scale past a single process.
Listening for HTTP requests on port 3000 on localhost
Listening for HTTPS requests on port 3443 on all interfaces
GET /login 200 154.345 ms - 2292
GET /bscss/bootstrap.min.css 200 3.503 ms - 121457
GET /stylesheets/style.css 200 0.994 ms - 2867
GET /jqjs/jquery.min.js 304 1.508 ms - -
GET /bsjs/bootstrap.min.js 304 1.292 ms - -
GET /images/key-logo.svg 304 0.556 ms - -
GET /fonts/glyphicons-halflings-regular.woff2 304 0.815 ms - -
POST /login 302 18.060 ms - 56
GET /login 200 1.509 ms - 2408
GET /bscss/bootstrap.min.css 200 1.789 ms - 121457
GET /stylesheets/style.css 200 1.085 ms - 2867
GET /jqjs/jquery.min.js 304 2.025 ms - -
GET /bsjs/bootstrap.min.js 304 1.645 ms - -
GET /images/key-logo.svg 304 0.840 ms - -
GET /fonts/glyphicons-halflings-regular.woff2 304 1.553 ms - -
GET / 200 24.070 ms - 1309
GET /bscss/bootstrap.min.css 200 2.754 ms - 121457
GET /stylesheets/style.css 200 2.500 ms - 2867
GET /bsjs/bootstrap.min.js 200 2.146 ms - 39680
GET /jqjs/jquery.min.js 200 1.892 ms - 88145
GET /images/key-logo.svg 200 0.716 ms - 3249
GET /fonts/glyphicons-halflings-regular.woff2 200 0.949 ms - 18028
GET /login 200 0.861 ms - 2292

where I don't see any mention of password. @mmdjiji could you by chance post exact steps how you made it work ?

Have the exact same issue. Trued deleting container and volumes many times, still no luck

@mmdjiji
Copy link

mmdjiji commented Oct 31, 2022

Don't do cat /var/log/docker-ztncui.log, just use the ENV VARIABLE!

@rgados
Copy link

rgados commented Apr 3, 2023

docker run --env ZTNCUI_PASSWD=password --name ztncui -dp 3443:3443 keynetworks/ztncui

@pengxingyang02
Copy link

docker运行”docker run --env ZTNCUI_PASSWD=password --name ztncui -d -p 3443:3443 keynetworks/ztncui“来拉取下载即可。

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

9 participants