I am doing some tests in OMV7 and I encounter this when configuring compose, I seem to remember that in OMV6 it did not give this error.
What I do is:
- Create shared folders for Compose Files, Data and Docker.
- Copy the absolute path of the Docker shared folder to the Docker field
- Select the shared folders created for Compose Files and Data
- Press the Save button
- Accept changes in Salt
It gives me the following error:
Code
ID: docker
Function: service.running
Result: False
Comment: Failed to start docker.service: Unit docker.service not found.
Started: 14:58:59.468130
Duration: 55.126 ms
Changes:
Complete error:
Code
Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; omv-salt deploy run --no-color compose 2>&1' with exit code '1': debian:
----------
ID: /etc/systemd/system/docker.service.d/waitAllMounts.conf
Function: file.managed
Result: True
Comment: File /etc/systemd/system/docker.service.d/waitAllMounts.conf updated
Started: 14:58:58.472471
Duration: 2.111 ms
Changes:
----------
diff:
New file
mode:
0644
----------
ID: systemd_daemon_reload_docker
Function: cmd.run
Name: systemctl daemon-reload
Result: True
Comment: Command "systemctl daemon-reload" run
Started: 14:58:58.475294
Duration: 267.106 ms
Changes:
----------
pid:
94138
retcode:
0
stderr:
stdout:
----------
ID: configure_etc_docker_dir
Function: file.directory
Name: /etc/docker
Result: True
Comment:
Started: 14:58:58.742516
Duration: 0.936 ms
Changes:
----------
/etc/docker:
----------
directory:
new
----------
ID: /etc/docker/daemon.json
Function: file.serialize
Result: True
Comment: File /etc/docker/daemon.json updated
Started: 14:58:58.743531
Duration: 2.088 ms
Changes:
----------
diff:
New file
----------
ID: docker
Function: service.running
Result: False
Comment: Failed to start docker.service: Unit docker.service not found.
Started: 14:58:59.468130
Duration: 55.126 ms
Changes:
----------
ID: create_usr_local_bin_dir
Function: file.directory
Name: /usr/local/bin
Result: True
Comment: The directory /usr/local/bin is in the correct state
Started: 14:58:59.523367
Duration: 0.708 ms
Changes:
----------
ID: /usr/local/bin/docker-compose
Function: file.symlink
Result: True
Comment: Created new symlink /usr/local/bin/docker-compose -> /usr/libexec/docker/cli-plugins/docker-compose
Started: 14:58:59.524163
Duration: 1041.215 ms
Changes:
----------
new:
/usr/local/bin/docker-compose
----------
ID: configure_compose_global_env_file
Function: file.managed
Name: /srv/dev-disk-by-uuid-04cfa6db-70d0-4f0c-aa72-fa9d8a7c30d9/compose/global.env
Result: True
Comment: File /srv/dev-disk-by-uuid-04cfa6db-70d0-4f0c-aa72-fa9d8a7c30d9/compose/global.env updated
Started: 14:59:00.567168
Duration: 82.384 ms
Changes:
----------
diff:
New file
group:
root
----------
ID: docker_install_packages
Function: pkg.installed
Result: True
Comment: The following packages were installed/updated: docker-ce
Started: 14:59:01.195405
Duration: 14770.536 ms
Changes:
----------
containerd.io:
----------
new:
1.6.26-1
old:
docker-ce:
----------
new:
5:24.0.7-1~debian.12~bookworm
old:
docker-ce-cli:
----------
new:
5:24.0.7-1~debian.12~bookworm
old:
----------
ID: docker_compose_install_packages
Function: pkg.installed
Result: True
Comment: 2 targeted packages were installed/updated.
The following packages were already installed: containerd.io, docker-ce-cli
Started: 14:59:15.970307
Duration: 6923.549 ms
Changes:
----------
docker-buildx-plugin:
----------
new:
0.11.2-1~debian.12~bookworm
old:
docker-compose-plugin:
----------
new:
2.21.0-1~debian.12~bookworm
old:
----------
ID: docker_purged_packages
Function: pkg.purged
Result: True
Comment: None of the targeted packages are installed or partially installed
Started: 14:59:22.897965
Duration: 1.027 ms
Changes:
----------
ID: configure_compose_scheduled_backup
Function: file.managed
Name: /etc/cron.d/omv-compose-backup
Result: True
Comment: File /etc/cron.d/omv-compose-backup updated
Started: 14:59:22.900244
Duration: 108.057 ms
Changes:
----------
diff:
New file
mode:
0644
----------
ID: configure_compose_scheduled_update
Function: file.managed
Name: /etc/cron.d/omv-compose-update
Result: True
Comment: File /etc/cron.d/omv-compose-update updated
Started: 14:59:23.008392
Duration: 76.746 ms
Changes:
----------
diff:
New file
mode:
0644
----------
ID: configure_compose_scheduled_prune
Function: file.managed
Name: /etc/cron.d/omv-compose-prune
Result: True
Comment: File /etc/cron.d/omv-compose-prune updated
Started: 14:59:23.085230
Duration: 77.471 ms
Changes:
----------
diff:
New file
mode:
0644
Summary for debian
-------------
Succeeded: 13 (changed=11)
Failed: 1
-------------
Total states run: 14
Total run time: 23.409 s
[ERROR ] The named service docker is not available
[ERROR ] Command '/bin/systemd-run' failed with return code: 5
[ERROR ] stderr: Running scope as unit: run-r83246cdc28cd40b09d2d67727c56ccb6.scope
Failed to stop docker.service: Unit docker.service not loaded.
[ERROR ] retcode: 5
[ERROR ] Command '/bin/systemd-run' failed with return code: 5
[ERROR ] stderr: Running scope as unit: run-r90a69cbbb6534481b4b29cf8bfde4ff3.scope
Failed to start docker.service: Unit docker.service not found.
[ERROR ] retcode: 5
[ERROR ] Failed to start docker.service: Unit docker.service not found.
OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; omv-salt deploy run --no-color compose 2>&1' with exit code '1': debian:
----------
ID: /etc/systemd/system/docker.service.d/waitAllMounts.conf
Function: file.managed
Result: True
Comment: File /etc/systemd/system/docker.service.d/waitAllMounts.conf updated
Started: 14:58:58.472471
Duration: 2.111 ms
Changes:
----------
diff:
New file
mode:
0644
----------
ID: systemd_daemon_reload_docker
Function: cmd.run
Name: systemctl daemon-reload
Result: True
Comment: Command "systemctl daemon-reload" run
Started: 14:58:58.475294
Duration: 267.106 ms
Changes:
----------
pid:
94138
retcode:
0
stderr:
stdout:
----------
ID: configure_etc_docker_dir
Function: file.directory
Name: /etc/docker
Result: True
Comment:
Started: 14:58:58.742516
Duration: 0.936 ms
Changes:
----------
/etc/docker:
----------
directory:
new
----------
ID: /etc/docker/daemon.json
Function: file.serialize
Result: True
Comment: File /etc/docker/daemon.json updated
Started: 14:58:58.743531
Duration: 2.088 ms
Changes:
----------
diff:
New file
----------
ID: docker
Function: service.running
Result: False
Comment: Failed to start docker.service: Unit docker.service not found.
Started: 14:58:59.468130
Duration: 55.126 ms
Changes:
----------
ID: create_usr_local_bin_dir
Function: file.directory
Name: /usr/local/bin
Result: True
Comment: The directory /usr/local/bin is in the correct state
Started: 14:58:59.523367
Duration: 0.708 ms
Changes:
----------
ID: /usr/local/bin/docker-compose
Function: file.symlink
Result: True
Comment: Created new symlink /usr/local/bin/docker-compose -> /usr/libexec/docker/cli-plugins/docker-compose
Started: 14:58:59.524163
Duration: 1041.215 ms
Changes:
----------
new:
/usr/local/bin/docker-compose
----------
ID: configure_compose_global_env_file
Function: file.managed
Name: /srv/dev-disk-by-uuid-04cfa6db-70d0-4f0c-aa72-fa9d8a7c30d9/compose/global.env
Result: True
Comment: File /srv/dev-disk-by-uuid-04cfa6db-70d0-4f0c-aa72-fa9d8a7c30d9/compose/global.env updated
Started: 14:59:00.567168
Duration: 82.384 ms
Changes:
----------
diff:
New file
group:
root
----------
ID: docker_install_packages
Function: pkg.installed
Result: True
Comment: The following packages were installed/updated: docker-ce
Started: 14:59:01.195405
Duration: 14770.536 ms
Changes:
----------
containerd.io:
----------
new:
1.6.26-1
old:
docker-ce:
----------
new:
5:24.0.7-1~debian.12~bookworm
old:
docker-ce-cli:
----------
new:
5:24.0.7-1~debian.12~bookworm
old:
----------
ID: docker_compose_install_packages
Function: pkg.installed
Result: True
Comment: 2 targeted packages were installed/updated.
The following packages were already installed: containerd.io, docker-ce-cli
Started: 14:59:15.970307
Duration: 6923.549 ms
Changes:
----------
docker-buildx-plugin:
----------
new:
0.11.2-1~debian.12~bookworm
old:
docker-compose-plugin:
----------
new:
2.21.0-1~debian.12~bookworm
old:
----------
ID: docker_purged_packages
Function: pkg.purged
Result: True
Comment: None of the targeted packages are installed or partially installed
Started: 14:59:22.897965
Duration: 1.027 ms
Changes:
----------
ID: configure_compose_scheduled_backup
Function: file.managed
Name: /etc/cron.d/omv-compose-backup
Result: True
Comment: File /etc/cron.d/omv-compose-backup updated
Started: 14:59:22.900244
Duration: 108.057 ms
Changes:
----------
diff:
New file
mode:
0644
----------
ID: configure_compose_scheduled_update
Function: file.managed
Name: /etc/cron.d/omv-compose-update
Result: True
Comment: File /etc/cron.d/omv-compose-update updated
Started: 14:59:23.008392
Duration: 76.746 ms
Changes:
----------
diff:
New file
mode:
0644
----------
ID: configure_compose_scheduled_prune
Function: file.managed
Name: /etc/cron.d/omv-compose-prune
Result: True
Comment: File /etc/cron.d/omv-compose-prune updated
Started: 14:59:23.085230
Duration: 77.471 ms
Changes:
----------
diff:
New file
mode:
0644
Summary for debian
-------------
Succeeded: 13 (changed=11)
Failed: 1
-------------
Total states run: 14
Total run time: 23.409 s
[ERROR ] The named service docker is not available
[ERROR ] Command '/bin/systemd-run' failed with return code: 5
[ERROR ] stderr: Running scope as unit: run-r83246cdc28cd40b09d2d67727c56ccb6.scope
Failed to stop docker.service: Unit docker.service not loaded.
[ERROR ] retcode: 5
[ERROR ] Command '/bin/systemd-run' failed with return code: 5
[ERROR ] stderr: Running scope as unit: run-r90a69cbbb6534481b4b29cf8bfde4ff3.scope
Failed to start docker.service: Unit docker.service not found.
[ERROR ] retcode: 5
[ERROR ] Failed to start docker.service: Unit docker.service not found. in /usr/share/php/openmediavault/system/process.inc:247
Stack trace:
#0 /usr/share/php/openmediavault/engine/module/serviceabstract.inc(62): OMV\System\Process->execute()
#1 /usr/share/openmediavault/engined/rpc/config.inc(178): OMV\Engine\Module\ServiceAbstract->deploy()
#2 [internal function]: Engined\Rpc\Config->applyChanges()
#3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(122): call_user_func_array()
#4 /usr/share/php/openmediavault/rpc/serviceabstract.inc(149): OMV\Rpc\ServiceAbstract->callMethod()
#5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(622): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}()
#6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(146): OMV\Rpc\ServiceAbstract->execBgProc()
#7 /usr/share/openmediavault/engined/rpc/config.inc(199): OMV\Rpc\ServiceAbstract->callMethodBg()
#8 [internal function]: Engined\Rpc\Config->applyChangesBg()
#9 /usr/share/php/openmediavault/rpc/serviceabstract.inc(122): call_user_func_array()
#10 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod()
#11 /usr/sbin/omv-engined(535): OMV\Rpc\Rpc::call()
#12 {main}
Display More
After that error I can press the Reinstall docker button and everything works normally. But in OMV6 I don't remember this being like that.
Has anything changed in OMV7? I seem to remember that the procedure was like this and it did not give this error.