Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scheduled worker - strlen expects parameter 1 to be string #133

Closed
lsv opened this issue Oct 2, 2015 · 2 comments
Closed

Scheduled worker - strlen expects parameter 1 to be string #133

lsv opened this issue Oct 2, 2015 · 2 comments

Comments

@lsv
Copy link

lsv commented Oct 2, 2015

So I just started the scheduler and it added the pid file and it looked like it was running.
Though my scheduled queue didnt change.

So I ran it in foreground, and getting some errors

console bcc:resque:scheduledworker-start -f
Starting worker /usr/bin/php /var/www/sites/dcs.dk/vendor/bcc/resque-bundle/BCC/ResqueBundle/Command/../bin/resque-scheduler
*** Prefix set to dcs
*** Starting scheduler worker
PHP Warning:  strlen() expects parameter 1 to be string, array given in /var/www/sites/dcs.dk/vendor/colinmollenhour/credis/Client.php on line 1110

Warning: strlen() expects parameter 1 to be string, array given in /var/www/sites/dcs.dk/vendor/colinmollenhour/credis/Client.php on line 1110
PHP Notice:  Array to string conversion in /var/www/sites/dcs.dk/vendor/colinmollenhour/credis/Client.php on line 1110

Notice: Array to string conversion in /var/www/sites/dcs.dk/vendor/colinmollenhour/credis/Client.php on line 1110

One of my jobs have this in details

Array
(
    [class] => Dcs\ImporterBundle\Jobs\ImportCnetDataJob
    [args] => Array
        (
            [0] => Array
                (
                    [data] => 60860
                    [kernel.root_dir] => /var/www/sites/dcs/app
                    [kernel.debug] => 
                    [kernel.environment] => prod
                    [bcc_resque.retry_strategy] => Array
                        (
                            [0] => 0
                            [1] => 10
                            [2] => 60
                        )

                    [bcc_resque.retry_attempt] => 2
                )

        )

    [queue] => import_cnet_data
)

I can see its an issue in credis, is there anybody that knows a quickfix?

@danhunsaker
Copy link

This sounds like the transient error that crops up with a difference in how phpredis and Credis's PHP-only mode handle ZRANGEBYSCORE... If you're using the phpredis extension, try turning it off and see if that fixes it. If not, try installing it and turning it on.

@lsv
Copy link
Author

lsv commented Nov 10, 2015

Installing php-redis helped it.

@lsv lsv closed this as completed Nov 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants