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

[2019-03-04 11:08:55,583: CRITICAL/MainProcess] Unrecoverable error: VersionMismatch(‘Redis transport requires redis-py versions 3.2.0 or later. You have 2.10.6’,) #5369

Closed
mehtadev17 opened this issue Mar 4, 2019 · 5 comments

Comments

@mehtadev17
Copy link

mehtadev17 commented Mar 4, 2019

The Kombu update from 4.3.0 to 4.4.0 stopped support for redis-py v2.10.6 and therefore forces us to upgrade redis-py version.
Celery Version: 4.1.1

https://github.com/celery/celery/blob/v4.1.1/requirements/default.txt#L3

kombu.exceptions.VersionMismatch: Redis transport requires redis-py versions 3.2.0 or later. You have 2.10.6
@andonirodriguez
Copy link

If you use pip for install celery I fix the error specifying kombu version in the requirements.txt

celery==4.1.1
kombu==4.2.0

The error is in kombu dependency:

celery/kombu#1016

Regards.

@thedrow
Copy link
Member

thedrow commented Mar 4, 2019

This is completely intentional since py-redis<3.20 contains bugs which crash Celery or makes certain features unusable.
This is exactly why I bumped the minor version.
We don't follow SemVer to the letter since we want Celery 5 to contain certain features and signify a new path for the project.

This breakage is declared in both the Celery 4.3.0 RC2 & Kombu 4.4.0 release notes.
The What's New document will contain a fair warning.
If you want to keep using py-redis 2, please downgrade to Kombu 4.3 and keep using Celery 4.2 or Celery 4.3RC1.
Alternatively, try to backport the relevant py-redis 3 patches and contribute them upstream if possible. You can also maintain your own fork.

I apologize for the inconvenience but we had to do this since any other path would involve heavy monkey patching or breakage for users.

Thank you for noticing and opening an issue about this.
I'm going to close this issue as won't fix.

@mager
Copy link

mager commented Mar 12, 2019

Pinning to 4.3 worked for us.

@fako
Copy link

fako commented Mar 18, 2019

The following in my requirements.txt solved the issue.

redis==3.2.1

If I understand @thedrow correctly it's a better approach than fixing Kombu suggested in the answer by @andonirodriguez.

@darwinyip
Copy link

FYI to future readers: redis>=3.4.0 will break it again.

@celery celery locked as resolved and limited conversation to collaborators Feb 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants