Skip to content

role:redis: the 8.0 configuration template aborts Redis, because it loads modules that are not installed #346

Description

@NavidSassan

Problem

roles/redis/templates/etc/redis/8.0-redis.conf.j2 carries four unconditional loadmodule lines:

loadmodule /usr/lib/redis/modules/rejson.so
loadmodule /usr/lib/redis/modules/redisbloom.so
loadmodule /usr/lib/redis/modules/redistimeseries.so
loadmodule /usr/lib/redis/modules/redisearch.so

The role installs no module package, and Redis aborts on the first module it cannot load:

# Module /usr/lib/redis/modules/rejson.so failed to load: cannot open shared object file: No such file or directory
# Can't load module from /usr/lib/redis/modules/rejson.so: server aborting

So on a RHEL host running redis:remi-8.0, the role deploys a configuration that leaves the service failed. Installing the module packages is not a complete workaround either: Remi ships redis-json, redis-bloom and redis-timeseries, but nothing provides redisearch.so.

Only the 8.0 template has these lines; 7.0, 7.2, 7.4, 8.2 and 8.8 do not, which is why the problem is confined to that one version.

Reproduce

Enable redis:remi-8.0 on a Rocky 9 host and run the redis role. The config deploys, systemctl start redis fails, and the message above appears when starting redis-server with the deployed config by hand.

Expected

Either drop the loadmodule lines so the template matches the others, or gate them behind a variable and install the matching packages when it is set.

Environment

Verified 2026-09-04 with redis-8.0.6-1.module_redis.8.0.el9.remi on Rocky 9.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions