Skip to content

[Bug]: docker installation fails #2078

Description

@tomas-kucera

crawl4ai version

0.9.2

Expected Behavior

Started and working container.

Current Behavior

Container fails to start because of an issue with redis that is trying to bind to IPv6 but it fails.

Is this reproducible?

Yes

Inputs Causing the Bug

no inputs

Steps to Reproduce

docker run -d -p 11235:11235 --name crawl4ai --env-file /root/.llm.env --shm-size=1g unclecode/crawl4ai:latest

Code snippets

OS

Ubuntu 18.04.6 LTS

Python version

irrelevant

Browser

irrelevant

Browser version

irrelevant

Error logs & Screenshots (if applicable)

entrypoint: no REDIS_PASSWORD provided; generated an ephemeral one.
entrypoint: no CRAWL4AI_API_TOKEN set; binding loopback only (127.0.0.1:11235).
2026-07-15 10:22:05,608 INFO supervisord started with pid 1
2026-07-15 10:22:06,612 INFO spawned: 'redis' with pid 8
2026-07-15 10:22:06,616 INFO spawned: 'gunicorn' with pid 9
8:C 15 Jul 2026 10:22:06.668 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
8:C 15 Jul 2026 10:22:06.668 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
8:C 15 Jul 2026 10:22:06.668 * Redis version=8.8.0, bits=64, commit=00000000, modified=1, pid=8, just started
8:C 15 Jul 2026 10:22:06.668 * Configuration loaded
8:M 15 Jul 2026 10:22:06.670 * monotonic clock: POSIX clock_gettime
8:M 15 Jul 2026 10:22:06.675 * Running mode=standalone, port=6379.
8:M 15 Jul 2026 10:22:06.675 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
8:M 15 Jul 2026 10:22:06.676 # Warning: Could not create server TCP listening socket ::1:6379: bind: Cannot assign requested address
8:M 15 Jul 2026 10:22:06.676 # Failed listening on port 6379 (tcp), aborting.
2026-07-15 10:22:06,682 WARN exited: redis (exit status 1; not expected)
2026-07-15 10:22:07,687 INFO spawned: 'redis' with pid 10
2026-07-15 10:22:07,688 INFO success: gunicorn entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
10:C 15 Jul 2026 10:22:07.708 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
10:C 15 Jul 2026 10:22:07.709 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
10:C 15 Jul 2026 10:22:07.709 * Redis version=8.8.0, bits=64, commit=00000000, modified=1, pid=10, just started
10:C 15 Jul 2026 10:22:07.709 * Configuration loaded
10:M 15 Jul 2026 10:22:07.710 * monotonic clock: POSIX clock_gettime
10:M 15 Jul 2026 10:22:07.712 * Running mode=standalone, port=6379.
10:M 15 Jul 2026 10:22:07.712 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
10:M 15 Jul 2026 10:22:07.713 # Warning: Could not create server TCP listening socket ::1:6379: bind: Cannot assign requested address
10:M 15 Jul 2026 10:22:07.713 # Failed listening on port 6379 (tcp), aborting.
2026-07-15 10:22:07,715 WARN exited: redis (exit status 1; not expected)
[2026-07-15 10:22:08 +0000] [9] [INFO] Starting gunicorn 26.0.0
[2026-07-15 10:22:08 +0000] [9] [INFO] Listening at: http://127.0.0.1:11235 (9)
[2026-07-15 10:22:08 +0000] [9] [INFO] Using worker: uvicorn.workers.UvicornWorker
[2026-07-15 10:22:08 +0000] [11] [INFO] Booting worker with pid: 11
[2026-07-15 10:22:08 +0000] [9] [INFO] Control socket listening at /home/appuser/.gunicorn/gunicorn.ctl
2026-07-15 10:22:10,273 INFO spawned: 'redis' with pid 22
22:C 15 Jul 2026 10:22:10.297 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
22:C 15 Jul 2026 10:22:10.297 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
22:C 15 Jul 2026 10:22:10.297 * Redis version=8.8.0, bits=64, commit=00000000, modified=1, pid=22, just started
22:C 15 Jul 2026 10:22:10.297 * Configuration loaded
22:M 15 Jul 2026 10:22:10.299 * monotonic clock: POSIX clock_gettime
22:M 15 Jul 2026 10:22:10.303 * Running mode=standalone, port=6379.
22:M 15 Jul 2026 10:22:10.303 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
22:M 15 Jul 2026 10:22:10.304 # Warning: Could not create server TCP listening socket ::1:6379: bind: Cannot assign requested address
22:M 15 Jul 2026 10:22:10.304 # Failed listening on port 6379 (tcp), aborting.
2026-07-15 10:22:10,306 WARN exited: redis (exit status 1; not expected)
No SECRET_KEY set. Auto-generated an ephemeral key (changes on restart, invalidating issued tokens). Set SECRET_KEY for any real deployment.
/app/job.py:49: UserWarning: Field name "schema" in "LlmJobPayload" shadows an attribute in parent "BaseModel"
  class LlmJobPayload(BaseModel):
2026-07-15 10:22:12,368 - crawl4ai.security - WARNING - CRAWL4AI_API_TOKEN is not set. All API endpoints are unauthenticated. Set CRAWL4AI_API_TOKEN environment variable to enable authentication.
/app/server.py:1010: FastAPIDeprecationWarning: `regex` has been deprecated, please use `pattern` instead
  context_type: str = Query("all", regex="^(code|doc|all)$"),
MCP server running on 127.0.0.1:11235
[2026-07-15 10:22:12 +0000] [11] [INFO] Started server process [11]
[2026-07-15 10:22:12 +0000] [11] [INFO] Waiting for application startup.
2026-07-15 10:22:12,559 - server - WARNING - No CRAWL4AI_API_TOKEN set; generated an ephemeral token for this loopback session:    CRAWL4AI_API_TOKEN=63ad557c65fbeed644b8164abb80cf61bb830460ce44aa556bb89476de3d9324
2026-07-15 10:22:12,569 - crawl4ai.egress - INFO - egress pinning proxy listening on http://127.0.0.1:46421
2026-07-15 10:22:12,571 - crawl4ai.workqueue - INFO - work queue started (maxsize=1000, workers=4, per_principal=unlimited)
2026-07-15 10:22:12,577 - monitor - WARNING - Failed to load from Redis: Error Multiple exceptions: [Errno 111] Connect call failed ('127.0.0.1', 6379), [Errno 99] Cannot assign requested address connecting to localhost:6379.
2026-07-15 10:22:12,577 - monitor - INFO - Started persistence worker
2026-07-15 10:22:12,664 - crawler_pool - INFO - 🔥 Creating permanent default browser
2026-07-15 10:22:13,670 INFO spawned: 'redis' with pid 34
34:C 15 Jul 2026 10:22:13.709 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
34:C 15 Jul 2026 10:22:13.710 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
34:C 15 Jul 2026 10:22:13.710 * Redis version=8.8.0, bits=64, commit=00000000, modified=1, pid=34, just started
34:C 15 Jul 2026 10:22:13.710 * Configuration loaded
34:M 15 Jul 2026 10:22:13.712 * monotonic clock: POSIX clock_gettime
34:M 15 Jul 2026 10:22:13.718 * Running mode=standalone, port=6379.
34:M 15 Jul 2026 10:22:13.718 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
34:M 15 Jul 2026 10:22:13.719 # Warning: Could not create server TCP listening socket ::1:6379: bind: Cannot assign requested address
34:M 15 Jul 2026 10:22:13.719 # Failed listening on port 6379 (tcp), aborting.
2026-07-15 10:22:13,721 WARN exited: redis (exit status 1; not expected)
[INIT].... → Crawl4AI 0.9.2 
2026-07-15 10:22:14,350 INFO gave up: redis entered FATAL state, too many start retries too quickly
[2026-07-15 10:22:14 +0000] [11] [INFO] Application startup complete.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 BugSomething isn't working🩺 Needs TriageNeeds attention of maintainers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions