Maybe it's time to find the root cause and fix that. Run the command fro mthe cli, until we find the real error message:
omv-salt deploy run omvextras
Maybe it's time to find the root cause and fix that. Run the command fro mthe cli, until we find the real error message:
omv-salt deploy run omvextras
:~# omv-salt deploy run omvextras
debian:
----------
ID: configure_apt_sources_list_omvextras
Function: file.managed
Name: /etc/apt/sources.list.d/omvextras.list
Result: True
Comment: File /etc/apt/sources.list.d/omvextras.list is in the correct state
Started: 01:15:23.728059
Duration: 31.469 ms
Changes:
----------
ID: configure_apt_pref_omvextras
Function: file.managed
Name: /etc/apt/preferences.d/omvextras.pref
Result: True
Comment: File /etc/apt/preferences.d/omvextras.pref is in the correct state
Started: 01:15:23.759639
Duration: 5.948 ms
Changes:
----------
ID: refresh_database_apt
Function: module.run
Name: pkg.refresh_db
Result: False
Comment: No function provided.
Started: 01:15:23.766118
Duration: 0.42 ms
Changes:
Summary for debian
------------
Succeeded: 2
Failed: 1
------------
Total states run: 3
Total run time: 37.837 ms
Display More
post the output of cat /srv/salt/omv/deploy/omvextras/default.sls
Seems to be https://github.com/OpenMediaVa…lt-omvextrasorg/issues/55
~# cat /srv/salt/omv/deploy/omvextras/default.sls
# @license http://www.gnu.org/licenses/gpl.html GPL Version 3
# @author Volker Theile <volker.theile@openmediavault.org>
# @copyright Copyright (c) 2019-2020 OpenMediaVault Plugin Developers
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
{% set config = salt['omv_conf.get']('conf.system.omvextras') %}
{% set use_kernel_backports = salt['pillar.get']('default:OMV_APT_USE_KERNEL_BACKPORTS', True) -%}
configure_apt_sources_list_omvextras:
file.managed:
- name: "/etc/apt/sources.list.d/omvextras.list"
- source:
- salt://{{ tpldir }}/files/etc-apt-sources_list_d-omvextras_list.j2
- template: jinja
- context:
config: {{ config | json }}
- user: root
- group: root
- mode: 644
{% if not use_kernel_backports | to_bool %}
remove_apt_pref_omvextras:
file.absent:
- name: "/etc/apt/preferences.d/omvextras.pref"
{% else %}
configure_apt_pref_omvextras:
file.managed:
- name: "/etc/apt/preferences.d/omvextras.pref"
- source:
- salt://{{ tpldir }}/files/etc-apt-preferences_d-omvextras_pref.j2
- template: jinja
- user: root
- group: root
- mode: 644
{% endif %}
refresh_database_apt:
module.run:
- name: pkg.refresh_db
Display More
Did you apply the path manually?
I assume apt aupdate works for you.
But i call it a day now. See you tomorrow.
do you mean the path in the daemon.json or your code (post #103)?
Thanks and until tomorrow...
i wanted to say patch not path.
In line 56 remove name:
ok, I can edit the file default.sls?
only in line 56 or also in the other lines (44)?
yes, edit it and line 56 only.
it looks now so:
~# cat /srv/salt/omv/deploy/omvextras/default.sls
# @license http://www.gnu.org/licenses/gpl.html GPL Version 3
# @author Volker Theile <volker.theile@openmediavault.org>
# @copyright Copyright (c) 2019-2020 OpenMediaVault Plugin Developers
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
{% set config = salt['omv_conf.get']('conf.system.omvextras') %}
{% set use_kernel_backports = salt['pillar.get']('default:OMV_APT_USE_KERNEL_BACKPORTS', True) -%}
configure_apt_sources_list_omvextras:
file.managed:
- name: "/etc/apt/sources.list.d/omvextras.list"
- source:
- salt://{{ tpldir }}/files/etc-apt-sources_list_d-omvextras_list.j2
- template: jinja
- context:
config: {{ config | json }}
- user: root
- group: root
- mode: 644
{% if not use_kernel_backports | to_bool %}
remove_apt_pref_omvextras:
file.absent:
- name: "/etc/apt/preferences.d/omvextras.pref"
{% else %}
configure_apt_pref_omvextras:
file.managed:
- name: "/etc/apt/preferences.d/omvextras.pref"
- source:
- salt://{{ tpldir }}/files/etc-apt-preferences_d-omvextras_pref.j2
- template: jinja
- user: root
- group: root
- mode: 644
{% endif %}
refresh_database_apt:
module.run:
- pkg.refresh_db
Display More
ok, go for it: omv-salt deploy run omvextras
My fault. There needs to be a colon behind - pkg.refresh_db -> - pkg.refresh_db:
ah now it works better, I think so:
~# omv-salt deploy run omvextras
debian:
----------
ID: configure_apt_sources_list_omvextras
Function: file.managed
Name: /etc/apt/sources.list.d/omvextras.list
Result: True
Comment: File /etc/apt/sources.list.d/omvextras.list is in the correct state
Started: 00:44:00.670818
Duration: 30.817 ms
Changes:
----------
ID: configure_apt_pref_omvextras
Function: file.managed
Name: /etc/apt/preferences.d/omvextras.pref
Result: True
Comment: File /etc/apt/preferences.d/omvextras.pref is in the correct state
Started: 00:44:00.701745
Duration: 6.002 ms
Changes:
----------
ID: refresh_database_apt
Function: module.run
Result: True
Comment: pkg.refresh_db: Success
Started: 00:44:00.708276
Duration: 4272.411 ms
Changes:
----------
pkg.refresh_db:
----------
file:/var/cache/openmediavault/archives InRelease:
False
file:/var/cache/openmediavault/archives Packages:
True
file:/var/cache/openmediavault/archives Release:
False
file:/var/cache/openmediavault/archives Translation-de:
False
file:/var/cache/openmediavault/archives Translation-de_DE:
False
file:/var/cache/openmediavault/archives Translation-en:
False
http://deb.debian.org/debian buster InRelease:
None
http://deb.debian.org/debian buster-updates InRelease:
True
http://httpredir.debian.org/debian buster-backports InRelease:
True
http://linux.teamviewer.com/deb stable InRelease:
None
http://packages.openmediavault.org/public usul InRelease:
None
http://security.debian.org/debian-security buster/updates InRelease:
True
http://security.debian.org/debian-security buster/updates/main Sources:
True
http://security.debian.org/debian-security buster/updates/main amd64 Packages:
True
https://dl.bintray.com/openmediavault-plugin-developers/usul buster InRelease:
False
https://download.docker.com/linux/debian buster InRelease:
True
https://openmediavault.github.io/packages usul InRelease:
None
Summary for debian
------------
Succeeded: 3 (changed=1)
Failed: 0
------------
Total states run: 3
Total run time: 4.309 s
Display More
but why are the first two blocks green and the third block blue (from refresh_database_apt)?
What means true/false/none?
I can see no colors, but what this dows is apt-get update. Try running manually.
ok after update:
:~# omv-salt deploy run omvextras
debian:
----------
ID: configure_apt_sources_list_omvextras
Function: file.managed
Name: /etc/apt/sources.list.d/omvextras.list
Result: True
Comment: File /etc/apt/sources.list.d/omvextras.list is in the correct state
Started: 00:58:50.449831
Duration: 31.09 ms
Changes:
----------
ID: configure_apt_pref_omvextras
Function: file.managed
Name: /etc/apt/preferences.d/omvextras.pref
Result: True
Comment: File /etc/apt/preferences.d/omvextras.pref is in the correct state
Started: 00:58:50.481033
Duration: 5.971 ms
Changes:
----------
ID: refresh_database_apt
Function: module.run
Result: True
Comment: pkg.refresh_db: Success
Started: 00:58:50.487525
Duration: 2839.366 ms
Changes:
----------
pkg.refresh_db:
----------
file:/var/cache/openmediavault/archives InRelease:
False
file:/var/cache/openmediavault/archives Packages:
True
file:/var/cache/openmediavault/archives Release:
False
file:/var/cache/openmediavault/archives Translation-de:
False
file:/var/cache/openmediavault/archives Translation-de_DE:
False
file:/var/cache/openmediavault/archives Translation-en:
False
http://deb.debian.org/debian buster InRelease:
None
http://deb.debian.org/debian buster-updates InRelease:
None
http://httpredir.debian.org/debian buster-backports InRelease:
None
http://linux.teamviewer.com/deb stable InRelease:
None
http://packages.openmediavault.org/public usul InRelease:
None
http://security.debian.org/debian-security buster/updates InRelease:
None
https://dl.bintray.com/openmediavault-plugin-developers/usul buster InRelease:
False
https://download.docker.com/linux/debian buster InRelease:
True
https://openmediavault.github.io/packages usul InRelease:
None
Summary for debian
------------
Succeeded: 3 (changed=1)
Failed: 0
------------
Total states run: 3
Total run time: 2.876 s
Display More
and the updatelist:
:~# apt-get update
Holen:1 file:/var/cache/openmediavault/archives InRelease
Ign:1 file:/var/cache/openmediavault/archives InRelease
Holen:2 file:/var/cache/openmediavault/archives Release
Ign:2 file:/var/cache/openmediavault/archives Release
Holen:3 file:/var/cache/openmediavault/archives Packages
Ign:3 file:/var/cache/openmediavault/archives Packages
Holen:4 file:/var/cache/openmediavault/archives Translation-de
Ign:4 file:/var/cache/openmediavault/archives Translation-de
Holen:5 file:/var/cache/openmediavault/archives Translation-en
Ign:5 file:/var/cache/openmediavault/archives Translation-en
Holen:6 file:/var/cache/openmediavault/archives Translation-de_DE
Ign:6 file:/var/cache/openmediavault/archives Translation-de_DE
Holen:3 file:/var/cache/openmediavault/archives Packages
Ign:3 file:/var/cache/openmediavault/archives Packages
Holen:4 file:/var/cache/openmediavault/archives Translation-de
Ign:4 file:/var/cache/openmediavault/archives Translation-de
Holen:5 file:/var/cache/openmediavault/archives Translation-en
Ign:5 file:/var/cache/openmediavault/archives Translation-en
Holen:6 file:/var/cache/openmediavault/archives Translation-de_DE
Ign:6 file:/var/cache/openmediavault/archives Translation-de_DE
Holen:3 file:/var/cache/openmediavault/archives Packages
Ign:3 file:/var/cache/openmediavault/archives Packages
Holen:4 file:/var/cache/openmediavault/archives Translation-de
Ign:4 file:/var/cache/openmediavault/archives Translation-de
Holen:5 file:/var/cache/openmediavault/archives Translation-en
Ign:5 file:/var/cache/openmediavault/archives Translation-en
Holen:6 file:/var/cache/openmediavault/archives Translation-de_DE
Ign:6 file:/var/cache/openmediavault/archives Translation-de_DE
Holen:3 file:/var/cache/openmediavault/archives Packages
Ign:3 file:/var/cache/openmediavault/archives Packages
Holen:4 file:/var/cache/openmediavault/archives Translation-de
Ign:4 file:/var/cache/openmediavault/archives Translation-de
Holen:5 file:/var/cache/openmediavault/archives Translation-en
Ign:5 file:/var/cache/openmediavault/archives Translation-en
Holen:6 file:/var/cache/openmediavault/archives Translation-de_DE
Ign:6 file:/var/cache/openmediavault/archives Translation-de_DE
Holen:3 file:/var/cache/openmediavault/archives Packages
Ign:3 file:/var/cache/openmediavault/archives Packages
Holen:4 file:/var/cache/openmediavault/archives Translation-de
Ign:4 file:/var/cache/openmediavault/archives Translation-de
Holen:5 file:/var/cache/openmediavault/archives Translation-en
Ign:5 file:/var/cache/openmediavault/archives Translation-en
Holen:6 file:/var/cache/openmediavault/archives Translation-de_DE
Ign:6 file:/var/cache/openmediavault/archives Translation-de_DE
Holen:3 file:/var/cache/openmediavault/archives Packages
Ign:3 file:/var/cache/openmediavault/archives Packages
Holen:4 file:/var/cache/openmediavault/archives Translation-de
Ign:4 file:/var/cache/openmediavault/archives Translation-de
Holen:5 file:/var/cache/openmediavault/archives Translation-en
Ign:5 file:/var/cache/openmediavault/archives Translation-en
Holen:6 file:/var/cache/openmediavault/archives Translation-de_DE
Ign:6 file:/var/cache/openmediavault/archives Translation-de_DE
Holen:3 file:/var/cache/openmediavault/archives Packages [1.069 B]
Holen:4 file:/var/cache/openmediavault/archives Translation-de
Ign:4 file:/var/cache/openmediavault/archives Translation-de
Holen:5 file:/var/cache/openmediavault/archives Translation-en
Ign:5 file:/var/cache/openmediavault/archives Translation-en
Holen:6 file:/var/cache/openmediavault/archives Translation-de_DE
Ign:6 file:/var/cache/openmediavault/archives Translation-de_DE
OK:7 http://deb.debian.org/debian buster InRelease
OK:8 http://deb.debian.org/debian buster-updates InRelease
OK:9 http://security.debian.org/debian-security buster/updates InRelease
OK:10 http://linux.teamviewer.com/deb stable InRelease
OK:11 http://httpredir.debian.org/debian buster-backports InRelease
OK:12 http://packages.openmediavault.org/public usul InRelease
OK:13 https://openmediavault.github.io/packages usul InRelease
Holen:14 https://download.docker.com/linux/debian buster InRelease [54,0 kB]
Fehl:15 https://dl.bintray.com/openmediavault-plugin-developers/usul buster InRelease
502 Bad Gateway [IP: 54.70.2.80 443]
Es wurden 54,0 kB in 1 s geholt (62,8 kB/s).
Paketlisten werden gelesen... Fertig
W: Ziel Sources (main/source/Sources) ist mehrfach konfiguriert in /etc/apt/sources.list:10 und /etc/apt/sources.list.d/openmediavault-os-security.list:2
W: Ziel Sources (contrib/source/Sources) ist mehrfach konfiguriert in /etc/apt/sources.list:10 und /etc/apt/sources.list.d/openmediavault-os-security.list:2
W: Ziel Sources (non-free/source/Sources) ist mehrfach konfiguriert in /etc/apt/sources.list:10 und /etc/apt/sources.list.d/openmediavault-os-security.list:2
W: Fehlschlag beim Holen von https://dl.bintray.com/openmediavault-plugin-developers/usul/dists/buster/InRelease 502 Bad Gateway [IP: 54.70.2.80 443]
W: Einige Indexdateien konnten nicht heruntergeladen werden. Sie wurden ignoriert oder alte an ihrer Stelle benutzt.
W: Ziel Sources (main/source/Sources) ist mehrfach konfiguriert in /etc/apt/sources.list:10 und /etc/apt/sources.list.d/openmediavault-os-security.list:2
W: Ziel Sources (contrib/source/Sources) ist mehrfach konfiguriert in /etc/apt/sources.list:10 und /etc/apt/sources.list.d/openmediavault-os-security.list:2
W: Ziel Sources (non-free/source/Sources) ist mehrfach konfiguriert in /etc/apt/sources.list:10 und /etc/apt/sources.list.d/openmediavault-os-security.list:2
Display More
OK, first read #1 of this: omv-extras repos moving to github
And post the output of cat /etc/apt/sources.list and cat openmediavault-os-security.list
~# cat /etc/apt/sources.list
#
# deb cdrom:[Debian GNU/Linux 10 _Buster_ - Official Snapshot amd64 LIVE/INSTALL Binary 20200921-17:33]/ buster contrib main non-free
# deb cdrom:[Debian GNU/Linux 10 _Buster_ - Official Snapshot amd64 LIVE/INSTALL Binary 20200921-17:33]/ buster contrib main non-free
deb http://deb.debian.org/debian/ buster main
deb-src http://deb.debian.org/debian/ buster main
deb-src http://security.debian.org/debian-security buster/updates main contrib non-free
# buster-updates, previously known as 'volatile'
deb http://deb.debian.org/debian/ buster-updates main contrib non-free
deb-src http://deb.debian.org/debian/ buster-updates main contrib non-free
# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
Display More
Delete or comment line 10 in /etc/apt/sources.list it is redundant to /etc/apt/sources.list.d/openmediavault-os-security.list
Don’t have an account yet? Register yourself now and be a part of our community!