Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install installer playbook non-zero return code django/db/backends/utils.py\", line 84 #8956

Closed
Trackhe opened this issue Dec 19, 2020 · 3 comments
Labels

Comments

@Trackhe
Copy link

Trackhe commented Dec 19, 2020

  • Bug Report
SUMMARY

Installation with ansible-playbook -i inventory install.yml incomplete because an error in installation prozess

ENVIRONMENT
  • AWX version: commit 6d577fe
  • AWX install method: docker on linux
  • Ansible version: 2.9.9
  • Operating System: ubuntu 20.04 64bit
STEPS TO REPRODUCE

Clean new Ubuntu 20.04 64bit installation.

Install Ansible and AWX

Required:
Ubuntu Server 20.04 64bit.

  1. Install Ansible:
sudo apt -y install ansible
  1. Install Docker:
sudo apt install -y apt-transport-https gnupg-agent python3-pip && \
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt update && \
curl -fSLs https://get.docker.com | sudo sh

Give Docker User root:

sudo usermod -aG docker ubuntu
  1. Install Docker Compose and Py

Note: if you have installed docker-py, please uninstall it with sudo pip uninstall docker-py

sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

If you have telecom as your internet provider and the connection to github is slow so you can use https://dl.trackhe.de/docker-compose-Linux-x86_64 as download Link.

// 19.12.2020 v1.27.4

sudo curl -L "https://dl.trackhe.de/docker-compose-Linux-x86_64" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose && \
sudo curl -L https://raw.githubusercontent.com/docker/compose/1.27.4/contrib/completion/bash/docker-compose -o /etc/bash_completion.d/docker-compose
sudo pip install docker && \
sudo pip install docker-compose
  1. Get root, clone AWX Repo and go into install dic.
sudo su
git clone --depth 50 https://github.com/ansible/awx.git && \
cd awx/installer/ && \
sed -i "s/admin_password=password/admin_password=admin/" inventory && \
sed -i "s/secret_key=awxsecret/secret_key=$(pwgen -N 1 -s 30)/" inventory
EXPECTED RESULTS

result: ok

ACTUAL RESULTS

result: failed=1

ADDITIONAL INFORMATION

The error:

TASK [local_docker : Start the containers] *******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
changed: [localhost]

TASK [local_docker : Update CA trust in awx_web container] ***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
changed: [localhost]

TASK [local_docker : Update CA trust in awx_task container] **************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
changed: [localhost]

TASK [local_docker : Create Preload data] ********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "cmd": ["docker", "exec", "awx_task", "bash", "-c", "/usr/bin/awx-manage create_preload_data"], "delta": "0:00:04.772424", "end": "2020-12-19 21:21:26.577039", "msg": "non-zero return code", "rc": 1, "start": "2020-12-19 21:21:21.804615", "stderr": "Traceback (most recent call last):\n  File \"/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/db/backends/utils.py\", line 84, in _execute\n    return self.cursor.execute(sql, params)\npsycopg2.errors.UndefinedTable: relation \"main_organization\" does not exist\nLINE 1: SELECT COUNT(*) AS \"__count\" FROM \"main_organization\"
@Trackhe
Copy link
Author

Trackhe commented Dec 19, 2020

after i rerun the installer now it is okey. i hope.

@Trackhe
Copy link
Author

Trackhe commented Dec 19, 2020

i dont now if this working right. i can see variable names like
Bildschirmfoto 2020-12-20 um 00 19 16

@adpavlov
Copy link

WA available here #8884 (comment)

@Trackhe Trackhe closed this as completed Dec 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants