spatie / mailcoach-support

Questions and support for Mailcoach
https://mailcoach.app
31 stars 2 forks source link

Can I use predis as a substitute for PHP Redis? #228

Closed jmichaelterenin closed 4 years ago

jmichaelterenin commented 4 years ago

Laravel 7 php 7.4 Purchased MailCoach Order confirmation #14146359 brett @ explore.com

I've installed predis and set the REDIS_CLIENT=predis in the .env file Tested a single email campaign, and the job just spins and says it's preparing. Laravel horizon dashboard doesn't indicate any jobs in the queue.

Is there anything else I need to do to use predis, or is it just not possible?

freekmurze commented 4 years ago

Mailcoach relies on Laravel for connecting Redis. If something goes wrong there it's probably either:

Could you test your setup by creating an app of your own, using predis there, and check if you can queue a job there.

Closing this for now, as I highly suspect this isn't a problem with Mailcoach itself.

jmichaelterenin commented 4 years ago

Ok, just wanted to confirm that predis could be used, thank you! I did clear the config cache. I'll keep working on it.

jmichaelterenin commented 4 years ago

It's a predis issue: SELECT failed: NOAUTH Authentication required. [tcp://127.0.0.1:6379] in the error log file. All the links I'm finding on this is related to using phpredis. If someone stumbles across this thread and can provide some insight, I'd greatly appreciate it.

jmichaelterenin commented 4 years ago

@freekmurze I was able to figure it out, as I had set a password for predis for security reasons on our main website, and had to do the same for the Laravel 7 install. For those that stumble upon this error, the missing/incorrect credentials are why this error comes up.