Hi Team I am working on ansible tower upgrade from 7 to 10, I can see the containers are up but in awx web contaner log I see below error, could some one please help me.
task_1 | Traceback (most recent call last):
task_1 | File “/usr/bin/awx-manage”, line 8, in
task_1 | sys.exit(manage())
task_1 | File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/init.py”, line 152, in manage
task_1 | execute_from_command_line(sys.argv)
task_1 | File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/core/management/init.py”, line 381, in execute_from_command_line
task_1 | utility.execute()
task_1 | File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/core/management/init.py”, line 375, in execute
task_1 | self.fetch_command(subcommand).run_from_argv(self.argv)
task_1 | File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/core/management/base.py”, line 323, in run_from_argv
task_1 | self.execute(*args, **cmd_options)
task_1 | File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/core/management/base.py”, line 364, in execute
task_1 | output = self.handle(*args, **options)
task_1 | File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/main/management/commands/run_callback_receiver.py”, line 26, in handle
task_1 | consumer.run()
task_1 | File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/awx/main/dispatch/worker/base.py”, line 119, in run
task_1 | queue = redis.Redis.from_url(settings.BROKER_URL)
task_1 | File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/redis/client.py”, line 673, in from_url
task_1 | connection_pool = ConnectionPool.from_url(url, db=db, **kwargs)
task_1 | File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/redis/connection.py”, line 1046, in from_url
task_1 | ‘schemes (%s)’ % valid_schemes)
task_1 | ValueError: Redis URL must specify one of the followingschemes (redis://, rediss://, unix://)
task_1 | 2020-05-13 13:01:44,167 INFO exited: callback-receiver (exit status 1; not expected)
task_1 | 2020-05-13 13:01:45,169 INFO spawned: ‘callback-receiver’ with pid 907
task_1 | 2020-05-13 13:01:46,171 INFO success: callback-receiver entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
web_1 | 2020-05-13 13:01:46,669 WARNING awx.main.analytics.broadcast_websocket (‘Unsupported URI scheme’, ‘amqp’)
----below is my docker-compose file---->
version: ‘2’
services:
web:
image: ansible/awx_web:10.0.0
container_name: awx_web
depends_on:
- redis
- memcached
ports: - “80:8052”
- “443:8443”
hostname: awxweb
user: root
restart: unless-stopped
volumes: - “/var/lib/awx/SECRET_KEY:/etc/tower/SECRET_KEY”
- “/var/lib/awx/environment.sh:/etc/tower/conf.d/environment.sh”
- “/var/lib/awx/credentials.py:/etc/tower/conf.d/credentials.py”
- “/var/lib/awx/projects:/var/lib/awx/projects:rw”
- “/var/lib/awx/projects/nginx.conf:/etc/nginx/nginx.conf:rw”
dns:
- 10.204.226.77
- 10.204.226.111
environment:
http_proxy:
https_proxy:
no_proxy:
task:
image: ansible/awx_task:10.0.0
container_name: awx_task
depends_on: - redis
- memcached
- web
hostname: awx
user: root
restart: unless-stopped
volumes: - “/var/lib/awx/SECRET_KEY:/etc/tower/SECRET_KEY”
- “/var/lib/awx/environment.sh:/etc/tower/conf.d/environment.sh”
- “/var/lib/awx/credentials.py:/etc/tower/conf.d/credentials.py”
- “/var/lib/awx/projects:/var/lib/awx/projects:rw”
dns: - 10.204.226.77
- 10.204.226.111
environment:
http_proxy:
https_proxy:
no_proxy:
redis:
image: redis:6.0-rc4-alpine3.11
container_name: tools_redis_1
environment:
REDIS_PASSWORD: password
ports: - “6379:6379”
volumes: - “/var/lib/awx/redis.conf:/usr/local/etc/redis/redis.conf”
- “/var/lib/awx/redis_socket_standalone:/var/run/redis/”
- “/var/lib/awx/environment.sh:/etc/tower/conf.d/environment.sh”
- “/var/lib/awx/credentials.py:/etc/tower/conf.d/credentials.py”
command: [“/usr/local/etc/redis/redis.conf”]
memcached:
image: “memcached:alpine”
container_name: awx_memcached
restart: unless-stopped
environment:
http_proxy:
https_proxy:
no_proxy:
below is my credentials.py file configuration---->
DATABASES = {
‘default’: {
‘ATOMIC_REQUESTS’: True,
‘ENGINE’: ‘django.db.backends.postgresql’,
‘NAME’: “awx”,
‘USER’: “awx”,
‘PASSWORD’: “awxpass1”,
‘HOST’: “awx-tower-upgrade.cnectdraqndy.us-east-1.rds.amazonaws.com”,
‘PORT’: “5432”,
}
}
BROKER_URL = ‘amqp://{}:{}@{}:{}/{}’.format(
“guest”,
“awxpass”,
“redis”,
“5672”,
“awx”)
CHANNEL_LAYERS = {
‘default’: {‘BACKEND’: ‘asgi_amqp.AMQPChannelLayer’,
‘ROUTING’: ‘awx.main.routing.channel_routing’,
‘CONFIG’: {‘url’: BROKER_URL}}
}
CACHES = {
‘default’: {
‘BACKEND’: ‘django.core.cache.backends.memcached.MemcachedCache’,
‘LOCATION’: ‘{}:{}’.format(“memcached”, “11211”)
},
‘ephemeral’: {
‘BACKEND’: ‘django.core.cache.backends.locmem.LocMemCache’,
},
}
below is my environment.sh file —>
DATABASE_USER=awx
DATABASE_NAME=awx
DATABASE_HOST=awx-tower-upgrade.cnectdraqndy.us-east-1.rds.amazonaws.com
DATABASE_PORT=5432
DATABASE_PASSWORD=awxpass1
MEMCACHED_HOST=memcached
MEMCACHED_PORT=11211
RABBITMQ_HOST=rabbitmq
RABBITMQ_PORT=5672
AWX_ADMIN_USER=admin
AWX_ADMIN_PASSWORD=password
#ANSIBLE_REDIS_HOST=ansible-tower.rbkm0e.ng.0001.use1.cache.amazonaws.com:6379
REDIS_URL=“redis://ansible-tower-ro.rbkm0e.ng.0001.use1.cache.amazonaws.com:6379”
REDIS_PORT=6379
REDIS_SOCKET=/var/lib/awx/redis.sock
REDIS_PASSWORD=password