Comments (21)
I fixed it by editing the image in the docker-compose file:
...
awx_web:
image: "geerlingguy/awx_web:latest"
#image: "ansible/awx_web:latest"
....
awx_task:
image: "geerlingguy/awx_task:latest"
# image: "ansible/awx_task:latest"
...
from awx-container.
Just mount the volume in task and web container:
volumes:
- /tmp/SECRET_KEY:/etc/tower/SECRET_KEY
from awx-container.
I tried @kitos9112 fix, but I couldn't log in anymore. I changed the docker-compose.yml and added volumes to the missing files.
environment.sh
DATABASE_USER=awx
DATABASE_NAME=awx
DATABASE_HOST=postgres
DATABASE_PORT=5432
DATABASE_PASSWORD='awxpass'
MEMCACHED_HOST=memcached
MEMCACHED_PORT=11211
RABBITMQ_HOST=rabbitmq
RABBITMQ_PORT=5672
AWX_ADMIN_USER=admin
AWX_ADMIN_PASSWORD='password'
credentials.py
DATABASES = {
'default': {
'ATOMIC_REQUESTS': True,
'ENGINE': 'django.db.backends.postgresql',
'NAME': "awx",
'USER': "awx",
'PASSWORD': "awxpass",
'HOST': "postgres",
'PORT': "5432",
}
}
BROKER_URL = 'amqp://{}:{}@{}:{}/{}'.format(
"guest",
"guest",
"rabbitmq",
"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',
},
}
docker-compose.yml
version: '3'
services:
postgres:
image: "postgres:9.6"
environment:
POSTGRES_USER: awx
POSTGRES_PASSWORD: awxpass
POSTGRES_DB: awx
rabbitmq:
image: "rabbitmq:3"
environment:
RABBITMQ_DEFAULT_VHOST: awx
memcached:
image: "memcached:alpine"
awx_web:
# image: "geerlingguy/awx_web:latest"
image: "ansible/awx_web:latest"
links:
- rabbitmq
- memcached
- postgres
ports:
- "80:8052"
hostname: awxweb
user: root
volumes:
- ./SECRET_KEY:/etc/tower/SECRET_KEY
- ./environment.sh:/etc/tower/conf.d/environment.sh
- ./credentials.py:/etc/tower/conf.d/credentials.py
awx_task:
# image: "geerlingguy/awx_task:latest"
image: "ansible/awx_task:latest"
links:
- rabbitmq
- memcached
- awx_web:awxweb
- postgres
hostname: awx
user: root
volumes:
- ./SECRET_KEY:/etc/tower/SECRET_KEY
- ./environment.sh:/etc/tower/conf.d/environment.sh
- ./credentials.py:/etc/tower/conf.d/credentials.py
from awx-container.
Had the same issues got it working by
cd /mnt/docker/awx
touch SECRET_KEY
echo aabbcc > SECRET_KEY
Modified the Docker-compose file for awx_web
volumes:
- ./SECRET_KEY:/etc/tower/SECRET_KEY
# /mnt/docker/awx/SECRET_KEY:/etc/tower/SECRET_KEY
from awx-container.
Glad I am not alone on this one.
from awx-container.
Hi Jeff,
the above solution isn't really fixing the issue. Changing the image to yours on Docker hub means, that they/we use a awx Container image that is not updated over a year. We are talking about release v4 instead fo v1 (which is geerlingguy/awx_*).
Is it possible to get your Dockerfile and/or the scripts that generate the geerlingguy/awx_ container?
This would help to avoid installing "very" old versions of awx and maybe is a security risk at all.
from awx-container.
I did manage to copy over the required files to the running containers ("awx_web" & "awx_task") and then all I had to do is restarting them! up and running for the time being.
#> echo "aabbcc" > SECRET_KEY
#> docker cp SECRET_KEY <container_id>:/etc/tower/SECRET_KEY
I'm using vSphere Integrated Containers with docker-compose - I had to do the building part in my dev. environment and then push the images to Harbor. If anyone is interested in more details, PM me!
Good luck
from awx-container.
I get this as well with trying many AWX docker-composes on GitHub. Guessing some dependency changed and broke something?
from awx-container.
I get this as well. Seems there are some config changes neede when going to version 4.0
from awx-container.
Im also getting exactly this
from awx-container.
same for me
from awx-container.
Awesome, thx for sharing your image! :)
from awx-container.
I fixed it by editing the image in the docker-compose file:
...
awx_web:
image: "geerlingguy/awx_web:latest"
#image: "ansible/awx_web:latest"
....
awx_task:
image: "geerlingguy/awx_task:latest"image: "ansible/awx_task:latest"
...
thx, this fixed my issue.
from awx-container.
@celson What volumes are you mounting. Please be more specific with your fix.
from awx-container.
Same issue here, unfortunately - Will see if adding volumes to the docker-compose.yml fixes it.
from awx-container.
Hello All,
I am getting below error, when i have docker-compose up
can you please check and help me in running awx.
Internal Server Error
in logs i am getting error as below.
awx_web_1 | --- no python application found, check your startup logs for errors ---
awx_web_1 | [pid: 153|app: -1|req: -1/3] 106.51.22.120 () {44 vars in 771 bytes} [Sun Sep 8 13:17:51 2019] GET / => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
awx_web_1 | 106.51.22.120 - - [08/Sep/2019:13:17:51 +0000] "GET / HTTP/1.1" 500 32 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.87 Safari/537.36" "-"
awx_web_1 | --- no python application found, check your startup logs for errors ---
awx_web_1 | [pid: 152|app: -1|req: -1/4] 106.51.22.120 () {44 vars in 771 bytes} [Sun Sep 8 13:17:59 2019] GET / => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
awx_web_1 | 106.51.22.120 - - [08/Sep/2019:13:17:59 +0000] "GET / HTTP/1.1" 500 32 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.87 Safari/537.36" "-"
from awx-container.
Jank AF, but mounting SECRET_KEY as a volume does fix it.
[edit] Actually, after the fix it is stuck in "upgrading". I just installed from the ansible repository using local docker-compose and it works like a champ.
from awx-container.
I had the same problem with awx_web.
It turned out that my port 80 was in use by another program.
from awx-container.
Unfortunately none of these worked for me. I had to follow this article to get it to work. https://www.linuxtechi.com/install-ansible-awx-docker-compose-centos-8/
from awx-container.
Hello
Hello All,
I am getting below error, when i have
docker-compose up
can you please check and help me in running awx.
Internal Server Error
in logs i am getting error as below.
awx_web_1 | --- no python application found, check your startup logs for errors --- awx_web_1 | [pid: 153|app: -1|req: -1/3] 106.51.22.120 () {44 vars in 771 bytes} [Sun Sep 8 13:17:51 2019] GET / => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0) awx_web_1 | 106.51.22.120 - - [08/Sep/2019:13:17:51 +0000] "GET / HTTP/1.1" 500 32 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.87 Safari/537.36" "-" awx_web_1 | --- no python application found, check your startup logs for errors --- awx_web_1 | [pid: 152|app: -1|req: -1/4] 106.51.22.120 () {44 vars in 771 bytes} [Sun Sep 8 13:17:59 2019] GET / => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0) awx_web_1 | 106.51.22.120 - - [08/Sep/2019:13:17:59 +0000] "GET / HTTP/1.1" 500 32 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.87 Safari/537.36" "-"
After doing multiple trial and error, i found the issue, and created ansible playbook that creates amazon instance and configures, AWX.
ansible-galaxy install hemanth22.awx
from awx-container.
I'm closing all issues on this repository as it has been deprecated; please see: #49
from awx-container.
Related Issues (20)
- no IPv6-support in awx_task HOT 1
- Switch to official AWX container versions from Ansible in example Docker Compose
- Travis CI builds failing on 'Stage sdist' task with AWX 1.0.3.52 HOT 4
- Getting "Exception: Missing or incorrect metadata for Tower version." HOT 6
- Discussion: Migration Paths for AWX HOT 3
- No proper login page after first docker-compose up HOT 4
- Q: is it possible to build lxd into the container? HOT 2
- What's the trick to upgrade Ansible? HOT 1
- Vagrant build fails at task EPEL repo installation HOT 2
- Build failing due to moved Dockerfile templates HOT 1
- Ansible Container 0.9.2 is here, update docs and tests
- Run awx_web and awx_task not as root? HOT 2
- Getting error in Travis CI build 'ordereddict is not JSON serializable' HOT 1
- No Job view HOT 1
- Helm chart for awx HOT 3
- Dockerfile for awx_task? HOT 1
- awx start to consume swap memory after running jobs HOT 1
- geerlingguy.repo-epel error HOT 1
- This project is deprecated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from awx-container.