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

java-app container won't open a listening port on 8080 #42

Open
dbodden-pesa opened this issue Jun 30, 2023 · 0 comments
Open

java-app container won't open a listening port on 8080 #42

dbodden-pesa opened this issue Jun 30, 2023 · 0 comments

Comments

@dbodden-pesa
Copy link

dbodden-pesa commented Jun 30, 2023

Describe the issue
I followed the directions (needed to modify the md5 to md5sum in the DeployProject.sh but otherwise the containers built and started OK).

To Reproduce
Steps to reproduce the behavior:

  1. Run DeployProject.sh
  2. wget http://localhost:8080/
  3. Connection reset by peer.

Expected behavior
Like in the docs, I expect to get an http response, and maybe a page w/ the API information.

Screenshots

dbodden@Polaris-Dev-06:~/pesa/passkey-workshop/scripts/java-app$ docker ps
CONTAINER ID   IMAGE              COMMAND                  CREATED       STATUS          PORTS                                                                     NAMES
c29dbad02269   passkey_services   "java -jar /source/t…"   2 hours ago   Up 41 minutes   0.0.0.0:8080->8080/tcp, :::8080->8080/tcp                                 passkey-services
6ef2a96a111a   passkey_client     "docker-entrypoint.s…"   4 hours ago   Up 2 hours      0.0.0.0:3000->3000/tcp, :::3000->3000/tcp                                 passkey-client
ed0f6063bf42   passkey_keycloak   "/bin/sh -c './opt/k…"   4 hours ago   Up 2 hours      3306/tcp, 8081/tcp, 8443/tcp, 0.0.0.0:8081->8080/tcp, :::8081->8080/tcp   passkey-keycloak
b4a6787f6526   passkey_storage    "docker-entrypoint.s…"   4 hours ago   Up 2 hours      0.0.0.0:3306->3306/tcp, :::3306->3306/tcp, 33060/tcp                      passkey-mysql
dbodden@Polaris-Dev-06:~/pesa/passkey-workshop/scripts/java-app$ wget http://127.0.0.1:8080/
--2023-06-30 16:51:44--  http://127.0.0.1:8080/
Connecting to 127.0.0.1:8080... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Retrying.

--2023-06-30 16:51:45--  (try: 2)  http://127.0.0.1:8080/
Connecting to 127.0.0.1:8080... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Retrying.

^C
dbodden@Polaris-Dev-06:~/pesa/passkey-workshop/scripts/java-app$ docker exec -it passkey-services /bin/bash
root@c29dbad02269:/# netstat -an 
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 127.0.0.11:34113        0.0.0.0:*               LISTEN     
udp        0      0 127.0.0.11:56809        0.0.0.0:*                          
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags       Type       State         I-Node   Path
root@c29dbad02269:/# ps -aef
UID          PID    PPID  C STIME TTY          TIME CMD
root           1       0  1 20:10 ?        00:00:48 java -jar /source/target/com.yubicolabs.passkey_rp.jar
root         396       0  0 20:51 pts/0    00:00:00 /bin/bash
root         405     396  0 20:52 pts/0    00:00:00 ps -aef
root@c29dbad02269:/# grep 8080 /source/target/classes/*
/source/target/classes/application.properties:server.port=8080
grep: /source/target/classes/com: Is a directory
grep: /source/target/classes/org: Is a directory
root@c29dbad02269:/# 

Desktop (please complete the following information):
Ubuntu 20.04

  • OS: Linux
  • Browser n/a

Additional context
I am just trying to run the passkey-workshop demo.

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

1 participant