stuck when running war overlay (maven or gradle)

404 views
Skip to first unread message

Gabriel Sebastian

unread,
Jan 15, 2018, 11:28:41 PM1/15/18
to CAS Community
Hi guys,
Im new to CAS, and im trying to run CAS locally on windows, using the war overlay. I've tried both maven and gradle overlay, "build package" command done successfully, but the "build run" command stuck on the same place. no error, process still running, only stuck. Both maven and gradle overlay stuck on the same place. Here is the couple last lines of logs:

   __   ____      _      ____   __
  / /  / ___|    / \    / ___|  \ \
 | |  | |       / _ \   \___ \   | |
 | |  | |___   / ___ \   ___) |  | |
 | |   \____| /_/   \_\ |____/   | |
  \_\                           /_/

CAS Version: 5.2.1
CAS Commit Id: c8106bf0a3309df1a1fb0a6cbe935b5a4e557431
CAS Build Date/Time: 2018-01-16T04:15:11.079Z
Spring Boot Version: 1.5.8.RELEASE
------------------------------------------------------------
Java Home: C:\Program Files\Java\jdk1.8.0_112\jre
Java Vendor: Oracle Corporation
Java Version: 1.8.0_112
JVM Free Memory: 202 MB
JVM Maximum Memory: 1 GB
JVM Total Memory: 733 MB
JCE Installed: No
------------------------------------------------------------
OS Architecture: amd64
OS Name: Windows 10
OS Version: 10.0
OS Date/Time: 2018-01-16T11:15:21.930
OS Temp Directory: C:\Users\***\Temp\
------------------------------------------------------------
Apache Tomcat Version: Apache Tomcat/8.5.24
------------------------------------------------------------


2018-01-16 11:15:22,005 INFO [org.apereo.cas.configuration.config.CasCoreBootstrapStandaloneConfiguration] - <Configuration files found at [\etc\cas\config] are [[\etc\cas\config\application.yml, \etc\cas\config\cas.properties]]>
2018-01-16 11:15:22,037 INFO [org.apereo.cas.configuration.config.CasCoreBootstrapStandaloneConfiguration] - <Found and loaded [5] setting(s) from [\etc\cas\config]>
2018-01-16 11:15:22,038 INFO [org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration] - <Located property source: PropertiesPropertySource {name='standaloneCasConfigService'}>
2018-01-16 11:15:26,922 WARN [org.apereo.cas.config.CasCoreTicketsConfiguration] - <Runtime memory is used as the persistence storage for retrieving and managing tickets. Tickets that are issued during runtime will be LOST upon container restarts. This MAY impact SSO functionality.>
2018-01-16 11:15:39,112 WARN [org.apereo.cas.config.support.authentication.AcceptUsersAuthenticationEventExecutionPlanConfiguration] - <>
2018-01-16 11:15:39,115 WARN [org.apereo.cas.config.support.authentication.AcceptUsersAuthenticationEventExecutionPlanConfiguration] - <

  ____    _____    ___    ____    _
 / ___|  |_   _|  / _ \  |  _ \  | |
 \___ \    | |   | | | | | |_) | | |
  ___) |   | |   | |_| | |  __/  |_|
 |____/    |_|    \___/  |_|     (_)


CAS is configured to accept a static list of credentials for authentication. While this is generally useful for demo purposes, it is STRONGLY recommended that you DISABLE this authentication method (by setting 'cas.authn.accept.users' to a blank value) and switch to a mode that is more suitable for production.>
2018-01-16 11:15:39,116 WARN [org.apereo.cas.config.support.authentication.AcceptUsersAuthenticationEventExecutionPlanConfiguration] - <>
2018-01-16 11:15:53,189 WARN [org.apereo.cas.config.CasCoreServicesConfiguration] - <Runtime memory is used as the persistence storage for retrieving and persisting service definitions. Changes that are made to service definitions during runtime WILL be LOST upon container restarts. Ideally for production, you need to choose a storage option (JDBC, etc) to store and track service definitions.>
2018-01-16 11:15:53,660 WARN [org.apereo.cas.util.cipher.BaseStringCipherExecutor] - <Secret key for encryption is not defined for [Ticket-granting Cookie]; CAS will attempt to auto-generate the encryption key>
2018-01-16 11:15:53,673 WARN [org.apereo.cas.util.cipher.BaseStringCipherExecutor] - <Generated encryption key [9oh7md1kNgyucCCITTB5vxTBiPuo7IhPgMaEDKM6Z6U] of size [256] for [Ticket-granting Cookie]. The generated key MUST be added to CAS settings under setting [cas.tgc.crypto.encryption.key].>
2018-01-16 11:15:53,676 WARN [org.apereo.cas.util.cipher.BaseStringCipherExecutor] - <Secret key for signing is not defined for [Ticket-granting Cookie]. CAS will attempt to auto-generate the signing key>
2018-01-16 11:15:53,677 WARN [org.apereo.cas.util.cipher.BaseStringCipherExecutor] - <Generated signing key [zQAXq29Zukb8aY_zNlJjwAMddhEa9kDuHeZoU95Ztf3RJSELuV-UUojWAok8O7WS_lyDsqAlYf478YhARP6AhA] of size [512] for [Ticket-granting Cookie]. The generated key MUST be added to CAS settings under setting [cas.tgc.crypto.signing.key].>
2018-01-16 11:15:54,154 WARN [org.apereo.cas.util.cipher.BaseBinaryCipherExecutor] - <Secret key for signing is not defined under [cas.webflow.crypto.signing.key]. CAS will attempt to auto-generate the signing key>
2018-01-16 11:15:54,154 WARN [org.apereo.cas.util.cipher.BaseBinaryCipherExecutor] - <Generated signing key [Zu_gse4yMGMXoWT7ei9eY2RRhLkerZo7oKhgPCcK2GI_xfScX3feC-s5kXWXmX1b2nNH3rFWF5qkleM9EwO43A] of size [512]. The generated key MUST be added to CAS settings under setting [cas.webflow.crypto.signing.key].>
2018-01-16 11:15:54,154 WARN [org.apereo.cas.util.cipher.BaseBinaryCipherExecutor] - <Secret key for encryption is not defined under [cas.webflow.crypto.encryption.key]. CAS will attempt to auto-generate the encryption key>
2018-01-16 11:15:54,160 WARN [org.apereo.cas.util.cipher.BaseBinaryCipherExecutor] - <Generated encryption key [biaqOHU0fJ6RkiGWe29iqw] of size [16]. The generated key MUST be added to CAS settings under setting [cas.webflow.crypto.encryption.key].>


After that, there is no further progress or any errors or anything.  Ive tried waiting for about 1 hour with no progress or "FINISHED" state. Anybody has same experience or solution for this?
Thanks for any help and sorry for my stupid english.

Regards.

casuser

unread,
Jan 16, 2018, 12:20:06 AM1/16/18
to CAS Community
Hi, Please follow the logs and go through it, it says that you have to set
  • set cas.authn.accept.users= to a blank value
  • cas.webflow.crypto.signing.key=copy from log
  • cas.webflow.crypto.encryption.key= copy from log
  • cas.tgc.crypto.signing.key= copy from log
  • cas.tgc.crypto.encryption.key=copy from log
Set them in the cas.properties files and it should work fine

-Fazla


Gabriel Sebastian

unread,
Jan 16, 2018, 1:57:27 AM1/16/18
to cas-...@apereo.org
Hi Fazla, thanks for your contribution.

I tried what you suggest and the "STOP" warnings has dissapeared. Anyway, it still stuck with no success. What i mean stuck is no further progress but no errors. I tried on my other machine, it can run with "FINISHED" state, so i guess the problem is something wrong with my current machine. Do you have any idea what could possibly wrong? windows configuration? jvm memory? something else?

Here is the log for "build run" command:

