$docker-compose up --build
Starting fastapi-celery-redis-rabbitmq_krabbitmq_1 ... done
Starting fastapi-celery-redis-rabbitmq_kredis_1 ... done
Starting fastapi-celery-redis-rabbitmq_worker_1 ... done
Starting fastapi-celery-redis-rabbitmq_flower_1 ... done
Starting fastapi-celery-redis-rabbitmq_api_1 ... done
Attaching to fastapi-celery-redis-rabbitmq_kredis_1, fastapi-celery-redis-rabbitmq_krabbitmq_1, fastapi-celery-redis-rabbitmq_worker_1, fastapi-celery-redis-rabbitmq_flower_1, fastapi-celery-redis-rabbitmq_api_1
krabbitmq_1 | error: RABBITMQ_DEFAULT_PASS is set but deprecated
krabbitmq_1 | error: RABBITMQ_DEFAULT_USER is set but deprecated
krabbitmq_1 | error: deprecated environment variables detected
krabbitmq_1 |
krabbitmq_1 | Please use a configuration file instead; visit https://www.rabbitmq.com/configure.html to learn more
krabbitmq_1 |
fastapi-celery-redis-rabbitmq_krabbitmq_1 exited with code 1
kredis_1 | 1:C 17 Aug 2021 16:31:19.286 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
kredis_1 | 1:C 17 Aug 2021 16:31:19.286 # Redis version=6.2.5, bits=64, commit=00000000, modified=0, pid=1, just started
kredis_1 | 1:C 17 Aug 2021 16:31:19.286 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
kredis_1 | 1:M 17 Aug 2021 16:31:19.288 * Increased maximum number of open files to 10032 (it was originally set to 1024).
kredis_1 | 1:M 17 Aug 2021 16:31:19.288 * monotonic clock: POSIX clock_gettime
kredis_1 | 1:M 17 Aug 2021 16:31:19.292 * Running mode=standalone, port=6379.
kredis_1 | 1:M 17 Aug 2021 16:31:19.292 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
kredis_1 | 1:M 17 Aug 2021 16:31:19.292 # Server initialized
kredis_1 | 1:M 17 Aug 2021 16:31:19.292 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. 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.
kredis_1 | 1:M 17 Aug 2021 16:31:19.293 * Loading RDB produced by version 6.2.5
kredis_1 | 1:M 17 Aug 2021 16:31:19.293 * RDB age 1116 seconds
kredis_1 | 1:M 17 Aug 2021 16:31:19.293 * RDB memory usage when created 0.77 Mb
kredis_1 | 1:M 17 Aug 2021 16:31:19.293 * DB loaded from disk: 0.001 seconds
kredis_1 | 1:M 17 Aug 2021 16:31:19.293 * Ready to accept connections
flower_1 | [I 210817 16:31:24 command:138] Visit me at http://localhost:5555
flower_1 | [I 210817 16:31:24 command:145] Broker: amqp://guest:**@krabbitmq:5672//
api_1 | [2021-08-17 16:31:24 +0000] [6] [INFO] Starting gunicorn 20.0.4
api_1 | [2021-08-17 16:31:24 +0000] [6] [INFO] Listening at: http://0.0.0.0:5000 (6)
api_1 | [2021-08-17 16:31:24 +0000] [6] [INFO] Using worker: uvicorn.workers.UvicornWorker
flower_1 | [I 210817 16:31:24 command:146] Registered tasks:
flower_1 | ['celery.accumulate',
flower_1 | 'celery.backend_cleanup',
flower_1 | 'celery.chain',
flower_1 | 'celery.chord',
flower_1 | 'celery.chord_unlock',
flower_1 | 'celery.chunks',
flower_1 | 'celery.group',
flower_1 | 'celery.map',
flower_1 | 'celery.starmap',
flower_1 | 'shopping.celery.tasks.move_to_next_stage']
api_1 | [2021-08-17 16:31:24 +0000] [8] [INFO] Booting worker with pid: 8
api_1 | [2021-08-17 16:31:24 +0000] [9] [INFO] Booting worker with pid: 9
api_1 | [2021-08-17 16:31:24 +0000] [10] [INFO] Booting worker with pid: 10
api_1 | [2021-08-17 16:31:24 +0000] [11] [INFO] Booting worker with pid: 11
worker_1 | /usr/local/lib/python3.8/site-packages/celery/platforms.py:800: RuntimeWarning: You're running the worker with superuser privileges: this is
worker_1 | absolutely not recommended!
worker_1 |
worker_1 | Please specify a different user using the --uid option.
worker_1 |
worker_1 | User information: uid=0 euid=0 gid=0 egid=0
worker_1 |
worker_1 | warnings.warn(RuntimeWarning(ROOT_DISCOURAGED.format(
worker_1 | [2021-08-17 16:31:24,653: ERROR/MainProcess] consumer: Cannot connect to amqp://guest:**@krabbitmq:5672//: failed to resolve broker hostname.
worker_1 | Trying again in 2.00 seconds... (1/100)
worker_1 |
api_1 | [2021-08-17 16:31:25 +0000] [10] [INFO] Started server process [10]
api_1 | [2021-08-17 16:31:25 +0000] [11] [INFO] Started server process [11]
api_1 | [2021-08-17 16:31:25 +0000] [10] [INFO] Waiting for application startup.
api_1 | [2021-08-17 16:31:25 +0000] [11] [INFO] Waiting for application startup.
api_1 | [2021-08-17 16:31:25 +0000] [11] [INFO] Application startup complete.
api_1 | [2021-08-17 16:31:25 +0000] [10] [INFO] Application startup complete.
api_1 | [2021-08-17 16:31:25 +0000] [9] [INFO] Started server process [9]
api_1 | [2021-08-17 16:31:25 +0000] [9] [INFO] Waiting for application startup.
api_1 | [2021-08-17 16:31:25 +0000] [9] [INFO] Application startup complete.
api_1 | [2021-08-17 16:31:25 +0000] [8] [INFO] Started server process [8]
api_1 | [2021-08-17 16:31:25 +0000] [8] [INFO] Waiting for application startup.
api_1 | [2021-08-17 16:31:25 +0000] [8] [INFO] Application startup complete.
worker_1 | [2021-08-17 16:31:26,829: ERROR/MainProcess] consumer: Cannot connect to amqp://guest:**@krabbitmq:5672//: failed to resolve broker hostname.
worker_1 | Trying again in 4.00 seconds... (2/100)
worker_1 |
worker_1 | [2021-08-17 16:31:30,999: ERROR/MainProcess] consumer: Cannot connect to amqp://guest:**@krabbitmq:5672//: failed to resolve broker hostname.
worker_1 | Trying again in 6.00 seconds... (3/100)
worker_1 |
^CGracefully stopping... (press Ctrl+C again to force)
Stopping fastapi-celery-redis-rabbitmq_api_1 ... done
Stopping fastapi-celery-redis-rabbitmq_flower_1 ... done
Stopping fastapi-celery-redis-rabbitmq_worker_1 ... done
Stopping fastapi-celery-redis-rabbitmq_kredis_1 ... done
Any suggestions?