Easy Install Fails at Ansible Step
- Dominant language
- Python
- Stars
- 8
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Description
Issue: Easy Install
**Do the checklist before filing an issue:**
- [Yes ] Did you retain the logfile (path of logfile is shared while the script is run)? We definitely **need** the logfile to debug any easy install related issues.
- [No] Is this something you can debug and fix? Send a pull request! Bug fixes and documentation fixes are welcome
**Distro Information (Required)**
Linux erpnext 5.15.0-48-generic frappe/bench#54-Ubuntu SMP Fri Aug 26 13:26:29 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"
PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.1 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
**Command Run (Required)**
sudo python3 install.py --production
**Log File (Required)**
andrew@erpnext:/app/erpnext$ tail -n 100 /tmp/logs/easy-install__2022-09-22__01-13.log
"Setting up libsm6:amd64 (2:1.2.3-1build2) ...",
"Setting up xbitmaps (1.1.1-2.1ubuntu1) ...",
"Setting up libdrm-amdgpu1:amd64 (2.4.110-1ubuntu1) ...",
"Setting up libwayland-client0:amd64 (1.20.0-1ubuntu0.1) ...",
"Setting up x11proto-dev (2021.5-1) ...",
"Setting up libgl1-amber-dri:amd64 (21.3.7-0ubuntu1) ...",
"Setting up mesa-vulkan-drivers:amd64 (22.0.5-0ubuntu0.1) ...",
"Setting up libxau-dev:amd64 (1:1.0.9-1build5) ...",
"Setting up libfontconfig-dev:amd64 (2.13.1-4.2ubuntu5) ...",
"Setting up libgl1-mesa-dri:amd64 (22.0.5-0ubuntu0.1) ...",
"Setting up libxdmcp-dev:amd64 (1:1.1.3-0ubuntu5) ...",
"Setting up x11proto-core-dev (2021.5-1) ...",
"Setting up libxt6:amd64 (1:1.2.1-1) ...",
"Setting up libxmu6:amd64 (2:1.1.3-3) ...",
"Setting up libfontconfig1-dev:amd64 (2.13.1-4.2ubuntu5) ...",
"Setting up libglx-mesa0:amd64 (22.0.5-0ubuntu0.1) ...",
"Setting up libxcb1-dev:amd64 (1.14-3ubuntu3) ...",
"Setting up libglx0:amd64 (1.4.0-1) ...",
"Setting up libx11-dev:amd64 (2:1.7.5-1) ...",
"Setting up libxaw7:amd64 (2:1.0.14-1) ...",
"Setting up libgl1:amd64 (1.4.0-1) ...",
"Setting up libxext-dev:amd64 (2:1.3.4-1build1) ...",
"Setting up x11-utils (7.7+5build2) ...",
"Setting up xterm (372-1ubuntu1) ...",
"update-alternatives: using /usr/bin/xterm to provide /usr/bin/x-terminal-emulator (x-terminal-emulator) in auto mode",
"update-alternatives: warning: skip creation of /usr/share/man/man1/x-terminal-emulator.1.gz because associated file /usr/share/man/man1/xterm.1.gz (of link group x-terminal-emulator) doesn't exist",
"update-alternatives: using /usr/bin/lxterm to provide /usr/bin/x-terminal-emulator (x-terminal-emulator) in auto mode",
"update-alternatives: warning: skip creation of /usr/share/man/man1/x-terminal-emulator.1.gz because associated file /usr/share/man/man1/lxterm.1.gz (of link group x-terminal-emulator) doesn't exist",
"Setting up libxrender-dev:amd64 (1:0.9.10-1build4) ...",
"Setting up libxft-dev:amd64 (2.3.4-1) ...",
"Setting up libxss-dev:amd64 (1:1.2.3-1build2) ...",
"Setting up tk8.6-dev:amd64 (8.6.12-1build1) ...",
"Processing triggers for libc-bin (2.35-0ubuntu3.1) ...",
"NEEDRESTART-VER: 3.5",
"NEEDRESTART-KCUR: 5.15.0-48-generic",
"NEEDRESTART-KEXP: 5.15.0-48-generic",
"NEEDRESTART-KSTA: 1",
"NEEDRESTART-SVC: packagekit.service"
]
}
TASK [common : install pdf prerequisites for Ubuntu < 18.04] *************************
task path: /tmp/.bench/bench/playbooks/roles/common/tasks/ubuntu.yml:25
skipping: [localhost] => {
"changed": false,
"skip_reason": "Conditional result was False"
}
TASK [common : install pdf prerequisites for Ubuntu >= 18.04] ************************
task path: /tmp/.bench/bench/playbooks/roles/common/tasks/ubuntu.yml:33
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root
<127.0.0.1> EXEC /bin/sh -c 'echo ~root && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp `"&& mkdir /root/.ansible/tmp/ansible-tmp-1663809317.2590482-5312-32691588185435 && echo ansible-tmp-1663809317.2590482-5312-32691588185435="` echo /root/.ansible/tmp/ansible-tmp-1663809317.2590482-5312-32691588185435 `" ) && sleep 0'
Using module file /usr/local/lib/python3.10/dist-packages/ansible/modules/packaging/os/apt.py
<127.0.0.1> PUT /root/.ansible/tmp/ansible-local-2040s3koy0mj/tmpyzrlyt97 TO /root/.ansible/tmp/ansible-tmp-1663809317.2590482-5312-32691588185435/AnsiballZ_apt.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1663809317.2590482-5312-32691588185435/ /root/.ansible/tmp/ansible-tmp-1663809317.2590482-5312-32691588185435/AnsiballZ_apt.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1663809317.2590482-5312-32691588185435/AnsiballZ_apt.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1663809317.2590482-5312-32691588185435/ > /dev/null 2>&1 && sleep 0'
The full traceback is:
File "/tmp/ansible_apt_payload_9ior6owm/__main__.py", line 434, in package_status
pkg = cache[pkgname]
File "/usr/lib/python3/dist-packages/apt/cache.py", line 283, in __getitem__
raise KeyError('The cache has no package named %r' % key)
fatal: [localhost]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"allow_unauthenticated": false,
"autoclean": false,
"autoremove": false,
"cache_valid_time": 0,
"deb": null,
"default_release": null,
"dpkg_options": "force-confdef,force-confold",
"force": true,
"force_apt_get": false,
"install_recommends": null,
"only_upgrade": false,
"package": [
"libssl1.1"
],
"pkg": [
"libssl1.1"
],
"policy_rc_d": null,
"purge": false,
"state": "present",
"update_cache": null,
"upgrade": null
}
},
"msg": "No package matching 'libssl1.1' is available"
}
PLAY RECAP ***************************************************************************
localhost : ok=5 changed=2 unreachable=0 failed=1 skipped=3 rescued=0 ignored=0
Install script run at 01:13 on 2022-09-22
**Screenshots**
**Additional context**
Installed Ubuntu 22 with defaults
Configured my account for passwordless sudo
Created a directory
Chdir'd to the directory
apt install python3-minimal build-essential python3-setuptools python3-pip (you should add pip to your docs)
wget https://raw.githubusercontent.com/frappe/bench/develop/install.py
python3 install.py --production
**Possible Solution**
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with install.py and the Ansible task at playbooks/roles/common/tasks/ubuntu.yml:33 shown in the log. Reproduce the production install on Ubuntu 22.04 and inspect the libssl1.1 package failure. Done means the easy-install Ansible step completes successfully on the reported platform.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ansible, python, ubuntu
- Domain
- devops, infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100