Skip to content

Fatal error in Redis cache #1326

Description

@matsduf

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.

Metadata

Metadata

Labels

P-HighPriority: Issue to be solved before otherT-BugType: Bug in software or error in test case description

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions