Error installing cbioportal with docker desktop in windows system using WSL

273 views
Skip to first unread message

Prashanth Bachu

unread,
Dec 9, 2024, 8:48:14 AM12/9/24
to cBioPortal for Cancer Genomics Discussion Group
Hello Everyone,

I am trying to install and run cbioportal in the local host and followed the basic steps from the official documentation page :

Steps I followed:
git clone https://github.com/cBioPortal/cbioportal-docker-compose.git cd cbioportal-docker-compose ./init.sh docker compose up 

I mainly have a problem running ./init.sh command. When I first run the command in the Windows Powershell, It initially downloads the image for cbioportal and stop abruptly saying wget: command not found. So, the seed_data file and other files are not getting downloaded.

I did install WSL using wsl --install and used wsl -d ubuntu to use the Ubuntu shell for running ./init.sh , even though I was not able to run .sh sile. It gives the following error.

pbach898@PBACH898-LAPTOP:/mnt/c/Users/pbach898/cbioportal-docker-compose$ ./init.sh
/usr/bin/env: ‘bash\r’: No such file or directory
/usr/bin/env: use -[v]S to pass options in shebang lines
pbach898@PBACH898-LAPTOP:/mnt/c/Users/pbach898/cbioportal-docker-compose$

When I use the docker compose up, it gives the following error saying invalid escape sequence '\s' . Any inputs will be a great help for me to resolve the issue. 

cbioportal-container                   | Database connection success
cbioportal-container                   | Migrating database if necessary...
cbioportal-container                   | /core/scripts/migrate_db.py:270: SyntaxWarning: invalid escape sequence '\s'
cbioportal-container                   |   line_parts = re.split("--\s", line)
cbioportal-container                   | (1146, "Table 'cbioportal.patient_list' doesn't exist")
cbioportal-container                   | Running statements for version: 1.1.0
cbioportal-container                   |        Executing statement: CREATE TABLE sample_list LIKE patient_list;
cbioportal-container exited with code 1
cbioportal-container                   | spring_datasource_password=somepassword
cbioportal-container                   | spring_datasource_url=jdbc:mysql://cbioportal-database:3306/cbioportal
cbioportal-container                   | mysqladmin: [Warning] Using a password on the command line interface can be insecure.
cbioportal-database-container          | 2024-12-06T17:48:14.181434Z 14 [Warning] [MY-013360] [Server] Plugin sha256_password reported: ''sha256_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
cbioportal-container                   | Database connection success
cbioportal-container                   | Migrating database if necessary...
cbioportal-container                   | /core/scripts/migrate_db.py:270: SyntaxWarning: invalid escape sequence '\s'
cbioportal-container                   |   line_parts = re.split("--\s", line)
cbioportal-container                   | (1146, "Table 'cbioportal.patient_list' doesn't exist")
cbioportal-container                   | Running statements for version: 1.1.0
cbioportal-container                   |        Executing statement: CREATE TABLE sample_list LIKE patient_list;
cbioportal-container exited with code 1
cbioportal-container                   | spring_datasource_password=somepassword
cbioportal-container                   | spring_datasource_url=jdbc:mysql://cbioportal-database:3306/cbioportal
cbioportal-container                   | mysqladmin: [Warning] Using a password on the command line interface can be insecure.
cbioportal-database-container          | 2024-12-06T17:48:15.365303Z 16 [Warning] [MY-013360] [Server] Plugin sha256_password reported: ''sha256_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
cbioportal-container                   | Database connection success
cbioportal-container                   | Migrating database if necessary...
cbioportal-container                   | /core/scripts/migrate_db.py:270: SyntaxWarning: invalid escape sequence '\s'
cbioportal-container                   |   line_parts = re.split("--\s", line)
cbioportal-container                   | (1146, "Table 'cbioportal.patient_list' doesn't exist")
cbioportal-container                   | Running statements for version: 1.1.0
cbioportal-container                   |        Executing statement: CREATE TABLE sample_list LIKE patient_list;
cbioportal-container exited with code 1
cbioportal-container                   | spring_datasource_password=somepassword
cbioportal-container                   | spring_datasource_url=jdbc:mysql://cbioportal-database:3306/cbioportal
cbioportal-container                   | mysqladmin: [Warning] Using a password on the command line interface can be insecure.
cbioportal-database-container          | 2024-12-06T17:48:17.372749Z 18 [Warning] [MY-013360] [Server] Plugin sha256_password reported: ''sha256_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
cbioportal-container                   | Database connection success
cbioportal-container                   | Migrating database if necessary...
cbioportal-container                   | /core/scripts/migrate_db.py:270: SyntaxWarning: invalid escape sequence '\s'
cbioportal-container                   |   line_parts = re.split("--\s", line)
cbioportal-container                   | (1146, "Table 'cbioportal.patient_list' doesn't exist")
cbioportal-container                   | Running statements for version: 1.1.0
cbioportal-container                   |        Executing statement: CREATE TABLE sample_list LIKE patient_list;
cbioportal-container exited with code 1
cbioportal-container                   | spring_datasource_password=somepassword
cbioportal-container                   | spring_datasource_url=jdbc:mysql://cbioportal-database:3306/cbioportal
cbioportal-container                   | mysqladmin: [Warning] Using a password on the command line interface can be insecure.
cbioportal-database-container          | 2024-12-06T17:48:20.968294Z 20 [Warning] [MY-013360] [Server] Plugin sha256_password reported: ''sha256_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
cbioportal-container                   | Database connection success
cbioportal-container                   | Migrating database if necessary...
cbioportal-container                   | /core/scripts/migrate_db.py:270: SyntaxWarning: invalid escape sequence '\s'
cbioportal-container                   |   line_parts = re.split("--\s", line)
cbioportal-container                   | (1146, "Table 'cbioportal.patient_list' doesn't exist")
cbioportal-container                   | Running statements for version: 1.1.0
cbioportal-container                   |        Executing statement: CREATE TABLE sample_list LIKE patient_list;
cbioportal-container exited with code 1.


Regards,
Prashanth Bachu.






  

Benjamin Gross

unread,
Dec 9, 2024, 10:44:40 AM12/9/24
to Prashanth Bachu, cBioPortal for Cancer Genomics Discussion Group
Hi Prashanth,

Thank you for you patience.  Unfortunately, we are not too familiar with running the cBioPortal in  Windows Powershell.  Given your message about missing commands, wget, bash and after some googling, it would appear that you were missing the Linux subsystem from your Powershell enviroment and then ran wsl —install.

A few scripts that run as part of init.sh are bash.  I’m not sure how compatible the scripts are with wsl.  It looks like after you installed wsl you were able to download  the database schema and seed data files because the docker-compose snippet below shows tables being created.

Can you connect to the MySQL container and see the cbioportal database using the following command?

docker-compose run cbioportal_database \
sh -c 'mysql -hcbioportal_database -u"$MYSQL_USER" -p"$MYSQL_PASSWORD" "$MYSQL_DATABASE”’

...and then run mysql commands like:

use cbioportal;
show tables;

Best,
Benjamin

--
You received this message because you are subscribed to the Google Groups "cBioPortal for Cancer Genomics Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cbioportal+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/cbioportal/e140adf4-7be8-4d69-8673-ef07f491470an%40googlegroups.com.

Prashanth Bachu

unread,
Dec 13, 2024, 9:37:43 AM12/13/24
to cBioPortal for Cancer Genomics Discussion Group
Hi Benjamin,

Thanks for your response. My issue resolved after I use ubuntu shell (Windows subsystem Linux) to run the init.sh file.

Regards,
Prashanth Bachu.

Benjamin Gross

unread,
Dec 13, 2024, 1:58:50 PM12/13/24
to Prashanth Bachu, cBioPortal for Cancer Genomics Discussion Group
Happy to hear this Prashanth.  You sent a series of messages related to database/study import issues.  If there are any outstanding issues, we would like to use this thread to address them in order to better manage your issues within the google group.

Are there any issues you are currently facing that we can help you with?  If so, please provide a complete container log with your description/response to save some back and forth time.

Best,
-Benjamin

Prashanth Bachu

unread,
Dec 13, 2024, 2:39:12 PM12/13/24
to cBioPortal for Cancer Genomics Discussion Group
Hi Benjamin,

So far I am able to run cbioprtal in Local instance at port 8080 and Keycloak instance at port 8180. Now I am working on configuring Keycloak with saml protocol and then use LDAP Active Directory for authenticating cbioportal. My cbioportal version is 6.0.17 and Keycloak version is 15.1.1. Please help me with the steps to configure keycloak and use LDAP. I am following the documentation but I end up with many errors. I am new to cbioportal and keycloak. 

So far I done the following:

1. Adding cbioportal realm
2. Entering all the details in settings
3. Adding mappers

After this I am not clear about the steps from documentation. Can you please guide through step by step clearly.

Thanks a lot.

Regards,
prashanth bachu.

Benjamin Gross

unread,
Dec 16, 2024, 9:49:11 AM12/16/24
to Prashanth Bachu, cBioPortal for Cancer Genomics Discussion Group
Hi Prashanth,

One thing I did not see in your list below is setting up “User federation” inside of the keycloak realm.  Basically, you will create a connection between Keycloak and your organization Active Directory.  This will enable Keycloak to ingest user information from AD.  You’ll provide connection and authentication settings.  You’ll also have to provide various LDAP settings to tell Keycloak where to find user information in AD.  Finally you’ll have to create mappers to grab users properties in AD and map them to properties in keycloak.  You can find additional information here:

saml-portal.properties
add-realm.png
add-realm.png
add-realm.png
add-realm.png

Prashanth Bachu

unread,
Dec 16, 2024, 10:16:02 AM12/16/24
to cBioPortal for Cancer Genomics Discussion Group
Hi Benjamin,

Thank you so much for explaining everything clearly. I am using cbioportal v6, so portal.properties is now application.properties. I am able to locate metadata.xml and download it from keycloak . Documentation says to mount the file to location /cbioportal-webapp/WEB-INF/classes/  , I checked as of now WEB-INF/classes folder does not exists in my container. Can you clearly help me to do this step and how to mount matadata file in the specified location successfully. I am new to cbioportal and keycloak. Your help is highly appreciated.  

Refer attached image for structure of directory.





Regards,
Prashanth Bachu.  
Screenshot 2024-12-16 101442.png

Benjamin Gross

unread,
Dec 16, 2024, 10:54:04 AM12/16/24
to Prashanth Bachu, cBioPortal for Cancer Genomics Discussion Group
This may be some outdated documentation.  It should be ok to put in /cbioportal-webapp.   Just make sure to have the correct path in the application.properties file:

saml.idp.metadata.location=file:/cbioportal-webapp/<SAML_IDP_METADATA>.xml

--
You received this message because you are subscribed to the Google Groups "cBioPortal for Cancer Genomics Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cbioportal+...@googlegroups.com.

Prashanth Bachu

unread,
Dec 16, 2024, 1:29:07 PM12/16/24
to cBioPortal for Cancer Genomics Discussion Group
Thanks for your response. I have two questions here.

1. How can I mount the volume i.e   <SAML_IDP_METADATA>.xml in already created container ( cbioportal-webapp/) location. Can you please help me with command if possible.

2. When I am running the Keytool command " keytool -genkey -alias secure-key -keyalg RSA -keystore samlKeystore.jks" to generate the keystore, it is asking password only for keystore not asking  key password for secure-key  .  Now How can I configure below line with private-key.password?

saml.keystore.password=apollo1 saml.keystore.private-key.key=secure-key saml.keystore.private-key.password=apollo2 saml.keystore.default-key=secure-key

Thanks for you patience and helping out. I will really appreciate more support.

Regards,
Prashanth Bachu

Benjamin Gross

unread,
Dec 16, 2024, 8:49:33 PM12/16/24
to Prashanth Bachu, cBioPortal for Cancer Genomics Discussion Group
Hi Prashantth,

Looking closer at the docker-compose.yml, you can do something similar to what you see on line 15 (https://github.com/cBioPortal/cbioportal-docker-compose/blob/master/docker-compose.yml#L15):

- ./config/<SAML_IDP_METADATA>.xml:/cbioportal-webapp/<SAML_IDP_METADATA>.xml:ro

You can then place your xml file on your local filesystem at cbioportal-docker-compose/config (the location where you downloaded the git repos).  In your application.properties, the path tho the xml file will be /cbioportal-webapp/<SAML_IDP_METADATA>.xml

You should be asked for a keystore password and a key password for, in this case, <secure-key-alias>

PastedGraphic-2.png

Best,
-Benjamin


Prashanth Bachu

unread,
Dec 17, 2024, 9:47:31 AM12/17/24
to cBioPortal for Cancer Genomics Discussion Group
Hi Benjamin,

I appreciate your support. In my case I am using cbioportal version 6, as I said earlier. Don't you think my saml configuration is different than the one shown in documentation? I found this from the chat discussions and now I configured my application.properties file based on that. I am still having issues even after doing that. Please find below my application.properties file and the error logs. Help me to clear out the errors.

# For SAML 2.0
## SAML settings
# TODO add options for auto- and manual config to docs
# TODO add to docs: metadata-uri can be both URL or metadata xml file
authenticate=saml
#spring.security.saml2.relyingparty.registration.cbio-saml-idp.assertingparty.metadata-uri=classpath:/client-tailored-saml-idp-metadata.xml
spring.security.saml2.relyingparty.registration.cbio-saml-idp.assertingparty.metadata-uri=http://localhost:8180/realms/cbioportal/protocol/saml/descriptor
spring.security.saml2.relyingparty.registration.cbio-saml-idp.entity-id=cbioportal
spring.security.saml2.relyingparty.registration.cbio-saml-idp.signing.credentials[0].certificate-location=classpath:/local.crt
spring.security.saml2.relyingparty.registration.cbio-saml-idp.signing.credentials[0].private-key-location=classpath:/local.key
spring.security.saml2.relyingparty.registration.cbio-saml-idp.singlelogout.binding=POST
saml.idp.metadata.attribute.email=email
# TODO add to docs (in minutes; default 1)
spring.security.oauth2.allowed-clock-skew=
security.cors.allowed-origins=*
logging.level.org.springframework.security.saml2=DEBUG
##Or http://localhost:8080,http://localhost:8081

----------------------------------------------------------------------------------------------------
Error:

cbioportal-container                   | 2024-12-17T14:44:43.603Z  INFO 139 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Will secure Or [Mvc [pattern='/api/**'], Mvc [pattern='/webservice.do']] with [org.springframework.security.web.session.DisableEncodeUrlFilter@1002c49e, org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@62eb918, org.springframework.security.web.context.SecurityContextHolderFilter@538d2308, org.cbioportal.security.token.TokenAuthenticationFilter@21a462ce, org.springframework.security.web.header.HeaderWriterFilter@1a3e8b68, org.springframework.security.web.authentication.logout.LogoutFilter@43e9a8a2, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@4b99f2ed, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@481f698f, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@37e28b20, org.springframework.security.web.access.ExceptionTranslationFilter@61a17f3, org.springframework.security.web.access.intercept.AuthorizationFilter@48e3017a]
cbioportal-container                   | 2024-12-17T14:44:43.628Z DEBUG 139 --- [           main] o.s.s.s.c.OpenSamlInitializationService  : Refused to re-initialize OpenSAML
cbioportal-container                   | 2024-12-17T14:44:43.646Z  WARN 139 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration': Unsatisfied dependency expressed through method 'setFilterChains' parameter 0: Error creating bean with name 'samlFilterChain' defined in class path resource [org/cbioportal/security/config/Saml2SecurityConfig.class]: Unsatisfied dependency expressed through method 'samlFilterChain' parameter 1: Error creating bean with name 'relyingPartyRegistrationRepository' defined in class path resource [org/springframework/boot/autoconfigure/security/saml2/Saml2RelyingPartyRegistrationConfiguration.class]: Failed to instantiate [org.springframework.security.saml2.provider.service.registration.RelyingPartyRegistrationRepository]: Factory method 'relyingPartyRegistrationRepository' threw exception with message: java.net.ConnectException: Connection refused
cbioportal-container                   | 2024-12-17T14:44:43.653Z  INFO 139 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Shutdown initiated...
cbioportal-container                   | 2024-12-17T14:44:43.665Z  INFO 139 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Shutdown completed.
cbioportal-container                   | 2024-12-17T14:44:43.668Z  INFO 139 --- [           main] o.apache.catalina.core.StandardService   : Stopping service [Tomcat]
cbioportal-container                   | 2024-12-17T14:44:43.694Z  INFO 139 --- [           main] .s.b.a.l.ConditionEvaluationReportLogger :
cbioportal-container                   |
cbioportal-container                   | Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
cbioportal-container                   | 2024-12-17T14:44:43.718Z ERROR 139 --- [           main] o.s.boot.SpringApplication               : Application run failed
cbioportal-container                   |
cbioportal-container                   | org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration': Unsatisfied dependency expressed through method 'setFilterChains' parameter 0: Error creating bean with name 'samlFilterChain' defined in class path resource [org/cbioportal/security/config/Saml2SecurityConfig.class]: Unsatisfied dependency expressed through method 'samlFilterChain' parameter 1: Error creating bean with name 'relyingPartyRegistrationRepository' defined in class path resource [org/springframework/boot/autoconfigure/security/saml2/Saml2RelyingPartyRegistrationConfiguration.class]: Failed to instantiate [org.springframework.security.saml2.provider.service.registration.RelyingPartyRegistrationRepository]: Factory method 'relyingPartyRegistrationRepository' threw exception with message: java.net.ConnectException: Connection refused
cbioportal-container                   |        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.resolveMethodArguments(AutowiredAnnotationBeanPostProcessor.java:875) ~[spring-beans-6.0.12.jar:6.0.12]
cbioportal-container                   |        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:828) ~[spring-beans-6.0.12.jar:6.0.12]
cbioportal-container                   |        at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:145) ~[spring-beans-6.0.12.jar:6.0.12]
cbioportal-container                   |        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:492) ~[spring-beans-6.0.12.jar:6.0.12]
cbioportal-container                   |        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1416) ~[spring-beans-6.0.12.jar:6.0.12]
cbioportal-container                   |        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:597) ~[spring-beans-6.0.12.jar:6.0.12]
cbioportal-container                   |        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:520) ~[spring-beans-6.0.12.jar:6.0.12]
cbioportal-container                   |        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:325) ~[spring-beans-6.0.12.jar:6.0.12]
cbioportal-container                   |        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-6.0.12.jar:6.0.12]
cbioportal-container                   |        at org.springframew

Thanks for your patience and support.

Regards,
Prashanth Bachu.

Prashanth Bachu

unread,
Dec 17, 2024, 2:47:37 PM12/17/24
to cBioPortal for Cancer Genomics Discussion Group
Hi Benjamin, 

I worked on this and got some progress. Now my cbioportal is running and it is navigating to keycloak page but with an error.

Screenshot 2024-12-17 144231.png

What might be the reason for error? Please find below my saml configuration for application.properties.


# For SAML 2.0
## SAML settings
# TODO add options for auto- and manual config to docs
# TODO add to docs: metadata-uri can be both URL or metadata xml file
authenticate=saml
spring.security.saml2.relyingparty.registration.cbio-saml-idp.assertingparty.metadata-uri=classpath:/client-tailored-saml-idp-metadata.xml
#spring.security.saml2.relyingparty.registration.cbio-saml-idp.assertingparty.metadata-uri=http://localhost:8180/realms/cbioportal/protocol/saml/descriptor

spring.security.saml2.relyingparty.registration.cbio-saml-idp.entity-id=cbioportal
spring.security.saml2.relyingparty.registration.cbio-saml-idp.signing.credentials[0].certificate-location=classpath:/local.crt
spring.security.saml2.relyingparty.registration.cbio-saml-idp.signing.credentials[0].private-key-location=classpath:/local.key
spring.security.saml2.relyingparty.registration.cbio-saml-idp.singlelogout.binding=POST
saml.idp.metadata.attribute.email=email
# TODO add to docs (in minutes; default 1)
spring.security.oauth2.allowed-clock-skew=
security.cors.allowed-origins=*
logging.level.org.springframework.security.saml2=DEBUG
##Or http://localhost:8080,http://localhost:8081

Regards,
Prashanth Bachu.

Benjamin Gross

unread,
Dec 17, 2024, 9:59:47 PM12/17/24
to Prashanth Bachu, cBioPortal for Cancer Genomics Discussion Group
Hi Prashanth,

Just based on the error “Invalid Requestor”, I’m guessing something is not set right in the Keycloak configuration for the client.  Can you send me a screenshot of your client setup in Keycloak?  Can you also give me a snippet of keycloak logs as you try to login to the cBioPortal?

Regards,
-Benjamin

On Dec 17, 2024, at 2:47 PM, Prashanth Bachu <prashant...@gmail.com> wrote:

Hi Benjamin, 

I worked on this and got some progress. Now my cbioportal is running and it is navigating to keycloak page but with an error.

Prashanth Bachu

unread,
Dec 18, 2024, 9:25:46 AM12/18/24
to cBioPortal for Cancer Genomics Discussion Group
Hi Benjamin, 

Thanks for your response, I was able to figure out the issue. I got the issue because I did not uploaded the correct certificate(local.crt) to keycloak and after doing so everything is working fine. Now I am able to open cbioportal with keycloak authentication. I have noticed two issues here

1. I cannot see any studies after I authenticated with keycloak and login
2. When I am trying to do sign out and login again I am not able to login, it is prompting an error 400 Invalid request. Please find below the screenshots and help me with the errors.

Regards,
Prashanth Bachu.
 

Screenshot 2024-12-18 092413.png
Screenshot 2024-12-18 092311.png

Benjamin Gross

unread,
Dec 18, 2024, 10:16:28 AM12/18/24
to Prashanth Bachu, cBioPortal for Cancer Genomics Discussion Group

Prashanth Bachu

unread,
Dec 18, 2024, 4:05:16 PM12/18/24
to cBioPortal for Cancer Genomics Discussion Group
Hi Benjamin,

Thanks for your support. I followed as you mentioned above added roles and users to roles, but still my studies are not loaded. Please find roles and mapper screenshot attached. Additionally, could you give me steps to upload new study to cbioportal after it has setup with keycloak authentication.

Regards,
Prashanth Bachu.

Screenshot 2024-12-18 160135.png
Screenshot 2024-12-18 160200.png

Benjamin Gross

unread,
Dec 19, 2024, 12:03:53 PM12/19/24
to Prashanth Bachu, cBioPortal for Cancer Genomics Discussion Group
Hi Prashanth,

If you have properly mapped a role/cancer study to a user and you are successfully logging into the cBioPortal after authenticating with Keycloak, then the proper permissions are not making their way from Keycloak to the cBioPortal backend.  I would suggest turning security logging on in the cBioPortal backend and seeing if any security related errors are being throw.  You can send me the log and I can take a look.
Having said this, you asked about how to upload a new study into the cBioPortal, does this mean you have not loaded in a study?

Did you have a problem loading the example study:

docker compose run cbioportal metaImport.py -u http://cbioportal:8080 -s study/lgg_ucsf_2014/ -o

More information can be found 

and

Best,
Benjamin

To view this discussion visit https://groups.google.com/d/msgid/cbioportal/c6f0c501-93db-4c26-ab69-88c8da7b599dn%40googlegroups.com.
<Screenshot 2024-12-18 160135.png><Screenshot 2024-12-18 160200.png>

Benjamin Gross

unread,
Dec 19, 2024, 12:11:06 PM12/19/24
to Prashanth Bachu, cBioPortal for Cancer Genomics Discussion Group
On Dec 19, 2024, at 12:03 PM, Benjamin Gross <benjami...@gmail.com> wrote:

Hi Prashanth,

If you have properly mapped a role/cancer study to a user and you are successfully logging into the cBioPortal after authenticating with Keycloak, then the proper permissions are not making their way from Keycloak to the cBioPortal backend.  I would suggest turning security logging on in the cBioPortal backend and seeing if any security related errors are being throw.  You can send me the log and I can take a look.



Having said this, you asked about how to upload a new study into the cBioPortal, does this mean you have not loaded in a study?

Did you have a problem loading the example study:

docker compose run cbioportal metaImport.py -u http://cbioportal:8080 -s study/lgg_ucsf_2014/ -o

More information can be found 

Prashanth Bachu

unread,
Dec 19, 2024, 4:21:21 PM12/19/24
to cBioPortal for Cancer Genomics Discussion Group
Hi Benjamin,

Thanks for your information. I was able to load the studies now,  I was not able to load before because filter_groups_by_appname=false this line which was part of saml was not configured in application.properties. Now I am trying to upload new studies. But I am getting an error while uploading the study. I followed the below steps.

1. Downloaded the studies
2. Moved them to /study folder in local cbioportal directory
3. Run the command: sudo docker compose run cbioportal metaImport.py -u http://cbioportal:8080 -s study/paac_jhu_201
4/ -o

I got the following error:

Error occurred during validation step:
Traceback (most recent call last):
  File "/core/scripts/importer/validateData.py", line 5122, in request_from_portal_api
    response.raise_for_status()
  File "/usr/local/lib/python3.12/dist-packages/requests/models.py", line 1024, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error:  for url: http://cbioportal:8080/api/info

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/bin/metaImport.py", line 126, in <module>
    exitcode = validateData.main_validate(args)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/core/scripts/importer/validateData.py", line 5663, in main_validate
    portal_instance = load_portal_info(server_url, logger)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/core/scripts/importer/validateData.py", line 5270, in load_portal_info
    parsed_json = request_from_portal_api(path, api_name, logger)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/core/scripts/importer/validateData.py", line 5124, in request_from_portal_api
    raise ConnectionError(
ConnectionError: Failed to fetch metadata from the portal at [http://cbioportal:8080/api/info]

Please assist me.

Thanks,
Prashanth Bachu.

Benjamin Gross

unread,
Dec 20, 2024, 2:51:32 PM12/20/24
to Prashanth Bachu, cBioPortal for Cancer Genomics Discussion Group
Can you get to this page and execute this end point (use “Try it out” button)...but replace cbioportal.org with your host name:

Benjamin Gross

unread,
Dec 23, 2024, 3:00:35 PM12/23/24
to Prashanth Bachu, cBioPortal for Cancer Genomics Discussion Group
Hi Prashanth,

Also wanted to follow-up with you on the 400 error you are getting on logout.  I think the URL that will successfully logout is not “<cbioportal_hostname>/logout”, but “<cbioportal_hostname>/j_spring_security_logout”.  You can try this by replacing the url in your browser when you encounter the “Error 400: Invalid Request” page.  If this works, try changing the following property in your applications.properties file

authenticate=saml
to
authenticate=saml_plus_basic

Let me know how it goes.

Best,
-Benjamin


On Dec 20, 2024, at 2:51 PM, Benjamin Gross <benjami...@gmail.com> wrote:

Can you get to this page and execute this end point (use “Try it out” button)...but replace cbioportal.org with your host name:

Prashanth Bachu

unread,
Jan 7, 2025, 3:08:48 PMJan 7
to cBioPortal for Cancer Genomics Discussion Group
Hi Benjamin,

Thanks for the help. I will try your suggestion and fix the issue. Appreciate your constant support.

Regards,
Prashanth Bachu.

Prashanth Bachu

unread,
Jan 9, 2025, 3:47:20 AMJan 9
to cBioPortal for Cancer Genomics Discussion Group
Hello Banjamin,

Hope you are doing well. Today I tried to run keycloak server which was set up on my local host and It was not up and running. It was working fine before and I did not change any configurations yet it is not working now and leaving errors. I request you to take a look at error logs and help me to resolve the issues. 

=========================================================================
2025-01-08 11:08:54
2025-01-08 11:08:54   Using PostgreSQL database
2025-01-08 11:08:54
2025-01-08 11:08:54 =========================================================================
2025-01-08 11:08:54
2025-01-08 11:08:54 =========================================================================
2025-01-08 11:08:54
2025-01-08 11:08:54   JBoss Bootstrap Environment
2025-01-08 11:08:54
2025-01-08 11:08:54   JBOSS_HOME: /opt/jboss/keycloak
2025-01-08 11:08:54
2025-01-08 11:08:54   JAVA: java
2025-01-08 11:08:54
2025-01-08 11:08:54   JAVA_OPTS:  -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true                --add-exports=java.base/sun.nio.ch=ALL-UNNAMED --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED --add-exports=jdk.unsupported/sun.reflect=ALL-UNNAMED
2025-01-08 11:08:54
2025-01-08 11:08:54 =========================================================================
2025-01-08 11:08:54
2025-01-08 11:08:54 16:08:54,836 INFO  [org.jboss.modules] (main) JBoss Modules version 1.11.0.Final
2025-01-08 11:08:55 16:08:55,160 INFO  [org.jboss.msc] (main) JBoss MSC version 1.4.12.Final
2025-01-08 11:08:55 16:08:55,166 INFO  [org.jboss.threads] (main) JBoss Threads version 2.4.0.Final
2025-01-08 11:08:55 16:08:55,266 INFO  [org.jboss.as] (MSC service thread 1-1) WFLYSRV0049: Keycloak 15.1.1 (WildFly Core 15.0.1.Final) starting
2025-01-08 11:08:55 16:08:55,268 DEBUG [org.jboss.as.config] (MSC service thread 1-1) Configured system properties:
2025-01-08 11:08:55     [Standalone] =
2025-01-08 11:08:55     awt.toolkit = sun.awt.X11.XToolkit
2025-01-08 11:08:55     file.encoding = UTF-8
2025-01-08 11:08:55     file.separator = /
2025-01-08 11:08:55     java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment
2025-01-08 11:08:55     java.awt.headless = true
2025-01-08 11:08:55     java.awt.printerjob = sun.print.PSPrinterJob
2025-01-08 11:08:55     java.class.path = /opt/jboss/keycloak/jboss-modules.jar
2025-01-08 11:08:55     java.class.version = 55.0
2025-01-08 11:08:55     java.home = /usr/lib/jvm/java-11-openjdk-11.0.13.0.8-3.el8_5.x86_64
2025-01-08 11:08:55     java.io.tmpdir = /tmp
2025-01-08 11:08:55     java.library.path = /usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib
2025-01-08 11:08:55     java.net.preferIPv4Stack = true
2025-01-08 11:08:55     java.runtime.name = OpenJDK Runtime Environment
2025-01-08 11:08:55     java.runtime.version = 11.0.13+8-LTS
2025-01-08 11:08:55     java.specification.name = Java Platform API Specification
2025-01-08 11:08:55     java.specification.vendor = Oracle Corporation
2025-01-08 11:08:55     java.specification.version = 11
2025-01-08 11:08:55     java.util.logging.manager = org.jboss.logmanager.LogManager
2025-01-08 11:08:55     java.vendor = Red Hat, Inc.
2025-01-08 11:08:55     java.vendor.url = https://www.redhat.com/
2025-01-08 11:08:55     java.vendor.url.bug = https://bugzilla.redhat.com/enter_bug.cgi?product=Red%20Hat%20Enterprise%20Linux%208&component=java-11-openjdk
2025-01-08 11:08:55     java.vendor.version = 18.9
2025-01-08 11:08:55     java.version = 11.0.13
2025-01-08 11:08:55     java.version.date = 2021-10-19
2025-01-08 11:08:55     java.vm.compressedOopsMode = 32-bit
2025-01-08 11:08:55     java.vm.info = mixed mode, sharing
2025-01-08 11:08:55     java.vm.name = OpenJDK 64-Bit Server VM
2025-01-08 11:08:55     java.vm.specification.name = Java Virtual Machine Specification
2025-01-08 11:08:55     java.vm.specification.vendor = Oracle Corporation
2025-01-08 11:08:55     java.vm.specification.version = 11
2025-01-08 11:08:55     java.vm.vendor = Red Hat, Inc.
2025-01-08 11:08:55     java.vm.version = 11.0.13+8-LTS
2025-01-08 11:08:55     javax.management.builder.initial = org.jboss.as.jmx.PluggableMBeanServerBuilder
2025-01-08 11:08:55     jboss.bind.address = 0.0.0.0
2025-01-08 11:08:55     jboss.bind.address.private = 172.20.0.2
2025-01-08 11:08:55     jboss.home.dir = /opt/jboss/keycloak
2025-01-08 11:08:55     jboss.host.name = d8089909f8f7
2025-01-08 11:08:55     jboss.modules.dir = /opt/jboss/keycloak/modules
2025-01-08 11:08:55     jboss.modules.system.pkgs = org.jboss.byteman
2025-01-08 11:08:55     jboss.node.name = d8089909f8f7
2025-01-08 11:08:55     jboss.qualified.host.name = d8089909f8f7
2025-01-08 11:08:55     jboss.server.base.dir = /opt/jboss/keycloak/standalone
2025-01-08 11:08:55     jboss.server.config.dir = /opt/jboss/keycloak/standalone/configuration
2025-01-08 11:08:55     jboss.server.data.dir = /opt/jboss/keycloak/standalone/data
2025-01-08 11:08:55     jboss.server.deploy.dir = /opt/jboss/keycloak/standalone/data/content
2025-01-08 11:08:55     jboss.server.log.dir = /opt/jboss/keycloak/standalone/log
2025-01-08 11:08:55     jboss.server.name = d8089909f8f7
2025-01-08 11:08:55     jboss.server.persist.config = true
2025-01-08 11:08:55     jboss.server.temp.dir = /opt/jboss/keycloak/standalone/tmp
2025-01-08 11:08:55     jdk.debug = release
2025-01-08 11:08:55     line.separator =
2025-01-08 11:08:55
2025-01-08 11:08:55     logging.configuration = file:/opt/jboss/keycloak/standalone/configuration/logging.properties
2025-01-08 11:08:55     module.path = /opt/jboss/keycloak/modules
2025-01-08 11:08:55     org.jboss.boot.log.file = /opt/jboss/keycloak/standalone/log/server.log
2025-01-08 11:08:55     org.jboss.resolver.warning = true
2025-01-08 11:08:55     os.arch = amd64
2025-01-08 11:08:55     os.name = Linux
2025-01-08 11:08:55     os.version = 5.15.167.4-microsoft-standard-WSL2
2025-01-08 11:08:55     path.separator = :
2025-01-08 11:08:55     sun.arch.data.model = 64
2025-01-08 11:08:55     sun.boot.library.path = /usr/lib/jvm/java-11-openjdk-11.0.13.0.8-3.el8_5.x86_64/lib
2025-01-08 11:08:55     sun.cpu.endian = little
2025-01-08 11:08:55     sun.cpu.isalist =
2025-01-08 11:08:55     sun.io.unicode.encoding = UnicodeLittle
2025-01-08 11:08:55     sun.java.command = /opt/jboss/keycloak/jboss-modules.jar -mp /opt/jboss/keycloak/modules org.jboss.as.standalone -Djboss.home.dir=/opt/jboss/keycloak -Djboss.server.base.dir=/opt/jboss/keycloak/standalone -Djboss.bind.address=172.20.0.2 -Djboss.bind.address.private=172.20.0.2 -c=standalone-ha.xml -b 0.0.0.0
2025-01-08 11:08:55     sun.java.launcher = SUN_STANDARD
2025-01-08 11:08:55     sun.jnu.encoding = UTF-8
2025-01-08 11:08:55     sun.management.compiler = HotSpot 64-Bit Tiered Compilers
2025-01-08 11:08:55     sun.os.patch.level = unknown
2025-01-08 11:08:55     user.country = US
2025-01-08 11:08:55     user.dir = /
2025-01-08 11:08:55     user.home = /opt/jboss
2025-01-08 11:08:55     user.language = en
2025-01-08 11:08:55     user.name = jboss
2025-01-08 11:08:55     user.timezone = GMT
2025-01-08 11:08:55 16:08:55,270 DEBUG [org.jboss.as.config] (MSC service thread 1-1) VM Arguments: -D[Standalone] -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true --add-exports=java.base/sun.nio.ch=ALL-UNNAMED --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED --add-exports=jdk.unsupported/sun.reflect=ALL-UNNAMED -Dorg.jboss.boot.log.file=/opt/jboss/keycloak/standalone/log/server.log -Dlogging.configuration=file:/opt/jboss/keycloak/standalone/configuration/logging.properties
2025-01-08 11:08:55 16:08:55,345 INFO  [org.jboss.vfs] (MSC service thread 1-3) VFS000002: Failed to clean existing content for temp file provider of type temp. Enable DEBUG level log to find what caused this
2025-01-08 11:08:55 16:08:55,805 INFO  [org.wildfly.security] (ServerService Thread Pool -- 22) ELY00001: WildFly Elytron version 1.15.3.Final
2025-01-08 11:08:56 16:08:56,111 INFO  [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 6) WFLYCTL0033: Extension 'security' is deprecated and may not be supported in future versions
2025-01-08 11:08:56 16:08:56,302 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/core-service=management/management-interface=http-interface' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
2025-01-08 11:08:56 16:08:56,327 INFO  [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 5) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/subsystem=undertow/server=default-server/https-listener=https' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
2025-01-08 11:08:56 16:08:56,441 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Creating http management service using socket-binding (management-http)
2025-01-08 11:08:56 16:08:56,458 INFO  [org.xnio] (MSC service thread 1-4) XNIO version 3.8.4.Final
2025-01-08 11:08:56 16:08:56,466 INFO  [org.xnio.nio] (MSC service thread 1-4) XNIO NIO Implementation Version 3.8.4.Final
2025-01-08 11:08:56 16:08:56,488 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 39) WFLYCLINF0001: Activating Infinispan subsystem.
2025-01-08 11:08:56 16:08:56,488 INFO  [org.wildfly.extension.health] (ServerService Thread Pool -- 38) WFLYHEALTH0001: Activating Base Health Subsystem
2025-01-08 11:08:56 16:08:56,493 INFO  [org.jboss.as.clustering.jgroups] (ServerService Thread Pool -- 43) WFLYCLJG0001: Activating JGroups subsystem. JGroups version 4.2.11
2025-01-08 11:08:56 16:08:56,495 INFO  [org.wildfly.extension.io] (ServerService Thread Pool -- 40) WFLYIO001: Worker 'default' has auto-configured to 44 IO threads with 352 max task threads based on your 22 available processors
2025-01-08 11:08:56 16:08:56,497 WARN  [org.jboss.as.txn] (ServerService Thread Pool -- 55) WFLYTX0013: The node-identifier attribute on the /subsystem=transactions is set to the default value. This is a danger for environments running multiple servers. Please make sure the attribute value is unique.
2025-01-08 11:08:56 16:08:56,504 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 50) WFLYNAM0001: Activating Naming Subsystem
2025-01-08 11:08:56 16:08:56,505 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 53) WFLYSEC0002: Activating Security Subsystem
2025-01-08 11:08:56 16:08:56,508 INFO  [org.jboss.as.connector] (MSC service thread 1-3) WFLYJCA0009: Starting Jakarta Connectors Subsystem (WildFly/IronJacamar 1.4.27.Final)
2025-01-08 11:08:56 16:08:56,515 INFO  [org.jboss.as.security] (MSC service thread 1-8) WFLYSEC0001: Current PicketBox version=5.0.3.Final-redhat-00007
2025-01-08 11:08:56 16:08:56,518 INFO  [org.jboss.as.jaxrs] (ServerService Thread Pool -- 41) WFLYRS0016: RESTEasy version 3.15.1.Final
2025-01-08 11:08:56 16:08:56,520 INFO  [org.wildfly.extension.metrics] (ServerService Thread Pool -- 48) WFLYMETRICS0001: Activating Base Metrics Subsystem
2025-01-08 11:08:56 16:08:56,595 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 33) WFLYJCA0004: Deploying JDBC-compliant driver class org.h2.Driver (version 1.4)
2025-01-08 11:08:56 16:08:56,600 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-2) WFLYJCA0018: Started Driver service with driver-name = h2
2025-01-08 11:08:56 16:08:56,604 INFO  [org.jboss.remoting] (MSC service thread 1-4) JBoss Remoting version 5.0.20.Final
2025-01-08 11:08:56 16:08:56,608 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0003: Undertow 2.2.5.Final starting
2025-01-08 11:08:56 16:08:56,609 INFO  [org.jboss.as.naming] (MSC service thread 1-2) WFLYNAM0003: Starting Naming Service
2025-01-08 11:08:56 16:08:56,613 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-7) WFLYMAIL0001: Bound mail session [java:jboss/mail/Default]
2025-01-08 11:08:56 16:08:56,623 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 33) WFLYJCA0005: Deploying non-JDBC-compliant driver class org.postgresql.Driver (version 42.2)
2025-01-08 11:08:56 16:08:56,624 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-2) WFLYJCA0018: Started Driver service with driver-name = postgresql
2025-01-08 11:08:56 16:08:56,642 WARN  [org.wildfly.clustering.web.undertow] (ServerService Thread Pool -- 56) WFLYCLWEBUT0007: No routing provider found for default-server; using legacy provider based on static configuration
2025-01-08 11:08:56 16:08:56,698 WARN  [org.wildfly.extension.elytron] (MSC service thread 1-4) WFLYELY00023: KeyStore file '/opt/jboss/keycloak/standalone/configuration/application.keystore' does not exist. Used blank.
2025-01-08 11:08:56 16:08:56,707 WARN  [org.wildfly.extension.elytron] (MSC service thread 1-3) WFLYELY01084: KeyStore /opt/jboss/keycloak/standalone/configuration/application.keystore not found, it will be auto generated on first use with a self-signed certificate for host localhost
2025-01-08 11:08:56 16:08:56,715 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 56) WFLYUT0014: Creating file handler for path '/opt/jboss/keycloak/welcome-content' with options [directory-listing: 'false', follow-symlink: 'false', case-sensitive: 'true', safe-symlink-paths: '[]']
2025-01-08 11:08:56 16:08:56,744 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0012: Started server default-server.
2025-01-08 11:08:56 16:08:56,745 INFO  [org.jboss.as.ejb3] (MSC service thread 1-3) WFLYEJB0481: Strict pool slsb-strict-max-pool is using a max instance size of 352 (per class), which is derived from thread worker pool sizing.
2025-01-08 11:08:56 16:08:56,745 INFO  [org.jboss.as.ejb3] (MSC service thread 1-4) WFLYEJB0482: Strict pool mdb-strict-max-pool is using a max instance size of 88 (per class), which is derived from the number of CPUs on this host.
2025-01-08 11:08:56 16:08:56,748 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-7) Queuing requests.
2025-01-08 11:08:56 16:08:56,749 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0018: Host default-host starting
2025-01-08 11:08:56 16:08:56,820 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0006: Undertow HTTP listener default listening on 0.0.0.0:8080
2025-01-08 11:08:56 16:08:56,821 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-3) WFLYUT0006: Undertow AJP listener ajp listening on 0.0.0.0:8009
2025-01-08 11:08:56 16:08:56,827 INFO  [org.jboss.modcluster] (ServerService Thread Pool -- 58) MODCLUSTER000001: Initializing mod_cluster version 1.4.3.Final
2025-01-08 11:08:56 16:08:56,843 INFO  [org.jboss.modcluster] (ServerService Thread Pool -- 58) MODCLUSTER000032: Listening to proxy advertisements on /224.0.1.105:23364
2025-01-08 11:08:56 16:08:56,899 INFO  [org.jboss.as.ejb3] (MSC service thread 1-3) WFLYEJB0493: Jakarta Enterprise Beans subsystem suspension complete
2025-01-08 11:08:56 16:08:56,934 INFO  [org.jboss.as.patching] (MSC service thread 1-1) WFLYPAT0050: Keycloak cumulative patch ID is: base, one-off patches include: none
2025-01-08 11:08:56 16:08:56,944 WARN  [org.jboss.as.domain.management.security] (MSC service thread 1-6) WFLYDM0111: Keystore /opt/jboss/keycloak/standalone/configuration/application.keystore not found, it will be auto generated on first use with a self signed certificate for host localhost
2025-01-08 11:08:56 16:08:56,951 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-2) WFLYDS0013: Started FileSystemDeploymentService for directory /opt/jboss/keycloak/standalone/deployments
2025-01-08 11:08:56 16:08:56,957 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-7) WFLYJCA0001: Bound data source [java:jboss/datasources/KeycloakDS]
2025-01-08 11:08:56 16:08:56,957 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) WFLYJCA0001: Bound data source [java:jboss/datasources/ExampleDS]
2025-01-08 11:08:56 16:08:56,964 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0027: Starting deployment of "keycloak-server.war" (runtime-name: "keycloak-server.war")
2025-01-08 11:08:56 16:08:56,973 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0006: Undertow HTTPS listener https listening on 0.0.0.0:8443
2025-01-08 11:08:57 16:08:57,310 WARN  [org.jgroups.protocols.UDP] (ServerService Thread Pool -- 58) JGRP000015: the send buffer of socket ManagedMulticastSocketBinding was set to 1.00MB, but the OS only allocated 212.99KB
2025-01-08 11:08:57 16:08:57,310 WARN  [org.jgroups.protocols.UDP] (ServerService Thread Pool -- 58) JGRP000015: the receive buffer of socket ManagedMulticastSocketBinding was set to 20.00MB, but the OS only allocated 212.99KB
2025-01-08 11:08:57 16:08:57,310 WARN  [org.jgroups.protocols.UDP] (ServerService Thread Pool -- 58) JGRP000015: the send buffer of socket ManagedMulticastSocketBinding was set to 1.00MB, but the OS only allocated 212.99KB
2025-01-08 11:08:57 16:08:57,311 WARN  [org.jgroups.protocols.UDP] (ServerService Thread Pool -- 58) JGRP000015: the receive buffer of socket ManagedMulticastSocketBinding was set to 25.00MB, but the OS only allocated 212.99KB
2025-01-08 11:09:00 16:09:00,324 INFO  [org.jgroups.protocols.pbcast.GMS] (ServerService Thread Pool -- 58) d8089909f8f7: no members discovered after 3009 ms: creating cluster as coordinator
2025-01-08 11:09:00 16:09:00,700 INFO  [org.infinispan.CONTAINER] (ServerService Thread Pool -- 60) ISPN000128: Infinispan version: Infinispan 'Corona Extra' 11.0.9.Final
2025-01-08 11:09:00 16:09:00,728 INFO  [org.infinispan.PERSISTENCE] (ServerService Thread Pool -- 62) ISPN000556: Starting user marshaller 'org.wildfly.clustering.infinispan.marshalling.jboss.JBossMarshaller'
2025-01-08 11:09:00 16:09:00,771 INFO  [org.infinispan.PERSISTENCE] (ServerService Thread Pool -- 61) ISPN000556: Starting user marshaller 'org.wildfly.clustering.infinispan.marshalling.jboss.JBossMarshaller'
2025-01-08 11:09:00 16:09:00,771 INFO  [org.infinispan.PERSISTENCE] (ServerService Thread Pool -- 60) ISPN000556: Starting user marshaller 'org.wildfly.clustering.infinispan.spi.marshalling.InfinispanProtoStreamMarshaller'
2025-01-08 11:09:00 16:09:00,771 INFO  [org.infinispan.PERSISTENCE] (ServerService Thread Pool -- 58) ISPN000556: Starting user marshaller 'org.wildfly.clustering.infinispan.spi.marshalling.InfinispanProtoStreamMarshaller'
2025-01-08 11:09:00 16:09:00,771 INFO  [org.infinispan.PERSISTENCE] (ServerService Thread Pool -- 59) ISPN000556: Starting user marshaller 'org.wildfly.clustering.infinispan.spi.marshalling.InfinispanProtoStreamMarshaller'
2025-01-08 11:09:00 16:09:00,829 INFO  [org.infinispan.CLUSTER] (ServerService Thread Pool -- 58) ISPN000078: Starting JGroups channel ejb
2025-01-08 11:09:00 16:09:00,830 INFO  [org.infinispan.CLUSTER] (ServerService Thread Pool -- 60) ISPN000078: Starting JGroups channel ejb
2025-01-08 11:09:00 16:09:00,830 INFO  [org.infinispan.CLUSTER] (ServerService Thread Pool -- 61) ISPN000078: Starting JGroups channel ejb
2025-01-08 11:09:00 16:09:00,830 INFO  [org.infinispan.CLUSTER] (ServerService Thread Pool -- 59) ISPN000078: Starting JGroups channel ejb
2025-01-08 11:09:00 16:09:00,830 INFO  [org.infinispan.CLUSTER] (ServerService Thread Pool -- 62) ISPN000078: Starting JGroups channel ejb
2025-01-08 11:09:00 16:09:00,833 INFO  [org.infinispan.CLUSTER] (ServerService Thread Pool -- 62) ISPN000094: Received new cluster view for channel ejb: [d8089909f8f7|0] (1) [d8089909f8f7]
2025-01-08 11:09:00 16:09:00,833 INFO  [org.infinispan.CLUSTER] (ServerService Thread Pool -- 58) ISPN000094: Received new cluster view for channel ejb: [d8089909f8f7|0] (1) [d8089909f8f7]
2025-01-08 11:09:00 16:09:00,833 INFO  [org.infinispan.CLUSTER] (ServerService Thread Pool -- 60) ISPN000094: Received new cluster view for channel ejb: [d8089909f8f7|0] (1) [d8089909f8f7]
2025-01-08 11:09:00 16:09:00,833 INFO  [org.infinispan.CLUSTER] (ServerService Thread Pool -- 61) ISPN000094: Received new cluster view for channel ejb: [d8089909f8f7|0] (1) [d8089909f8f7]
2025-01-08 11:09:00 16:09:00,833 INFO  [org.infinispan.CLUSTER] (ServerService Thread Pool -- 59) ISPN000094: Received new cluster view for channel ejb: [d8089909f8f7|0] (1) [d8089909f8f7]
2025-01-08 11:09:00 16:09:00,838 INFO  [org.infinispan.CLUSTER] (ServerService Thread Pool -- 59) ISPN000079: Channel ejb local address is d8089909f8f7, physical addresses are [172.20.0.2:55200]
2025-01-08 11:09:00 16:09:00,838 INFO  [org.infinispan.CLUSTER] (ServerService Thread Pool -- 60) ISPN000079: Channel ejb local address is d8089909f8f7, physical addresses are [172.20.0.2:55200]
2025-01-08 11:09:00 16:09:00,838 INFO  [org.infinispan.CLUSTER] (ServerService Thread Pool -- 58) ISPN000079: Channel ejb local address is d8089909f8f7, physical addresses are [172.20.0.2:55200]
2025-01-08 11:09:00 16:09:00,838 INFO  [org.infinispan.CLUSTER] (ServerService Thread Pool -- 61) ISPN000079: Channel ejb local address is d8089909f8f7, physical addresses are [172.20.0.2:55200]
2025-01-08 11:09:00 16:09:00,838 INFO  [org.infinispan.CLUSTER] (ServerService Thread Pool -- 62) ISPN000079: Channel ejb local address is d8089909f8f7, physical addresses are [172.20.0.2:55200]
2025-01-08 11:09:00 16:09:00,869 INFO  [org.infinispan.CONFIG] (MSC service thread 1-1) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
2025-01-08 11:09:00 16:09:00,870 INFO  [org.infinispan.CONFIG] (MSC service thread 1-1) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
2025-01-08 11:09:01 16:09:01,059 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 59) WFLYCLINF0002: Started http-remoting-connector cache from ejb container
2025-01-08 11:09:01 16:09:01,089 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 58) WFLYCLINF0002: Started work cache from keycloak container
2025-01-08 11:09:01 16:09:01,094 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 62) WFLYCLINF0002: Started clientSessions cache from keycloak container
2025-01-08 11:09:01 16:09:01,094 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 63) WFLYCLINF0002: Started loginFailures cache from keycloak container
2025-01-08 11:09:01 16:09:01,094 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 67) WFLYCLINF0002: Started actionTokens cache from keycloak container
2025-01-08 11:09:01 16:09:01,094 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 70) WFLYCLINF0002: Started offlineClientSessions cache from keycloak container
2025-01-08 11:09:01 16:09:01,095 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 68) WFLYCLINF0002: Started authenticationSessions cache from keycloak container
2025-01-08 11:09:01 16:09:01,095 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 61) WFLYCLINF0002: Started offlineSessions cache from keycloak container
2025-01-08 11:09:01 16:09:01,095 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 66) WFLYCLINF0002: Started sessions cache from keycloak container
2025-01-08 11:09:01 16:09:01,125 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 60) WFLYCLINF0002: Started authorization cache from keycloak container
2025-01-08 11:09:01 16:09:01,125 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 69) WFLYCLINF0002: Started keys cache from keycloak container
2025-01-08 11:09:01 16:09:01,125 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 65) WFLYCLINF0002: Started realms cache from keycloak container
2025-01-08 11:09:01 16:09:01,125 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 64) WFLYCLINF0002: Started users cache from keycloak container
2025-01-08 11:09:01 16:09:01,201 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0273: Excluded subsystem webservices via jboss-deployment-structure.xml does not exist.
2025-01-08 11:09:01 16:09:01,680 INFO  [org.keycloak.services] (ServerService Thread Pool -- 65) KC-SERVICES0001: Loading config from standalone.xml or domain.xml
2025-01-08 11:09:01 16:09:01,837 INFO  [org.keycloak.url.DefaultHostnameProviderFactory] (ServerService Thread Pool -- 65) Frontend: <request>, Admin: <frontend>, Backend: <request>
2025-01-08 11:09:02 16:09:02,119 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 65) WFLYCLINF0002: Started realmRevisions cache from keycloak container
2025-01-08 11:09:02 16:09:02,122 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 65) WFLYCLINF0002: Started userRevisions cache from keycloak container
2025-01-08 11:09:02 16:09:02,126 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 65) WFLYCLINF0002: Started authorizationRevisions cache from keycloak container
2025-01-08 11:09:02 16:09:02,127 INFO  [org.keycloak.connections.infinispan.DefaultInfinispanConnectionProviderFactory] (ServerService Thread Pool -- 65) Node name: d8089909f8f7, Site name: null
2025-01-08 11:09:05 16:09:05,043 WARN  [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (ServerService Thread Pool -- 65) IJ000604: Throwable while attempting to get a new connection: null: javax.resource.ResourceException: IJ031084: Unable to create connection
2025-01-08 11:09:05     at org.jboss.ironjac...@1.4.27.Final//org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createLocalManagedConnection(LocalManagedConnectionFactory.java:345)
2025-01-08 11:09:05     at org.jboss.ironjac...@1.4.27.Final//org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:352)
2025-01-08 11:09:05     at org.jboss.ironjac...@1.4.27.Final//org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:287)
2025-01-08 11:09:05     at org.jboss.iro...@1.4.27.Final//org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreConcurrentLinkedDequeManagedConnectionPool.createConnectionEventListener(SemaphoreConcurrentLinkedDequeManagedConnectionPool.java:1322)
2025-01-08 11:09:05     at org.jboss.iro...@1.4.27.Final//org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreConcurrentLinkedDequeManagedConnectionPool.getConnection(SemaphoreConcurrentLinkedDequeManagedConnectionPool.java:499)
2025-01-08 11:09:05     at org.jboss.iro...@1.4.27.Final//org.jboss.jca.core.connectionmanager.pool.AbstractPool.getSimpleConnection(AbstractPool.java:632)
2025-01-08 11:09:05     at org.jboss.iro...@1.4.27.Final//org.jboss.jca.core.connectionmanager.pool.AbstractPool.getConnection(AbstractPool.java:604)
2025-01-08 11:09:05     at org.jboss.iro...@1.4.27.Final//org.jboss.jca.core.connectionmanager.AbstractConnectionManager.getManagedConnection(AbstractConnectionManager.java:624)
2025-01-08 11:09:05     at org.jboss.iro...@1.4.27.Final//org.jboss.jca.core.connectionmanager.tx.TxConnectionManagerImpl.getManagedConnection(TxConnectionManagerImpl.java:440)
2025-01-08 11:09:05     at org.jboss.iro...@1.4.27.Final//org.jboss.jca.core.connectionmanager.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:789)
2025-01-08 11:09:05     at org.jboss.ironjac...@1.4.27.Final//org.jboss.jca.adapters.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:151)
2025-01-08 11:09:05     at org.jboss.a...@23.0.2.Final//org.jboss.as.connector.subsystems.datasources.WildFlyDataSource.getConnection(WildFlyDataSource.java:64)
2025-01-08 11:09:05     at org.keycloak.ke...@15.1.1//org.keycloak.connections.jpa.DefaultJpaConnectionProviderFactory.getConnection(DefaultJpaConnectionProviderFactory.java:413)
2025-01-08 11:09:05     at org.keycloak.ke...@15.1.1//org.keycloak.connections.jpa.updater.liquibase.lock.LiquibaseDBLockProvider.lazyInit(LiquibaseDBLockProvider.java:65)
2025-01-08 11:09:05     at org.keycloak.ke...@15.1.1//org.keycloak.connections.jpa.updater.liquibase.lock.LiquibaseDBLockProvider.lambda$waitForLock$2(LiquibaseDBLockProvider.java:96)
2025-01-08 11:09:05     at org.keycloak.keycloa...@15.1.1//org.keycloak.models.utils.KeycloakModelUtils.suspendJtaTransaction(KeycloakModelUtils.java:753)
2025-01-08 11:09:05     at org.keycloak.ke...@15.1.1//org.keycloak.connections.jpa.updater.liquibase.lock.LiquibaseDBLockProvider.waitForLock(LiquibaseDBLockProvider.java:94)
2025-01-08 11:09:05     at org.keycloak.ke...@15.1.1//org.keycloak.services.resources.KeycloakApplication$1.run(KeycloakApplication.java:134)
2025-01-08 11:09:05     at org.keycloak.keycloa...@15.1.1//org.keycloak.models.utils.KeycloakModelUtils.runJobInTransaction(KeycloakModelUtils.java:239)
2025-01-08 11:09:05     at org.keycloak.ke...@15.1.1//org.keycloak.services.resources.KeycloakApplication.startup(KeycloakApplication.java:128)
2025-01-08 11:09:05     at org.keycloak.keycloa...@15.1.1//org.keycloak.provider.wildfly.WildflyPlatform.onStartup(WildflyPlatform.java:36)
2025-01-08 11:09:05     at org.keycloak.ke...@15.1.1//org.keycloak.services.resources.KeycloakApplication.<init>(KeycloakApplication.java:114)
2025-01-08 11:09:05     at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
2025-01-08 11:09:05     at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
2025-01-08 11:09:05     at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
2025-01-08 11:09:05     at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
2025-01-08 11:09:05     at org.jboss.restea...@3.15.1.Final//org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:152)
2025-01-08 11:09:05     at org.jboss.restea...@3.15.1.Final//org.jboss.resteasy.spi.ResteasyProviderFactory.createProviderInstance(ResteasyProviderFactory.java:2835)
2025-01-08 11:09:05     at org.jboss.restea...@3.15.1.Final//org.jboss.resteasy.spi.ResteasyDeployment.createApplication(ResteasyDeployment.java:376)
2025-01-08 11:09:05     at org.jboss.restea...@3.15.1.Final//org.jboss.resteasy.spi.ResteasyDeployment.startInternal(ResteasyDeployment.java:288)
2025-01-08 11:09:05     at org.jboss.restea...@3.15.1.Final//org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:98)
2025-01-08 11:09:05     at org.jboss.restea...@3.15.1.Final//org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:140)
2025-01-08 11:09:05     at org.jboss.restea...@3.15.1.Final//org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:42)
2025-01-08 11:09:05     at io.undert...@2.2.5.Final//io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117)
2025-01-08 11:09:05     at org.wildfly.ext...@23.0.2.Final//org.wildfly.extension.undertow.security.RunAsLifecycleInterceptor.init(RunAsLifecycleInterceptor.java:78)
2025-01-08 11:09:05     at io.undert...@2.2.5.Final//io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:103)
2025-01-08 11:09:05     at io.undert...@2.2.5.Final//io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:305)
2025-01-08 11:09:05     at io.undert...@2.2.5.Final//io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:145)
2025-01-08 11:09:05     at io.undert...@2.2.5.Final//io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:588)
2025-01-08 11:09:05     at io.undert...@2.2.5.Final//io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:559)
2025-01-08 11:09:05     at io.undert...@2.2.5.Final//io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
2025-01-08 11:09:05     at io.undert...@2.2.5.Final//io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
2025-01-08 11:09:05     at org.wildfly.ext...@23.0.2.Final//org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
2025-01-08 11:09:05     at org.wildfly.ext...@23.0.2.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
2025-01-08 11:09:05     at org.wildfly.ext...@23.0.2.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
2025-01-08 11:09:05     at org.wildfly.ext...@23.0.2.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
2025-01-08 11:09:05     at org.wildfly.ext...@23.0.2.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
2025-01-08 11:09:05     at io.undert...@2.2.5.Final//io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:601)
2025-01-08 11:09:05     at org.wildfly.ext...@23.0.2.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:97)
2025-01-08 11:09:05     at org.wildfly.ext...@23.0.2.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:78)
2025-01-08 11:09:05     at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
2025-01-08 11:09:05     at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
2025-01-08 11:09:05     at org.jbos...@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
2025-01-08 11:09:05     at org.jbos...@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
2025-01-08 11:09:05     at org.jbos...@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
2025-01-08 11:09:05     at org.jbos...@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
2025-01-08 11:09:05     at java.base/java.lang.Thread.run(Thread.java:829)
2025-01-08 11:09:05     at org.jbos...@2.4.0.Final//org.jboss.threads.JBossThread.run(JBossThread.java:513)
2025-01-08 11:09:05 Caused by: org.postgresql.util.PSQLException: The connection attempt failed.
2025-01-08 11:09:05     at org.postg...@42.2.5//org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:292)
2025-01-08 11:09:05     at org.postg...@42.2.5//org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
2025-01-08 11:09:05     at org.postg...@42.2.5//org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195)
2025-01-08 11:09:05     at org.postg...@42.2.5//org.postgresql.Driver.makeConnection(Driver.java:454)
2025-01-08 11:09:05     at org.postg...@42.2.5//org.postgresql.Driver.connect(Driver.java:256)
2025-01-08 11:09:05     at org.jboss.ironjac...@1.4.27.Final//org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createLocalManagedConnection(LocalManagedConnectionFactory.java:321)
2025-01-08 11:09:05     ... 57 more
2025-01-08 11:09:05 Caused by: java.net.UnknownHostException: postgres
2025-01-08 11:09:05     at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:220)
2025-01-08 11:09:05     at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
2025-01-08 11:09:05     at java.base/java.net.Socket.connect(Socket.java:609)
2025-01-08 11:09:05     at org.postg...@42.2.5//org.postgresql.core.PGStream.<init>(PGStream.java:70)
2025-01-08 11:09:05     at org.postg...@42.2.5//org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:91)
2025-01-08 11:09:05     at org.postg...@42.2.5//org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:192)
2025-01-08 11:09:05     ... 62 more
2025-01-08 11:09:05
2025-01-08 11:09:05 16:09:05,046 FATAL [org.keycloak.services] (ServerService Thread Pool -- 65) Error during startup: java.lang.RuntimeException: Failed to connect to database
2025-01-08 11:09:05     at org.keycloak.ke...@15.1.1//org.keycloak.connections.jpa.DefaultJpaConnectionProviderFactory.getConnection(DefaultJpaConnectionProviderFactory.java:419)
2025-01-08 11:09:05     at org.keycloak.ke...@15.1.1//org.keycloak.connections.jpa.updater.liquibase.lock.LiquibaseDBLockProvider.lazyInit(LiquibaseDBLockProvider.java:65)
2025-01-08 11:09:05     at org.keycloak.ke...@15.1.1//org.keycloak.connections.jpa.updater.liquibase.lock.LiquibaseDBLockProvider.lambda$waitForLock$2(LiquibaseDBLockProvider.java:96)
2025-01-08 11:09:05     at org.keycloak.keycloa...@15.1.1//org.keycloak.models.utils.KeycloakModelUtils.suspendJtaTransaction(KeycloakModelUtils.java:753)
2025-01-08 11:09:05     at org.keycloak.ke...@15.1.1//org.keycloak.connections.jpa.updater.liquibase.lock.LiquibaseDBLockProvider.waitForLock(LiquibaseDBLockProvider.java:94)
2025-01-08 11:09:05     at org.keycloak.ke...@15.1.1//org.keycloak.services.resources.KeycloakApplication$1.run(KeycloakApplication.java:134)
2025-01-08 11:09:05     at org.keycloak.keycloa...@15.1.1//org.keycloak.models.utils.KeycloakModelUtils.runJobInTransaction(KeycloakModelUtils.java:239)
2025-01-08 11:09:05     at org.keycloak.ke...@15.1.1//org.keycloak.services.resources.KeycloakApplication.startup(KeycloakApplication.java:128)
2025-01-08 11:09:05     at org.keycloak.keycloa...@15.1.1//org.keycloak.provider.wildfly.WildflyPlatform.onStartup(WildflyPlatform.java:36)
2025-01-08 11:09:05     at org.keycloak.ke...@15.1.1//org.keycloak.services.resources.KeycloakApplication.<init>(KeycloakApplication.java:114)
2025-01-08 11:09:05     at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
2025-01-08 11:09:05     at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
2025-01-08 11:09:05     at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
2025-01-08 11:09:05     at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
2025-01-08 11:09:05     at org.jboss.restea...@3.15.1.Final//org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:152)
2025-01-08 11:09:05     at org.jboss.restea...@3.15.1.Final//org.jboss.resteasy.spi.ResteasyProviderFactory.createProviderInstance(ResteasyProviderFactory.java:2835)
2025-01-08 11:09:05     at org.jboss.restea...@3.15.1.Final//org.jboss.resteasy.spi.ResteasyDeployment.createApplication(ResteasyDeployment.java:376)
2025-01-08 11:09:05     at org.jboss.restea...@3.15.1.Final//org.jboss.resteasy.spi.ResteasyDeployment.startInternal(ResteasyDeployment.java:288)
2025-01-08 11:09:05     at org.jboss.restea...@3.15.1.Final//org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:98)
2025-01-08 11:09:05     at org.jboss.restea...@3.15.1.Final//org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:140)
2025-01-08 11:09:05     at org.jboss.restea...@3.15.1.Final//org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:42)
2025-01-08 11:09:05     at io.undert...@2.2.5.Final//io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117)
2025-01-08 11:09:05     at org.wildfly.ext...@23.0.2.Final//org.wildfly.extension.undertow.security.RunAsLifecycleInterceptor.init(RunAsLifecycleInterceptor.java:78)
2025-01-08 11:09:05     at io.undert...@2.2.5.Final//io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:103)
2025-01-08 11:09:05     at io.undert...@2.2.5.Final//io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:305)
2025-01-08 11:09:05     at io.undert...@2.2.5.Final//io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:145)
2025-01-08 11:09:05     at io.undert...@2.2.5.Final//io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:588)
2025-01-08 11:09:05     at io.undert...@2.2.5.Final//io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:559)
2025-01-08 11:09:05     at io.undert...@2.2.5.Final//io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
2025-01-08 11:09:05     at io.undert...@2.2.5.Final//io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
2025-01-08 11:09:05     at org.wildfly.ext...@23.0.2.Final//org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
2025-01-08 11:09:05     at org.wildfly.ext...@23.0.2.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
2025-01-08 11:09:05     at org.wildfly.ext...@23.0.2.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
2025-01-08 11:09:05     at org.wildfly.ext...@23.0.2.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
2025-01-08 11:09:05     at org.wildfly.ext...@23.0.2.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
2025-01-08 11:09:05     at io.undert...@2.2.5.Final//io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:601)
2025-01-08 11:09:05     at org.wildfly.ext...@23.0.2.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:97)
2025-01-08 11:09:05     at org.wildfly.ext...@23.0.2.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:78)
2025-01-08 11:09:05     at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
2025-01-08 11:09:05     at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
2025-01-08 11:09:05     at org.jbos...@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
2025-01-08 11:09:05     at org.jbos...@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
2025-01-08 11:09:05     at org.jbos...@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
2025-01-08 11:09:05     at org.jbos...@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
2025-01-08 11:09:05     at java.base/java.lang.Thread.run(Thread.java:829)
2025-01-08 11:09:05     at org.jbos...@2.4.0.Final//org.jboss.threads.JBossThread.run(JBossThread.java:513)
2025-01-08 11:09:05 Caused by: java.sql.SQLException: javax.resource.ResourceException: IJ000453: Unable to get managed connection for java:jboss/datasources/KeycloakDS
2025-01-08 11:09:05     at org.jboss.ironjac...@1.4.27.Final//org.jboss.jca.adapters.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:159)
2025-01-08 11:09:05     at org.jboss.a...@23.0.2.Final//org.jboss.as.connector.subsystems.datasources.WildFlyDataSource.getConnection(WildFlyDataSource.java:64)
2025-01-08 11:09:05     at org.keycloak.ke...@15.1.1//org.keycloak.connections.jpa.DefaultJpaConnectionProviderFactory.getConnection(DefaultJpaConnectionProviderFactory.java:413)
2025-01-08 11:09:05     ... 45 more
2025-01-08 11:09:05 Caused by: javax.resource.ResourceException: IJ000453: Unable to get managed connection for java:jboss/datasources/KeycloakDS
2025-01-08 11:09:05     at org.jboss.iro...@1.4.27.Final//org.jboss.jca.core.connectionmanager.AbstractConnectionManager.getManagedConnection(AbstractConnectionManager.java:690)
2025-01-08 11:09:05     at org.jboss.iro...@1.4.27.Final//org.jboss.jca.core.connectionmanager.tx.TxConnectionManagerImpl.getManagedConnection(TxConnectionManagerImpl.java:440)
2025-01-08 11:09:05     at org.jboss.iro...@1.4.27.Final//org.jboss.jca.core.connectionmanager.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:789)
2025-01-08 11:09:05     at org.jboss.ironjac...@1.4.27.Final//org.jboss.jca.adapters.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:151)
2025-01-08 11:09:05     ... 47 more
2025-01-08 11:09:05 Caused by: javax.resource.ResourceException: IJ031084: Unable to create connection
2025-01-08 11:09:05     at org.jboss.ironjac...@1.4.27.Final//org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createLocalManagedConnection(LocalManagedConnectionFactory.java:345)
2025-01-08 11:09:05     at org.jboss.ironjac...@1.4.27.Final//org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:352)
2025-01-08 11:09:05     at org.jboss.ironjac...@1.4.27.Final//org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:287)
2025-01-08 11:09:05     at org.jboss.iro...@1.4.27.Final//org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreConcurrentLinkedDequeManagedConnectionPool.createConnectionEventListener(SemaphoreConcurrentLinkedDequeManagedConnectionPool.java:1322)
2025-01-08 11:09:05     at org.jboss.iro...@1.4.27.Final//org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreConcurrentLinkedDequeManagedConnectionPool.getConnection(SemaphoreConcurrentLinkedDequeManagedConnectionPool.java:499)
2025-01-08 11:09:05     at org.jboss.iro...@1.4.27.Final//org.jboss.jca.core.connectionmanager.pool.AbstractPool.getSimpleConnection(AbstractPool.java:632)
2025-01-08 11:09:05     at org.jboss.iro...@1.4.27.Final//org.jboss.jca.core.connectionmanager.pool.AbstractPool.getConnection(AbstractPool.java:604)
2025-01-08 11:09:05     at org.jboss.iro...@1.4.27.Final//org.jboss.jca.core.connectionmanager.AbstractConnectionManager.getManagedConnection(AbstractConnectionManager.java:624)
2025-01-08 11:09:05     ... 50 more
2025-01-08 11:09:05 Caused by: org.postgresql.util.PSQLException: The connection attempt failed.
2025-01-08 11:09:05     at org.postg...@42.2.5//org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:292)
2025-01-08 11:09:05     at org.postg...@42.2.5//org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
2025-01-08 11:09:05     at org.postg...@42.2.5//org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195)
2025-01-08 11:09:05     at org.postg...@42.2.5//org.postgresql.Driver.makeConnection(Driver.java:454)
2025-01-08 11:09:05     at org.postg...@42.2.5//org.postgresql.Driver.connect(Driver.java:256)
2025-01-08 11:09:05     at org.jboss.ironjac...@1.4.27.Final//org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createLocalManagedConnection(LocalManagedConnectionFactory.java:321)
2025-01-08 11:09:05     ... 57 more
2025-01-08 11:09:05 Caused by: java.net.UnknownHostException: postgres
2025-01-08 11:09:05     at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:220)
2025-01-08 11:09:05     at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
2025-01-08 11:09:05     at java.base/java.net.Socket.connect(Socket.java:609)
2025-01-08 11:09:05     at org.postg...@42.2.5//org.postgresql.core.PGStream.<init>(PGStream.java:70)
2025-01-08 11:09:05     at org.postg...@42.2.5//org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:91)
2025-01-08 11:09:05     at org.postg...@42.2.5//org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:192)
2025-01-08 11:09:05     ... 62 more
2025-01-08 11:09:05
2025-01-08 11:09:05 16:09:05,049 INFO  [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 65) RESTEASY002225: Deploying javax.ws.rs.core.Application: class org.keycloak.services.resources.KeycloakApplication
2025-01-08 11:09:05 16:09:05,050 INFO  [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 65) RESTEASY002200: Adding class resource org.keycloak.services.resources.JsResource from Application class org.keycloak.services.resources.KeycloakApplication
2025-01-08 11:09:05 16:09:05,051 INFO  [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 65) RESTEASY002200: Adding class resource org.keycloak.services.resources.ThemeResource from Application class org.keycloak.services.resources.KeycloakApplication
2025-01-08 11:09:05 16:09:05,051 INFO  [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 65) RESTEASY002205: Adding provider class org.keycloak.services.filters.KeycloakSecurityHeadersFilter from Application class org.keycloak.services.resources.KeycloakApplication
2025-01-08 11:09:05 16:09:05,051 INFO  [org.jboss.as.server] (Thread-1) WFLYSRV0220: Server shutdown has been requested via an OS signal
2025-01-08 11:09:05 16:09:05,051 INFO  [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 65) RESTEASY002205: Adding provider class org.keycloak.services.error.KeycloakErrorHandler from Application class org.keycloak.services.resources.KeycloakApplication
2025-01-08 11:09:05 16:09:05,051 INFO  [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 65) RESTEASY002220: Adding singleton resource org.keycloak.services.resources.WelcomeResource from Application class org.keycloak.services.resources.KeycloakApplication
2025-01-08 11:09:05 16:09:05,051 INFO  [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 65) RESTEASY002220: Adding singleton resource org.keycloak.services.resources.admin.AdminRoot from Application class org.keycloak.services.resources.KeycloakApplication
2025-01-08 11:09:05 16:09:05,051 INFO  [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 65) RESTEASY002220: Adding singleton resource org.keycloak.services.resources.RobotsResource from Application class org.keycloak.services.resources.KeycloakApplication
2025-01-08 11:09:05 16:09:05,051 INFO  [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 65) RESTEASY002220: Adding singleton resource org.keycloak.services.resources.RealmsResource from Application class org.keycloak.services.resources.KeycloakApplication
2025-01-08 11:09:05 16:09:05,051 INFO  [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 65) RESTEASY002210: Adding provider singleton org.keycloak.services.util.ObjectMapperResolver from Application class org.keycloak.services.resources.KeycloakApplication
2025-01-08 11:09:05 16:09:05,068 INFO  [org.infinispan.manager.DefaultCacheManager] (ServerService Thread Pool -- 60) Stopping cache manager null on d8089909f8f7
2025-01-08 11:09:05 16:09:05,068 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) WFLYJCA0010: Unbound data source [java:jboss/datasources/KeycloakDS]
2025-01-08 11:09:05 16:09:05,071 INFO  [org.infinispan.manager.DefaultCacheManager] (ServerService Thread Pool -- 66) Stopping cache manager null on d8089909f8f7
2025-01-08 11:09:05 16:09:05,071 INFO  [org.infinispan.manager.DefaultCacheManager] (ServerService Thread Pool -- 69) Stopping cache manager null on d8089909f8f7
2025-01-08 11:09:05 16:09:05,072 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-2) WFLYMAIL0002: Unbound mail session [java:jboss/mail/Default]
2025-01-08 11:09:05 16:09:05,073 INFO  [org.infinispan.CLUSTER] (ServerService Thread Pool -- 60) ISPN000080: Disconnecting JGroups channel ejb
2025-01-08 11:09:05 16:09:05,073 INFO  [org.infinispan.CLUSTER] (ServerService Thread Pool -- 66) ISPN000080: Disconnecting JGroups channel ejb
2025-01-08 11:09:05 16:09:05,073 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0008: Undertow HTTPS listener https suspending
2025-01-08 11:09:05 16:09:05,074 INFO  [org.infinispan.CLUSTER] (ServerService Thread Pool -- 69) ISPN000080: Disconnecting JGroups channel ejb
2025-01-08 11:09:05 16:09:05,085 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-2) WFLYJCA0019: Stopped Driver service with driver-name = postgresql
2025-01-08 11:09:05 16:09:05,088 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0007: Undertow HTTPS listener https stopped, was bound to 0.0.0.0:8443
2025-01-08 11:09:05 16:09:05,118 INFO  [org.hibernate.validator.internal.util.Version] (ServerService Thread Pool -- 65) HV000001: Hibernate Validator 6.0.22.Final
2025-01-08 11:09:05 16:09:05,132 INFO  [org.jboss.resteasy.plugins.validation.i18n] (ServerService Thread Pool -- 65) RESTEASY008550: Unable to find CDI supporting ValidatorFactory. Using default ValidatorFactory
2025-01-08 11:09:05 16:09:05,208 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 65) WFLYUT0021: Registered web context: '/auth' for server 'default-server'
2025-01-08 11:09:05 16:09:05,209 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 65) WFLYUT0022: Unregistered web context: '/auth' from server 'default-server'
2025-01-08 11:09:05 16:09:05,212 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0008: Undertow AJP listener ajp suspending
2025-01-08 11:09:05 16:09:05,213 INFO  [org.jboss.modcluster] (ServerService Thread Pool -- 69) MODCLUSTER000002: Initiating mod_cluster shutdown
2025-01-08 11:09:05 16:09:05,214 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-5) WFLYJCA0010: Unbound data source [java:jboss/datasources/ExampleDS]
2025-01-08 11:09:05 16:09:05,214 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0007: Undertow AJP listener ajp stopped, was bound to 0.0.0.0:8009
2025-01-08 11:09:05 16:09:05,218 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-2) WFLYJCA0019: Stopped Driver service with driver-name = h2
2025-01-08 11:09:05 16:09:05,217 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-5) WFLYUT0019: Host default-host stopping
2025-01-08 11:09:05 16:09:05,228 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0008: Undertow HTTP listener default suspending
2025-01-08 11:09:05 16:09:05,232 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0007: Undertow HTTP listener default stopped, was bound to 0.0.0.0:8080
2025-01-08 11:09:05 16:09:05,233 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-3) WFLYUT0004: Undertow 2.2.5.Final stopping
2025-01-08 11:09:05 16:09:05,233 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) WFLYSRV0028: Stopped deployment keycloak-server.war (runtime-name: keycloak-server.war) in 177ms
2025-01-08 11:09:05 16:09:05,241 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 65) WFLYCLINF0003: Stopped realms cache from keycloak container
2025-01-08 11:09:05 16:09:05,242 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 66) WFLYCLINF0003: Stopped users cache from keycloak container
2025-01-08 11:09:05 16:09:05,242 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 67) WFLYCLINF0003: Stopped keys cache from keycloak container
2025-01-08 11:09:05 16:09:05,243 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 58) WFLYCLINF0003: Stopped authorization cache from keycloak container
2025-01-08 11:09:05 16:09:05,257 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 60) WFLYCLINF0003: Stopped authenticationSessions cache from keycloak container
2025-01-08 11:09:05 16:09:05,257 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 64) WFLYCLINF0003: Stopped offlineClientSessions cache from keycloak container
2025-01-08 11:09:05 16:09:05,257 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 69) WFLYCLINF0003: Stopped work cache from keycloak container
2025-01-08 11:09:05 16:09:05,259 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 59) WFLYCLINF0003: Stopped loginFailures cache from keycloak container
2025-01-08 11:09:05 16:09:05,260 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 62) WFLYCLINF0003: Stopped actionTokens cache from keycloak container
2025-01-08 11:09:05 16:09:05,260 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 68) WFLYCLINF0003: Stopped offlineSessions cache from keycloak container
2025-01-08 11:09:05 16:09:05,261 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 63) WFLYCLINF0003: Stopped clientSessions cache from keycloak container
2025-01-08 11:09:05 16:09:05,261 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 70) WFLYCLINF0003: Stopped sessions cache from keycloak container
2025-01-08 11:09:05 16:09:05,261 INFO  [org.infinispan.manager.DefaultCacheManager] (ServerService Thread Pool -- 70) Stopping cache manager null on d8089909f8f7
2025-01-08 11:09:05 16:09:05,265 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 61) WFLYCLINF0003: Stopped http-remoting-connector cache from ejb container
2025-01-08 11:09:05 16:09:05,266 INFO  [org.infinispan.CLUSTER] (ServerService Thread Pool -- 70) ISPN000080: Disconnecting JGroups channel ejb
2025-01-08 11:09:05 16:09:05,267 INFO  [org.infinispan.manager.DefaultCacheManager] (ServerService Thread Pool -- 61) Stopping cache manager null on d8089909f8f7
2025-01-08 11:09:05 16:09:05,270 INFO  [org.infinispan.CLUSTER] (ServerService Thread Pool -- 61) ISPN000080: Disconnecting JGroups channel ejb
2025-01-08 11:09:05 16:09:05,283 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("subsystem" => "metrics")]): java.lang.NullPointerException
2025-01-08 11:09:05     at org.wildfly.ex...@23.0.2.Final//org.wildfly.extension.metrics.MetricsSubsystemAdd$2.execute(MetricsSubsystemAdd.java:91)
2025-01-08 11:09:05     at org.jboss.a...@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:1040)
2025-01-08 11:09:05     at org.jboss.a...@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:779)
2025-01-08 11:09:05     at org.jboss.a...@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:468)
2025-01-08 11:09:05     at org.jboss.a...@15.0.1.Final//org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1415)
2025-01-08 11:09:05     at org.jboss.a...@15.0.1.Final//org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:529)
2025-01-08 11:09:05     at org.jboss.a...@15.0.1.Final//org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:515)
2025-01-08 11:09:05     at org.jboss.a...@15.0.1.Final//org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:477)
2025-01-08 11:09:05     at org.jboss...@15.0.1.Final//org.jboss.as.server.ServerService.boot(ServerService.java:459)
2025-01-08 11:09:05     at org.jboss...@15.0.1.Final//org.jboss.as.server.ServerService.boot(ServerService.java:412)
2025-01-08 11:09:05     at org.jboss.a...@15.0.1.Final//org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:416)
2025-01-08 11:09:05     at java.base/java.lang.Thread.run(Thread.java:829)
2025-01-08 11:09:05
2025-01-08 11:09:05 16:09:05,288 ERROR [org.jboss.as.server] (ServerService Thread Pool -- 46) WFLYSRV0022: Deploy of deployment "keycloak-server.war" was rolled back with no failure message
2025-01-08 11:09:05 16:09:05,301 INFO  [org.jboss.as] (MSC service thread 1-5) WFLYSRV0050: Keycloak 15.1.1 (WildFly Core 15.0.1.Final) stopped in 245ms
2025-01-08 11:09:06 User with username 'admin' already added to '/opt/jboss/keycloak/standalone/configuration/keycloak-add-user.json'
2025-01-08 11:09:07 User with username 'admin' already added to '/opt/jboss/keycloak/standalone/configuration/keycloak-add-user.json'
2025-01-08 11:09:09 User with username 'admin' already added to '/opt/jboss/keycloak/standalone/configuration/keycloak-add-user.json'
2025-01-08 11:09:10 User with username 'admin' already added to '/opt/jboss/keycloak/standalone/configuration/keycloak-add-user.json'
2025-01-08 11:09:13 User with username 'admin' already added to '/opt/jboss/keycloak/standalone/configuration/keycloak-add-user.json'
2025-01-08 11:09:17 User with username 'admin' already added to '/opt/jboss/keycloak/standalone/configuration/keycloak-add-user.json'
2025-01-08 11:09:24 User with username 'admin' already added to '/opt/jboss/keycloak/standalone/configuration/keycloak-add-user.json'
2025-01-08 11:09:38 User with username 'admin' already added to '/opt/jboss/keycloak/standalone/configuration/keycloak-add-user.json'
2025-01-08 11:10:05 User with username 'admin' already added to '/opt/jboss/keycloak/standalone/configuration/keycloak-add-user.json'
2025-01-08 11:10:57 User with username 'admin' already added to '/opt/jboss/keycloak/standalone/configuration/keycloak-add-user.json'
2025-01-08 11:18:26 User with username 'admin' already added to '/opt/jboss/keycloak/standalone/configuration/keycloak-add-user.json'
2025-01-08 11:18:28 User with username 'admin' already added to '/opt/jboss/keycloak/standalone/configuration/keycloak-add-user.json'
2025-01-08 11:18:29 User with username 'admin' already added to '/opt/jboss/keycloak/standalone/configuration/keycloak-add-user.json'
2025-01-08 11:18:30 User with username 'admin' already added to '/opt/jboss/keycloak/standalone/configuration/keycloak-add-user.json'
2025-01-08 11:18:32 User with username 'admin' already added to '/opt/jboss/keycloak/standalone/configuration/keycloak-add-user.json'
2025-01-08 11:18:34 User with username 'admin' already added to '/opt/jboss/keycloak/standalone/configuration/keycloak-add-user.json'
2025-01-08 11:18:39 User with username 'admin' already added to '/opt/jboss/keycloak/standalone/configuration/keycloak-add-user.json'
2025-01-08 11:18:46 User with username 'admin' already added to '/opt/jboss/keycloak/standalone/configuration/keycloak-add-user.json'
2025-01-08 11:19:00 User with username 'admin' already added to '/opt/jboss/keycloak/standalone/configuration/keycloak-add-user.json'
2025-01-08 11:19:26 User with username 'admin' already added to '/opt/jboss/keycloak/standalone/configuration/keycloak-add-user.json'


