Code Monkey home page Code Monkey logo

Comments (6)

geerlingguy avatar geerlingguy commented on May 25, 2024

Code in question: https://github.com/ansible/awx/blob/bfea00f6dc6af0fb01057ce38e9d0337e6c589aa/awx/wsgi.py#L22-L30

Looks like:

        fd = open("/var/lib/awx/.tower_version", "r")
        if fd.read().strip() != tower_version:
            raise Exception()

So looking for a file that's apparently empty or not created in the path /var/lib/awx/.tower_version.

from awx-container.

geerlingguy avatar geerlingguy commented on May 25, 2024

...and that file should be created by this Dockerfile template: https://github.com/ansible/awx/blob/6163cc6b5c3a3c8f5bd173d121cafd15c5b75b17/installer/image_build/templates/Dockerfile.j2#L48

from awx-container.

geerlingguy avatar geerlingguy commented on May 25, 2024

Looking in my latest container version:

# cat /var/lib/awx/.tower_version 
1.0.3.55

I think I can just move the 'backup version string' task up one, so both templates (task and web) have it... will try that next.

from awx-container.

geerlingguy avatar geerlingguy commented on May 25, 2024

Now hitting: ansible/awx#1148

from awx-container.

geerlingguy avatar geerlingguy commented on May 25, 2024

Grabbing the version from the filename (e.g. awx-1.0.3.14.tar.gz):

- name: Set awx sdist filename and awx version.
  set_fact:
    awx_sdist_file: "{{ sdist_file.stdout_lines.0 }}"
    awx_version: "{{ sdist_file.stdout_lines.0 | regex_replace('^awx-(.*).tar.gz$', '\\1') }}"

from awx-container.

geerlingguy avatar geerlingguy commented on May 25, 2024

Back to a happy state after pulling latest devel! I'll be pushing up the new images.

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.