-
Notifications
You must be signed in to change notification settings - Fork 496
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
Can Connec to KeyCloak but not Studio #926
Comments
I am assuming you are using the Apicurio QuickStart which is based on
WildFly. If so you will need to start it up like this:
./bin/standalone.sh -c standalone-apicurio.xml -b 0.0.0.0
|
I restarted my server and now my admin (keycloak) stopped working so I started that using ./bin/standalone.sh -b 0.0.0.0 and it started working. I then tried to start apicurio using ./bin/standalone.sh -c standalone-apicurio.xml -b 0.0.0.0 but got below errors. I ran netstat to see which process is listening on 8180 but there is nothing. MSC000001: Failed to start service org.wildfly.management.http.extensible: org.jboss.msc.service.StartException in service org.wildfly.management.http.extensible: java.net.BindException: Address already in use /127.0.0.1:9990 MSC000001: Failed to start service org.wildfly.management.http.extensible: org.jboss.msc.service.StartException in service org.wildfly.management.http.extensible: java.net.BindException: Address already in use /127.0.0.1:8443 |
I am sorry forgot to copy error message at 8080 Failed to start service org.wildfly.undertow.listener.default: org.jboss.msc.service.StartException in service org.wildfly.undertow.listener.default: Address already in use /0.0.0.0:8080 |
it looks like, when i start keycloak, it is starting a process that listens on 8443, 9990 and 8080. Now i am just unable to start apicurio. I tried both ways with and without port binding , ./bin/standalone.sh -c standalone-apicurio.xml -b 0.0.0.0 --> doesn't work ./bin/standalone.sh -c standalone-apicurio.xml --> doesn't work anymore |
You probably need to set the port offset for Apicurio. This explains it:
http://www.mastertheboss.com/jboss-server/jboss-configuration/configuring-port-offset-on-jboss-as-wildfly
Otherwise the key cloak and Apicurio apps will try to bind the same ports.
|
### First of all, Thanks a lot for your timely response. I truly appreciate that. I did set the port offset. I am running apicurio using below command. ./bin/standalone.sh -c standalone-apicurio.xml -Djboss.socket.binding.port-offset=100
14:41:43,640 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management
This way, I do get the service up and running but here are the last few messages i get. 14:43:52,799 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:10090/management
machineName:8180/studio I get redirected to below url On this page, i am getting error message saying :- ERR_CONNECTION_REFUSED**
--2019-09-29 14:53:02-- http://localhost:8180/studio
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 12935/java |
I think I found the issue. Duhhhh in step#3, i am using localhost but should have used machineName Thanks a lot for your help. I am not able to use Apicurio Studio. |
I hope this was a typo and you meant now instead of "not". :) :) |
TL:DR I can connect to KeyCloak and access Admin console. Per documentation, I have made changes in the Admin console to route to api studio but i am not able to access studio.
Here are the details.
I am trying to install keycloak and apicurio on a (single) remote linux machine (RHEL).
I have gone through documentation and installed keycloak successfully on a remote machine.
I was able to create initial admin and make recommended changes from the documentation.
i have changed xml file in the api curio and started api curio per documentation.
I can also access api curio studio url (http://localhost:8180/studio) when i am directly connected to linux machine.
I can connect to Keycloak admin panel from remote machine (from my macbook) by going to http://machineName:8080/auth This is working fine.
However, when i try to connect to studio url (http://machineName:8180/studio) from my macbook, I am getting connection refused error.
I understand that because i am able to access studio url locally from linux machine, issue is not with apicurio or keycloak but i plan to use this among my small team and unless i can access this remotely, it doesn't work.
Since I can access keycloak admin panel from my macbook, i tried to debug this a bit and i found that admin panel by default goes to 0 0.0.0.0:8080 but apicurio goes to 127.0.0.1:8180
[root@machineName ~]# netstat -tnlp | grep :8080
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 6810/java
[root@machineName ~]# netstat -tnlp | grep :8180
tcp 0 0 127.0.0.1:8180 0.0.0.0:* LISTEN 42082/java
Question is, is this normal configuration? If yes, what could be the issue?
The text was updated successfully, but these errors were encountered: