CAS 6.1 RC 4 configuration issues Hazelcast service registry OIDC and OAuth

36 views
Skip to first unread message

Mallory, Erik

unread,
Jul 31, 2019, 3:24:26 PM7/31/19
to cas-...@apereo.org

Hello,

I have CAS-6.1-RC4 installed and it mostly works.  I’ve noticed that some of the configuration properties don’t work and are “left unbound”.  for example, trying to configure hazelcast for service definition replication, I up date the dependency section in build.gradle, and rebuild the cas.war file then I add the config properties from https://apereo.github.io/cas/development/configuration/Configuration-Properties-Common.html#hazelcast-configuration

Using the key cas.serviceRegistry.stream.hazelcast.config.

I replace the cas.war file and restart.

 

I get the following errors.

Origin: "cas.serviceRegistry.stream.hazelcast.cluster.backupCount" from property source "bootstrapProperties"

    Reason: The elements [cas.serviceregistry.stream.hazelcast.cluster.backupcount,cas.serviceregistry.stream.hazelcast.cluster.evictionpolicy,cas.serviceregistry.stream.hazelcast.cluster.instancename,cas.serviceregistry.stream.hazelcast.cluster.loggingtype,cas.serviceregistry.stream.hazelcast.cluster.maxheapsizepercentage,cas.serviceregistry.stream.hazelcast.cluster.maxnoheartbeatseconds,cas.serviceregistry.stream.hazelcast.cluster.members,cas.serviceregistry.stream.hazelcast.cluster.port,cas.serviceregistry.stream.hazelcast.cluster.portautoincrement,cas.serviceregistry.stream.hazelcast.maxsizepolicy] were left unbound.

    Property: cas.serviceregistry.stream.hazelcast.cluster.evictionpolicy

    Value: LRU

    Origin: "cas.serviceRegistry.stream.hazelcast.cluster.evictionPolicy" from property source "bootstrapProperties"

    Reason: The elements [cas.serviceregistry.stream.hazelcast.cluster.backupcount,cas.serviceregistry.stream.hazelcast.cluster.evictionpolicy,cas.serviceregistry.stream.hazelcast.cluster.instancename,cas.serviceregistry.stream.hazelcast.cluster.loggingtype,cas.serviceregistry.stream.hazelcast.cluster.maxheapsizepercentage,cas.serviceregistry.stream.hazelcast.cluster.maxnoheartbeatseconds,cas.serviceregistry.stream.hazelcast.cluster.members,cas.serviceregistry.stream.hazelcast.cluster.port,cas.serviceregistry.stream.hazelcast.cluster.portautoincrement,cas.serviceregistry.stream.hazelcast.maxsizepolicy] were left unbound.

    Property: cas.serviceregistry.stream.hazelcast.cluster.instancename

    Value: cas-dev-svcs

    Origin: "cas.serviceRegistry.stream.hazelcast.cluster.instanceName" from property source "bootstrapProperties"

    Reason: The elements [cas.serviceregistry.stream.hazelcast.cluster.backupcount,cas.serviceregistry.stream.hazelcast.cluster.evictionpolicy,cas.serviceregistry.stream.hazelcast.cluster.instancename,cas.serviceregistry.stream.hazelcast.cluster.loggingtype,cas.serviceregistry.stream.hazelcast.cluster.maxheapsizepercentage,cas.serviceregistry.stream.hazelcast.cluster.maxnoheartbeatseconds,cas.serviceregistry.stream.hazelcast.cluster.members,cas.serviceregistry.stream.hazelcast.cluster.port,cas.serviceregistry.stream.hazelcast.cluster.portautoincrement,cas.serviceregistry.stream.hazelcast.maxsizepolicy] were left unbound.

    Property: cas.serviceregistry.stream.hazelcast.cluster.loggingtype

    Value: slf4j

 

I get similar errors when attempting to configure oauth or oidc.

I figure this is something that is still under development.  Or I missed something. Either way any information that can be provided would be apricated.

 

Thanks,

Erik Mallory

Server Analyst 

Wichita State University

Misagh Moayyed

unread,
Jul 31, 2019, 4:03:20 PM7/31/19
to CAS Community
Post your settings please.

Chances are, you are using:
cas.serviceRegistry.stream.hazelcast.cluster.instanceName=blah

