Cannot build AWX following Contributing guide on Mac.

Hi I am trying to setup the my development environment. I am running the latest version of mac os and have docker for mac installed.

It is failing at starting the containers (make docker-compose ). I didn’t want to raise an issue on git incase its just something silly I am doing.

Many thanks.

$git clone https://github.com/ansible/awx.git

$ cp awx/settings/local_settings.py.docker_compose awx/settings/local_settings.py

$make docker-compose-build

$ docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
gcr.io/ansible-tower-engineering/awx_devel master d328cf45c1f6 14 minutes ago 1.91GB
ansible/awx_devel latest d328cf45c1f6 14 minutes ago 1.91GB
centos 7 2d194b392dd1 3 weeks ago 195MB

$make ui-devel
.
.
.
.

npm --prefix awx/ui run build-devel –

awx@1.0.0 build-devel /Users/marcosgeorgopoulos/Documents/Ansible/awx/awx/ui
npm run dev

awx@1.0.0 dev /Users/marcosgeorgopoulos/Documents/Ansible/awx/awx/ui
webpack --config build/webpack.development.js --progress

Hash: ddce299720341cb88dcd
Version: webpack 3.11.0
Time: 47241ms
Asset Size Chunks Chunk Names
js/app.c82c666b42ea325f4a6f.js 8.32 MB 0 [emitted] [big] app
js/vendor.a01e7d1898d8d762113c.js 6.98 MB 1 [emitted] [big] vendor
css/vendor.a01e7d1898d8d762113c.css 201 kB 1 [emitted] vendor
css/app.c82c666b42ea325f4a6f.css 301 kB 0 [emitted] [big] app
js/app.c82c666b42ea325f4a6f.js.map 11.1 MB 0 [emitted] app
css/app.c82c666b42ea325f4a6f.css.map 109 bytes 0 [emitted] app
js/vendor.a01e7d1898d8d762113c.js.map 8.62 MB 1 [emitted] vendor
css/vendor.a01e7d1898d8d762113c.css.map 112 bytes 1 [emitted] vendor

  • 303 hidden assets

$ make docker-compose
.
.
.
.

awx_1 | 04:38:26 jupyter.1 | pkg_resources.DistributionNotFound: The ‘awx’ distribution was not found and is required by the application
awx_1 | 04:38:26 jupyter.1 | make: *** [jupyter] Error 1
awx_1 | 04:38:26 system | jupyter.1 stopped (rc=2)
awx_1 | 04:38:26 system | sending SIGTERM to nginx.1 (pid 245)
awx_1 | 04:38:26 system | sending SIGTERM to runworker.1 (pid 247)
awx_1 | 04:38:26 system | sending SIGTERM to receiver.1 (pid 249)
awx_1 | 04:38:26 system | sending SIGTERM to daphne.1 (pid 251)
awx_1 | 04:38:26 system | sending SIGTERM to uwsgi.1 (pid 253)
awx_1 | 04:38:26 system | sending SIGTERM to celeryd.1 (pid 255)
awx_1 | 04:38:26 system | sending SIGTERM to flower.1 (pid 256)
awx_1 | 04:38:26 receiver.1 | make: *** [receiver] Terminated
awx_1 | 04:38:26 celeryd.1 | make: *** wait: No child processes. Stop.
awx_1 | 04:38:26 celeryd.1 | make: *** Waiting for unfinished jobs…
awx_1 | 04:38:26 celeryd.1 | make: *** wait: No child processes. Stop.
awx_1 | 04:38:26 flower.1 | [I 180327 04:38:26 command:47] SIGTERM detected, shutting down
awx_1 | 04:38:26 system | receiver.1 stopped (rc=-15)
awx_1 | 04:38:26 runworker.1 | make: *** [runworker] Terminated
awx_1 | 04:38:26 uwsgi.1 | make: *** [collectstatic] Terminated
awx_1 | 04:38:26 system | uwsgi.1 stopped (rc=-15)
awx_1 | 04:38:26 daphne.1 | make: *** [daphne] Terminated
awx_1 | 04:38:26 flower.1 | make: *** [flower] Terminated
awx_1 | 04:38:26 system | celeryd.1 stopped (rc=2)
awx_1 | 04:38:26 system | daphne.1 stopped (rc=-15)
awx_1 | 04:38:26 system | runworker.1 stopped (rc=-15)
awx_1 | 04:38:26 system | nginx.1 stopped (rc=-15)
awx_1 | 04:38:28 system | flower.1 stopped (rc=-15)
tools_awx_1 exited with code 2

I tried setting the COMPOSE_TAG to devel, but that gives me an auth error.

$ COMPOSE_TAG=devel make docker-compose
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
if [ “” ]; then
docker login -u oauth2accesstoken -p “” https://gcr.io;
fi;
TAG=devel DEV_DOCKER_TAG_BASE=gcr.io/ansible-tower-engineering docker-compose -f tools/docker-compose.yml up --no-recreate awx
Pulling awx (gcr.io/ansible-tower-engineering/awx_devel:devel)…
ERROR: unauthorized: You don’t have the needed permissions to perform this operation, and you may have invalid credentials. To authenticate your request, follow the steps in: https://cloud.google.com/container-registry/docs/advanced-authentication
make: *** [docker-compose] Error 1

Unless you are maintaining your own image repository you don’t want to set the COMPOSE_TAG

I’d like to see what is above the lines you are showing in the output before you tried setting COMPOSE_TAG.

Hi Matthew,

Here are all of the lines. Many thanks.

$ make docker-compose
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
if [ “” ]; then
docker login -u oauth2accesstoken -p “” https://gcr.io;
fi;
TAG=master DEV_DOCKER_TAG_BASE=gcr.io/ansible-tower-engineering docker-compose -f tools/docker-compose.yml up --no-recreate awx
Starting tools_rabbitmq_1 …
Starting tools_memcached_1 …
Starting tools_postgres_1 …
Starting tools_postgres_1 … done
Starting tools_awx_1 … done
Attaching to tools_awx_1
awx_1 | Using /etc/ansible/ansible.cfg as config file
awx_1 | 127.0.0.1 | SUCCESS => {
awx_1 | “changed”: false,
awx_1 | “elapsed”: 0,
awx_1 | “path”: null,
awx_1 | “port”: 5432,
awx_1 | “search_regex”: null,
awx_1 | “state”: “started”
awx_1 | }
awx_1 | Using /etc/ansible/ansible.cfg as config file
awx_1 | 127.0.0.1 | SUCCESS => {
awx_1 | “changed”: false,
awx_1 | “elapsed”: 0,
awx_1 | “path”: null,
awx_1 | “port”: 11211,
awx_1 | “search_regex”: null,
awx_1 | “state”: “started”
awx_1 | }
awx_1 | Using /etc/ansible/ansible.cfg as config file
awx_1 | 127.0.0.1 | SUCCESS => {
awx_1 | “changed”: false,
awx_1 | “elapsed”: 0,
awx_1 | “path”: null,
awx_1 | “port”: 5672,
awx_1 | “search_regex”: null,
awx_1 | “state”: “started”
awx_1 | }
awx_1 | Using /etc/ansible/ansible.cfg as config file
awx_1 | [DEPRECATION WARNING]: The sudo command line option has been deprecated in
awx_1 | favor of the “become” command line arguments. This feature will be removed in
awx_1 | version 2.6. Deprecation warnings can be disabled by setting
awx_1 | deprecation_warnings=False in ansible.cfg.
awx_1 | 127.0.0.1 | SUCCESS => {
awx_1 | “changed”: false,
awx_1 | “user”: “awx-dev”
awx_1 | }
awx_1 | Using /etc/ansible/ansible.cfg as config file
awx_1 | [DEPRECATION WARNING]: The sudo command line option has been deprecated in
awx_1 | favor of the “become” command line arguments. This feature will be removed in
awx_1 | version 2.6. Deprecation warnings can be disabled by setting
awx_1 | deprecation_warnings=False in ansible.cfg.
awx_1 | 127.0.0.1 | SUCCESS => {
awx_1 | “changed”: false,
awx_1 | “db”: “awx-dev”
awx_1 | }
awx_1 | fatal: No names found, cannot describe anything.
awx_1 | ln: failed to create symbolic link ‘/venv/awx/lib/python2.7/site-packages/rdb.py’: File exists
awx_1 | fatal: No names found, cannot describe anything.
awx_1 | fatal: No names found, cannot describe anything.
awx_1 | fatal: No names found, cannot describe anything.
awx_1 | fatal: No names found, cannot describe anything.
awx_1 | mkdir -p /var/lib/awx/;
awx_1 | if [ “/venv” ]; then
awx_1 | . /venv/awx/bin/activate;
awx_1 | fi;
awx_1 | python -c “import awx as awx; print awx.version” > /var/lib/awx/.awx_version;
awx_1 |
awx_1 | Traceback (most recent call last):
awx_1 | File “”, line 1, in
awx_1 | File “awx/init.py”, line 12, in
awx_1 | version = get_distribution(‘awx’).version
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 553, in get_distribution
awx_1 | dist = get_provider(dist)
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 427, in get_provider
awx_1 | return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 713, in find
awx_1 | if dist is not None and dist not in req:
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 2922, in contains
awx_1 | item = item.version
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 2544, in version
awx_1 | raise ValueError(tmpl % self.PKG_INFO, self)
awx_1 | ValueError: (“Missing ‘Version:’ header and/or PKG-INFO file”, awx [unknown version] (/awx_devel))
awx_1 | make: *** [version_file] Error 1
awx_1 | fatal: No names found, cannot describe anything.
awx_1 | fatal: No names found, cannot describe anything.
awx_1 | fatal: No names found, cannot describe anything.
awx_1 | fatal: No names found, cannot describe anything.
awx_1 | if [ “/venv” ]; then
awx_1 | . /venv/awx/bin/activate;
awx_1 | fi;
awx_1 | awx-manage migrate --noinput --fake-initial
awx_1 | /usr/local/bin/awx-manage:9: UserWarning: Unbuilt egg for awx [unknown version] (/awx_devel)
awx_1 | load_entry_point(‘awx’, ‘console_scripts’, ‘awx-manage’)()
awx_1 | Traceback (most recent call last):
awx_1 | File “/usr/local/bin/awx-manage”, line 9, in
awx_1 | load_entry_point(‘awx’, ‘console_scripts’, ‘awx-manage’)()
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 561, in load_entry_point
awx_1 | return get_distribution(dist).load_entry_point(group, name)
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 553, in get_distribution
awx_1 | dist = get_provider(dist)
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 427, in get_provider
awx_1 | return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 969, in require
awx_1 | needed = self.resolve(parse_requirements(requirements))
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 855, in resolve
awx_1 | raise DistributionNotFound(req, requirers)
awx_1 | pkg_resources.DistributionNotFound: The ‘awx’ distribution was not found and is required by the application
awx_1 | make: *** [migrate] Error 1
awx_1 | fatal: No names found, cannot describe anything.
awx_1 | fatal: No names found, cannot describe anything.
awx_1 | fatal: No names found, cannot describe anything.
awx_1 | fatal: No names found, cannot describe anything.
awx_1 | if [ “/venv” ]; then
awx_1 | . /venv/awx/bin/activate;
awx_1 | fi;
awx_1 | awx-manage provision_instance --hostname=awx;
awx_1 | awx-manage register_queue --queuename=tower --instance_percent=100;
awx_1 | if [ “tower” == “tower,thepentagon” ]; then
awx_1 | awx-manage provision_instance --hostname=isolated;
awx_1 | awx-manage register_queue --queuename=‘thepentagon’ --hostnames=isolated --controller=tower;
awx_1 | awx-manage generate_isolated_key | ssh -o “StrictHostKeyChecking no” root@isolated ‘cat > /root/.ssh/authorized_keys’;
awx_1 | fi;
awx_1 | /usr/local/bin/awx-manage:9: UserWarning: Unbuilt egg for awx [unknown version] (/awx_devel)
awx_1 | load_entry_point(‘awx’, ‘console_scripts’, ‘awx-manage’)()
awx_1 | Traceback (most recent call last):
awx_1 | File “/usr/local/bin/awx-manage”, line 9, in
awx_1 | load_entry_point(‘awx’, ‘console_scripts’, ‘awx-manage’)()
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 561, in load_entry_point
awx_1 | return get_distribution(dist).load_entry_point(group, name)
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 553, in get_distribution
awx_1 | dist = get_provider(dist)
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 427, in get_provider
awx_1 | return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 969, in require
awx_1 | needed = self.resolve(parse_requirements(requirements))
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 855, in resolve
awx_1 | raise DistributionNotFound(req, requirers)
awx_1 | pkg_resources.DistributionNotFound: The ‘awx’ distribution was not found and is required by the application
awx_1 | /usr/local/bin/awx-manage:9: UserWarning: Unbuilt egg for awx [unknown version] (/awx_devel)
awx_1 | load_entry_point(‘awx’, ‘console_scripts’, ‘awx-manage’)()
awx_1 | Traceback (most recent call last):
awx_1 | File “/usr/local/bin/awx-manage”, line 9, in
awx_1 | load_entry_point(‘awx’, ‘console_scripts’, ‘awx-manage’)()
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 561, in load_entry_point
awx_1 | return get_distribution(dist).load_entry_point(group, name)
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 553, in get_distribution
awx_1 | dist = get_provider(dist)
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 427, in get_provider
awx_1 | return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 969, in require
awx_1 | needed = self.resolve(parse_requirements(requirements))
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 855, in resolve
awx_1 | raise DistributionNotFound(req, requirers)
awx_1 | pkg_resources.DistributionNotFound: The ‘awx’ distribution was not found and is required by the application
awx_1 | 20:22:16 system | jupyter.1 started (pid=254)
awx_1 | 20:22:16 system | nginx.1 started (pid=245)
awx_1 | 20:22:16 system | runworker.1 started (pid=248)
awx_1 | 20:22:16 system | celeryd.1 started (pid=257)
awx_1 | 20:22:16 system | flower.1 started (pid=258)
awx_1 | 20:22:16 system | daphne.1 started (pid=251)
awx_1 | 20:22:16 system | receiver.1 started (pid=255)
awx_1 | 20:22:16 system | uwsgi.1 started (pid=256)
awx_1 | 20:22:16 jupyter.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 nginx.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 flower.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 runworker.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 celeryd.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 daphne.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 uwsgi.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 jupyter.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 receiver.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 nginx.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 runworker.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 flower.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 daphne.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 celeryd.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 receiver.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 uwsgi.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 jupyter.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 runworker.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 flower.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 celeryd.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 nginx.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 daphne.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 uwsgi.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 flower.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 runworker.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 jupyter.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 receiver.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 nginx.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 daphne.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 celeryd.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 nginx.1 | nginx -g “daemon off;”
awx_1 | 20:22:16 celeryd.1 | rm -f /tmp/celery_pid
awx_1 | 20:22:16 uwsgi.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 receiver.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 jupyter.1 | /usr/local/bin/awx-manage:9: UserWarning: Unbuilt egg for awx [unknown version] (/awx_devel)
awx_1 | 20:22:16 jupyter.1 | load_entry_point(‘awx’, ‘console_scripts’, ‘awx-manage’)()
awx_1 | 20:22:16 jupyter.1 | Traceback (most recent call last):
awx_1 | 20:22:16 jupyter.1 | File “/usr/local/bin/awx-manage”, line 9, in
awx_1 | 20:22:16 jupyter.1 | load_entry_point(‘awx’, ‘console_scripts’, ‘awx-manage’)()
awx_1 | 20:22:16 jupyter.1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 561, in load_entry_point
awx_1 | 20:22:16 jupyter.1 | return get_distribution(dist).load_entry_point(group, name)
awx_1 | 20:22:16 jupyter.1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 553, in get_distribution
awx_1 | 20:22:16 jupyter.1 | dist = get_provider(dist)
awx_1 | 20:22:16 jupyter.1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 427, in get_provider
awx_1 | 20:22:16 jupyter.1 | return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
awx_1 | 20:22:16 jupyter.1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 969, in require
awx_1 | 20:22:16 jupyter.1 | needed = self.resolve(parse_requirements(requirements))
awx_1 | 20:22:16 jupyter.1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 855, in resolve
awx_1 | 20:22:16 jupyter.1 | raise DistributionNotFound(req, requirers)
awx_1 | 20:22:16 jupyter.1 | pkg_resources.DistributionNotFound: The ‘awx’ distribution was not found and is required by the application
awx_1 | 20:22:16 jupyter.1 | make: *** [jupyter] Error 1
awx_1 | 20:22:16 system | jupyter.1 stopped (rc=2)
awx_1 | 20:22:16 system | sending SIGTERM to nginx.1 (pid 245)
awx_1 | 20:22:16 system | sending SIGTERM to runworker.1 (pid 248)
awx_1 | 20:22:16 system | sending SIGTERM to receiver.1 (pid 255)
awx_1 | 20:22:16 system | sending SIGTERM to daphne.1 (pid 251)
awx_1 | 20:22:16 system | sending SIGTERM to uwsgi.1 (pid 256)
awx_1 | 20:22:16 system | sending SIGTERM to celeryd.1 (pid 257)
awx_1 | 20:22:16 system | sending SIGTERM to flower.1 (pid 258)
awx_1 | 20:22:16 receiver.1 | make: *** [receiver] Terminated
awx_1 | 20:22:16 celeryd.1 | make: *** [celeryd] Terminated
awx_1 | 20:22:16 runworker.1 | make: *** [runworker] Terminated
awx_1 | 20:22:16 system | celeryd.1 stopped (rc=-15)
awx_1 | 20:22:16 daphne.1 | make: *** [daphne] Terminated
awx_1 | 20:22:17 uwsgi.1 | make: *** [collectstatic] Terminated
awx_1 | 20:22:17 system | uwsgi.1 stopped (rc=-15)
awx_1 | 20:22:17 system | runworker.1 stopped (rc=-15)
awx_1 | 20:22:17 flower.1 | make: *** [flower] Terminated
awx_1 | 20:22:17 system | flower.1 stopped (rc=-15)
awx_1 | 20:22:17 system | receiver.1 stopped (rc=-15)
awx_1 | 20:22:17 system | daphne.1 stopped (rc=-15)
awx_1 | 20:22:17 system | nginx.1 stopped (rc=-15)
tools_awx_1 exited with code 2

I’m not sure what’s happened here but it looks like your clone might not have fetched any tags from our repo? This is how we determine the version number with which to start the dev environment… was that the actual git command you ran to check out the source tree?

Yeah maybe that is the issue

I just did a

git clone https://github.com/ansible/awx.git

I want the devel branch which is the default one. So I thought that would work?

Do I need to use the following command

git clone -b devel https://github.com/ansible/awx.git

You could try:

git fetch --tags

What version of git are you using?

git --version

There doesn’t seem to be any tags. See below for version as well.

$ git fetch --tags

$ git --version

git version 2.14.3 (Apple Git-98)

There are definitely tags there: https://github.com/ansible/awx/tags

Sorry I meant my git client isn’t fetching any tags.

Can you think of a work around?

Here is the repo I’m pointing to.

$ git remote --verbose

origin https://github.com/ansible/awx.git (fetch)

origin https://github.com/ansible/awx.git (push)

$ git fetch --tags

What’s the output of “git status” and “git tags -l”

Here you go.

$ git status

On branch devel

Your branch is up-to-date with ‘origin/devel’.

nothing to commit, working tree clean

$ git tag -l

1.0.0

1.0.1

1.0.2

1.0.3

1.0.4

1.0.5

I can try updating my version of git, but I’m not sure if you want to use this opportunity to see if the build scripts need updating first?

Everything looks fine there, it looks like you have the tags. Can you run this command:

git describe --long --first-parent

Hi I’ve updated my version of git and I’m still having the same problem. Here is the output you wanted. I am cloning the repo and not forking it, could that be any part of the issue?

$ ls

API_STANDARDS.md INSTALL.md MANIFEST.in awx installer pytest.ini setup.py tox.ini

CONTRIBUTING.md ISSUES.md Makefile config manage.py requirements shippable.yml

DCO_1_1.md LICENSE.md README.md docs nodemon.json setup.cfg tools

$ git status

On branch devel

Your branch is up to date with ‘origin/devel’.

nothing to commit, working tree clean

$ git fetch --tags

$ git tag -l

1.0.0

1.0.1

1.0.2

1.0.3

1.0.4

1.0.5

$ git describe --long --first-parent

1.0.5-19-g3cb37b131

Ok I’ve just realised I have ansible 2.7 installed and not 2.4 could that be part of the issue?

I mean… 2.7 is probably going to be crazy broken considering they just released 2.5.

This is one of the errors you are getting:
fatal: No names found, cannot describe anything.

That is happening in your run when it invokes “git describe --long --first-parent” but it seems to have worked in the last email from you?

Ok as a next step I will drop down to 2.4 and retest.

Yeah I’m not seeing any errors when I run that command. Very odd.

ok Same result with Ansible 2.4

So I have:

git version 2.16.3

ansible 2.4.3.0

config file = /etc/ansible/ansible.cfg

configured module search path = [u’/Library/Python/2.7/site-packages/napalm_ansible’, u’/usr/share/ansible/plugins/modules’]

ansible python module location = /Library/Python/2.7/site-packages/ansible

executable location = /usr/local/bin/ansible

python version = 2.7.10 (default, Jul 15 2017, 17:16:57) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)]

I am cloning not forking.

git clone -b devel https://github.com/ansible/awx.git

$ git describe --long --first-parent

1.0.5-19-g3cb37b131

$

And the error.

Attaching to tools_awx_1
awx_1 | Using /etc/ansible/ansible.cfg as config file
awx_1 | 127.0.0.1 | SUCCESS => {
awx_1 | “changed”: false,
awx_1 | “elapsed”: 0,
awx_1 | “path”: null,
awx_1 | “port”: 5432,
awx_1 | “search_regex”: null,
awx_1 | “state”: “started”
awx_1 | }
awx_1 | Using /etc/ansible/ansible.cfg as config file
awx_1 | 127.0.0.1 | SUCCESS => {
awx_1 | “changed”: false,
awx_1 | “elapsed”: 0,
awx_1 | “path”: null,
awx_1 | “port”: 11211,
awx_1 | “search_regex”: null,
awx_1 | “state”: “started”
awx_1 | }
awx_1 | Using /etc/ansible/ansible.cfg as config file
awx_1 | 127.0.0.1 | SUCCESS => {
awx_1 | “changed”: false,
awx_1 | “elapsed”: 0,
awx_1 | “path”: null,
awx_1 | “port”: 5672,
awx_1 | “search_regex”: null,
awx_1 | “state”: “started”
awx_1 | }
awx_1 | Using /etc/ansible/ansible.cfg as config file
awx_1 | [DEPRECATION WARNING]: The sudo command line option has been deprecated in
awx_1 | favor of the “become” command line arguments. This feature will be removed in
awx_1 | version 2.6. Deprecation warnings can be disabled by setting
awx_1 | deprecation_warnings=False in ansible.cfg.
awx_1 | 127.0.0.1 | SUCCESS => {
awx_1 | “changed”: false,
awx_1 | “user”: “awx-dev”
awx_1 | }
awx_1 | Using /etc/ansible/ansible.cfg as config file
awx_1 | [DEPRECATION WARNING]: The sudo command line option has been deprecated in
awx_1 | favor of the “become” command line arguments. This feature will be removed in
awx_1 | version 2.6. Deprecation warnings can be disabled by setting
awx_1 | deprecation_warnings=False in ansible.cfg.
awx_1 | 127.0.0.1 | SUCCESS => {
awx_1 | “changed”: false,
awx_1 | “db”: “awx-dev”
awx_1 | }
awx_1 | fatal: No names found, cannot describe anything.
awx_1 | ln: failed to create symbolic link ‘/venv/awx/lib/python2.7/site-packages/rdb.py’: File exists
awx_1 | fatal: No names found, cannot describe anything.
awx_1 | fatal: No names found, cannot describe anything.
awx_1 | fatal: No names found, cannot describe anything.
awx_1 | fatal: No names found, cannot describe anything.
awx_1 | mkdir -p /var/lib/awx/;
awx_1 | if [ “/venv” ]; then
awx_1 | . /venv/awx/bin/activate;
awx_1 | fi;
awx_1 | python -c “import awx as awx; print awx.version” > /var/lib/awx/.awx_version;
awx_1 |
awx_1 | Traceback (most recent call last):
awx_1 | File “”, line 1, in
awx_1 | File “awx/init.py”, line 12, in
awx_1 | version = get_distribution(‘awx’).version
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 553, in get_distribution
awx_1 | dist = get_provider(dist)
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 427, in get_provider
awx_1 | return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 713, in find
awx_1 | if dist is not None and dist not in req:
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 2922, in contains
awx_1 | item = item.version
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 2544, in version
awx_1 | raise ValueError(tmpl % self.PKG_INFO, self)
awx_1 | ValueError: (“Missing ‘Version:’ header and/or PKG-INFO file”, awx [unknown version] (/awx_devel))
awx_1 | make: *** [version_file] Error 1
awx_1 | fatal: No names found, cannot describe anything.
awx_1 | fatal: No names found, cannot describe anything.
awx_1 | fatal: No names found, cannot describe anything.
awx_1 | fatal: No names found, cannot describe anything.
awx_1 | if [ “/venv” ]; then
awx_1 | . /venv/awx/bin/activate;
awx_1 | fi;
awx_1 | awx-manage migrate --noinput --fake-initial
awx_1 | /usr/local/bin/awx-manage:9: UserWarning: Unbuilt egg for awx [unknown version] (/awx_devel)
awx_1 | load_entry_point(‘awx’, ‘console_scripts’, ‘awx-manage’)()
awx_1 | Traceback (most recent call last):
awx_1 | File “/usr/local/bin/awx-manage”, line 9, in
awx_1 | load_entry_point(‘awx’, ‘console_scripts’, ‘awx-manage’)()
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 561, in load_entry_point
awx_1 | return get_distribution(dist).load_entry_point(group, name)
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 553, in get_distribution
awx_1 | dist = get_provider(dist)
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 427, in get_provider
awx_1 | return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 969, in require
awx_1 | needed = self.resolve(parse_requirements(requirements))
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 855, in resolve
awx_1 | raise DistributionNotFound(req, requirers)
awx_1 | pkg_resources.DistributionNotFound: The ‘awx’ distribution was not found and is required by the application
awx_1 | make: *** [migrate] Error 1
awx_1 | fatal: No names found, cannot describe anything.
awx_1 | fatal: No names found, cannot describe anything.
awx_1 | fatal: No names found, cannot describe anything.
awx_1 | fatal: No names found, cannot describe anything.
awx_1 | if [ “/venv” ]; then
awx_1 | . /venv/awx/bin/activate;
awx_1 | fi;
awx_1 | awx-manage provision_instance --hostname=awx;
awx_1 | awx-manage register_queue --queuename=tower --instance_percent=100;
awx_1 | if [ “tower” == “tower,thepentagon” ]; then
awx_1 | awx-manage provision_instance --hostname=isolated;
awx_1 | awx-manage register_queue --queuename=‘thepentagon’ --hostnames=isolated --controller=tower;
awx_1 | awx-manage generate_isolated_key | ssh -o “StrictHostKeyChecking no” root@isolated ‘cat > /root/.ssh/authorized_keys’;
awx_1 | fi;
awx_1 | /usr/local/bin/awx-manage:9: UserWarning: Unbuilt egg for awx [unknown version] (/awx_devel)
awx_1 | load_entry_point(‘awx’, ‘console_scripts’, ‘awx-manage’)()
awx_1 | Traceback (most recent call last):
awx_1 | File “/usr/local/bin/awx-manage”, line 9, in
awx_1 | load_entry_point(‘awx’, ‘console_scripts’, ‘awx-manage’)()
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 561, in load_entry_point
awx_1 | return get_distribution(dist).load_entry_point(group, name)
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 553, in get_distribution
awx_1 | dist = get_provider(dist)
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 427, in get_provider
awx_1 | return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 969, in require
awx_1 | needed = self.resolve(parse_requirements(requirements))
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 855, in resolve
awx_1 | raise DistributionNotFound(req, requirers)
awx_1 | pkg_resources.DistributionNotFound: The ‘awx’ distribution was not found and is required by the application
awx_1 | /usr/local/bin/awx-manage:9: UserWarning: Unbuilt egg for awx [unknown version] (/awx_devel)
awx_1 | load_entry_point(‘awx’, ‘console_scripts’, ‘awx-manage’)()
awx_1 | Traceback (most recent call last):
awx_1 | File “/usr/local/bin/awx-manage”, line 9, in
awx_1 | load_entry_point(‘awx’, ‘console_scripts’, ‘awx-manage’)()
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 561, in load_entry_point
awx_1 | return get_distribution(dist).load_entry_point(group, name)
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 553, in get_distribution
awx_1 | dist = get_provider(dist)
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 427, in get_provider
awx_1 | return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 969, in require
awx_1 | needed = self.resolve(parse_requirements(requirements))
awx_1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 855, in resolve
awx_1 | raise DistributionNotFound(req, requirers)
awx_1 | pkg_resources.DistributionNotFound: The ‘awx’ distribution was not found and is required by the application
awx_1 | 20:22:16 system | jupyter.1 started (pid=254)
awx_1 | 20:22:16 system | nginx.1 started (pid=245)
awx_1 | 20:22:16 system | runworker.1 started (pid=248)
awx_1 | 20:22:16 system | celeryd.1 started (pid=257)
awx_1 | 20:22:16 system | flower.1 started (pid=258)
awx_1 | 20:22:16 system | daphne.1 started (pid=251)
awx_1 | 20:22:16 system | receiver.1 started (pid=255)
awx_1 | 20:22:16 system | uwsgi.1 started (pid=256)
awx_1 | 20:22:16 jupyter.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 nginx.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 flower.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 runworker.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 celeryd.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 daphne.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 uwsgi.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 jupyter.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 receiver.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 nginx.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 runworker.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 flower.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 daphne.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 celeryd.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 receiver.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 uwsgi.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 jupyter.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 runworker.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 flower.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 celeryd.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 nginx.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 daphne.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 uwsgi.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 flower.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 runworker.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 jupyter.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 receiver.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 nginx.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 daphne.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 celeryd.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 nginx.1 | nginx -g “daemon off;”
awx_1 | 20:22:16 celeryd.1 | rm -f /tmp/celery_pid
awx_1 | 20:22:16 uwsgi.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 receiver.1 | fatal: No names found, cannot describe anything.
awx_1 | 20:22:16 jupyter.1 | /usr/local/bin/awx-manage:9: UserWarning: Unbuilt egg for awx [unknown version] (/awx_devel)
awx_1 | 20:22:16 jupyter.1 | load_entry_point(‘awx’, ‘console_scripts’, ‘awx-manage’)()
awx_1 | 20:22:16 jupyter.1 | Traceback (most recent call last):
awx_1 | 20:22:16 jupyter.1 | File “/usr/local/bin/awx-manage”, line 9, in
awx_1 | 20:22:16 jupyter.1 | load_entry_point(‘awx’, ‘console_scripts’, ‘awx-manage’)()
awx_1 | 20:22:16 jupyter.1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 561, in load_entry_point
awx_1 | 20:22:16 jupyter.1 | return get_distribution(dist).load_entry_point(group, name)
awx_1 | 20:22:16 jupyter.1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 553, in get_distribution
awx_1 | 20:22:16 jupyter.1 | dist = get_provider(dist)
awx_1 | 20:22:16 jupyter.1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 427, in get_provider
awx_1 | 20:22:16 jupyter.1 | return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
awx_1 | 20:22:16 jupyter.1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 969, in require
awx_1 | 20:22:16 jupyter.1 | needed = self.resolve(parse_requirements(requirements))
awx_1 | 20:22:16 jupyter.1 | File “/venv/awx/lib/python2.7/site-packages/pkg_resources/init.py”, line 855, in resolve
awx_1 | 20:22:16 jupyter.1 | raise DistributionNotFound(req, requirers)
awx_1 | 20:22:16 jupyter.1 | pkg_resources.DistributionNotFound: The ‘awx’ distribution was not found and is required by the application
awx_1 | 20:22:16 jupyter.1 | make: *** [jupyter] Error 1
awx_1 | 20:22:16 system | jupyter.1 stopped (rc=2)
awx_1 | 20:22:16 system | sending SIGTERM to nginx.1 (pid 245)
awx_1 | 20:22:16 system | sending SIGTERM to runworker.1 (pid 248)
awx_1 | 20:22:16 system | sending SIGTERM to receiver.1 (pid 255)
awx_1 | 20:22:16 system | sending SIGTERM to daphne.1 (pid 251)
awx_1 | 20:22:16 system | sending SIGTERM to uwsgi.1 (pid 256)
awx_1 | 20:22:16 system | sending SIGTERM to celeryd.1 (pid 257)
awx_1 | 20:22:16 system | sending SIGTERM to flower.1 (pid 258)
awx_1 | 20:22:16 receiver.1 | make: *** [receiver] Terminated
awx_1 | 20:22:16 celeryd.1 | make: *** [celeryd] Terminated
awx_1 | 20:22:16 runworker.1 | make: *** [runworker] Terminated
awx_1 | 20:22:16 system | celeryd.1 stopped (rc=-15)
awx_1 | 20:22:16 daphne.1 | make: *** [daphne] Terminated
awx_1 | 20:22:17 uwsgi.1 | make: *** [collectstatic] Terminated
awx_1 | 20:22:17 system | uwsgi.1 stopped (rc=-15)
awx_1 | 20:22:17 system | runworker.1 stopped (rc=-15)
awx_1 | 20:22:17 flower.1 | make: *** [flower] Terminated
awx_1 | 20:22:17 system | flower.1 stopped (rc=-15)
awx_1 | 20:22:17 system | receiver.1 stopped (rc=-15)
awx_1 | 20:22:17 system | daphne.1 stopped (rc=-15)
awx_1 | 20:22:17 system | nginx.1 stopped (rc=-15)
tools_awx_1 exited with code 2