worker_beat-1 The container encountered an exception. #20352

Closed
opened 2026-02-21 20:06:59 -05:00 by yindo · 1 comment
Owner

Originally created by @huiliyitianxiadi1 on GitHub (Nov 16, 2025).

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.10

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

When starting the container, the following logs appear.:
2025-11-17 11:07:44 Running migrations
2025-11-17 11:07:44 /bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
2025-11-17 11:07:44 /entrypoint.sh: line 7: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
2025-11-17 11:07:47 2025-11-17 03:07:47.082 INFO [MainThread] [utils.py:151] - Note: NumExpr detected 48 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 16.
2025-11-17 11:07:47 2025-11-17 03:07:47.082 INFO [MainThread] [utils.py:164] - NumExpr defaulting to 16 threads.
2025-11-17 11:07:49 Preparing database migration...
2025-11-17 11:07:49 Traceback (most recent call last):
2025-11-17 11:07:49 File "/app/api/.venv/lib/python3.12/site-packages/redis/connection.py", line 385, in connect_check_health
2025-11-17 11:07:49 sock = self.retry.call_with_retry(
2025-11-17 11:07:49 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-11-17 11:07:49 File "/app/api/.venv/lib/python3.12/site-packages/redis/retry.py", line 87, in call_with_retry
2025-11-17 11:07:49 return do()
2025-11-17 11:07:49 ^^^^
2025-11-17 11:07:49 File "/app/api/.venv/lib/python3.12/site-packages/redis/connection.py", line 386, in
2025-11-17 11:07:49 lambda: self._connect(), lambda error: self.disconnect(error)
2025-11-17 11:07:49 ^^^^^^^^^^^^^^^
2025-11-17 11:07:49 File "/app/api/.venv/lib/python3.12/site-packages/redis/connection.py", line 761, in _connect
2025-11-17 11:07:49 for res in socket.getaddrinfo(
2025-11-17 11:07:49 ^^^^^^^^^^^^^^^^^^^
2025-11-17 11:07:49 File "/usr/local/lib/python3.12/socket.py", line 978, in getaddrinfo
2025-11-17 11:07:49 for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
2025-11-17 11:07:49 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-11-17 11:07:49 socket.gaierror: [Errno -3] Temporary failure in name resolution
2025-11-17 11:07:49
2025-11-17 11:07:49 During handling of the above exception, another exception occurred:
2025-11-17 11:07:49
2025-11-17 11:07:49 Traceback (most recent call last):
2025-11-17 11:07:49 File "/app/api/.venv/bin/flask", line 10, in
2025-11-17 11:07:49 sys.exit(main())
2025-11-17 11:07:49 ^^^^^^
2025-11-17 11:07:49 File "/app/api/.venv/lib/python3.12/site-packages/flask/cli.py", line 1131, in main
2025-11-17 11:07:49 cli.main()
2025-11-17 11:07:49 File "/app/api/.venv/lib/python3.12/site-packages/click/core.py", line 1383, in main
2025-11-17 11:07:49 rv = self.invoke(ctx)
2025-11-17 11:07:49 ^^^^^^^^^^^^^^^^
2025-11-17 11:07:49 File "/app/api/.venv/lib/python3.12/site-packages/click/core.py", line 1850, in invoke
2025-11-17 11:07:49 return _process_result(sub_ctx.command.invoke(sub_ctx))
2025-11-17 11:07:49 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-11-17 11:07:49 File "/app/api/.venv/lib/python3.12/site-packages/click/core.py", line 1246, in invoke
2025-11-17 11:07:49 return ctx.invoke(self.callback, **ctx.params)
2025-11-17 11:07:49 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-11-17 11:07:49 File "/app/api/.venv/lib/python3.12/site-packages/click/core.py", line 814, in invoke
2025-11-17 11:07:49 return callback(*args, **kwargs)
2025-11-17 11:07:49 ^^^^^^^^^^^^^^^^^^^^^^^^^
2025-11-17 11:07:49 File "/app/api/commands.py", line 700, in upgrade_db
2025-11-17 11:07:49 if lock.acquire(blocking=False):
2025-11-17 11:07:49 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-11-17 11:07:49 File "/app/api/.venv/lib/python3.12/site-packages/redis/lock.py", line 227, in acquire
2025-11-17 11:07:49 if self.do_acquire(token):
2025-11-17 11:07:49 ^^^^^^^^^^^^^^^^^^^^^^
2025-11-17 11:07:49 File "/app/api/.venv/lib/python3.12/site-packages/redis/lock.py", line 243, in do_acquire
2025-11-17 11:07:49 if self.redis.set(self.name, token, nx=True, px=timeout):
2025-11-17 11:07:49 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-11-17 11:07:49 File "/app/api/.venv/lib/python3.12/site-packages/redis/commands/core.py", line 2305, in set
2025-11-17 11:07:49 return self.execute_command("SET", *pieces, **options)
2025-11-17 11:07:49 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-11-17 11:07:49 File "/app/api/.venv/lib/python3.12/site-packages/redis/client.py", line 624, in execute_command
2025-11-17 11:07:49 return self._execute_command(*args, **options)
2025-11-17 11:07:49 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-11-17 11:07:49 File "/app/api/.venv/lib/python3.12/site-packages/redis/client.py", line 630, in _execute_command
2025-11-17 11:07:49 conn = self.connection or pool.get_connection()
2025-11-17 11:07:49 ^^^^^^^^^^^^^^^^^^^^^
2025-11-17 11:07:49 File "/app/api/.venv/lib/python3.12/site-packages/redis/utils.py", line 188, in wrapper
2025-11-17 11:07:49 return func(*args, **kwargs)
2025-11-17 11:07:49 ^^^^^^^^^^^^^^^^^^^^^
2025-11-17 11:07:49 File "/app/api/.venv/lib/python3.12/site-packages/redis/connection.py", line 1530, in get_connection
2025-11-17 11:07:49 connection.connect()
2025-11-17 11:07:49 File "/app/api/.venv/lib/python3.12/site-packages/redis/connection.py", line 379, in connect
2025-11-17 11:07:49 self.connect_check_health(check_health=True)
2025-11-17 11:07:49 File "/app/api/.venv/lib/python3.12/site-packages/redis/connection.py", line 391, in connect_check_health
2025-11-17 11:07:49 raise ConnectionError(self._error_message(e))
2025-11-17 11:07:49 redis.exceptions.ConnectionError: Error -3 connecting to redis:6379. Temporary failure in name resolution.

✔️ Expected Behavior

null

Actual Behavior

null

Originally created by @huiliyitianxiadi1 on GitHub (Nov 16, 2025). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.10 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce When starting the container, the following logs appear.: 2025-11-17 11:07:44 Running migrations 2025-11-17 11:07:44 /bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) 2025-11-17 11:07:44 /entrypoint.sh: line 7: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) 2025-11-17 11:07:47 2025-11-17 03:07:47.082 INFO [MainThread] [utils.py:151] - Note: NumExpr detected 48 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 16. 2025-11-17 11:07:47 2025-11-17 03:07:47.082 INFO [MainThread] [utils.py:164] - NumExpr defaulting to 16 threads. 2025-11-17 11:07:49 Preparing database migration... 2025-11-17 11:07:49 Traceback (most recent call last): 2025-11-17 11:07:49 File "/app/api/.venv/lib/python3.12/site-packages/redis/connection.py", line 385, in connect_check_health 2025-11-17 11:07:49 sock = self.retry.call_with_retry( 2025-11-17 11:07:49 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-11-17 11:07:49 File "/app/api/.venv/lib/python3.12/site-packages/redis/retry.py", line 87, in call_with_retry 2025-11-17 11:07:49 return do() 2025-11-17 11:07:49 ^^^^ 2025-11-17 11:07:49 File "/app/api/.venv/lib/python3.12/site-packages/redis/connection.py", line 386, in <lambda> 2025-11-17 11:07:49 lambda: self._connect(), lambda error: self.disconnect(error) 2025-11-17 11:07:49 ^^^^^^^^^^^^^^^ 2025-11-17 11:07:49 File "/app/api/.venv/lib/python3.12/site-packages/redis/connection.py", line 761, in _connect 2025-11-17 11:07:49 for res in socket.getaddrinfo( 2025-11-17 11:07:49 ^^^^^^^^^^^^^^^^^^^ 2025-11-17 11:07:49 File "/usr/local/lib/python3.12/socket.py", line 978, in getaddrinfo 2025-11-17 11:07:49 for res in _socket.getaddrinfo(host, port, family, type, proto, flags): 2025-11-17 11:07:49 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-11-17 11:07:49 socket.gaierror: [Errno -3] Temporary failure in name resolution 2025-11-17 11:07:49 2025-11-17 11:07:49 During handling of the above exception, another exception occurred: 2025-11-17 11:07:49 2025-11-17 11:07:49 Traceback (most recent call last): 2025-11-17 11:07:49 File "/app/api/.venv/bin/flask", line 10, in <module> 2025-11-17 11:07:49 sys.exit(main()) 2025-11-17 11:07:49 ^^^^^^ 2025-11-17 11:07:49 File "/app/api/.venv/lib/python3.12/site-packages/flask/cli.py", line 1131, in main 2025-11-17 11:07:49 cli.main() 2025-11-17 11:07:49 File "/app/api/.venv/lib/python3.12/site-packages/click/core.py", line 1383, in main 2025-11-17 11:07:49 rv = self.invoke(ctx) 2025-11-17 11:07:49 ^^^^^^^^^^^^^^^^ 2025-11-17 11:07:49 File "/app/api/.venv/lib/python3.12/site-packages/click/core.py", line 1850, in invoke 2025-11-17 11:07:49 return _process_result(sub_ctx.command.invoke(sub_ctx)) 2025-11-17 11:07:49 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-11-17 11:07:49 File "/app/api/.venv/lib/python3.12/site-packages/click/core.py", line 1246, in invoke 2025-11-17 11:07:49 return ctx.invoke(self.callback, **ctx.params) 2025-11-17 11:07:49 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-11-17 11:07:49 File "/app/api/.venv/lib/python3.12/site-packages/click/core.py", line 814, in invoke 2025-11-17 11:07:49 return callback(*args, **kwargs) 2025-11-17 11:07:49 ^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-11-17 11:07:49 File "/app/api/commands.py", line 700, in upgrade_db 2025-11-17 11:07:49 if lock.acquire(blocking=False): 2025-11-17 11:07:49 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-11-17 11:07:49 File "/app/api/.venv/lib/python3.12/site-packages/redis/lock.py", line 227, in acquire 2025-11-17 11:07:49 if self.do_acquire(token): 2025-11-17 11:07:49 ^^^^^^^^^^^^^^^^^^^^^^ 2025-11-17 11:07:49 File "/app/api/.venv/lib/python3.12/site-packages/redis/lock.py", line 243, in do_acquire 2025-11-17 11:07:49 if self.redis.set(self.name, token, nx=True, px=timeout): 2025-11-17 11:07:49 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-11-17 11:07:49 File "/app/api/.venv/lib/python3.12/site-packages/redis/commands/core.py", line 2305, in set 2025-11-17 11:07:49 return self.execute_command("SET", *pieces, **options) 2025-11-17 11:07:49 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-11-17 11:07:49 File "/app/api/.venv/lib/python3.12/site-packages/redis/client.py", line 624, in execute_command 2025-11-17 11:07:49 return self._execute_command(*args, **options) 2025-11-17 11:07:49 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-11-17 11:07:49 File "/app/api/.venv/lib/python3.12/site-packages/redis/client.py", line 630, in _execute_command 2025-11-17 11:07:49 conn = self.connection or pool.get_connection() 2025-11-17 11:07:49 ^^^^^^^^^^^^^^^^^^^^^ 2025-11-17 11:07:49 File "/app/api/.venv/lib/python3.12/site-packages/redis/utils.py", line 188, in wrapper 2025-11-17 11:07:49 return func(*args, **kwargs) 2025-11-17 11:07:49 ^^^^^^^^^^^^^^^^^^^^^ 2025-11-17 11:07:49 File "/app/api/.venv/lib/python3.12/site-packages/redis/connection.py", line 1530, in get_connection 2025-11-17 11:07:49 connection.connect() 2025-11-17 11:07:49 File "/app/api/.venv/lib/python3.12/site-packages/redis/connection.py", line 379, in connect 2025-11-17 11:07:49 self.connect_check_health(check_health=True) 2025-11-17 11:07:49 File "/app/api/.venv/lib/python3.12/site-packages/redis/connection.py", line 391, in connect_check_health 2025-11-17 11:07:49 raise ConnectionError(self._error_message(e)) 2025-11-17 11:07:49 redis.exceptions.ConnectionError: Error -3 connecting to redis:6379. Temporary failure in name resolution. ### ✔️ Expected Behavior null ### ❌ Actual Behavior null
yindo added the 🐞 bug🤔 cant-reproduce labels 2026-02-21 20:06:59 -05:00
yindo closed this issue 2026-02-21 20:06:59 -05:00
Author
Owner

@crazywoola commented on GitHub (Nov 16, 2025):

It seems you can not connect to your redis container.

 redis.exceptions.ConnectionError: Error -3 connecting to redis:6379. Temporary failure in name resolution.
@crazywoola commented on GitHub (Nov 16, 2025): It seems you can not connect to your redis container. ``` redis.exceptions.ConnectionError: Error -3 connecting to redis:6379. Temporary failure in name resolution. ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#20352