Skip to content

upgrade Dify to 1.7.1#80

Merged
tmokmss merged 2 commits intomainfrom
upgrade-dify-1.7.1
Aug 8, 2025
Merged

upgrade Dify to 1.7.1#80
tmokmss merged 2 commits intomainfrom
upgrade-dify-1.7.1

Conversation

@tmokmss
Copy link
Copy Markdown
Contributor

@tmokmss tmokmss commented Aug 8, 2025

Issue #, if available:
n/a

Description of changes:

Upgrade Dify to 1.7.1.

For some reason, Celery stopped working after update due to the below error:

2025-08-08 01:24:13,366.366 CRITICAL [MainThread] [worker.py:207] - Unrecoverable error: ValueError('\nA rediss:// URL must have parameter ssl_cert_reqs and this must be set to CERT_REQUIRED, CERT_OPTIONAL, or CERT_NONE\n')

I found that Celery result backend is switched from Postgres to Redis:

In 1.4.3:
---------- .> transport: rediss://:**@master.redacted.apne1.cache.amazonaws.com:6379/1
---------- .> results: postgresql://postgres:**@difyonawsstack-redacted.cluster-redacted.ap-northeast-1.rds.amazonaws.com:5432/main

In 1.7.1
---------- .> transport: rediss://:**@master.redacted.apne1.cache.amazonaws.com:6379/1
---------- .> results: rediss://:**@master.redacted.apne1.cache.amazonaws.com:6379/1

But could not found any relevant upstream changes:

https://github.com/langgenius/dify/blob/084dcd1a504796043308f5fa4077f26d9e61e948/api/extensions/ext_celery.py#L44-L46
https://github.com/langgenius/dify/blob/084dcd1a504796043308f5fa4077f26d9e61e948/api/configs/middleware/__init__.py#L250-L257

Celery does not have changed the relevant logic either:
https://github.com/celery/celery/blob/6dcecbe52da8717c015203f5e0f6b8d684b6ccc9/celery/backends/redis.py#L267-L286

At least, adding ssl_cert_reqs parameter resolved the issue and it seems it is working without problem. We'll monitor if this breaks anything.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@tmokmss tmokmss merged commit c59b735 into main Aug 8, 2025
1 check passed
@tmokmss tmokmss deleted the upgrade-dify-1.7.1 branch August 8, 2025 02:30
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

Successfully merging this pull request may close these issues.

1 participant