Note: I was not able to locate   '/opt/jboss/keycloak/standalone/configuration/keycloak-add-user.json' this file.

Your support is always appreciated.

Regards,
Prashanth Bachu.


Prashanth Bachu

unread,
Jan 30, 2025, 3:50:07 PMJan 30
to cBioPortal for Cancer Genomics Discussion Group
Hi Benjamin,

I tried this but it did not work for me. Can you give more inputs.

Thanks,
Prashanth

Benjamin Gross

unread,
Jan 31, 2025, 10:34:37 AMJan 31
to Prashanth Bachu, cBioPortal for Cancer Genomics Discussion Group
I’m guessing you get the following screen when logging out:

PastedGraphic-1.png

And then when you press the “Log Out” button you get this:

PastedGraphic-2.png

On this page, can you try replacing “/logout” in the browser address bar with “/j_spring_security_logout”.

Does this get you back to login page?

-B

Prashanth Bachu

unread,
Jan 31, 2025, 10:55:00 AMJan 31
to cBioPortal for Cancer Genomics Discussion Group
Hi Benjamin,

Thanks for quick response. My case is not same as above that you mentioned. I was able to logout successfully. Upon logout I get the below screen(Login screen to login back to cbioportal). 
Screenshot 2025-01-31 103753.png

When I do login again in the above screen, I am getting the below error which is Error: 400 Invalid request.
Screenshot 2025-01-31 104640.png


