Comments (6)
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.
...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.
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.
Now hitting: ansible/awx#1148
from awx-container.
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.
Back to a happy state after pulling latest devel! I'll be pushing up the new images.
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
- 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
- docker-compose up fails HOT 21
- 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.