I followed the instructions in "Configuration: Global cache in Zonemaster-Engine" (develop branch) on Ubuntu 22.04 and created and updated profile where the following has been added:
$ head /etc/zonemaster/profile.json
{
"cache": {
"redis": {
"server": "127.0.0.1:6379",
"expire": 300
}
},
"asn_db" : {
"style" : "Cymru",
"sources" : {
The Redis daemon was running and I ran zonemaster-cli on zone sunet.se with no specific errors (not using the custom profile). I ran it again with the custom profiile:
$ zonemaster-cli sunet.se --profile /etc/zonemaster/profile.json
Loading profile from /etc/zonemaster/profile.json.
Seconds Level Message
======= ======== =======
(...)
2.53 CRITICAL Fatal error in Zonemaster::Engine::Test::Nameserver: [set] ERR invalid expire time in set, at /usr/local/share/perl/5.34.0/Zonemaster/Engine/Nameserver/Cache/RedisCache.pm line 96.
(...)
I turned the Redis daemon off and got a different errror
$ zonemaster-cli sunet.se --profile /etc/zonemaster/profile.json
Loading profile from /etc/zonemaster/profile.json.
Seconds Level Message
======= ======== =======
Looks OK.
Could not connect to Redis server at 127.0.0.1:6379: Connection refused at /usr/local/share/perl/5.34.0/Zonemaster/Engine/Nameserver/Cache/RedisCache.pm line 50.
I followed the instructions in "Configuration: Global cache in Zonemaster-Engine" (develop branch) on Ubuntu 22.04 and created and updated profile where the following has been added:
The Redis daemon was running and I ran zonemaster-cli on zone sunet.se with no specific errors (not using the custom profile). I ran it again with the custom profiile:
I turned the Redis daemon off and got a different errror