orange-cloudfoundry / credhub-docker

Docker image for credhub (include a docker-compose file to run with uaa)
11 stars 17 forks source link

credhub instance run without uaa login error #1

Open wlwwu opened 4 years ago

wlwwu commented 4 years ago

1.setup details docker run -d -p 127.0.0.1:9009:9000 orangeopensource/credhub:latest root@linwwu-ubuntu:~# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES feb8b3aa0eb8 orangeopensource/credhub:latest "./entrypoint.sh" 14 minutes ago Up 14 minutes 127.0.0.1:9009->9000/tcp magical_panini

2.try to login ./credhub login -s https://localhost:9009 -u credhub -p password --skip-tls-validation UAA error: Post https://34.206.233.195:8443/oauth/token: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

3.Login the container and check: root@feb8b3aa0eb8:~# netstat -nlp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:9000 0.0.0.0: LISTEN 107/java tcp 0 0 0.0.0.0:35027 0.0.0.0: LISTEN 50/java udp 0 0 0.0.0.0:53879 0.0.0.0: 50/java udp 0 0 0.0.0.0:33696 0.0.0.0: 1/java Active UNIX domain sockets (only servers) Proto RefCnt Flags Type State I-Node PID/Program name Path

Do you have any ideas about this error?

rrileyca commented 4 years ago

I'm getting the same error.

zosocanuck commented 4 years ago

Also getting the same error:

UAA error: Post https://34.206.233.195:8443/oauth/token: dial tcp 34.206.233.195:8443: connect: connection refused

jmg421 commented 2 years ago

Also encountering this error

[root@venafilab-centos docker-compose]# ./credhub login -s https://localhost:9000 -u credhub -p password --skip-tls-validation
UAA error: unauthorized Bad credentials
[root@venafilab-centos docker-compose]# ls
config  credhub  credhub-linux-2.9.1.tgz  docker-compose.yml
[root@venafilab-centos docker-compose]# vi docker-compose.yml 
[root@venafilab-centos docker-compose]# cd config
[root@venafilab-centos config]# ls
uaa.yml
[root@venafilab-centos config]# vi uaa.yml 
[root@venafilab-centos config]# docker ps
CONTAINER ID        IMAGE                      COMMAND             CREATED             STATUS              PORTS                    NAMES
ad7ba959cb6a        orangeopensource/credhub   "./entrypoint.sh"   9 minutes ago       Up 9 minutes        0.0.0.0:9000->9000/tcp   docker-compose_credhub_1
474f47e78751        pcfseceng/uaa              "catalina.sh run"   12 minutes ago      Up 9 minutes        0.0.0.0:8080->8080/tcp   docker-compose_uaa_1