Forem Creators and Builders 🌱

sqebba
sqebba

Posted on

Selfhost Ubuntu 18.04 error

Hello,
I am trying to setup Forem with Ubuntu 18.04 in VirtualBox. After installing all the requirements and configuring the setup.yml I get the following error while starting with the command below:

ansible-playbook -i inventory/forem/setup.yml playbooks/providers/qemu.yml

[WARNING]: An error occurred while calling ansible.utils.display.initialize_locale (unsupported locale setting).
This may result in incorrectly calculated text widths that can cause Display to print incorrect line lengths

PLAY [Build Forem on QEMU] ****************************************************************************************

TASK [preflight : Fetch public WAN IPv4 address json] *************************************************************
ok: [forem]

TASK [preflight : Set local_wan_ip_address fact] ******************************************************************
ok: [forem]

TASK [preflight : Verify Ansible is >= 2.11.0] ********************************************************************
ok: [forem] => changed=false
msg: All assertions passed

TASK [preflight : Get list of installed Python 3 packages] ********************************************************
changed: [forem]

TASK [preflight : Read requirements.txt] **************************************************************************
ok: [forem]

TASK [preflight : Generate list of missing pip prerequisites] *****************************************************
ok: [forem]

TASK [preflight : Generate list of missing python packages] *******************************************************
ok: [forem]

TASK [preflight : Verify that required Python 3 packages are installed] *******************************************
ok: [forem] => changed=false
msg: All assertions passed

TASK [fcos : Get FCOS facts] **************************************************************************************
included: /home/mats/selfhost/roles/fcos/tasks/facts.yml for forem

TASK [fcos : Get FCOS releases] ***********************************************************************************
ok: [forem]

TASK [fcos : Set FCOS file download facts] ************************************************************************
ok: [forem]

TASK [fcos : Download FCOS files] *********************************************************************************
included: /home/mats/selfhost/roles/fcos/tasks/download.yml for forem

TASK [fcos : Check for FCOS file download] ************************************************************************
ok: [forem]

TASK [fcos : Check if fcos_storage_location exists] ***************************************************************
skipping: [forem]

TASK [fcos : Fail if fcos_storage_location does not exist] ********************************************************
skipping: [forem]

TASK [fcos : Create temporary FCOS download directory] ************************************************************
skipping: [forem]

TASK [fcos : Download FCOS files] *********************************************************************************
skipping: [forem] => (item={'url': 'https://builds.coreos.fedoraproject.org/prod/streams/stable/builds/37.20221211.3.0/x86_64/fedora-coreos-37.20221211.3.0-qemu.x86_64.qcow2.xz', 'filename': 'fedora-coreos-37.20221211.3.0-qemu.x86_64.qcow2.xz'})
skipping: [forem] => (item={'url': 'https://builds.coreos.fedoraproject.org/prod/streams/stable/builds/37.20221211.3.0/x86_64/fedora-coreos-37.20221211.3.0-qemu.x86_64.qcow2.xz.sig', 'filename': 'fedora-coreos-37.20221211.3.0-qemu.x86_64.qcow2.xz.sig'})
skipping: [forem] => (item={'url': 'https://getfedora.org/static/fedora.gpg', 'filename': 'fedora.gpg'})

TASK [fcos : Get sha256 of FCOS download file] ********************************************************************
skipping: [forem]

TASK [fcos : Import Fedora GPG key] *******************************************************************************
skipping: [forem]

TASK [fcos : Verify FCOS file download via GPG] *******************************************************************
skipping: [forem]

TASK [fcos : Verify sha256sum of FCOS download] *******************************************************************
skipping: [forem]

TASK [fcos : Move FCOS file download to fcos_storage_location] ****************************************************
skipping: [forem]

TASK [fcos : Extract FCOS image] **********************************************************************************
included: /home/mats/selfhost/roles/fcos/tasks/extract.yml for forem

TASK [fcos : Check for FCOS file download] ************************************************************************
ok: [forem]

TASK [fcos : Fail if /home/mats/selfhost/playbooks/providers/images/fedora-coreos-37.20221211.3.0-qemu.x86_64.qcow2.xz does not exist] ***
skipping: [forem]

TASK [fcos : Stat FCOS extract file] ******************************************************************************
ok: [forem]

TASK [fcos : Stat FCOS compressed file] ***************************************************************************
ok: [forem]

TASK [fcos : Print skip extraction warning when $HOME/.local/share/libvirt/images/fedora-coreos-37.20221211.3.0-qemu.x86_64.qcow2 exists] ***
skipping: [forem]

TASK [fcos : Check for unxz] **************************************************************************************
changed: [forem]

TASK [fcos : Fail if unxz is not installed] ***********************************************************************
skipping: [forem]

TASK [fcos : Extract FCOS file to $HOME/.local/share/libvirt/images with xz] ************************************
fatal: [forem]: FAILED! => changed=true
cmd: xz --decompress -k /home/mats/selfhost/playbooks/providers/images/fedora-coreos-37.20221211.3.0-qemu.x86_64.qcow2.xz -c > $HOME/.local/share/libvirt/images/fedora-coreos-37.20221211.3.0-qemu.x86_64.qcow2
delta: '0:00:00.001817'
end: '2022-12-30 13:00:43.358321'
msg: non-zero return code
rc: 2
start: '2022-12-30 13:00:43.356504'
stderr: '/bin/sh: 1: cannot create /home/mats/.local/share/libvirt/images/fedora-coreos-37.20221211.3.0-qemu.x86_64.qcow2: Directory nonexistent'
stderr_lines:
stdout: ''
stdout_lines: **

PLAY RECAP ********************************************************************************************************
forem : ok=18 changed=2 unreachable=0 failed=1 skipped=12 rescued=0 ignored=0

Who can help me with this error?

Top comments (0)