Followed instructions posted by Zoki in post #2 of this thread. Coming from OMV6. No issues at all.
System is N95 CPU. Had a clean install of OMV6 from about a year ago.
Thanks!!
Followed instructions posted by Zoki in post #2 of this thread. Coming from OMV6. No issues at all.
System is N95 CPU. Had a clean install of OMV6 from about a year ago.
Thanks!!
Back again running 6.6.0-2.
"omv-sfsnapadm: Cleaning up snapshots from shared folders has been disabled."
You can try it with Autocompose https://wiki.omv-extras.org/do…aml_file_with_autocompose
That worked! I had to do a bit of touch up on the file, but that worked just fine. Thanks!!
I had been using Portainer in the past, with 4 containers in it. Using the directions in this thread, I now have Portainer now up and running in the new Compose. However, I did not use "Stacks" in the past for my other containers.. Everything was manually configured. How do I migrate my containers without "Stacks"? Is there a place that I can copy the yaml file data from?
But did you ever had it mounted? I mean, did you ever had a 3rd drive attached and then removed it?
Yes, I am pretty sure I did, and I bet that is the cause. I currently have 3 drives listed as sda, sdb, and sdd.
I ended up commenting out the 3 lines in that file, and the errors went away. I am monitoring to see if that causes any issues (e.g. with SMART or other disk related stuff). So far, so good. I feel better now knowing this file is not in OMV6 so hopefully no longer needed. Thanks again.
Soma or anyone else who might know, any idea why I am getting there errors in my syslog? I do not even have a device sdc mounted.
Quotesystemd-udevd[12004]: sdc: /etc/udev/rules.d/99-openmediavault-scheduler.rules:24 Failed to write ATTR{/sys/devices/pci0000:00/0000:00:13.2/usb2/2-2/2-2:1.0/host7/target7:0:0/7:0:0:0/block/sdc/queue/scheduler}, ignoring: Invalid argument
Error repeats quite often.
Thank you SO much Soma ! I would have never been able to solve that on my own. I had to do the changes you recommened to the following files:
/etc/apt/sources.list
/etc/apt/sources.list.d/openmediavault-os-security.list
Your contributions to this forum are exceptional.
Finally upgraded from 5 to 6. Had 2 issues, but appears to have been successful. Am I OK to ignore the errors listed?
On first attempt to upgrade using script, I got the following error and upgrade stopped.
E: The repository 'http://deb.debian.org/debian-security bullseye/updates Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
I still had a working 5.x system though. I then ran:
sudo wget -O - https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/fix5to6upgrade | sudo bash
This ran for about 20 minutes, but also ended with the following errors (warnings?):
QuoteDisplay MoreNAS.local:
----------
ID: remove_apt_list_omvextras
Function: file.absent
Name: /etc/apt/sources.list.d/omvextras.list
Result: True
Comment: Removed file /etc/apt/sources.list.d/omvextras.list
Started: 11:33:02.033217
Duration: 25.821 ms
Changes:
----------
removed:
/etc/apt/sources.list.d/omvextras.list
----------
ID: omvextrasbaserepo
Function: pkgrepo.managed
Name: deb https://openmediavault-plugin-…github.io/packages/debian shaitan main
Result: False
Comment: Failed to configure repo 'deb https://openmediavault-plugin-…github.io/packages/debian shaitan main': E: The repository 'http://security.debian.org/debian-security bullseye/updates Release' does not have a Release file.
E: The repository 'https://deb.debian.org/debian-security bullseye/updates Release' does not have a Release file.
Started: 11:33:02.136064
Duration: 50786.185 ms
Changes:
----------
ID: deb https://openmediavault-plugin-…github.io/packages/debian shaitan-testing main
Function: pkgrepo.absent
Result: True
Comment: Package repo deb https://openmediavault-plugin-…github.io/packages/debian shaitan-testing main is absent
Started: 11:33:52.923881
Duration: 475.772 ms
Changes:
----------
ID: deb [arch=amd64] https://download.docker.com/linux/debian bullseye stable
Function: pkgrepo.managed
Result: False
Comment: Failed to configure repo 'deb [arch=amd64] https://download.docker.com/linux/debian bullseye stable': E: The repository 'http://security.debian.org/debian-security bullseye/updates Release' does not have a Release file.
E: The repository 'https://deb.debian.org/debian-security bullseye/updates Release' does not have a Release file.
Started: 11:33:53.400319
Duration: 51024.633 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 updated
Started: 11:34:44.426603
Duration: 448.68 ms
Changes:
(I removed this)
----------
ID: refresh_database_apt
Function: module.run
Result: False
Comment: An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/state.py", line 2171, in call
ret = self.states[cdata["full"]](
File "/usr/lib/python3/dist-packages/salt/loader.py", line 1235, in __call__
return self.loader.run(run_func, *args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/loader.py", line 2268, in run
return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/loader.py", line 2283, in _run_as
return _func_or_method(*args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/loader.py", line 2316, in wrapper
return f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/utils/decorators/__init__.py", line 746, in _decorate
return self._call_function(kwargs)
File "/usr/lib/python3/dist-packages/salt/utils/decorators/__init__.py", line 377, in _call_function
six.reraise(*sys.exc_info())
File "/usr/lib/python3/dist-packages/salt/ext/six.py", line 693, in reraise
raise value
File "/usr/lib/python3/dist-packages/salt/utils/decorators/__init__.py", line 360, in _call_function
return self._function(*args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/states/module.py", line 427, in run
func_ret = _call_function(
File "/usr/lib/python3/dist-packages/salt/states/module.py", line 473, in _call_function
mret = salt.utils.functools.call_function(__salt__[name], *func_args, **func_kwargs)
File "/usr/lib/python3/dist-packages/salt/utils/functools.py", line 159, in call_function
return salt_function(*function_args, **function_kwargs)
File "/usr/lib/python3/dist-packages/salt/loader.py", line 1235, in __call__
return self.loader.run(run_func, *args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/loader.py", line 2268, in run
return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/loader.py", line 2283, in _run_as
return _func_or_method(*args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/modules/aptpkg.py", line 406, in refresh_db
raise CommandExecutionError(comment)
salt.exceptions.CommandExecutionError: E: The repository 'https://deb.debian.org/debian-security bullseye/updates Release' does not have a Release file.
E: The repository 'http://security.debian.org/debian-security bullseye/updates Release' does not have a Release file.
Started: 11:34:44.878670
Duration: 37992.948 ms
Changes:
Summary for NAS.local
------------
Succeeded: 3 (changed=2)
Failed: 3
------------
Total states run: 6
Total run time: 140.754 s
Setting up openmediavault-remotemount (6.0.1) ...
Updating configuration database ...
Running migration conf.service.remotemount_6.0
Setting up openmediavault-sharerootfs (6.0-4) ...
Setting up openmediavault-resetperms (6.0.2) ...
Updating configuration database ...
Running migration conf.service.resetperms_6.0
Setting up openmediavault-backup (6.0.7) ...
Updating configuration database ...
Adding backup plugin cron task...
Processing triggers for ca-certificates (20210119) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Processing triggers for libvlc-bin:amd64 (3.0.17.4-0+deb11u1) ...
Processing triggers for initramfs-tools (0.140) ...
update-initramfs: Generating /boot/initrd.img-5.10.0-16-amd64
Processing triggers for dbus (1.12.20-2) ...
Processing triggers for php7.4-cli (7.4.28-1+deb11u1) ...
Processing triggers for php7.4-fpm (7.4.28-1+deb11u1) ...
Processing triggers for php7.4-cgi (7.4.28-1+deb11u1) ...
Processing triggers for libgdk-pixbuf-2.0-0:amd64 (2.42.2+dfsg-1) ...
Processing triggers for rsyslog (8.2102.0-2+deb11u1) ...
Processing triggers for openmediavault (6.0.32-1) ...
Updating workbench configuration files ...
Restarting engine daemon ...
Enable cron-apt ...
Enable apt index ...
Removing 'local diversion of /usr/sbin/omv-mkaptidx to /usr/sbin/omv-mkaptidx.real'
Rebuild apt index ...
Creating index of upgradeable packages ...
Creating index of openmediavault plugins ...
Rebuild OMV pam config ...
Removing 'local diversion of /etc/pam.d/openmediavault to /etc/pam.d/openmediavault.real'
dpkg-divert: error: rename involves overwriting '/etc/pam.d/openmediavault' with
different file '/etc/pam.d/openmediavault.real', not allowed
Removing 'local diversion of /etc/pam.d/openmediavault-common-auth to /etc/pam.d/openmediavault-common-auth.real'
dpkg-divert: error: rename involves overwriting '/etc/pam.d/openmediavault-common-auth' with
different file '/etc/pam.d/openmediavault-common-auth.real', not allowed
Removing 'local diversion of /etc/pam.d/openmediavault-webgui to /etc/pam.d/openmediavault-webgui.real'
dpkg-divert: error: rename involves overwriting '/etc/pam.d/openmediavault-webgui' with
different file '/etc/pam.d/openmediavault-webgui.real', not allowed
Done.
root@NAS:~#
Anything I need to do about those errors?
Probably it is mkrrdgraph. That runs every 15 minutes in order to update that nice graph that shows the spikes. Nothing to worry about. I did change mine to 1 hour updates, but really not necessary.
Well, but then omv-extras has probably not been upgraded when it gets broken by removing php7.0. You reported that the upgrade was interrupted on your system due to a missing repository key. You haven't described in detail what you did. Maybe you didn't really finish the upgrade process?
Good point. My upgrade halted due to a program I had added in omvextras Plugin way back and had forgotten about. During the upgrade, I guess it tried to update that program but a change in how to update the program caused it to fail. But the logging was very clear so I upgraded that program and ran the script from where it left off. But it is entirely possible that might have caused some other issue that I did not notice.
On the other hand, there do seem to be several posts by people with this same issue after upgrading from 3->4 or 4->5. The old PHP version is not uninstalled (probably because it is still in use) and a newer version is added. While everything works just fine still, it does cause some errors to be spit out in the logs. Probably not even worth doing anything about, but I am a bit OCD when it comes to error messages.
Here is an example: LINK
dleidert , thanks one again for the great work in helping with the upgrade process. Much appreciated.
I have noticed that in the upgrade from 4 to 5, I now have PHP7.0 and PHP7.3. That apparently leads to the following in my log file every 30 minutes:
Apr 12 14:39:01 NAS CRON[30249]: (root) CMD ( [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Apr 12 14:39:06 NAS systemd[1]: Starting Clean php session files...
Apr 12 14:39:07 NAS sessionclean[30250]: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/pam.so' - /usr/lib/php/20151012/pam.so: cannot open shared object file: No such file or directory in Unknown on line 0
Apr 12 14:39:07 NAS sessionclean[30250]: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/pam.so' - /usr/lib/php/20151012/pam.so: cannot open shared object file: No such file or directory in Unknown on line 0
Apr 12 14:39:07 NAS sessionclean[30250]: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/pam.so' - /usr/lib/php/20151012/pam.so: cannot open shared object file: No such file or directory in Unknown on line 0
Apr 12 14:39:07 NAS systemd[1]: phpsessionclean.service: Succeeded.
I have read that uninstalling PHP7.0 is the way to go, but that breaks the web interface and requires a reinstall of omv-extras. Any change of including the uninstall of PHP in your script? Or maybe it is already there, but my PHP7.0 was in use by something else?
I tried the upgrade from 4 to 5, but the process stopped after about 45 minutes on an error related to reinstalling OMV extras. I have no GUI access to the server but can still SSH into it. Log attached. Any help?
Err:10 http://apt.insynchq.com/debian stretch InRelease
The following signatures were invalid: EXPKEYSIG A684470CACCAF35C Insynchq Inc <services@insynchq.com>
Reading package lists... Done
W: GPG error: http://apt.insynchq.com/debian stretch InRelease: The following signatures were invalid: EXPKEYSIG A684470CACCAF35C Insynchq Inc <services@insynchq.com>
E: The repository 'http://apt.insynchq.com/debian stretch InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
run-parts: ./post.d/10-reinstall-omvextras exited with return code 100
UPDATE: Searched and found this idea:
This seemed to resolve the issue. I re-ran the post.d script and it completed!
That was a sphincter clinching moment!
Thanks for all the replies! Yes, I was able to resize the drive just fine and all is back up and running. Running headless does present some extra challenges, but since my data drive is external USB, it was not too much of a problem to move it to another PC for the changes.
Again, thanks for the pointers @cabrio_leo and @rrroonn.
Minitool was not able to resize the EXT4 partition. I am familiar with gparted also and will try that. Is gparted an extension or do I install in manually in SSH? Also, I found I am unable to unmount the data drive in OMV. Is there some secret to unmounting a data drive that is referenced?
Also, I should note that I am running headless, so cannot use live CD/USB approach. I must either remove the drive and put it on another system or find a way to unmount the drive to work on it using SSH on OMV.
EDIT: I tried many ways to unmount the drive within OMV, but it would not budge. So I just shut down OMV and plugged the USB data drive into a Linux laptop, and used resize2fs on the laptop. There must be some way to simply unmount a drive in OMV, but I could not find it. At least, without having to remove all references to the drive which would have been rather complex and time consuming to recreate when done.
I have a USB3 data drive that was 4TB. I used MiniTool to clone that onto a 10TB USB3 drive. However, Minitool did not allow me to expand the data partition. It is still 4TB. Now that the 10TB drive is installed on OMV, it works great. But still at 4TB data drive size. How to I expand the partition (/dev/sdb1) to fill the entire drive?
Thanks! Actually, your comment gave me the idea I needed to research ngnix and found the solution. Using the OMV Gui, under Services/Ngnix/Servers, select the web site you want to password protect. Then click Edit, and at the bottom there is a box for "Extra options". In that box add (without the numbers):
auth_basic "Administrator Login";
auth_basic_user_file /srv/dev-disk-by-label-4TB/Public/WebSite/.htpasswd;
but replace the 'srv/dev..../Public/WebSite/' with whatever your location is for your website folders. Use the normal method of creating the .htpasswd file, and place it in the MAIN directory of your websites (NOT in the website directory itself). Working perfectly for me!
I have created .htaccess and .htpasswd files and put them in my root web root directory (above the directory of the web site I want to project) but it appears there is something else I need to configure? I also tried putting the files in the web site's directory itself, but still no joy. Can someone coach me on what I would type into the webui of OMV for this Nginx site?