# Login Problem - Docker Compose - unable to login

**URL:** <https://community.graylog.org/t/login-problem-docker-compose-unable-to-login/31099>\
**Category:** Graylog Central (peer support)\
**Tags:** docker\
**Created:** [January 1, 2024, 7:38pm UTC](https://community.graylog.org/t/login-problem-docker-compose-unable-to-login/31099 "2024-01-01T19:38:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![edisonch](https://avatars.discourse-cdn.com/v4/letter/e/3be4f8/32.png) [@edisonch](https://community.graylog.org/u/edisonch)\
**Post date:** [January 1, 2024, 7:38pm UTC](https://community.graylog.org/t/login-problem-docker-compose-unable-to-login/31099/1 "2024-01-01T19:38:52Z")

</div>

Hi,  
I used the latest docker compose in github docker compose  
I use open-core section of docker-compose above.  
I replaced GRAYLOG\_DATANODE\_PASSWORD\_SECRET and GRAYLOG\_DATANODE\_ROOT\_PASSWORD\_SHA2 as instructed in datanode and graylog section.  
I spin up using docker-compose up -d  
It is up in [http://localhost:9000](http://localhost:9000). I login using the password (I tried both value of password as clear text and as hash value) and it still fails.  
I ssh into the container to check the /run/secret/ and there is no value there.  
I confused on how to login. Please help  
datanode:  
image: “${DATANODE\_IMAGE:-graylog/graylog-datanode:5.2}”  
environment:  
GRAYLOG\_DATANODE\_NODE\_ID\_FILE: “/var/lib/graylog-datanode/node-id”  
GRAYLOG\_DATANODE\_PASSWORD\_SECRET: “gj21DLc1h3M60fYlFZcBFu3QLvDuh6itBb6LozhpO48Yr5GOuN21YpW98isQoWh1rfMbcTT1zgmRiyNxmDsMthlcEs0Y4Uho”  
GRAYLOG\_DATANODE\_ROOT\_PASSWORD\_SHA2: “d3bcc4ceb0547442ce0695dab9275880f29767de27b26783146be2b68d17207a”  
GRAYLOG\_DATANODE\_MONGODB\_URI: “mongodb://mongodb:27017/graylog”

graylog:  
hostname: “server”  
image: “${GRAYLOG\_IMAGE:-graylog/graylog:5.2}”  
depends\_on:  
mongodb:  
condition: “service\_started”  
entrypoint: “/usr/bin/tini – /docker-entrypoint.sh”  
environment:  
GRAYLOG\_NODE\_ID\_FILE: “/usr/share/graylog/data/data/node-id”  
GRAYLOG\_PASSWORD\_SECRET: “gj21DLc1h3M60fYlFZcBFu3QLvDuh6itBb6LozhpO48Yr5GOuN21YpW98isQoWh1rfMbcTT1zgmRiyNxmDsMthlcEs0Y4Uho”  
GRAYLOG\_ROOT\_PASSWORD\_SHA2: “d3bcc4ceb0547442ce0695dab9275880f29767de27b26783146be2b68d17207a”  
GRAYLOG\_HTTP\_BIND\_ADDRESS: “0.0.0.0:9000”  
GRAYLOG\_HTTP\_EXTERNAL\_URI: “[http://localhost:9000/](http://localhost:9000/)”  
GRAYLOG\_MONGODB\_URI: “mongodb://mongodb:27017/graylog”

---

<div class="post-metadata">

**Author:** ![daveylupes](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/daveylupes/32/16178_2.png) [@daveylupes](https://community.graylog.org/u/daveylupes)\
**Post date:** [January 2, 2024, 6:27pm UTC](https://community.graylog.org/t/login-problem-docker-compose-unable-to-login/31099/2 "2024-01-02T18:27:59Z")

</div>

I am also facing the same problem, but I installed mine on Ubuntu server!

---

<div class="post-metadata">

**Author:** ![drewmiranda-gl](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/drewmiranda-gl/32/13376_2.png) [@drewmiranda-gl](https://community.graylog.org/u/drewmiranda-gl)\
**Post date:** [January 3, 2024, 7:15pm UTC](https://community.graylog.org/t/login-problem-docker-compose-unable-to-login/31099/3 "2024-01-03T19:15:34Z")

</div>

What are y’all seeing? What do the docker logs (or local logs) say?

I believe you have to setup the datanode first before you can use graylog and the info about that is in the logs (either via docker logs, or the local log).

I just spun up the compose file and this is what i’m seeing:

# first time setup

```auto
2024-01-03 19:13:13,046 INFO : org.graylog2.bootstrap.preflight.PreflightJerseyService - 
                                                             ---
                                                             ---
                                                             ---
    ######## ### ######### ########## #### #### --- .---- ----
  ############### ###################### ##### #### --- ------------ .----------- --
 ##### ###### ##### #### #### #### --- --- --- --- -----
#### #### #### ############ #### #### --- -- --- --- ---
### ### #### ############## #### #### --- --- -- -- --
#### #### #### #### #### #### #### --- --- -- -- .--
##### ##### #### #### #### ####### --- --- --- --- ---
 ################ #### ############## ######- -- ---- ---- --- -----
   ############## #### ############# ##### ----- ----------- ---------- --
             #### #### ---
##### #### #### - .--
  ############# #### ----- ----
     ###### #### -------
========================================================================================================
It seems you are starting Graylog for the first time. To set up a fresh install, a setup interface has
been started. You must log in to it to perform the initial configuration and continue.
Initial configuration is accessible at 0.0.0.0:9000, with username 'admin' and password 'pdekzAtzRz'.
========================================================================================================

```

 ![image](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/f/f/ff587d7172a364522729ffd69922b4d97886bb98.png)

From there i’m brought through a workflow for setting up datanode (which is used instead of vanilla OpenSearch)

 ![image](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/d/cdd9d8024f9376dc463ac9d1adab6e4961689cbe.png)

---

<div class="post-metadata">

**Author:** ![edisonch](https://avatars.discourse-cdn.com/v4/letter/e/3be4f8/32.png) [@edisonch](https://community.graylog.org/u/edisonch)\
**Post date:** [January 6, 2024, 1:44am UTC](https://community.graylog.org/t/login-problem-docker-compose-unable-to-login/31099/4 "2024-01-06T01:44:39Z")

</div>

Hi Thanks for the reply.  
I tried your suggestion to run docker logs   
Then I get to see username & password that are provided; however this is NOT in the README.md thus I kept entering the password that i created using sha (as instructed) and graylog kept refusing me.  
Thank you for your reply. Please fix the readme

 ![image](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/1/1/114d8b6a37ece02c323f540dfc91cee6edd76900.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:** [January 20, 2024, 1:45am UTC](https://community.graylog.org/t/login-problem-docker-compose-unable-to-login/31099/5 "2024-01-20T01:45:27Z")

</div>

Closed on January 20, 2024, 1:45am UTC

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