FileNotFoundError: [Errno 2] No such file or directory: 'docker-compose'

Hello, i’m new on Kobo, i trying to install it on my own server ubuntu 22.04.1 and i got this error.

FileNotFoundError: [Errno 2] No such file or directory: ‘docker-compose’

below my installation log

root@DevVm:/var/www/kobo-install# python3 run.py --setup
╔════════════════════════════════════════════════════════════════════╗
║ ║
║ Welcome to kobo-install. ║
║ ║
║ You are going to be asked some questions that will determine how ║
║ to build the configuration of KoboToolBox. ║
║ ║
║ Some questions already have default values (within brackets). ║
║ Just press enter to accept the default value or enter - to ║
║ remove previously entered value. ║
║ Otherwise choose between choices or type your answer. ║
║ ║
╚════════════════════════════════════════════════════════════════════╝
Where do you want to install?
[/var/www/kobo]:
Please confirm path [/var/www/kobo]
1) Yes
2) No
[1]: 2
[/var/www/kobo]:
Please confirm path [/var/www/kobo]
1) Yes
2) No
[1]: 1
Do you want to see advanced options?
1) Yes
2) No
[2]: 2
What kind of installation do you need?
1) On your workstation
2) On a server
[2]: 2
Public domain name? [kobo.local]:
KPI sub domain? [kf]:
KoBoCat sub domain? [kc]:
Enketo Express sub domain name? [ee]:
Do you want to use HTTPS?
1) Yes
2) No
[2]: 2
SMTP server? [1]:
SMTP port? [25]:
SMTP user? []:
From email address? [support@kobo.local]:
Super user’s username? [super_admin]:
Super user’s password? [sHZWINT4povrcIHcmSAo]:
Do you want to activate backups?
1) Yes
2) No
[2]: 1
Traceback (most recent call last):
File “run.py”, line 94, in
run(force_setup=True)
File “run.py”, line 52, in run
Command.start(force_setup=force_setup)
File “/var/www/kobo-install/helpers/command.py”, line 311, in start
cls.stop(output=False, frontend_only=frontend_only)
File “/var/www/kobo-install/helpers/command.py”, line 433, in stop
CLI.run_command(maintenance_down_command,
File “/var/www/kobo-install/helpers/cli.py”, line 154, in run_command
stdout = subprocess.check_output(command,
File “/usr/lib/python3.8/subprocess.py”, line 415, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File “/usr/lib/python3.8/subprocess.py”, line 493, in run
with Popen(*popenargs, **kwargs) as process:
File “/usr/lib/python3.8/subprocess.py”, line 858, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File “/usr/lib/python3.8/subprocess.py”, line 1704, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: ‘docker-compose’

i need help please

you needed to have done a pre requisite install of docker and docker compose

sudo apt-get install docker-compose

thank’s @kh1 , i install docker , docker-compose and clone kobo-docker in /kobo-intall directory…After that, this error not appear again.
But i’m facing out an other error:
Creating kobobe_redis_main_1 … error

Creating kobobe_redis_cache_1 … error
nstall/kobo/.vols/redis_main_data’: mkdir /var/www: read-only file system
Creating kobobe_postgres_1 … error
ERROR: for kobobe_redis_cache_1 Cannot start service redis_cache: error while creating mount source path ‘/var/www/kobo-install/kobo/.vols/redis_cache_data’: mkdir /var/www: read-only file system

ERROR: for kobobe_postgres_1 Cannot start service postgres: error while creating mount source path '/var/www/kobo-insta
Creating kobobe_mongo_1 … error

ERROR: for kobobe_mongo_1 Cannot start service mongo: error while creating mount source path ‘/var/www/kobo-install/kobo/log/mongo’: mkdir /var/www: read-only file system

ERROR: for redis_main Cannot start service redis_main: error while creating mount source path ‘/var/www/kobo-install/kobo/.vols/redis_main_data’: mkdir /var/www: read-only file system

ERROR: for redis_cache Cannot start service redis_cache: error while creating mount source path ‘/var/www/kobo-install/kobo/.vols/redis_cache_data’: mkdir /var/www: read-only file system

ERROR: for postgres Cannot start service postgres: error while creating mount source path ‘/var/www/kobo-install/kobo/log/postgres’: mkdir /var/www: read-only file system

i need help please

Use sudo

1 Like