Code Monkey home page Code Monkey logo

Comments (21)

PandyDev avatar PandyDev commented on May 25, 2024 4

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.

celson avatar celson commented on May 25, 2024 4

Just mount the volume in task and web container:

volumes:

  • /tmp/SECRET_KEY:/etc/tower/SECRET_KEY

from awx-container.

ebosveld avatar ebosveld commented on May 25, 2024 4

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.

majerus1223 avatar majerus1223 commented on May 25, 2024 3

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.

kquilliam avatar kquilliam commented on May 25, 2024 1

Glad I am not alone on this one.

from awx-container.

trickert76 avatar trickert76 commented on May 25, 2024 1

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.

kitos9112 avatar kitos9112 commented on May 25, 2024 1

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.

ajoldham avatar ajoldham commented on May 25, 2024

I get this as well with trying many AWX docker-composes on GitHub. Guessing some dependency changed and broke something?

from awx-container.

larsmaes avatar larsmaes commented on May 25, 2024

I get this as well. Seems there are some config changes neede when going to version 4.0

from awx-container.

abradshaw avatar abradshaw commented on May 25, 2024

Im also getting exactly this

from awx-container.

PandyDev avatar PandyDev commented on May 25, 2024

same for me

from awx-container.

ajoldham avatar ajoldham commented on May 25, 2024

Awesome, thx for sharing your image! :)

from awx-container.

trotyoung avatar trotyoung commented on May 25, 2024

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.

 avatar commented on May 25, 2024

@celson What volumes are you mounting. Please be more specific with your fix.

from awx-container.

kitos9112 avatar kitos9112 commented on May 25, 2024

Same issue here, unfortunately - Will see if adding volumes to the docker-compose.yml fixes it.

from awx-container.

hemanth22 avatar hemanth22 commented on May 25, 2024

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.

ntwrkguru avatar ntwrkguru commented on May 25, 2024

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.

casablancaplusplus avatar casablancaplusplus commented on May 25, 2024

I had the same problem with awx_web.
It turned out that my port 80 was in use by another program.

from awx-container.

amard33p avatar amard33p commented on May 25, 2024

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.

hemanth22 avatar hemanth22 commented on May 25, 2024

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.

geerlingguy avatar geerlingguy commented on May 25, 2024

I'm closing all issues on this repository as it has been deprecated; please see: #49

from awx-container.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.