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

Issues installing on Ubuntu 22.04 #5906

Open
jeremi opened this issue Apr 11, 2023 · 0 comments
Open

Issues installing on Ubuntu 22.04 #5906

jeremi opened this issue Apr 11, 2023 · 0 comments

Comments

@jeremi
Copy link

jeremi commented Apr 11, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant