Here my old /etc/apt/apt.conf
You must have added that file at some point.
Here my old /etc/apt/apt.conf
You must have added that file at some point.
But I removed several packages and then the interface started working again.
If you followed this post, it would have removed those.
Hi, I have the same issue like John before:
dpkg --configure -a
Setting up openmediavault (5.4.0-1) ...
Creating configuration database ...
Migrating configuration database ...
Running migration conf_5.0.0
WARNING: The node 'timemachine' already exists at XPath '/config/services/smb/shares/share'.
Running migration conf_5.0.3
Running migration conf_5.2.0
Setting up Salt environment ...
Processing system modifications ...
dpkg: error processing package openmediavault (--configure):
installed openmediavault package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of openmediavault-flashmemory:
openmediavault-flashmemory depends on openmediavault (>= 5.0); however:
Package openmediavault is not configured yet.
dpkg: error processing package openmediavault-flashmemory (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openmediavault-minidlna:
openmediavault-minidlna depends on openmediavault (>= 5.0); however:
Package openmediavault is not configured yet.
dpkg: error processing package openmediavault-minidlna (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openmediavault-omvextrasorg:
openmediavault-omvextrasorg depends on openmediavault (>= 5.0); however:
Package openmediavault is not configured yet.
dpkg: error processing package openmediavault-omvextrasorg (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openmediavault-shairport:
openmediavault-shairport depends on openmediavault (>= 5.3.4); however:
Package openmediavault is not configured yet.
dpkg: error processing package openmediavault-shairport (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of omvextras-common:
omvextras-common depends on openmediavault (>= 5.0); however:
Package openmediavault is not configured yet.
dpkg: error processing package omvextras-common (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openmediavault-usbbackup:
openmediavault-usbbackup depends on openmediavault (>= 5.3.4); however:
Package openmediavault is not configured yet.
dpkg: error processing package openmediavault-usbbackup (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openmediavault-forkeddaapd:
openmediavault-forkeddaapd depends on openmediavault (>= 5.3.4); however:
Package openmediavault is not configured yet.
dpkg: error processing package openmediavault-forkeddaapd (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openmediavault-clamav:
openmediavault-clamav depends on openmediavault (>= 5.3.7); however:
Package openmediavault is not configured yet.
dpkg: error processing package openmediavault-clamav (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
openmediavault
openmediavault-flashmemory
openmediavault-minidlna
openmediavault-omvextrasorg
openmediavault-shairport
omvextras-common
openmediavault-usbbackup
openmediavault-forkeddaapd
openmediavault-clamav
Alles anzeigen
It may come from replacing the openmadiavault config with the maintainer version when I got the prompt for it.
Is there anything I can do except reinstallation?
And if only a reinstallation will help, what files do I need backup for my raid created with mediavault 2/3? All other configs I can reapply.
didn't fix the problem.
I also tried to configure with a `openmediavault.dpkg-old` I found in `etc/default` but this didn't worked either.
Thanks in advance.
what is the output of: omv-salt stage run all
what is the output of: omv-salt stage run all
Result attached.
Just to mention: I didn't except all modifications and did sometimes looked at the diff and kept the original configs. One had a openmediavault copyright header, so I thought I should keep it.
Result attached.
What is the output of: sudo grep mtu /etc/openmediavault/config.xml
What is the output of: sudo grep mtu /etc/openmediavault/config.xml
Two entries:
This should fix it.
sudo sed -i "s/<mtu><\/mtu>/<mtu>0<\/mtu>/" /etc/openmediavault/config.xml
Then run omv-salt stage run all again
This should fix it.
sudo sed -i "s/<mtu><\/mtu>/<mtu>0<\/mtu>/" /etc/openmediavault/config.xml
Then run omv-salt stage run all again
Still the same error.
liednas.lied:
Data failed to compile:
----------
Rendering SLS 'base:omv.deploy.collectd.plugins.interface' failed: Jinja error: Failed to convert property 'mtu': invalid literal for int() with base 10: ''
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/openmediavault/config/datamodel.py", line 290, in property_convert
result = int(value)
config.xml
There is still an empty mtu tag.
Edit: We've replaced the out commented rule in the config file, the actually interface has the <mtu /> tag.
After changing the <mtu /> to <mtu>0</mtu>, I'll receive an other error:
ID: run_state_deploy
Function: salt.state
Result: False
Comment: Run failed on minions: liednas.lied
Started: 15:41:47.704583
Duration: 12452.511 ms
Changes:
liednas.lied:
Data failed to compile:
----------
Rendering SLS 'base:omv.deploy.omvextras.default' failed: Jinja error: The property 'repos.repo.uuid' does not exist in the model 'conf.system.omvextras'.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 394, 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 18, 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 712, in execute
self._response = self._elements_to_object(elements)
File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 473, 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 207, in set_dict
self.set(key, value, validate)
File "/usr/lib/python3/dist-packages/openmediavault/config/object.py", line 181, in set
self.assert_exists(name)
File "/usr/lib/python3/dist-packages/openmediavault/config/object.py", line 153, in assert_exists
% (name, self.model.id)
openmediavault.exceptions.AssertException: The property 'repos.repo.uuid' does not exist in the model 'conf.system.omvextras'.
; line 18
---
[...]
# 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"
[...]
---
Alles anzeigen
Remove the empty mtu tag.
Remove the empty mtu tag.
Sorry haven't seen your comment, already changed my last post after I fixed the mtu value.
ryecoaaron: A apt-get install -f fixed the last issue! Thank you very much for your help and time!
I tried following instructions from post #38. Unfortunately I hit some issues after reboot:
# apt-get purge openmediavault-omvextrasorg resolvconf
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'resolvconf' is not installed, so not removed
The following packages were automatically installed and are no longer required:
acl acpid avahi-daemon beep collectd collectd-core containerd.io cron-apt dh-python dmeventd docker-ce docker-ce-cli folder2ram
fontconfig g++-6 gdisk html2text imagemagick-6-common jfsutils jq libaio1 libatalk17 libavahi-core7 libbind9-140
libboost-filesystem1.62.0 libboost-iostreams1.62.0 libboost-system1.62.0 libcairo2 libcrack2 libdatrie1 libdbi1 libdbus-glib-1-2
libde265-0 libdevmapper-event1.02.1 libdns162 libevent-2.0-5 libf2fs0 libfftw3-double3 libfile-copy-recursive-perl
libfile-slurp-perl libgraphite2-3 libgudev-1.0-0 libharfbuzz0b libheif1 libhiredis0.14 libicu57 libisc160 libisccc140
libisccfg140 libjavascript-minifier-xs-perl libjq1 libjs-extjs6 libjs-jquery libjs-sphinxdoc libjs-underscore libjson-glib-1.0-0
libjson-glib-1.0-common libjson-perl liblcms2-2 liblocale-po-perl liblqr-1-0 libltdl7 liblvm2app2.2 liblvm2cmd2.02
liblvm2cmd2.03 liblwres141 libmagickcore-6.q16-3 libmagickcore-6.q16-6 libmagickwand-6.q16-3 libmagickwand-6.q16-6
libmemcached11 libmemcachedutil2 libnss-mdns libntfs-3g871 libonig4 libonig5 libopenjp2-7 libossp-uuid16 libpango-1.0-0
libpangocairo-1.0-0 libpangoft2-1.0-0 libperl5.24 libpixman-1-0 libpython3.5-minimal libpython3.5-stdlib libqrencode3
libreadline5 librrd8 libsodium23 libstdc++-6-dev libstemmer0d libthai-data libthai0 libtracker-sparql-2.0-0 libwebpmux3
libx265-165 libxcb-render0 libxcb-shm0 libxext6 libxrender1 lvm2 mdadm monit netatalk nfs-kernel-server php-bcmath php-cgi
php-curl php-fpm php-imagick php-mbstring php-pam php-symfony-class-loader php-symfony-polyfill-apcu php-xml php7.3-bcmath
php7.3-cgi php7.3-cli php7.3-common php7.3-curl php7.3-fpm php7.3-json php7.3-mbstring php7.3-opcache php7.3-readline php7.3-xml
pm-utils proftpd-basic proftpd-mod-vroot python-dnspython python-gdbm python3-dialog python3-distutils python3-lib2to3
python3-lxml python3-natsort python3-netifaces python3-pyudev python3-six python3.5 python3.5-minimal quota quotatool rrdcached
rrdtool samba samba-vfs-modules sdparm smartmontools socat tdb-tools update-inetd uuid xfsprogs xmlstarlet
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
openmediavault-omvextrasorg*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 57135 files and directories currently installed.)
Purging configuration files for openmediavault-omvextrasorg (4.1.16) ...
/var/lib/dpkg/info/openmediavault-omvextrasorg.postrm: 22: .: Can't open /usr/share/openmediavault/scripts/helper-functions
dpkg: error processing package openmediavault-omvextrasorg (--purge):
installed openmediavault-omvextrasorg package post-removal script subprocess returned error exit status 127
Errors were encountered while processing:
openmediavault-omvextrasorg
E: Sub-process /usr/bin/dpkg returned an error code (1)
Alles anzeigen
The next command in line is not working either:
# wget -O - https://github.com/OpenMediaVault-Plugin-Developers/packages/raw/master/install | bash
--2020-04-22 22:08:15-- https://github.com/OpenMediaVault-Plugin-Developers/packages/raw/master/install
Resolving github.com (github.com)... 140.82.113.3
Connecting to github.com (github.com)|140.82.113.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/OpenMediaVault-Plugin-Developers/packages/master/install [following]
--2020-04-22 22:08:16-- https://raw.githubusercontent.com/OpenMediaVault-Plugin-Developers/packages/master/install
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.128.133, 151.101.192.133, 151.101.64.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.128.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1067 (1.0K) [text/plain]
Saving to: ‘STDOUT’
- 100%[==========================================================>] 1.04K --.-KB/s in 0s
2020-04-22 22:08:16 (10.2 MB/s) - written to stdout [1067/1067]
bash: line 7: <: syntax error: operand expected (error token is "<")
bash: line 11: [: -eq: unary operator expected
bash: line 14: [: -eq: unary operator expected
Unsupported version of openmediavault
Alles anzeigen
What am I doing wrong?
ETA: it turns out that there appears to be a typo in post 38. It purges openmediavault and transmissionbt instead of purging openmediavault-transmissionbt. I installed openmediavault back and was able to continue. Now the only error is The property 'numproc' does not exist in the model 'conf.service.nfs'. when logging in to the web interface.
he property 'numproc' does not exist in the model 'conf.service.nfs'. when logging in to the web interface.
This should be fixed by clearing your browser cache.
I fixed it by removing the offending entry from /etc/openmediavault/config.xml. There were a few other minor problems but nothing I could not fix so far - likely caused by the fact that openmediavault package was removed and reinstalled as opposed to upgrade. Right now the only minor problem left is an empty /etc/resolv.conf.
ETA: this seems to have been fixed by removing and then installing openmediavault-omvextrasorg.
Used the upgrade script. Things went fine no errors. I am unable to login on the web GUI. It just flashes back to the login page. Any thoughts?
hmm, root fs has 250G free so thats not it. I'll try clearing cache again.
I tried a different browser even.
I can't find anything in the logs but I may not be looking in the correct place. What is the best log to look at for this error?
Figured it out the /var/lib/php/sessions directory was missing.
I´ve a Question to the post #38 - the apt-get is with the pakets for docker.
Can I use this upgrade also for a raspberry-installation without docker?
Thx
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!