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 User Name and Password Not Working in 3.5.0 #58

Open
aldrinc opened this issue Jun 6, 2018 · 9 comments
Open

Default User Name and Password Not Working in 3.5.0 #58

aldrinc opened this issue Jun 6, 2018 · 9 comments

Comments

@aldrinc
Copy link

aldrinc commented Jun 6, 2018

Default DeviceHive admin user has name dhadmin and password dhadmin_#911.

screenshot

@aldrinc
Copy link
Author

aldrinc commented Jun 11, 2018

@sitnik Any update on this guys? Was there a password update with 3.5.0 that wasn't reflected in the documentation?

@sitnik
Copy link
Contributor

sitnik commented Jun 13, 2018

@aldrinc, hello.
Login and password you are using are right. This error from Admin Panel can indicate some other issues with DeviceHive services.
First of all please check that your server has enough RAM for DeviceHive. 8GB is a minimal requirement: https://github.com/devicehive/devicehive-docker#system-requirements-for-docker-compose-installation

In case you are running DeviceHive with Docker Compose please provide following data for investigating your isssue:

  1. sudo docker ps output after starting DeviceHive with docker-compose up -d
  2. free -m output from server
  3. sudo docker info and sudo docker-compose version output.

Thank you.

@aldrinc
Copy link
Author

aldrinc commented Jun 13, 2018

@sitnik It works for me once I made enough resources available. See below for details.

image

[~/Downloads/devicehive-docker/rdbms-image]  $ sudo docker ps
CONTAINER ID        IMAGE                                   COMMAND                  CREATED             STATUS              PORTS                                                NAMES
81917c4ab323        devicehive/devicehive-proxy:3.5.0       "/bin/sh ./proxy-sta…"   42 hours ago        Up 43 seconds       80/tcp, 8443/tcp, 0.0.0.0:80->8080/tcp               rdbmsimage_dh_proxy_1
22974531f103        devicehive/devicehive-frontend:3.5.0    "/bin/sh ./devicehiv…"   42 hours ago        Up 44 seconds       0.0.0.0:8080->8080/tcp                               rdbmsimage_dh_frontend_1
20c8f84571d0        devicehive/devicehive-backend:3.5.0     "/bin/sh ./devicehiv…"   42 hours ago        Up 45 seconds                                                            rdbmsimage_dh_backend_1
99f5e49e8fbb        devicehive/devicehive-auth:3.5.0        "/bin/sh ./devicehiv…"   42 hours ago        Up 45 seconds       0.0.0.0:8090->8090/tcp                               rdbmsimage_dh_auth_1
e69359451937        devicehive/devicehive-hazelcast:3.5.0   "./server.sh"            42 hours ago        Up 49 seconds       0.0.0.0:5701->5701/tcp                               rdbmsimage_hazelcast_1
96e97ed70232        devicehive/devicehive-ws-proxy:1.1.0    "pm2-docker src/prox…"   2 months ago        Up 47 seconds       3000/tcp                                             rdbmsimage_wsproxy_1
f0ced92c3434        wurstmeister/kafka:1.0.0                "start-kafka.sh"         2 months ago        Up 48 seconds       0.0.0.0:9092->9092/tcp                               rdbmsimage_kafka_1
445ac9293c87        postgres:10                             "docker-entrypoint.s…"   2 months ago        Up 47 seconds       0.0.0.0:5432->5432/tcp                               rdbmsimage_postgres_1
ceeb7eefb55c        wurstmeister/zookeeper                  "/bin/sh -c '/usr/sb…"   2 months ago        Up 49 seconds       22/tcp, 2888/tcp, 3888/tcp, 0.0.0.0:2181->2181/tcp   rdbmsimage_zookeeper_1


[~/Downloads/devicehive-docker/rdbms-image]  $ sudo docker info
Containers: 14
 Running: 9
 Paused: 0
 Stopped: 5
Images: 27
Server Version: 18.03.0-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host ipvlan macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: cfd04396dc68220d1cecbe686a6cc3aa5ce3667c
runc version: 4fc53a81fb7c994640722ac585fa9ca548971871
init version: 949e6fa
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.9.87-linuxkit-aufs
Operating System: Docker for Mac
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 7.786GiB
Name: linuxkit-025000000001
ID: YYS2:4E4D:LOFY:ROYJ:MTH7:3LJE:JTMN:PFLU:KMCZ:L64T:LIFZ:K3OX
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 97
 Goroutines: 96
 System Time: 2018-06-13T16:39:48.063397753Z
 EventsListeners: 2
HTTP Proxy: docker.for.mac.http.internal:3128
HTTPS Proxy: docker.for.mac.http.internal:3129
Registry: https://index.docker.io/v1/
Labels:
Experimental: true
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

[~/Downloads/devicehive-docker/rdbms-image]  $ sudo docker-compose version
docker-compose version 1.20.1, build 5d8c71b
docker-py version: 3.1.4
CPython version: 3.6.4
OpenSSL version: OpenSSL 1.0.2n  7 Dec 2017

@arabold
Copy link

arabold commented Sep 25, 2018

Same issue here. I'm running DeviceHive on Docker for Mac with 10 GB allocated for Docker.

The backend responds with a 502 Gateway Error when I try to login:

POST /auth/rest/token HTTP/1.1
Host: 127.0.0.1
Connection: keep-alive
Content-Length: 45
Accept: application/json
Origin: http://127.0.0.1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36
Content-type: application/json
Referer: http://127.0.0.1/admin/login
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9,de;q=0.8

{login: "dhadmin", password: "dhadmin_#911"}
{"error": 502, "message": "Bad Gateway"}
CONTAINER ID        IMAGE                                   COMMAND                  CREATED             STATUS                              PORTS                                                NAMES
CONTAINER ID        IMAGE                                   COMMAND                  CREATED             STATUS              PORTS                                                NAMES
8ceaa206ae36        devicehive/devicehive-proxy:3.5.0       "/bin/sh ./proxy-sta…"   4 minutes ago       Up 4 minutes        80/tcp, 8443/tcp, 0.0.0.0:80->8080/tcp               rdbms-image_dh_proxy_1
ad7bb934da8a        devicehive/devicehive-frontend:3.5.0    "/bin/sh ./devicehiv…"   4 minutes ago       Up 4 minutes        0.0.0.0:8080->8080/tcp                               rdbms-image_dh_frontend_1
cac38b1eca63        devicehive/devicehive-backend:3.5.0     "/bin/sh ./devicehiv…"   4 minutes ago       Up 4 minutes                                                             rdbms-image_dh_backend_1
825d5a6f7841        devicehive/devicehive-auth:3.5.0        "/bin/sh ./devicehiv…"   4 minutes ago       Up 4 minutes        0.0.0.0:8090->8090/tcp                               rdbms-image_dh_auth_1
4bc229a1228b        devicehive/devicehive-ws-proxy:1.1.0    "pm2-docker src/prox…"   4 minutes ago       Up 4 minutes        3000/tcp                                             rdbms-image_wsproxy_1
441598b9dc3a        wurstmeister/kafka:1.0.0                "start-kafka.sh"         4 minutes ago       Up 4 minutes        0.0.0.0:9092->9092/tcp                               rdbms-image_kafka_1
981627c8e388        postgres:10                             "docker-entrypoint.s…"   4 minutes ago       Up 4 minutes        0.0.0.0:5432->5432/tcp                               rdbms-image_postgres_1
2e8f4872242b        wurstmeister/zookeeper                  "/bin/sh -c '/usr/sb…"   4 minutes ago       Up 4 minutes        22/tcp, 2888/tcp, 3888/tcp, 0.0.0.0:2181->2181/tcp   rdbms-image_zookeeper_1
0c0f36dc8ec4        devicehive/devicehive-hazelcast:3.5.0   "./server.sh"            4 minutes ago       Up 4 minutes        0.0.0.0:5701->5701/tcp                               rdbms-image_hazelcast_1
b7b129dbcbee        fb012e28f96e                            "node /kubeless.js"      11 minutes ago      Up 11 minutes                                                            k8s_capitalize_capitalize-74476869c6-5t8fg_default_1cd7c143-badc-11e8-bde3-025000000001_0
c534a0cd55dc        344b4ef7db48                            "/kubeless-controlle…"   11 minutes ago      Up 11 minutes                                                            k8s_controller_terrific-clownfish-kubeless-controller-manager-8d4d76c69-t6n22_kubeless_1476734e-bada-11e8-bde3-025000000001_1
Containers: 42
 Running: 35
 Paused: 0
 Stopped: 7
Images: 48
Server Version: 18.06.1-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host ipvlan macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 468a545b9edcd5932818eb9de8e72413e616e86e
runc version: 69663f0bd4b60df09991c08812a60108003fa340
init version: fec3683
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.9.93-linuxkit-aufs
Operating System: Docker for Mac
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 9.743GiB
Name: linuxkit-025000000001
ID: AYDT:QSRC:NGXL:JNN2:24ZT:CYSR:IYFX:EI6P:IUZ4:NQOS:NRWM:IFAC
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 239
 Goroutines: 215
 System Time: 2018-09-25T00:33:33.422054306Z
 EventsListeners: 2
HTTP Proxy: gateway.docker.internal:3128
HTTPS Proxy: gateway.docker.internal:3129
Registry: https://index.docker.io/v1/
Labels:
Experimental: true
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

Ideas or suggestions what to look for?

@arabold
Copy link

arabold commented Sep 25, 2018

I increased the memory even further and it seems that did the trick. Not 8 or 10 GBytes but 12 GBytes assigned to Docker right now.

@Ran-1022
Copy link

I have the same problem. I'm running DeviceHive with Docker on Ubuntu. Here are the pictures:
image
image
image
image
image
image
I really can not figure out the reason.

@ZahirGong
Copy link

@aldrinc @sitnik @arabold @Ran-1022 hey everyone, i met the same problem, but still not work after i increased the memory and CPUs. Then, i found i misunderstand the mean of JWT_SECRET. It means that you should add any string such as JWT_SECRET: ${JWT_SECRET:-DeviceHive}, not the Access JWT or Refresh JWT on Playground page. Then run docker-composr up to update you containers or images. Hope it will be helpful.

@Ran-1022
Copy link

Ran-1022 commented May 8, 2020

@ZahirGong omg! I made the same mistake. Thank you very very much!

@Robbot-Zhao
Copy link

Any progress? I met the same issue with @Ran-1022 , the same using ubuntu, but even I set JWT_SECRET, I still can not login with dhadmin adn dhadmin_#911, who can help? thanks

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

6 participants