[INFO] Scanning for projects...
[INFO]
[INFO] Using the MultiThreadedBuilder implementation with a thread count of 5
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building cas-overlay 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ cas-overlay ---
[INFO] Deleting E:\CAS\cas-server\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ cas-overlay ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ cas-overlay ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ cas-overlay ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory E:\CAS\cas-server\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:testCompile (default-testCompile) @ cas-overlay ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ cas-overlay ---
[INFO] No tests to run.
[INFO]
[INFO] --- echo-maven-plugin:0.3.0:echo (default) @ cas-overlay ---
[INFO] Executable profile to make the generated CAS web application executable.
[INFO]
[INFO] --- maven-war-plugin:2.6:war (default-war) @ cas-overlay ---
[INFO] Packaging webapp
[INFO] Assembling webapp [cas-overlay] in [E:\CAS\cas-server\target\cas]
[INFO] Processing war project
[INFO] Processing overlay [ id org.apereo.cas:cas-server-webapp-tomcat]
[INFO] Webapp assembled in [16845 msecs]
[INFO] Building war: E:\CAS\cas-server\target\cas.war
[INFO]
[INFO] --- spring-boot-maven-plugin:1.5.8.RELEASE:repackage (default) @ cas-overlay ---
[INFO] Layout: WAR
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21.223 s (Wall Clock)
[INFO] Finished at: 2018-01-16T13:35:00+07:00
[INFO] Final Memory: 16M/264M
[INFO] ------------------------------------------------------------------------
[36m
   __   ____      _      ____   __
  / /  / ___|    / \    / ___|  \ \
 | |  | |       / _ \   \___ \   | |
 | |  | |___   / ___ \   ___) |  | |
 | |   \____| /_/   \_\ |____/   | |
  \_\                           /_/

CAS Version: 5.2.1
CAS Commit Id: c8106bf0a3309df1a1fb0a6cbe935b5a4e557431
CAS Build Date/Time: 2018-01-16T06:35:00.396Z
Spring Boot Version: 1.5.8.RELEASE
------------------------------------------------------------
Java Home: C:\Program Files\Java\jre1.8.0_151
Java Vendor: Oracle Corporation
Java Version: 1.8.0_151
JVM Free Memory: 479 MB
JVM Maximum Memory: 910 MB
JVM Total Memory: 655 MB
JCE Installed: No
------------------------------------------------------------
OS Architecture: amd64
OS Name: Windows 10
OS Version: 10.0
OS Date/Time: 2018-01-16T13:35:11.902
OS Temp Directory: C:\Users\***\Temp\
------------------------------------------------------------
Apache Tomcat Version: Apache Tomcat/8.5.24
------------------------------------------------------------

[0m
2018-01-16 13:35:11,995 INFO [org.apereo.cas.configuration.config.CasCoreBootstrapStandaloneConfiguration] - <Configuration files found at [\etc\cas\config] are [[\etc\cas\config\application.yml, \etc\cas\config\cas.properties]]>
2018-01-16 13:35:12,042 INFO [org.apereo.cas.configuration.config.CasCoreBootstrapStandaloneConfiguration] - <Found and loaded [5] setting(s) from [\etc\cas\config]>
2018-01-16 13:35:12,044 INFO [org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration] - <Located property source: PropertiesPropertySource {name='standaloneCasConfigService'}>
2018-01-16 13:35:17,551 WARN [org.apereo.cas.config.CasCoreTicketsConfiguration] - <Runtime memory is used as the persistence storage for retrieving and managing tickets. Tickets that are issued during runtime will be LOST upon container restarts. This MAY impact SSO functionality.>
2018-01-16 13:35:46,379 WARN [org.apereo.cas.config.CasCoreServicesConfiguration] - <Runtime memory is used as the persistence storage for retrieving and persisting service definitions. Changes that are made to service definitions during runtime WILL be LOST upon container restarts. Ideally for production, you need to choose a storage option (JDBC, etc) to store and track service definitions.>

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/26df0c43-aefb-4bcb-bb7a-218707236254%40apereo.org.



--
Best Regards,
Gabriel Sebastian R.

matrix development

unread,
Jan 16, 2018, 2:06:07 AM1/16/18
to cas-...@apereo.org
Hi Gabriel,

Add this to debug in your cas.properties. and then send the log again and try to include all the log, By the look of it, it looks good to go. Do you see any error on the browser?

logging.level.org.apereo.cas=DEBUG




To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
--
Best Regards,
Gabriel Sebastian R.

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.

Sreekanth Suresh

unread,
Apr 18, 2018, 6:08:35 AM4/18/18
to CAS Community, buzzbar...@gmail.com
Reply all
Reply to author
Forward
0 new messages