where it should be:
cas.serviceRegistry.stream.hazelcast.config.cluster.instanceName=blah

Key being, quite literally, “cas.serviceRegistry.stream.hazelcast.config” as the starting prefix which you pasted below.

-- 
- 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+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/4F3C07B0-D4CC-40C7-90BD-44DA77024C99%40wichita.edu.

Mallory, Erik

unread,
Jul 31, 2019, 4:37:11 PM7/31/19
to cas-...@apereo.org

Yes, I tried it both ways.

cas.serviceRegistry.stream.hazelcast.config.duration=PT1M

cas.serviceRegistry.stream.hazelcast.config.cluster.evictionPolicy=LRU

cas.serviceRegistry.stream.hazelcast.config.cluster.maxNoHeartbeatSeconds=300

cas.serviceRegistry.stream.hazelcast.config.cluster.loggingType=slf4j

cas.serviceRegistry.stream.hazelcast.config.cluster.portAutoIncrement=false

cas.serviceRegistry.stream.hazelcast.config.cluster.maxHeapSizePercentage=85

cas.serviceRegistry.stream.hazelcast.config.cluster.backupCount=1

cas.serviceRegistry.stream.hazelcast.config.cluster.asyncBackupCount=0

cas.serviceRegistry.stream.hazelcast.config.maxSizePolicy=USED_HEAP_PERCENTAGE

cas.serviceRegistry.stream.hazelcast.config.timeout=5

cas.serviceRegistry.stream.hazelcast.config.cluster.members=10.0.79.37,10.0.79.38

cas.serviceRegistry.stream.hazelcast.config.cluster.instanceName=cas-dev-svcs

cas.serviceRegistry.stream.hazelcast.config.cluster.port=5703

 

 

Erik Mallory

Server Analyst 

Wichita State University

Misagh Moayyed

unread,
Aug 1, 2019, 9:46:52 AM8/1/19
to CAS Community
Judging by your snippet below it looks like you did miss a few. This is correct (compare with yours):

cas.serviceRegistry.stream.hazelcast.duration=PT1M

cas.serviceRegistry.stream.hazelcast.config.cluster.evictionPolicy=LRU
cas.serviceRegistry.stream.hazelcast.config.cluster.maxNoHeartbeatSeconds=300
cas.serviceRegistry.stream.hazelcast.config.cluster.loggingType=slf4j
cas.serviceRegistry.stream.hazelcast.config.cluster.portAutoIncrement=false
cas.serviceRegistry.stream.hazelcast.config.cluster.maxHeapSizePercentage=85
cas.serviceRegistry.stream.hazelcast.config.cluster.backupCount=1
cas.serviceRegistry.stream.hazelcast.config.cluster.asyncBackupCount=0
cas.serviceRegistry.stream.hazelcast.config.cluster.maxSizePolicy=USED_HEAP_PERCENTAGE
cas.serviceRegistry.stream.hazelcast.config.cluster.timeout=5
cas.serviceRegistry.stream.hazelcast.config.cluster.members=10.0.79.37,10.0.79.38
cas.serviceRegistry.stream.hazelcast.config.cluster.instanceName=cas-dev-svcs
cas.serviceRegistry.stream.hazelcast.config.cluster.port=5703


Mallory, Erik

unread,
Aug 1, 2019, 10:14:12 AM8/1/19
to cas-...@apereo.org

Yes I did Thanks for your time and sorry for the noise. I know you’re busy. I was able to get it going just now.  I’ll try the same with the oidc and oauth config. I’ll message back if I have issues.

BTW Great work on the management interface!  It’s a massive improvement from 5.1 . It might be my exposure to cas, but 6.1 has been easier to set up than other versions. Thanks for all of that.

 

 

Erik Mallory

Server Analyst 

Wichita State University

 

 

Misagh Moayyed

unread,
Aug 1, 2019, 10:17:56 AM8/1/19
to CAS Community
You’re quite welcome, and no worries. I been guilty of the same sort of mistake many many times :) It happens. 

All credit for the management app should go to Travis Schmidt; He’s done an excellent job, and we’ll continue to fine-tune the app to add more “management” type functionality in addition to application registrations. 

Reply all
Reply to author
Forward
0 new messages