OMV 5.0 - finally out! :-)
-
- OMV 5.x
- Mr Smile
- Geschlossen
-
-
This does not apply to OMV5 because this package is not installed and OMV uses systemd-networkd and systemd-resolved which is responsible to populate this file.
-
@ryecoaaron
I did the purge for the plugins but I am still getting the error immedietely after signing in:OMV\Exception: Failed to open include file 'js/omv/PluginManager.js'. in /usr/share/php/openmediavault/controlpanel/controlpanelabstract.inc:42
Is there a way to manually uninstall any old plugins that may be causing this?
****fixed it
Figured it out = it was the shell in a box plugin
-
You can use OMV5.
-
To summarize the following procedure is recommended:
1) Uninstall all plug-ins including omv-extras via the web interface
2) Make backup of resolve.conf OR remove resolve.conf and add an DNS server following ness1602, post 35, after upgrade with the following commands
3) Perform the dist-upgrade following ryecoaaron:On a test OMV 4.x system with the flashmemory plugin installed, this is all I did to upgrade it to OMV 5.x (as root):
sed -i "s/stretch/buster/g" /etc/apt/sources.list
sed -i "s/stretch/buster/g" /etc/apt/sources.list.d/*
sed -i "s/arrakis/usul/g" /etc/apt/sources.list.d/*
sed -i "/[Dd]ocker/d" /etc/apt/sources.list.d/omv-extras-org.list
apt-get update
apt-get dist-upgrade
reboot
apt-get purge openmediavault-omvextrasorg
wget -O - https://github.com/OpenMediaVault-Plugin-Developers/packages/raw/master/install | bash
apt-get update
apt-get dist-upgradeClear your browser cache after upgrading!
Done.
Did I forget something? I am using the omv-extras sftp plugin. Should I run
prior dist-upgrade?
-
Uninstall all plug-ins including omv-extras via the web interface
You need to remove all OMV 4.x plugins that don't have an OMV 5.x equivalent not all omv-extras plugins.
Make backup of resolve.conf OR remove resolve.conf and add an DNS server following ness1602, post 35, after upgrade with the following commands
I've never had to do this. I think only people who still have the resolvconf package installed need to do this after the upgrade.
Did I forget something? I am using the omv-extras sftp plugin. Should I run
No. I wouldn't remove the plugin at all.
-
Thanks for the response. Shall I upgrade the omv-extras before dist-upgrade by uploading github.com/OpenMediaVault-Plug…extrasorg_latest_all5.deb through the web interface? Does this also upgrades the installed omv-extra plugins i.e. sftp? Or shall I do the upgrade of with the *.dep above after dist-upgrade though the web interface?
Some people before in this thread reported that they removed all plugins prior upgrade. I am confused...
-
Shall I upgrade the omv-extras before dist-upgrade by uploading github.com/OpenMediaVault-Plug…extrasorg_latest_all5.deb through the web interface?
Nope. The sed statement should change the omv-extras repo so that the dist-upgrade upgrades it.
Does this also upgrades the installed omv-extra plugins i.e. sftp?
The same sed statement should do the same for the omv-extras plugins. Sometimes, apt tries to upgrade those before OMV itself is upgrade which can cause an issue.
Or shall I do the upgrade of with the *.dep above after dist-upgrade though the web interface?
Upgrading OMV from 4.x to 5.x will never involve the web interface.
Some people before in this thread reported that they removed all plugins prior upgrade. I am confused...
Just because that is what people did doesn't mean it is correct. Obviously removing them makes it so they won't fail to upgrade but it creates a lot more work setting them back up. If they fail to upgrade, apt-get -f install usually will fix the issue. If one plugin is being stubborn, remove just it not all.
-
-
After full install
Did you have the resolvconf package installed?
-
Did you have the resolvconf package installed?
I didn't install it myself.
-
This is the full version of how I go everything to work and what order.
Code
Alles anzeigensed -i "s/stretch/buster/g" /etc/apt/sources.list sed -i "s/stretch/buster/g" /etc/apt/sources.list.d/* sed -i "s/arrakis/usul/g" /etc/apt/sources.list.d/* sed -i "/[Dd]ocker/d" /etc/apt/sources.list.d/omv-extras-org.list apt update && apt dist-upgrade omv-confdbadm populate reboot apt-get purge openmediavault-omvextrasorg wget -O - https://github.com/OpenMediaVault-Plugin-Developers/packages/raw/master/install | bash apt update && apt dist-upgrade rm /etc/resolv.conf echo "nameserver 9.9.9.9" >> /etc/resolv.conf reboot
Clear cache.
It only works in this order.
I am still experimenting with plugins. I do get some errors with OMV5 approved plugins. I need to experiment more and see what is happening. -
So plugin wise, autoshutdown nerfs the system.
There is at least one more plugin causing a problem.
Code
Alles anzeigenError #0: OMV\Exception: Failed to open include file 'js/omv/PluginManager.js'. in /usr/share/php/openmediavault/controlpanel/controlpanelabstract.inc:42 Stack trace: #0 /usr/share/php/openmediavault/controlpanel/controlpanelabstract.inc(70): OMV\ControlPanel\ControlPanelAbstract->scanFiles('js/omv/PluginMa...', Array) #1 /usr/share/php/openmediavault/controlpanel/controlpanelabstract.inc(87): OMV\ControlPanel\ControlPanelAbstract->scanFiles('js/omv/PluginMa...', Array) #2 /usr/share/php/openmediavault/controlpanel/controlpanelabstract.inc(90): OMV\ControlPanel\ControlPanelAbstract->scanDir('js/omv/module/a...', Array, true) #3 /usr/share/php/openmediavault/controlpanel/controlpanelabstract.inc(90): OMV\ControlPanel\ControlPanelAbstract->scanDir('js/omv/module/a...', Array, true) #4 /usr/share/php/openmediavault/controlpanel/controlpanelabstract.inc(90): OMV\ControlPanel\ControlPanelAbstract->scanDir('js/omv/module/a...', Array, true) #5 /usr/share/php/openmediavault/controlpanel/administration.inc(54): OMV\ControlPanel\ControlPanelAbstract->scanDir('js/omv/module/a...', Array, true) #6 /usr/share/php/openmediavault/controlpanel/controlpanelabstract.inc(206): OMV\ControlPanel\Administration->getJavascriptIncludes() #7 /var/www/openmediavault/index.php(41): OMV\ControlPanel\ControlPanelAbstract->render() #8 {main}
-
I didn't install it myself.
What is the output of: dpkg -l | grep resolv
It only works in this order.
I have never used omv-confdbadm populate on an upgrade. If systemd-resolved is running and resolvconf is not installed, you shouldn't need to change /etc/resolv.conf.
here is at least one more plugin causing a problem.
A plugin manager error is either a cache issue or an OMV 4.x plugin is still installed. What is the output of: dpkg -l | grep openm
-
1. Clean install OMV4 in virtual machine.
2. AfterError for autoshutdown.
3. At doing wget, if I check I have a resolve.conf file, which has 192.168.8.1, so then I remove it. And add in 9.9.9.9.
4. When I finish I go to the web interface, I log in and get this.
Code
Alles anzeigenError #0: OMV\Exception: Failed to open include file 'js/omv/PluginManager.js'. in /usr/share/php/openmediavault/controlpanel/controlpanelabstract.inc:42 Stack trace: #0 /usr/share/php/openmediavault/controlpanel/controlpanelabstract.inc(70): OMV\ControlPanel\ControlPanelAbstract->scanFiles('js/omv/PluginMa...', Array) #1 /usr/share/php/openmediavault/controlpanel/controlpanelabstract.inc(87): OMV\ControlPanel\ControlPanelAbstract->scanFiles('js/omv/PluginMa...', Array) #2 /usr/share/php/openmediavault/controlpanel/controlpanelabstract.inc(90): OMV\ControlPanel\ControlPanelAbstract->scanDir('js/omv/module/a...', Array, true) #3 /usr/share/php/openmediavault/controlpanel/controlpanelabstract.inc(90): OMV\ControlPanel\ControlPanelAbstract->scanDir('js/omv/module/a...', Array, true) #4 /usr/share/php/openmediavault/controlpanel/controlpanelabstract.inc(90): OMV\ControlPanel\ControlPanelAbstract->scanDir('js/omv/module/a...', Array, true) #5 /usr/share/php/openmediavault/controlpanel/administration.inc(54): OMV\ControlPanel\ControlPanelAbstract->scanDir('js/omv/module/a...', Array, true) #6 /usr/share/php/openmediavault/controlpanel/controlpanelabstract.inc(206): OMV\ControlPanel\Administration->getJavascriptIncludes() #7 /var/www/openmediavault/index.php(41): OMV\ControlPanel\ControlPanelAbstract->render() #8 {main}
dpkg -l | grep resolv
Coderoot@omv1:~# dpkg -l | grep resolv ii libc-ares2:amd64 1.14.0-1 amd64 asynchronous name resolver ii libgeoip1:amd64 1.6.12-1 amd64 non-DNS IP-to-country resolver library ii resolvconf 1.79 all name server information handler root@omv1:~#
dpkg -l | grep openm
Code
Alles anzeigenroot@omv1:~# dpkg -l | grep resolv ii libc-ares2:amd64 1.14.0-1 amd64 asynchronous name resolver ii libgeoip1:amd64 1.6.12-1 amd64 non-DNS IP-to-country resolver library ii resolvconf 1.79 all name server information handler root@omv1:~# dpkg -l | grep openm ii omvextras-unionbackend 5.0.2 all union filesystems backend plugin for openmediavault ii openmediavault 5.3.5-1 all openmediavault - The open network attached storage solution ii openmediavault-anacron 5.0.1 all anacron plugin for OpenMediaVault. ii openmediavault-apttool 3.6 all apt tool plugin for OpenMediaVault. iF openmediavault-autoshutdown 5.0.3 all OpenMediaVault AutoShutdown Plugin ii openmediavault-backup 5.1 all backup plugin for OpenMediaVault. ii openmediavault-borgbackup 5.0.5 all borgbackup plugin for OpenMediaVault. ii openmediavault-downloader 5.0 all OpenMediaVault downloader plugin ii openmediavault-fail2ban 5.0.3 all OpenMediaVault Fail2ban plugin ii openmediavault-flashmemory 5.0.1 all folder2ram plugin for OpenMediaVault ii openmediavault-keyring 1.0 all GnuPG archive keys of the OpenMediaVault archive ii openmediavault-locate 3.5 all locate plugin for OpenMediaVault. ii openmediavault-omvextrasorg 5.2.5 all OMV-Extras.org Package Repositories for OpenMediaVault ii openmediavault-openvpn 4.0.4 all OpenVPN plugin for OpenMediaVault. ii openmediavault-remotedesktop 4.0.1 all Remote desktop plugin for OpenMediaVault. ii openmediavault-remotemount 5.0.3 all Remote mount plugin for OpenMediaVault. ii openmediavault-resetperms 5.0 all Reset Permissions ii openmediavault-rsnapshot 5.0.3 all OpenMediaVault rsnapshot backup plugin. ii openmediavault-sftp 5.0.3 all sftp server ii openmediavault-symlinks 3.1.5 all OpenMediaVault symlinks plugin ii openmediavault-unionfilesystems 5.1 all Union filesystems plugin for OpenMediaVault. ii openmediavault-wakealarm 5.0 all wakealarm plugin for OpenMediaVault. ii openmediavault-wol 3.4.2 all OpenMediaVault WOL plugin
These are most of the plugins that should be ported over and work, but the system seems to have a plugin error.
I can get this to work with just flash plugin and docker plugin installed.
-
Error for autoshutdown.
The salt run for autoshutdown must be failing. omv-salt deploy run autoshutdown would tell me more.
ii resolvconf
This is why you are having problems after upgrading with dns and /etc/resolv.conf. I updated my post to remove it at the same time omvextras is removed.
ii openmediavault-openvpn 4.0.4 all OpenVPN plugin for OpenMediaVault.
ii openmediavault-remotedesktop 4.0.1 all Remote desktop plugin for OpenMediaVault.These two plugins should've been removed before starting the upgrade since they have no 5.x version. I add the step to remove the 4.x plugins that aren't in 5.x.
-
Here you go:
autoshutdown
Code
Alles anzeigenData failed to compile: ---------- Rendering SLS 'base:omv.deploy.autoshutdown.default' failed: Jinja error: Th e property 'uphours-begin' does not exist in the model 'conf.service.autoshutdow n'. Traceback (most recent call last): File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 394, in re nder_jinja_tmpl output = template.render(**decoded_context) File "/usr/lib/python3/dist-packages/jinja2/asyncsupport.py", line 76, in rend er return original_render(self, *args, **kwargs) File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1008, in ren der return self.environment.handle_exception(exc_info, True) File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 780, in hand le_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 709, in execute self._response = self._elements_to_object(elements) File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 470, 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 20 7, in set_dict self.set(key, value, validate) File "/usr/lib/python3/dist-packages/openmediavault/config/object.py", line 18 1, in set self.assert_exists(name) File "/usr/lib/python3/dist-packages/openmediavault/config/object.py", line 15 3, in assert_exists % (name, self.model.id) openmediavault.exceptions.AssertException: The property 'uphours-begin' does not exist in the model 'conf.service.autoshutdown'. ; 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.service.autoshutdown') %} <======= =============== configure_autoshutdown: file.managed: - name: "/etc/autoshutdown.conf" - source: [...] ---
-
-
-
When I manually remove autoshutdown, openvpn and remotedesktop and I reboot after purging resolve, it works.
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!