Skip to content

Issues installing on Ubuntu 22.04 #5906

@jeremi

Description

@jeremi

I started with a fresh Ubuntu 22.04 from Digital Ocean, following this https://commcare-cloud.readthedocs.io/en/latest/installation/1-quick-monolith-install.html but on Ubuntu 22.04 as I saw don't he PR that it should work in this version.

I had to install libffi-dev as it was missing.
I also had to manually change the version of couchDB and HaProxy (as found here: https://github.com/dimagi/commcare-cloud/blob/b440b198075424c2266b27e8e22413d7b68c2958/changelog/0071-upgrade_to_ubuntu_22.04.yml )

Now I have this error about supervisord:

TASK [supervisor : link supervisor] ***************************************************************************************************************************************************************************************************
failed: [139.59.112.210] (item=supervisord) => {"ansible_loop_var": "item", "changed": false, "item": "supervisord", "msg": "src file does not exist, use \"force=yes\" if you really want to create the link: /usr/local/bin/supervisord", "path": "/usr/bin/supervisord", "src": "/usr/local/bin/supervisord"}
failed: [139.59.112.210] (item=supervisorctl) => {"ansible_loop_var": "item", "changed": false, "item": "supervisorctl", "msg": "src file does not exist, use \"force=yes\" if you really want to create the link: /usr/local/bin/supervisorctl", "path": "/usr/bin/supervisorctl", "src": "/usr/local/bin/supervisorctl"}

I was able to go through by doing :

pip install  --prefix /usr supervisor==4.2.5

Then I got:


TASK [commcarehq : install pip requirements (https://github.com/dimagi/commcare-hq.git)] **********************************************************************************************************************************************
fatal: [139.59.112.210]: FAILED! => {"changed": false, "msg": "Failed to find required executable \"virtualenv\" in paths: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"}

So I did:

 pip install  --prefix /usr virtualenvwrapper

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions