Talent-Catalog / talentcatalog

https://tctalent.org
GNU Affero General Public License v3.0
13 stars 4 forks source link

On AWS staging/test new upgraded SpringBoot fails trying to connect to Redis when logon attempted #1660

Open camerojo opened 15 hours ago

camerojo commented 15 hours ago
Screen Shot 2024-11-22 at 12 39 21 pm Screen Shot 2024-11-22 at 12 39 06 pm
sadatmalik commented 6 hours ago

The issue was down to a change in the redis config keys. Resolved by updating application.yaml from the now deprecated keys:

  redis:
    host: ${REDIS_HOST:localhost}
    port: ${REDIS_PORT:6379}

To the new property key format:

  data:
    redis:
      host: ${REDIS_HOST:localhost}
      port: ${REDIS_PORT:6379}

I guess it must default to localhost and 6379 if it can't read the properties from config, which is why it could connect to redis in local testing.