Did you try with different browsers?
Upgrade Scripts for non-interactive major release upgrades (2->3, 3->4, 4->5)
-
- Major Upgrade
- dleidert
-
-
on this laptop is only firefox installed, but I could access the WGUI before the upgrade (disabling all services not required)
-
when use omv-firstaid
configure web control panel i get
Code
Alles anzeigenUpdating web control panel settings. Please wait ... {'response': None, 'error': {'code': 0, 'message': 'Failed to execute command \'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; omv-salt deploy run --no-color avahi 2>&1\' with exit code \'1\': mediavault.local:\n Data failed to compile:\n----------\n Rendering SLS \'base:omv.deploy.avahi.services.smb\' failed: Jinja error: The property \'shares.share.0.name\' does not exist in the model \'conf.service.smb\'.\nTraceback (most recent call last):\n File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 498, in render_jinja_tmpl\n output = template.render(**decoded_context)\n File "/usr/lib/python3/dist-packages/jinja2/asyncsupport.py", line 76, in render\n return original_render(self, *args, **kwargs)\n File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1008, in render\n return self.environment.handle_exception(exc_info, True)\n File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 780, in handle_exception\n reraise(exc_type, exc_value, tb)\n File "/usr/lib/python3/dist-packages/jinja2/_compat.py", line 37, in reraise\n raise value.with_traceback(tb)\n File "<template>", line 25, in top-level template code\n File "/var/cache/salt/minion/extmods/modules/omv_conf.py", line 39, in get\n objs = db.get(id_, identifier)\n File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 85, in get\n query.execute()\n File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 724, in execute\n self._response = self._elements_to_object(elements)\n File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 482, in _elements_to_object\n result.set_dict(self._element_to_dict(elements[0]), False)\n File "/usr/lib/python3/dist-packages/openmediavault/config/object.py", line 208, in set_dict\n self.set(key, value, validate)\n File "/usr/lib/python3/dist-packages/openmediavault/config/object.py", line 182, in set\n self.assert_exists(name)\n File "/usr/lib/python3/dist-packages/openmediavault/config/object.py", line 154, in assert_exists\n % (name, self.model.id)\nopenmediavault.exceptions.AssertException: The property \'shares.share.0.name\' does not exist in the model \'conf.service.smb\'.\n\n; line 25\n\n---\n[...]\n# Documentation/Howto:\n# https://www.ohnekontur.de/2010/03/23/netatalk-2-0-5-time-machine-support/\n# https://gist.github.com/jasonm23/2848434#gistcomment-338252\n# /System/Library/CoreServices/CoreTypes.bundle/Contents/Info.plist\n\n{% set smb_config = salt[\'omv_conf.get\'](\'conf.service.smb\') %} <======================\n{% set smb_zeroconf_enabled = salt[\'pillar.get\'](\'default:OMV_SAMBA_ZEROCONF_ENABLED\', 1) %}\n{% set smb_zeroconf_name = salt[\'pillar.get\'](\'default:OMV_SAMBA_ZEROCONF_NAME\', \'%h - SMB/CIFS\') %}\n\n{% if not (smb_config.enable | to_bool and smb_zeroconf_enabled | to_bool) %}\n\n[...]\n---', 'trace': '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; omv-salt deploy run --no-color avahi 2>&1\' with exit code \'1\': mediavault.local:\n Data failed to compile:\n----------\n Rendering SLS \'base:omv.deploy.avahi.services.smb\' failed: Jinja error: The property \'shares.share.0.name\' does not exist in the model \'conf.service.smb\'.\nTraceback (most recent call last):\n File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 498, in render_jinja_tmpl\n output = template.render(**decoded_context)\n File "/usr/lib/python3/dist-packages/jinja2/asyncsupport.py", line 76, in render\n return original_render(self, *args, **kwargs)\n File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1008, in render\n return self.environment.handle_exception(exc_info, True)\n File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 780, in handle_exception\n reraise(exc_type, exc_value, tb)\n File "/usr/lib/python3/dist-packages/jinja2/_compat.py", line 37, in reraise\n raise value.with_traceback(tb)\n File "<template>", line 25, in top-level template code\n File "/var/cache/salt/minion/extmods/modules/omv_conf.py", line 39, in get\n objs = db.get(id_, identifier)\n File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 85, in get\n query.execute()\n File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 724, in execute\n self._response = self._elements_to_object(elements)\n File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 482, in _elements_to_object\n result.set_dict(self._element_to_dict(elements[0]), False)\n File "/usr/lib/python3/dist-packages/openmediavault/config/object.py", line 208, in set_dict\n self.set(key, value, validate)\n File "/usr/lib/python3/dist-packages/openmediavault/config/object.py", line 182, in set\n self.assert_exists(name)\n File "/usr/lib/python3/dist-packages/openmediavault/config/object.py", line 154, in assert_exists\n % (name, self.model.id)\nopenmediavault.exceptions.AssertException: The property \'shares.share.0.name\' does not exist in the model \'conf.service.smb\'.\n\n; line 25\n\n---\n[...]\n# Documentation/Howto:\n# https://www.ohnekontur.de/2010/03/23/netatalk-2-0-5-time-machine-support/\n# https://gist.github.com/jasonm23/2848434#gistcomment-338252\n# /System/Library/CoreServices/CoreTypes.bundle/Contents/Info.plist\n\n{% set smb_config = salt[\'omv_conf.get\'](\'conf.service.smb\') %} <======================\n{% set smb_zeroconf_enabled = salt[\'pillar.get\'](\'default:OMV_SAMBA_ZEROCONF_ENABLED\', 1) %}\n{% set smb_zeroconf_name = salt[\'pillar.get\'](\'default:OMV_SAMBA_ZEROCONF_NAME\', \'%h - SMB/CIFS\') %}\n\n{% if not (smb_config.enable | to_bool and smb_zeroconf_enabled | to_bool) %}\n\n[...]\n--- in /usr/share/php/openmediavault/system/process.inc:182\nStack trace:\n#0 /usr/share/php/openmediavault/engine/module/serviceabstract.inc(62): OMV\\System\\Process->execute()\n#1 /usr/share/openmediavault/engined/rpc/config.inc(167): OMV\\Engine\\Module\\ServiceAbstract->deploy()\n#2 [internal function]: Engined\\Rpc\\Config->applyChanges(Array, Array)\n#3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)\n#4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\\Rpc\\ServiceAbstract->callMethod(\'applyChanges\', Array, Array)\n#5 /usr/sbin/omv-engined(537): OMV\\Rpc\\Rpc::call(\'Config\', \'applyChanges\', Array, Array, 1)\n#6 {main}', 'http_status_code': 500}} ERROR: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; omv-salt deploy run --no-color avahi 2>&1' with exit code '1': mediavault.local: Data failed to compile: ---------- Rendering SLS 'base:omv.deploy.avahi.services.smb' failed: Jinja error: The property 'shares.share.0.name' does not exist in the model 'conf.service.smb'. Traceback (most recent call last): File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 498, in render_jinja_tmpl output = template.render(**decoded_context) File "/usr/lib/python3/dist-packages/jinja2/asyncsupport.py", line 76, in render return original_render(self, *args, **kwargs) File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1008, in render return self.environment.handle_exception(exc_info, True) File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 780, in handle_exception reraise(exc_type, exc_value, tb) File "/usr/lib/python3/dist-packages/jinja2/_compat.py", line 37, in reraise raise value.with_traceback(tb) File "<template>", line 25, in top-level template code File "/var/cache/salt/minion/extmods/modules/omv_conf.py", line 39, in get objs = db.get(id_, identifier) File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 85, in get query.execute() File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 724, in execute self._response = self._elements_to_object(elements) File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 482, in _elements_to_object result.set_dict(self._element_to_dict(elements[0]), False) File "/usr/lib/python3/dist-packages/openmediavault/config/object.py", line 208, in set_dict self.set(key, value, validate) File "/usr/lib/python3/dist-packages/openmediavault/config/object.py", line 182, in set self.assert_exists(name) File "/usr/lib/python3/dist-packages/openmediavault/config/object.py", line 154, in assert_exists % (name, self.model.id) openmediavault.exceptions.AssertException: The property 'shares.share.0.name' does not exist in the model 'conf.service.smb'. ; line 25 --- root@mediavault:~#
There is a ERROR line in the code block saying:
CodeERROR: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; omv-salt deploy run --no-color avahi 2>&1' with exit code '1': mediavault.local: Data failed to compile: ---------- Rendering SLS 'base:omv.deploy.avahi.services.smb' failed: Jinja error: The property 'shares.share.0.name' does not exist in the model 'conf.service.smb'.
What does it mean?
-
-
recently a firefox bug related to OMV was identified and documented in OMV github
-
-
Have you cleared your browser cache? It might also help to provide the upgrade log file to check for issues.
-
-
No, but if I use two different ones?
where do I find the upgrade log? its not in /var/log
Edit; found it. is, see attachement
-
You have to clear your browser cache after upgrading. But if you are affected on a system, which has not beeen upgraded too, then you should start a new thread in a fitting sub-forum.pierre2000, the upgrade didn't succeed. The upgrade stopped in run.d/80-apt-dist-upgrade:
Zitatdpkg: error processing package openmediavault (--configure):
installed openmediavault package post-installation script subprocess returned error exit status 1
[..]
Errors were encountered while processing:
openmediavault
openmediavault-clamav
E: Sub-process /usr/bin/dpkg returned an error code (1)
run-parts: /root/openmediavault-upgrade-4.7/run.d/80-apt-dist-upgrade exited with return code 100
Please try the following. Edit /var/lib/dpkg/nfo/openmediavault.postinst and change the first line reading #!/bin/sh to #!/bin/bash and then run
sudo apt-get install -f
If that succeeds complete the upgrade running:
sudo run-parts --exit-on-error -v post.d
and report back.
-
Please, read my first post. I mentioned there, that I had the problem with omv-salt deploy run --quiet collectd chrony postfix, which did not allow the upgrade to finish. I found the descritpion how to solve it here in the forum. After that I did a apt upgrade, and as the code block in the first post shows, I believe it did finally upgrade
Code
Alles anzeigenroot@mediavault:~# dpkg-query -l 'openmediavault' Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Vollständig Löschen/Halten | Status=Nicht/Installiert/Config/U=Entpackt/halb konFiguriert/ Halb installiert/Trigger erWartet/Trigger anhängig |/ Fehler?=(kein)/R=Neuinstallation notwendig (Status, Fehler: GROSS=schlecht) ||/ Name Version Architektur Beschreibung +++-==============-============-============-=================================== ======================== ii openmediavault 5.5.23-1 all openmediavault - The open network a ttached storage solution root@mediavault:~#
-
-
Please, read my first post. I mentioned there, that I had the problem with omv-salt deploy run --quiet collectd chrony postfix, which did not allow the upgrade to finish. I found the descritpion how to solve it here in the forum. After that I did a apt upgrade, and as the code block in the first post shows, I believe it did finally upgrade
But did you run the remaining tasks: sudo run-parts --exit-on-error -v post.d?
The errors you post indicate that the OMV configuration might not have been (fully) transitioned. It might also be interesting: How did you solve the problem (using the way I suggested?)? What else did you do afterwards?
-
I have followed the #2 Post in this thread as I had the same error:
[SOLVED]openmediavault package post-installation script subprocess error
afterwards apt-get update and apt-get upgradefinished the installation without any error
I have changed the line in the postinst file to #!/bin/bash as suggested and then:
Code
Alles anzeigenroot@mediavault:~# sudo apt-get install -f Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen.... Fertig Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt: gnupg-agent libbind9-140 libdns-export162 libdns162 libevent-2.0-5 libfile-copy-recursive-perl libicu57 libisc-export160 libisc160 libisccc140 libisccfg140 liblvm2app2.2 liblwres141 libntfs-3g871 libonig4 libopts25 libperl5.24 libprocps6 libpython3.5-minimal libpython3.5-stdlib libssl1.0.2 libunistring0 php7.0 pm-utils python3.5 python3.5-minimal update-inetd Verwenden Sie »sudo apt autoremove«, um sie zu entfernen. 0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
As expectedt, no further upgrade
also your suggestion sudo run-parts --exit-on-error -v post.d does not work either:
Coderoot@mediavault:~# sudo run-parts --exit-on-error -v post.d run-parts: failed to open directory post.d: No such file or directory
I am not sure, but I do not believe that the upgrade is responsible for the missing WGUI, but what else could cause the problem?
-
also your suggestion sudo run-parts --exit-on-error -v post.d does not work either:
Coderoot@mediavault:~# sudo run-parts --exit-on-error -v post.d run-parts: failed to open directory post.d: No such file or directory
I am not sure, but I do not believe that the upgrade is responsible for the missing WGUI, but what else could cause the problem?
These are the scripts inside the openmediavault-upgrade-4.7 directory. They are part of the upgrade scripts and haven't been run yet. So get back in the directory and run them. You cannot run the command outside of the upgrade scripts directory.
-
-
Running omv-salt deploy run phpfpm shows quite a bunch of NOT compiled Data, see attachement
omv-salt deploy run phpfpm1.txtomv-salt deploy run phpfpm1.txt
-
Code
Alles anzeigenroot@mediavault:~# cd openmediavault-upgrade-4.7 root@mediavault:~/openmediavault-upgrade-4.7# sudo apt-get install -f Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen.... Fertig 0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert. root@mediavault:~/openmediavault-upgrade-4.7# sudo run-parts --exit-on-error -v post.d run-parts: executing post.d/10-reinstall-omvextras run-parts: executing post.d/50-apt-install Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen.... Fertig lsb-release ist schon die neueste Version (10.2019051400). lsb-release wurde als manuell installiert festgelegt. Die folgenden NEUEN Pakete werden installiert: apt-show-versions debconf-utils less libapt-pkg-perl libpam-systemd 0 aktualisiert, 5 neu installiert, 0 zu entfernen und 0 nicht aktualisiert. Es müssen 499 kB an Archiven heruntergeladen werden. Nach dieser Operation werden 1.126 kB Plattenplatz zusätzlich benutzt. Holen:1 https://deb.debian.org/debian buster/main amd64 less amd64 487-0.1+b1 [129 kB] Holen:2 https://deb.debian.org/debian buster/main amd64 libpam-systemd amd64 241-7~deb10u5 [209 kB] Holen:3 https://deb.debian.org/debian buster/main amd64 libapt-pkg-perl amd64 0.1.34+b1 [71,2 kB] Holen:4 https://deb.debian.org/debian buster/main amd64 apt-show-versions all 0.22.11 [32,6 kB] Holen:5 https://deb.debian.org/debian buster/main amd64 debconf-utils all 1.5.71 [57,1 kB] Es wurden 499 kB in 0 s geholt (2.385 kB/s). Vormals nicht ausgewähltes Paket less wird gewählt. (Lese Datenbank ... 59230 Dateien und Verzeichnisse sind derzeit installiert.) Vorbereitung zum Entpacken von .../less_487-0.1+b1_amd64.deb ... Entpacken von less (487-0.1+b1) ... Vormals nicht ausgewähltes Paket libpam-systemd:amd64 wird gewählt. Vorbereitung zum Entpacken von .../libpam-systemd_241-7~deb10u5_amd64.deb ... Entpacken von libpam-systemd:amd64 (241-7~deb10u5) ... Vormals nicht ausgewähltes Paket libapt-pkg-perl wird gewählt. Vorbereitung zum Entpacken von .../libapt-pkg-perl_0.1.34+b1_amd64.deb ... Entpacken von libapt-pkg-perl (0.1.34+b1) ... Vormals nicht ausgewähltes Paket apt-show-versions wird gewählt. Vorbereitung zum Entpacken von .../apt-show-versions_0.22.11_all.deb ... Entpacken von apt-show-versions (0.22.11) ... Vormals nicht ausgewähltes Paket debconf-utils wird gewählt. Vorbereitung zum Entpacken von .../debconf-utils_1.5.71_all.deb ... Entpacken von debconf-utils (1.5.71) ... libapt-pkg-perl (0.1.34+b1) wird eingerichtet ... apt-show-versions (0.22.11) wird eingerichtet ... ** initializing cache. This may take a while ** less (487-0.1+b1) wird eingerichtet ... debconf-utils (1.5.71) wird eingerichtet ... libpam-systemd:amd64 (241-7~deb10u5) wird eingerichtet ... Trigger für man-db (2.8.5-2) werden verarbeitet ... Trigger für mime-support (3.62) werden verarbeitet ... run-parts: executing post.d/51-apt-install-usrmerge Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen.... Fertig Die folgenden zusätzlichen Pakete werden installiert: libfile-find-rule-perl libnumber-compare-perl libtext-glob-perl Die folgenden NEUEN Pakete werden installiert: libfile-find-rule-perl libnumber-compare-perl libtext-glob-perl usrmerge 0 aktualisiert, 4 neu installiert, 0 zu entfernen und 0 nicht aktualisiert. Es müssen 59,5 kB an Archiven heruntergeladen werden. Nach dieser Operation werden 182 kB Plattenplatz zusätzlich benutzt. Holen:1 https://deb.debian.org/debian buster/main amd64 libnumber-compare-perl all 0.03-1 [7.642 B] Holen:2 https://deb.debian.org/debian buster/main amd64 libtext-glob-perl all 0.10-1 [8.362 B] Holen:3 https://deb.debian.org/debian buster/main amd64 libfile-find-rule-perl all 0.34-1 [30,6 kB] Holen:4 https://deb.debian.org/debian buster/main amd64 usrmerge all 21 [12,8 kB] Es wurden 59,5 kB in 0 s geholt (471 kB/s). Vorkonfiguration der Pakete ... Vormals nicht ausgewähltes Paket libnumber-compare-perl wird gewählt. (Lese Datenbank ... 59332 Dateien und Verzeichnisse sind derzeit installiert.) Vorbereitung zum Entpacken von .../libnumber-compare-perl_0.03-1_all.deb ... Entpacken von libnumber-compare-perl (0.03-1) ... Vormals nicht ausgewähltes Paket libtext-glob-perl wird gewählt. Vorbereitung zum Entpacken von .../libtext-glob-perl_0.10-1_all.deb ... Entpacken von libtext-glob-perl (0.10-1) ... Vormals nicht ausgewähltes Paket libfile-find-rule-perl wird gewählt. Vorbereitung zum Entpacken von .../libfile-find-rule-perl_0.34-1_all.deb ... Entpacken von libfile-find-rule-perl (0.34-1) ... Vormals nicht ausgewähltes Paket usrmerge wird gewählt. Vorbereitung zum Entpacken von .../archives/usrmerge_21_all.deb ... Entpacken von usrmerge (21) ... libtext-glob-perl (0.10-1) wird eingerichtet ... libnumber-compare-perl (0.03-1) wird eingerichtet ... libfile-find-rule-perl (0.34-1) wird eingerichtet ... usrmerge (21) wird eingerichtet ... The system has been successfully converted. Trigger für man-db (2.8.5-2) werden verarbeitet ... run-parts: executing post.d/70-omv-salt mediavault.local: Data failed to compile: ---------- Rendering SLS 'base:omv.deploy.apt.default' failed: Jinja error: 'NoneType' object has no attribute 'get_dict' Traceback (most recent call last): File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 498, in render_jinja_tmpl output = template.render(**decoded_context) File "/usr/lib/python3/dist-packages/jinja2/asyncsupport.py", line 76, in render return original_render(self, *args, **kwargs) File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1008, in render return self.environment.handle_exception(exc_info, True) File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 780, in handle_exception reraise(exc_type, exc_value, tb) File "/usr/lib/python3/dist-packages/jinja2/_compat.py", line 37, in reraise raise value.with_traceback(tb) File "<template>", line 22, in top-level template code File "/var/cache/salt/minion/extmods/modules/omv_conf.py", line 42, in get return objs.get_dict() AttributeError: 'NoneType' object has no attribute 'get_dict' ; line 22 --- [...] # You should have received a copy of the GNU General Public License # along with OpenMediaVault. If not, see <http://www.gnu.org/licenses/>. {% set config = salt['omv_conf.get']('conf.system.apt.distribution') %} {% set use_kernel_backports = salt['pillar.get']('default:OMV_APT_USE_KERNEL_BACKPORTS', True) -%} {% set proxy_config = salt['omv_conf.get']('conf.system.network.proxy') %} <====================== configure_apt_sources_list_openmediavault: file.managed: - name: "/etc/apt/sources.list.d/openmediavault.list" - source: [...] --- run-parts: post.d/70-omv-salt exited with return code 1 root@mediavault:~/openmediavault-upgrade-4.7#
ok, we are getting somewhere, but this python stuff still does not compile properly
-
-
-
Maybe this is better suited in an extra thread.
-
ok, will open a new thread. Thanx for your help and time
-
The command
sudo run-parts --exit-on-error -v post.d
runs all the scripts shipped in the post.d directory shipped with openmediavault-upgrade-4.7.
-
-
thanx, done already with no change. will open a new thread
-
You don't understand what I'm telling you. I gave you a link to a thread with similar error messages you observe. You were supposed to check this thread, and if the suggestions there apply and fix your issues, run the scripts in the post.d/ directory again to complete the upgrade. I didn't tell you to repeat what you already did. But after exchanging some messages I have the impression that you neither can nor want to follow instructions nor do you care to understand what you are actually doing. So my guess is that after or while you "fixed" the postinst issue you somehow managed to damage something else and I'm not willing to spend more time to help you sorten out the clusterf... you seem to have created. I wish you good luck though.
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!