I tried replacing with /j_spring_security_logout as you told, check below screenshot
Screenshot 2025-01-31 104755.png

Please find my keycloak configuration below
Screenshot 2025-01-31 104944.png

SAML Configuration:

## SAML settings
authenticate=saml
spring.security.saml2.relyingparty.registration.cbio-saml-idp.assertingparty.metadata-uri=classpath:/client-tailored-saml-idp-metadata.xml

spring.security.saml2.relyingparty.registration.cbio-saml-idp.entity-id=cbioportal
spring.security.saml2.relyingparty.registration.cbio-saml-idp.signing.credentials[0].certificate-location=classpath:/local.crt
spring.security.saml2.relyingparty.registration.cbio-saml-idp.signing.credentials[0].private-key-location=classpath:/local.key
spring.security.saml2.relyingparty.registration.cbio-saml-idp.singlelogout.binding=POST
spring.security.saml2.relyingparty.registration.cbio-saml-idp.entitybaseurl=http://localhost:8080
spring.security.saml2.relyingparty.registration.cbio-saml-idp.singlelogout.response-url=https://cras-dev.kcr.uky.edu/logout/saml2/slo
saml.idp.metadata.attribute.email=email

spring.security.oauth2.allowed-clock-skew=
security.cors.allowed-origins=*
logging.level.org.springframework.security.saml2=DEBUG
saml.custom.userservice.class=org.cbioportal.security.spring.authentication.keycloak.SAMLUserDetailsServiceImpl
saml.logout.url=/
always_show_study_group=PUBLIC
filter_groups_by_appname=false
# Can disable authorization
security.method_authorization_enabled=true

Please look into it and suggest changes.

Regards,
Prashanth Bachu.


Reply all
Reply to author
Forward
0 new messages