# Login problem with GrayLog after installation - Docker Compose

**URL:** <https://community.graylog.org/t/login-problem-with-graylog-after-installation-docker-compose/16160>\
**Category:** Graylog Central (peer support)\
**Created:** [July 1, 2020, 3:02pm UTC](https://community.graylog.org/t/login-problem-with-graylog-after-installation-docker-compose/16160 "2020-07-01T15:02:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![osvaldofilho](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/osvaldofilho/32/6749_2.png) [@osvaldofilho](https://community.graylog.org/u/osvaldofilho)\
**Post date:** [July 1, 2020, 3:02pm UTC](https://community.graylog.org/t/login-problem-with-graylog-after-installation-docker-compose/16160/1 "2020-07-01T15:02:03Z")

</div>

Hi,

I try to install GrayLog 3.2 in a different way - using docker (docker compose). All containers are up. I’ve tried to use env\_file to put my pass in another file, but it didn’t work. Also, I tried with GRAYLOG\_PASSWORD\_SECRET. I put my own pass and then I run the command echo -n “mypass” | sha256sum and put the result on GRAYLOG\_ROOT\_PASSWORD\_SHA2. The command docker-compose up run without erros, but I recieve the message at the login screen: Invalid credentials, please verify them and retry.  
I need any extra configuration or field to make it work?

---

<div class="post-metadata">

**Author:** ![ttsandrew](https://avatars.discourse-cdn.com/v4/letter/t/97f17d/32.png) [@ttsandrew](https://community.graylog.org/u/ttsandrew)\
**Post date:** [July 1, 2020, 6:44pm UTC](https://community.graylog.org/t/login-problem-with-graylog-after-installation-docker-compose/16160/2 "2020-07-01T18:44:07Z")

</div>

Hello @osvaldofilho!

This documentation should help.

[https://docs.graylog.org/en/3.3/pages/getting\_started/configure.html](https://docs.graylog.org/en/3.3/pages/getting_started/configure.html)

I think maybe your steps are out of order.

1. Generate a password secret  
`pwgen -N 1 -s 96`
2. Place that secret in the configuration for password\_secret (GRAYLOG\_PASSWORD\_SECRET)
3. Pick an admin password. (e.g. `hunter2`)
4. Hash that password using the command  
`echo -n "Enter Password: " && head -1 </dev/stdin | tr -d '\n' | sha256sum | cut -d" " -f1`
5. Place the password hash (from step 4) in the configuration for root\_password\_sha2 (GRAYLOG\_ROOT\_PASSWORD\_SHA2)
6. Log in with username admin and the non-hashed password (from step 3)

Let us know if that works!

---

<div class="post-metadata">

**Author:** ![osvaldofilho](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/osvaldofilho/32/6749_2.png) [@osvaldofilho](https://community.graylog.org/u/osvaldofilho)\
**Post date:** [July 1, 2020, 7:39pm UTC](https://community.graylog.org/t/login-problem-with-graylog-after-installation-docker-compose/16160/3 "2020-07-01T19:39:48Z")

</div>

Thanks! My problem was the pwgen command. It works!

 ![image](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/2X/6/6f5596cc48fd1141d37f36e8d698b797ca2880ba.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [July 15, 2020, 7:40pm UTC](https://community.graylog.org/t/login-problem-with-graylog-after-installation-docker-compose/16160/4 "2020-07-15T19:40:09Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
