I fixed the issue by using a weakref.py from an ubuntu 17.04
Posts by finas
-
-
sorry for the spam
-
I changed the two lines on weakref.py and it did help for a while. But since OMV 4..0.16 I am having these two issues when running apt update and apt upgrade. Openmediavault package is not properly updated.
Python
Display Moreapt update Get:1 file:/var/cache/openmediavault/archives InRelease Ign:1 file:/var/cache/openmediavault/archives InRelease Get:2 file:/var/cache/openmediavault/archives Release Ign:2 file:/var/cache/openmediavault/archives Release Get:3 file:/var/cache/openmediavault/archives Packages Ign:3 file:/var/cache/openmediavault/archives Packages Get:4 file:/var/cache/openmediavault/archives Translation-en_US Ign:4 file:/var/cache/openmediavault/archives Translation-en_US Get:5 file:/var/cache/openmediavault/archives Translation-en Ign:5 file:/var/cache/openmediavault/archives Translation-en Get:3 file:/var/cache/openmediavault/archives Packages Ign:3 file:/var/cache/openmediavault/archives Packages Get:4 file:/var/cache/openmediavault/archives Translation-en_US Ign:4 file:/var/cache/openmediavault/archives Translation-en_US Get:5 file:/var/cache/openmediavault/archives Translation-en Ign:5 file:/var/cache/openmediavault/archives Translation-en Get:3 file:/var/cache/openmediavault/archives Packages Ign:3 file:/var/cache/openmediavault/archives Packages Get:4 file:/var/cache/openmediavault/archives Translation-en_US Ign:4 file:/var/cache/openmediavault/archives Translation-en_US Get:5 file:/var/cache/openmediavault/archives Translation-en Ign:5 file:/var/cache/openmediavault/archives Translation-en Get:3 file:/var/cache/openmediavault/archives Packages Ign:3 file:/var/cache/openmediavault/archives Packages Get:4 file:/var/cache/openmediavault/archives Translation-en_US Ign:4 file:/var/cache/openmediavault/archives Translation-en_US Get:5 file:/var/cache/openmediavault/archives Translation-en Ign:5 file:/var/cache/openmediavault/archives Translation-en Get:3 file:/var/cache/openmediavault/archives Packages Ign:3 file:/var/cache/openmediavault/archives Packages Get:4 file:/var/cache/openmediavault/archives Translation-en_US Ign:4 file:/var/cache/openmediavault/archives Translation-en_US Get:5 file:/var/cache/openmediavault/archives Translation-en Ign:5 file:/var/cache/openmediavault/archives Translation-en Get:3 file:/var/cache/openmediavault/archives Packages Get:4 file:/var/cache/openmediavault/archives Translation-en_US Ign:4 file:/var/cache/openmediavault/archives Translation-en_US Get:5 file:/var/cache/openmediavault/archives Translation-en Ign:5 file:/var/cache/openmediavault/archives Translation-en Ign:6 http://ftp.pt.debian.org/debian stretch InRelease Get:7 http://ftp.pt.debian.org/debian stretch-updates InRelease [91.0 kB] Hit:8 http://ftp.pt.debian.org/debian stretch Release Hit:9 http://packages.openmediavault.org/public arrakis InRelease Get:10 http://security.debian.org stretch/updates InRelease [63.0 kB] Hit:11 http://packages.openmediavault.org/public arrakis-proposed InRelease Hit:15 https://openmediavault.github.io/packages arrakis InRelease Ign:16 https://dl.bintray.com/openmediavault-plugin-developers/arrakis stretch InRelease Get:12 http://cdn-fastly.deb.debian.org/debian stretch-backports InRelease [91.8 kB] Get:14 http://cdn-fastly.deb.debian.org/debian stretch-backports InRelease [91.8 kB] Ign:17 https://dl.bintray.com/openmediavault-plugin-developers/arrakis-testing stretch InRelease Hit:18 https://dl.bintray.com/openmediavault-plugin-developers/arrakis stretch Release Get:19 http://cdn-fastly.deb.debian.org/debian stretch-backports/main amd64 Packages.diff/Index [27.8 kB] Get:20 http://cdn-fastly.deb.debian.org/debian stretch-backports/main amd64 Packages 2018-02-13-1426.03.pdiff [486 B] Hit:21 https://dl.bintray.com/openmediavault-plugin-developers/arrakis-testing stretch Release Get:20 http://cdn-fastly.deb.debian.org/debian stretch-backports/main amd64 Packages 2018-02-13-1426.03.pdiff [486 B] Get:23 http://cdn-fastly.deb.debian.org/debian stretch-backports/main amd64 Packages.diff/Index [27.8 kB] Get:24 http://cdn-fastly.deb.debian.org/debian stretch-backports/main amd64 Packages 2018-02-13-1426.03.pdiff [486 B] Get:24 http://cdn-fastly.deb.debian.org/debian stretch-backports/main amd64 Packages 2018-02-13-1426.03.pdiff [486 B] Fetched 302 kB in 0s (320 kB/s) Traceback (most recent call last): File "/usr/sbin/omv-mkaptidx", line 35, in <module> import apt File "/usr/lib/python3/dist-packages/apt/__init__.py", line 26, in <module> from apt.package import Package File "/usr/lib/python3/dist-packages/apt/package.py", line 28, in <module> import socket File "/usr/lib/python3.5/socket.py", line 53, in <module> from enum import IntEnum File "/usr/lib/python3.5/enum.py", line 3, in <module> from types import MappingProxyType, DynamicClassAttribute File "/usr/lib/python3.5/types.py", line 166, in <module> import functools as _functools File "/usr/lib/python3.5/functools.py", line 23, in <module> from weakref import WeakKeyDictionary File "/usr/lib/python3.5/weakref.py", line 118 _atomic_removal(d, wr.key) ^ IndentationError: unindent does not match any outer indentation level Reading package lists... Done Building dependency tree Reading state information... Done All packages are up to date. root@sirius:~# apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up openmediavault (4.0.19-1) ... Updating configuration database ... Traceback (most recent call last): File "/usr/sbin/omv-confdbadm", line 24, in <module> import openmediavault.confdbadm File "/usr/lib/python3/dist-packages/openmediavault/confdbadm.py", line 25, in <module> import argparse File "/usr/lib/python3.5/argparse.py", line 87, in <module> import copy as _copy File "/usr/lib/python3.5/copy.py", line 51, in <module> import types File "/usr/lib/python3.5/types.py", line 166, in <module> import functools as _functools File "/usr/lib/python3.5/functools.py", line 23, in <module> from weakref import WeakKeyDictionary File "/usr/lib/python3.5/weakref.py", line 118 _atomic_removal(d, wr.key) ^ IndentationError: unindent does not match any outer indentation level dpkg: error processing package openmediavault (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: openmediavault Traceback (most recent call last): File "/usr/sbin/omv-mkaptidx", line 35, in <module> import apt File "/usr/lib/python3/dist-packages/apt/__init__.py", line 26, in <module> from apt.package import Package File "/usr/lib/python3/dist-packages/apt/package.py", line 28, in <module> import socket File "/usr/lib/python3.5/socket.py", line 53, in <module> from enum import IntEnum File "/usr/lib/python3.5/enum.py", line 3, in <module> from types import MappingProxyType, DynamicClassAttribute File "/usr/lib/python3.5/types.py", line 166, in <module> import functools as _functools File "/usr/lib/python3.5/functools.py", line 23, in <module> from weakref import WeakKeyDictionary File "/usr/lib/python3.5/weakref.py", line 118 _atomic_removal(d, wr.key) ^ IndentationError: unindent does not match any outer indentation level E: Sub-process /usr/bin/dpkg returned an error code (1)
-
I changed the two lines on weakref.py and it did help for a while. But since OMV 4..0.16 I am having these two issues when running apt update and apt upgrade. Openmediavault package is not properly updated.
Python
Display Moreapt update Get:1 file:/var/cache/openmediavault/archives InRelease Ign:1 file:/var/cache/openmediavault/archives InRelease Get:2 file:/var/cache/openmediavault/archives Release Ign:2 file:/var/cache/openmediavault/archives Release Get:3 file:/var/cache/openmediavault/archives Packages Ign:3 file:/var/cache/openmediavault/archives Packages Get:4 file:/var/cache/openmediavault/archives Translation-en_US Ign:4 file:/var/cache/openmediavault/archives Translation-en_US Get:5 file:/var/cache/openmediavault/archives Translation-en Ign:5 file:/var/cache/openmediavault/archives Translation-en Get:3 file:/var/cache/openmediavault/archives Packages Ign:3 file:/var/cache/openmediavault/archives Packages Get:4 file:/var/cache/openmediavault/archives Translation-en_US Ign:4 file:/var/cache/openmediavault/archives Translation-en_US Get:5 file:/var/cache/openmediavault/archives Translation-en Ign:5 file:/var/cache/openmediavault/archives Translation-en Get:3 file:/var/cache/openmediavault/archives Packages Ign:3 file:/var/cache/openmediavault/archives Packages Get:4 file:/var/cache/openmediavault/archives Translation-en_US Ign:4 file:/var/cache/openmediavault/archives Translation-en_US Get:5 file:/var/cache/openmediavault/archives Translation-en Ign:5 file:/var/cache/openmediavault/archives Translation-en Get:3 file:/var/cache/openmediavault/archives Packages Ign:3 file:/var/cache/openmediavault/archives Packages Get:4 file:/var/cache/openmediavault/archives Translation-en_US Ign:4 file:/var/cache/openmediavault/archives Translation-en_US Get:5 file:/var/cache/openmediavault/archives Translation-en Ign:5 file:/var/cache/openmediavault/archives Translation-en Get:3 file:/var/cache/openmediavault/archives Packages Ign:3 file:/var/cache/openmediavault/archives Packages Get:4 file:/var/cache/openmediavault/archives Translation-en_US Ign:4 file:/var/cache/openmediavault/archives Translation-en_US Get:5 file:/var/cache/openmediavault/archives Translation-en Ign:5 file:/var/cache/openmediavault/archives Translation-en Get:3 file:/var/cache/openmediavault/archives Packages Get:4 file:/var/cache/openmediavault/archives Translation-en_US Ign:4 file:/var/cache/openmediavault/archives Translation-en_US Get:5 file:/var/cache/openmediavault/archives Translation-en Ign:5 file:/var/cache/openmediavault/archives Translation-en Ign:6 http://ftp.pt.debian.org/debian stretch InRelease Get:7 http://ftp.pt.debian.org/debian stretch-updates InRelease [91.0 kB] Hit:8 http://ftp.pt.debian.org/debian stretch Release Hit:9 http://packages.openmediavault.org/public arrakis InRelease Get:10 http://security.debian.org stretch/updates InRelease [63.0 kB] Hit:11 http://packages.openmediavault.org/public arrakis-proposed InRelease Hit:15 https://openmediavault.github.io/packages arrakis InRelease Ign:16 https://dl.bintray.com/openmediavault-plugin-developers/arrakis stretch InRelease Get:12 http://cdn-fastly.deb.debian.org/debian stretch-backports InRelease [91.8 kB] Get:14 http://cdn-fastly.deb.debian.org/debian stretch-backports InRelease [91.8 kB] Ign:17 https://dl.bintray.com/openmediavault-plugin-developers/arrakis-testing stretch InRelease Hit:18 https://dl.bintray.com/openmediavault-plugin-developers/arrakis stretch Release Get:19 http://cdn-fastly.deb.debian.org/debian stretch-backports/main amd64 Packages.diff/Index [27.8 kB] Get:20 http://cdn-fastly.deb.debian.org/debian stretch-backports/main amd64 Packages 2018-02-13-1426.03.pdiff [486 B] Hit:21 https://dl.bintray.com/openmediavault-plugin-developers/arrakis-testing stretch Release Get:20 http://cdn-fastly.deb.debian.org/debian stretch-backports/main amd64 Packages 2018-02-13-1426.03.pdiff [486 B] Get:23 http://cdn-fastly.deb.debian.org/debian stretch-backports/main amd64 Packages.diff/Index [27.8 kB] Get:24 http://cdn-fastly.deb.debian.org/debian stretch-backports/main amd64 Packages 2018-02-13-1426.03.pdiff [486 B] Get:24 http://cdn-fastly.deb.debian.org/debian stretch-backports/main amd64 Packages 2018-02-13-1426.03.pdiff [486 B] Fetched 302 kB in 0s (320 kB/s) Traceback (most recent call last): File "/usr/sbin/omv-mkaptidx", line 35, in <module> import apt File "/usr/lib/python3/dist-packages/apt/__init__.py", line 26, in <module> from apt.package import Package File "/usr/lib/python3/dist-packages/apt/package.py", line 28, in <module> import socket File "/usr/lib/python3.5/socket.py", line 53, in <module> from enum import IntEnum File "/usr/lib/python3.5/enum.py", line 3, in <module> from types import MappingProxyType, DynamicClassAttribute File "/usr/lib/python3.5/types.py", line 166, in <module> import functools as _functools File "/usr/lib/python3.5/functools.py", line 23, in <module> from weakref import WeakKeyDictionary File "/usr/lib/python3.5/weakref.py", line 118 _atomic_removal(d, wr.key) ^ IndentationError: unindent does not match any outer indentation level Reading package lists... Done Building dependency tree Reading state information... Done All packages are up to date. root@sirius:~# apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up openmediavault (4.0.19-1) ... Updating configuration database ... Traceback (most recent call last): File "/usr/sbin/omv-confdbadm", line 24, in <module> import openmediavault.confdbadm File "/usr/lib/python3/dist-packages/openmediavault/confdbadm.py", line 25, in <module> import argparse File "/usr/lib/python3.5/argparse.py", line 87, in <module> import copy as _copy File "/usr/lib/python3.5/copy.py", line 51, in <module> import types File "/usr/lib/python3.5/types.py", line 166, in <module> import functools as _functools File "/usr/lib/python3.5/functools.py", line 23, in <module> from weakref import WeakKeyDictionary File "/usr/lib/python3.5/weakref.py", line 118 _atomic_removal(d, wr.key) ^ IndentationError: unindent does not match any outer indentation level dpkg: error processing package openmediavault (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: openmediavault Traceback (most recent call last): File "/usr/sbin/omv-mkaptidx", line 35, in <module> import apt File "/usr/lib/python3/dist-packages/apt/__init__.py", line 26, in <module> from apt.package import Package File "/usr/lib/python3/dist-packages/apt/package.py", line 28, in <module> import socket File "/usr/lib/python3.5/socket.py", line 53, in <module> from enum import IntEnum File "/usr/lib/python3.5/enum.py", line 3, in <module> from types import MappingProxyType, DynamicClassAttribute File "/usr/lib/python3.5/types.py", line 166, in <module> import functools as _functools File "/usr/lib/python3.5/functools.py", line 23, in <module> from weakref import WeakKeyDictionary File "/usr/lib/python3.5/weakref.py", line 118 _atomic_removal(d, wr.key) ^ IndentationError: unindent does not match any outer indentation level E: Sub-process /usr/bin/dpkg returned an error code (1)
-
and yes, file object.inc does not exist.
-
engined cannot start, and when started in foreground + debug mode this is what I get:
PHP Warning: require_once(openmediavault/object.inc): failed to open stream: No such file or directory in /usr/share/openmediavault/engined/rpc/omvextrasorg.inc on line 22
PHP Fatal error: require_once(): Failed opening required 'openmediavault/object.inc' (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/openmediavault/engined/rpc/omvextrasorg.inc on line 22OMV 3 updated to latest version with apt-get update + apt-get upgrade.
-
how do I migrate the configurations from 0.5x to 1.0.x ?
-
I'm lost in an apply configurations loop with OMV 0.5.60
I get the dreaded apply configurations button on OMV web interface, I click on it, OVM web interface throws out and error and the machine loses the ip address and routes ( the only interface that appears with ifconfig is lo ). I do an /etc/init.d/networking restart and bond0 is up and running again, routes are up and running again, everything just like I have configured via OMV web interface. I go to the OMV web interface again, refresh the page, and the same apply configurartions button appears, and If I press it everything starts over.
rebooting doesn't solve anything.
Reinstalling or upgrading to 1.0 is not an option right now because I have a huge number of rsync configurations that would take ages to do againHow do I get rid of this "apply configurations" thing?
-
Hi Marcel,
I can confirm that this update fixed my issue. dnsmasq is now working
thanks!
-
installing virtualbox-4.2 automatically removes 4.1
4.2 would be of great help to me, as I'm using kernel 3.6.1 and virtualbox 4.1 kernel driver doesn't compile under kernel 3.6.1 ( 4.2 compiles fine, but then I can't use the omv-virtualbox plugin )
-
-
hi Marcel,
this is the exact error:
Failed to execute command 'sudo omv-mkconf dnsmasq 2>&1':
Error #4000:
exception 'OMVException' with message 'Failed to execute command 'sudo omv-mkconf dnsmasq 2>&1': ' in /var/www/openmediavault/module/dnsmasq.inc:77
Stack trace:
#0 [internal function]: DNSMasqModule->updateService(Array, Array)
#1 /usr/share/php/openmediavault/notify.inc(123): call_user_func_array(Array, Array)
#2 /var/www/openmediavault/rpc/dnsmasq.inc(252): OMVNotifyDispatcher->notify(8, 'org.openmediava...', Array, Array)
#3 [internal function]: DNSMasqRpc->set(Array)
#4 /usr/share/php/openmediavault/rpc.inc(265): call_user_func_array(Array, Array)
#5 /usr/share/php/openmediavault/rpc.inc(98): OMVRpc::exec('dnsmasq', 'set', Array)
#6 /var/www/openmediavault/rpc.php(44): OMVJsonRpcServer->handle()
#7 {main} -
- upgraded OMV-Plugins to version 4.
- upgraded dnsmasq pluging to version 4I switched the order.
-
I too have the dnsmasq plugin in a broken state.
- installed OMV 3.0
- installed OMV-Plugins 3
- installed dnsmasq plugin ( version 3 )
- upgraded later on to OMV 4.0
- upgraded dnsmasq pluging to version 4
- upgraded OMV-Plugins to version 4.error when changing settings and applying is the one that has been reported here ( 2>&1 ( on line 77 or something.
I do rely on this plugin and I am desperate to try to fix this.
Marcel, I can give you ssh access to the OMV box if you wish to see what's going on. please drop me a message.
thanks!
-
Hi,
the drive is bad. That error means that the hdd wasn't able to seek to a determined sector.
You can try to run hdat ( http://www.hdat2.com/ ) on it ( choose the read/write/verify ) mode and see if it reports errors.
-
In it's current form, OMV does not support EXT4 volumes greater than 16TB. The reason is that to create EXT4 volumes bigger than 16TB version 1.42 or higher of the e2fsprogs package is needed, but this is not available on squeeze, the Debian version upon OMV is based on.
The newer e2fsprogs is not available on the Debian backports repository, and so, the solution is to install by hand some packages from Ubuntu 12.04.
The folowing steps were handed to me by bezeek, from OMV irc channel. A very helpfull person that saved my day. Thanks again!!
login as root and then do the following:
get the needed packages:
Codewget http://mirror.pnl.gov/ubuntu//pool/main/e/eglibc/libc-bin_2.15-0ubuntu10_amd64.deb wget http://mirror.pnl.gov/ubuntu//pool/main/e/eglibc/libc6_2.15-0ubuntu10_amd64.deb wget http://mirror.pnl.gov/ubuntu//pool/main/e/eglibc/multiarch-support_2.15-0ubuntu10_amd64.deb wget http://mirror.pnl.gov/ubuntu//pool/main/e/e2fsprogs/libcomerr2_1.42-1ubuntu2_amd64.deb wget http://mirror.pnl.gov/ubuntu//pool/main/e/e2fsprogs/libcomerr2_1.42-1ubuntu2_amd64.deb wget http://mirror.pnl.gov/ubuntu//pool/main/e/e2fsprogs/e2fslibs_1.42-1ubuntu2_amd64.deb wget http://mirror.pnl.gov/ubuntu//pool/main/e/e2fsprogs/e2fsprogs_1.42-1ubuntu2_amd64.deb wget http://mirror.pnl.gov/ubuntu//pool/main/l/langpack-locales/locales_2.13+git20120306-3_all.deb
Install the packages:
Codeapt-get remove locales dpkg -i libc-bin_2.15-0ubuntu10_amd64.deb dpkg -i libc6_2.15-0ubuntu10_amd64.deb dpkg -i multiarch-support_2.15-0ubuntu10_amd64.deb dpkg -i multiarch-support_2.15-0ubuntu10_amd64.deb dpkg -i e2fslibs_1.42-1ubuntu2_amd64.deb dpkg -i e2fsprogs_1.42-1ubuntu2_amd64.deb dpkg -i locales_2.13+git20120306-3_all.deb locale-gen
Done. to format the volume with EXT4 do:
If you want to regain the reserved space for root user ( Default 5% ) execute the following command:
This will set the reserved space to 0%.If for some reason you need a newer kernel ( I needed it to be able to use my 9265 MegaRaid card ) you can install kernel 3.2 from the Debian backport repos:
edit file /etc/apt/sources.list and add the backport repo:Reload the package information and install the 3.2 kernel. Then reboot.
that's it. Hope it is helpfull.