Skip to content

Missing redis namespace when starting workers #5283

@RichieB2B

Description

@RichieB2B

My app/Plugin/CakeResque/Config/config.php says:

$config['CakeResque'] = array(
        'Redis' => array(
                'host' => 'localhost',          // Redis server hostname
                'port' => 6379,                         // Redis server port
                'database' => 0,                        // Redis database number
                'namespace' => 'resque',        // Redis keys namespace
                'password' => null                      // Redis password
        ),

however, when starting the workers from the command line the namespace is missing in several places:

$ redis-cli monitor
OK
1570568229.351190 [0 127.0.0.1:51036] "SMEMBERS" "resque:workers"
1570568229.753919 [0 127.0.0.1:51038] "HSET" "ResqueWorker" "0" "a:10:{s:8:\"interval\";i:5;s:5:\"queue\";s:7:\"default\";s:4:\"help\";b:0;s:7:\"verbose\";b:0;s:5:\"quiet\";b:0;s:4:\"type\";s:7:\"regular\";s:3:\"log\";s:72:\"/var/www/MISP/app/tmp/logs/resque-worker-error.log\";s:7:\"workers\";i:1;s:4:\"user\";s:6:\"apache\";s:3:\"Log\";a:2:{s:7:\"handler\";s:12:\"RotatingFile\";s:6:\"target\";s:59:\"/var/www/MISP/app/tmp/logs/resque.log\";}}"
1570568230.156650 [0 127.0.0.1:51040] "HSET" "ResqueWorker" "0" "a:10:{s:8:\"interval\";i:5;s:5:\"queue\";s:4:\"prio\";s:4:\"help\";b:0;s:7:\"verbose\";b:0;s:5:\"quiet\";b:0;s:4:\"type\";s:7:\"regular\";s:3:\"log\";s:72:\"/var/www/MISP/app/tmp/logs/resque-worker-error.log\";s:7:\"workers\";i:1;s:4:\"user\";s:6:\"apache\";s:3:\"Log\";a:2:{s:7:\"handler\";s:12:\"RotatingFile\";s:6:\"target\";s:59:\"/var/www/MISP/app/tmp/logs/resque.log\";}}"
1570568230.568221 [0 127.0.0.1:51042] "HSET" "ResqueWorker" "0" "a:10:{s:8:\"interval\";i:5;s:5:\"queue\";s:5:\"cache\";s:4:\"help\";b:0;s:7:\"verbose\";b:0;s:5:\"quiet\";b:0;s:4:\"type\";s:7:\"regular\";s:3:\"log\";s:72:\"/var/www/MISP/app/tmp/logs/resque-worker-error.log\";s:7:\"workers\";i:1;s:4:\"user\";s:6:\"apache\";s:3:\"Log\";a:2:{s:7:\"handler\";s:12:\"RotatingFile\";s:6:\"target\";s:59:\"/var/www/MISP/app/tmp/logs/resque.log\";}}"
1570568230.977489 [0 127.0.0.1:51044] "HSET" "ResqueWorker" "0" "a:10:{s:8:\"interval\";i:5;s:5:\"queue\";s:5:\"email\";s:4:\"help\";b:0;s:7:\"verbose\";b:0;s:5:\"quiet\";b:0;s:4:\"type\";s:7:\"regular\";s:3:\"log\";s:72:\"/var/www/MISP/app/tmp/logs/resque-worker-error.log\";s:7:\"workers\";i:1;s:4:\"user\";s:6:\"apache\";s:3:\"Log\";a:2:{s:7:\"handler\";s:12:\"RotatingFile\";s:6:\"target\";s:59:\"/var/www/MISP/app/tmp/logs/resque.log\";}}"
1570568231.063432 [0 127.0.0.1:51046] "HKEYS" "ResqueWorker"
1570568231.064023 [0 127.0.0.1:51046] "GET" "resque:ResqueSchedulerWorker"
1570568231.064389 [0 127.0.0.1:51046] "DEL" "resque:ResqueSchedulerWorker"

As a result the workers are not seen by MISP. I'm really lost why this is happening..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions