I'm working on my first Laravel app, and hit an odd problem when trying to queue up email sending using Mail::queue
to send emails.
I was originally using the sync
driver and everything worked fine, however having now switched over to the beanstalkd
driver it's stopped sending my emails.
My config is as follows:
- Ubuntu 13.10
- Laravel 4.1
- PHP 5.5.3
- Beanstalkd 1.8 installed via
apt-get
"pda/pheanstalk": "2.1.*"
incomposer.json
What I've noticed is that every time I run
$ php artisan queue:work
I'm getting:
[ErrorException]
Insufficient data for unserializing - 2570 required, 168 present
queue:work [--queue[="..."]] [--delay[="..."]] [--force] [--memory[="..."]] [--sleep[="..."]] [--tries[="..."]] [connection]
I've tried selecting the redis
driver and that wasn't giving me the error, so clearly there is something wrong with how pheanstalk is running on my machine.
I've tried changing the pheanstalk version in composer.json
, but I'm still getting the same problem no matter which version I seem to use.
Problem is, this issue doesn't seem particularly widely documented, and the error message doesn't really give much away at all...
Any suggesions?