+1 to this idea. It would be a huge improvement to have an alternative to email, specifically to add Apprise support.
Posts by Antioch
-
-
FML.
Thanks for the warning. -
This should be turned into a default option. Thank you so much.
-
I'm not referring to how many times it cycles, I simply want the background image to not move at all -- not even for one cycle. Just a static image.
-
Hello! I've recently upgraded to OMV6 and I wonder if it's possible to disable the login screen's background animation as it gives me vertigo.
Thank you for your help.
-
ryecoaaron I have been used to using /sharedfolders mount paths for so long (per the direction of folks on the forum) that I've come to believe something "bad" will happen if I use the real mount paths. Is there anything to be concerned with if I switch mappings from the now disabled /sharedfolders to the true paths?
For example, all of my dockers now no longer function because the path they were referencing (/sharedfolders) is now empty. The true mount paths are available so it's only a matter of updating the docker configs - but I wanted to double check because, again, I have had it ingrained in me to use /sharedfolders.
Thanks -
Then I guess it's not a problem. Thanks!
-
Hmm, yes commenting out the source from /etc/apt/sources.list.d/openmediavault-local.list removes all of those polls at the beginning of apt update-- but am I supposed to need to do this? Are those polls at the beginning expected?
-
-
That's basically what my sources.list it if you ignore the comments and the deb-src entries. That was all placed there automatically, I've never touched it before. However, I went ahead and cleaned mine up to look like yours and I still have the same issue.
Ign: file:/var/cache/openmediavault/archives being hit repeatedly. It must be coming from elsewhere, but I'm not sure where.
-
Hello! I'm running OMV5 with a few addons enabled (mainly omv-extras, zfs, and proxmox kernel), and I've noticed that every time I do an apt update the same OMV cache get polled multiple times. I wonder if my apt.sources file is somehow to blame? If not, I wonder how I can resolve this repeated polling, especially since it looks like it's getting ignored.
apt update output:Code
Display MoreGet: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 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 Hit:6 http://deb.debian.org/debian buster InRelease Get:7 http://deb.debian.org/debian buster-updates InRelease [49.3 kB] Get:8 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB] Get:9 https://deb.debian.org/debian buster-backports InRelease [46.7 kB] Hit:10 http://linux.teamviewer.com/deb stable InRelease Hit:11 https://download.docker.com/linux/debian buster InRelease Ign:12 https://dl.bintray.com/openmediavault-plugin-developers/usul buster InRelease Get:13 https://dl.bintray.com/openmediavault-plugin-developers/usul buster Release [4,363 B] Get:14 https://deb.debian.org/debian buster-backports/main amd64 Packages.diff/Index [27.8 kB] Get:15 https://deb.debian.org/debian buster-backports/main amd64 Packages 2020-05-03-0208.39.pdiff [675 B] Get:16 https://deb.debian.org/debian buster-backports/main amd64 Packages 2020-05-03-0807.38.pdiff [269 B] Get:16 https://deb.debian.org/debian buster-backports/main amd64 Packages 2020-05-03-0807.38.pdiff [269 B] Hit:17 https://packages.openmediavault.org/public usul InRelease Hit:18 http://download.proxmox.com/debian buster InRelease
And here is my apt.sources
Code
Display More# # deb cdrom:[Debian GNU/Linux 10 _Buster_ - Official Snapshot amd64 LIVE/INSTALL Binary 20190816-09:19]/ buster contrib main non-free #deb cdrom:[Debian GNU/Linux 10 _Buster_ - Official Snapshot amd64 LIVE/INSTALL Binary 20190816-09:19]/ buster contrib main non-free deb http://deb.debian.org/debian/ buster main deb-src http://deb.debian.org/debian/ buster main deb http://security.debian.org/debian-security buster/updates main contrib non-free deb-src http://security.debian.org/debian-security buster/updates main contrib non-free # buster-updates, previously known as 'volatile' deb http://deb.debian.org/debian/ buster-updates main contrib non-free deb-src http://deb.debian.org/debian/ buster-updates main contrib non-free # non-free #deb http://deb.debian.org/debian buster main non-free # deb-src http://deb.debian.org/debian buster main non-free # This system was installed using small removable media # (e.g. netinst, live or single CD). The matching "deb cdrom" # entries were disabled at the end of the installation process. # For information about how to configure apt package sources, # see the sources.list(5) manual.
Thanks for the help!! -
Hello. I somehow seem to have gotten SMB into an unrecoverable state and would like some help either recovering or simply resetting SMB and starting over.
Background:
I had SMB set up and working fine. One of my shared volumes had guest access enabled and I wanted to disable this, so I did so via the OMV UI. However, after I save>applied an error occurred and from that point I couldn't get back to the original state. Reverting the change wasn't working properly either.Right now, OMV says that SMB is enabled (green light) but not running (red light). I've tried to disable it from the OMV UI (in the hopes that if I disable and reenable it things might fix themselves) but even this throws an error after I save>apply:
Code
Display MoreError #0: 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 samba 2>&1' with exit code '1': debian: ID: configure_samba_shares Function: file.append Name: /etc/samba/smb.conf Result: False Comment: An exception occurred in this state: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 715, in execute self._response = self._response[0] IndexError: list index out of range During handling of the above exception, another exception occurred: 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 33, in top-level template code File "/var/cache/salt/minion/extmods/modules/omv_conf.py", line 98, in get_sharedfolder_path mp_obj = get('conf.system.filesystem.mountpoint', sf_obj['mntentref']) 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 720, in execute raise DatabaseQueryNotFoundException(self.xpath, self.model) openmediavault.config.database.DatabaseQueryNotFoundException: No such object: //system/fstab/mntent[uuid='e721a3b7-bb4e-458b-885a-3c407c2addc4'] During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/salt/state.py", line 1933, in call **cdata['kwargs']) File "/usr/lib/python3/dist-packages/salt/loader.py", line 1951, in wrapper return f(*args, **kwargs) File "/usr/lib/python3/dist-packages/salt/states/file.py", line 5265, in append context=context) File "/usr/lib/python3/dist-packages/salt/states/file.py", line 1153, in _get_template_texts **kwargs File "/usr/lib/python3/dist-packages/salt/modules/cp.py", line 348, in get_template **kwargs) File "/usr/lib/python3/dist-packages/salt/fileclient.py", line 745, in get_template **kwargs File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 169, in render_tmpl output = render_str(tmplstr, context, tmplpath) File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 443, in render_jinja_tmpl trace=tracestr) salt.exceptions.SaltRenderError: Jinja error: No such object: //system/fstab/mntent[uuid='e721a3b7-bb4e-458b-885a-3c407c2addc4'] Traceback (most recent call last): File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 715, in execute self._response = self._response[0] IndexError: list index out of range During handling of the above exception, another exception occurred: 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 33, in top-level template code File "/var/cache/salt/minion/extmods/modules/omv_conf.py", line 98, in get_sharedfolder_path mp_obj = get('conf.system.filesystem.mountpoint', sf_obj['mntentref']) 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 720, in execute raise DatabaseQueryNotFoundException(self.xpath, self.model) openmediavault.config.database.DatabaseQueryNotFoundException: No such object: //system/fstab/mntent[uuid='e721a3b7-bb4e-458b-885a-3c407c2addc4'] ; line 33 --- [...] {%- for share in config.shares.share | selectattr('enable') %} [{{ salt['omv_conf.get_sharedfolder_name'](share.sharedfolderref) }}] {%- if share.comment | length > 0 %} comment = {{ share.comment }} {%- endif %} path = {{ salt['omv_conf.get_sharedfolder_path'](share.sharedfolderref) }} <====================== guest ok = {% if share.guest != 'no' %}yes{% else %}no{% endif %} guest only = {% if share.guest == 'only' %}yes{% else %}no{% endif %} read only = {% if share.readonly | to_bool %}yes{% else %}no{% endif %} browseable = {% if share.browseable | to_bool %}yes{% else %}no{% endif %} inherit acls = {% if share.inheritacls | to_bool %}yes{% else %}no{% endif %} [...] --- Started: 21:32:29.850984 Duration: 188.537 ms Changes: Succeeded: 8 (changed=2) Failed: 1 Total states run: 9 Total run time: 541.389 ms/usr/lib/python3/dist-packages/salt/utils/jinja.py:503: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working if isinstance(values, collections.Hashable): in /usr/share/php/openmediavault/system/process.inc:182 Stack trace: #0 /usr/share/php/openmediavault/engine/module/serviceabstract.inc(60): OMV\System\Process->execute() #1 /usr/share/openmediavault/engined/rpc/config.inc(167): OMV\Engine\Module\ServiceAbstract->deploy() #2 [internal function]: Engined\Rpc\Config->applyChanges(Array, Array) #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array) #4 /usr/share/php/openmediavault/rpc/serviceabstract.inc(149): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array) #5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(588): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatusIB...', '/tmp/bgoutputYD...') #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure)) #7 /usr/share/openmediavault/engined/rpc/config.inc(189): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array) #8 [internal function]: Engined\Rpc\Config->applyChangesBg(Array, Array) #9 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array) #10 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array) #11 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1) #12 {main}
This seems to be the error, but I have no idea what it means:
No such object: //system/fstab/mntent[uuid='e721a3b7-bb4e-458b-885a-3c407c2addc4']In any case, I'm ok to wipe my SMB settings and start again, but I'm not sure how to do this. Can anyone please let me know?
-
If anyone else comes across this problem, I believe the solution is to set the pool/volume to mountpoint=legacy so that you can mount using the traditional tools and fstab:
https://docs.oracle.com/cd/E19…819-5461/gbaln/index.html -
How did you do this?
Also, I know that some of the posts referred to Root-of-ZFS, but if you read through the issues you'll see that it's the same problem, as outlined above with the out-of-order mounting.
-
More details:
All mountpoints are indeed configured
zfs list
NAME USED AVAIL REFER MOUNTPOINT
Tank 482 3.8T 240K /tank
Tank/documents 2.01G 3.8T 2.01G /tank/documents
Tank/pictures 397G 3.8T 397G /tank/pictures
Tank/videos 83G 3.8T 83G /tank/videosThe system attempts to mount
grep zfs /var/log/syslog
[tt]Jan 5 08:51:33 Server systemd-modules-load[399]: Inserted module 'zfs'
Jan 5 08:51:33 Server systemd[1]: zfs-import-cache.service: Main process exited, code=exited, status=1/FAILURE
Jan 5 08:51:33 Server systemd[1]: zfs-import-cache.service: Failed with result 'exit-code'.
Jan 5 08:51:33 Server zfs[1192]: cannot mount '/tank': directory is not empty
Jan 5 08:51:33 Server systemd[1]: zfs-mount.service: Main process exited, code=exited, status=1/FAILURE
Jan 5 08:51:33 Server systemd[1]: zfs-mount.service: Failed with result 'exit-code'.Indeed, as mentioned, the directory is not empty
l /tank
pictures/ videos/
Even if I manually delete these and reboot, they reappearI believe this is because
cat /etc/fstab
...
# >>> [openmediavault]
/tank/videos/ /export/videos none bind,nofail,_netdev 0 0
/tank/pictures/ /sftp/antioch/pictures none bind,rw,nofail 0 0
# <<< [openmediavault]Removing those two shares from the NFS and SFTP services in OMV removed the entries from the fstab, and after manually deleting the folders from /tank/ and rebooting tank mounted without issue and all was well. Except now I don't have SFTP and NFS share abilities.
I am by no means an expert, but I did some googling and I found some issues that looked to be the same. Interestingly, just like my case, things were working fine but then they suddenly weren't.
zfs-mount fails because directory isn't empty, screws up bind mounts and NFS #47
This happens because the order in which fstab-mounts and zfs-mounts happen is undefined.See zfs-mount.service and one of the auto-generated mount-units.
Systemd orders the auto-generated mounts by filesystem hierachy. See systemd.mount(5).Which references a few other issues, including the following, which was marked resolved in 2016.
Systemd: Replace zfs-mount.service with systemd.generator(7) #4898
zfs-mount.service is called too late on Debian/Jessie with ZFS root #4474
Centos: systemd-journald.service misses the zfs-mount.service dependency #8060
The last post of which says:ZFS has a systemd mount generator these days.
I guess this is what is being referred to?
[WIP] Prototype for systemd and fstab integration #4943
Which points to this PR:
Fixes for the systemd mount generator #9611So, I wonder if this issue is now resolved upstream? I know that the PR referenced above is rather recent, so it will take a long time to propogate out. However, this comment in suggests that the issue can be worked around in zol 0.8.x:
zfs-mount.service is called too late on Debian/Jessie with ZFS root #4474
This should be resolved. The Root-on-ZFS HOWTO includes a work-around, and with 0.8.x's mount generator, this is correctly solved. I'm going to close this. If this is still an issue for someone, try the workaround of setting mountpoint=legacy on the affected datasets and putting them in /etc/fstab
I'm not yet sure what this means, but in either case (the workaround mentioned above, or the fix from the PR above), it looks like it will require some changes to OMV and/or the ZFS plugin to use the newly supported systemd/fstab mount system?Any help would be great, especially from the ZFS plugin author.
Thank you!
-
Hello, all.
I've got two ZFS pools in my system and both were working fine, but now one of them stops being automounted. I'm not sure what is causing the issue, it was working fine before the holidays, and when I came back it wasn't any longer.
zfs list shows that all pools and volumes have mountpoints set, and running zfs mount -a successfully mounts the pool that wasn't being automounted. The trouble is that even though doing this mounts the pool/volumes, and OMV's dashboard (Storage>Filesystems) will now show the pools/volumes as mounted, the shared folders aren't working, they all show empty values for the device column.
Am using OMV 5.2.1 with Proxmox kernel, and all packages/plugins are up to date.
Any ideas how I can fix this??
-
Hello. I'm on OMV5 and am trying to get the SFTP plugin working. It seems to have installed fine and I get green lights when I enable it. The problem is that I cannot setup the access list. From the access list tab I try to select a user and shared folder, but am shown the following error:
CodeError #0: OMV\Exception: 'username' does not have read only or read/write privileges to this shared folder. in /usr/share/openmediavault/engined/rpc/sftp.inc:125 Stack trace: #0 [internal function]: OMVRpcServiceSftp->setShare(Array, Array) #1 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array) #2 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('setShare', Array, Array) #3 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Sftp', 'setShare', Array, Array, 1) #4 {main}
The user is a member of the "sftp-group" and the "users" group which has RW ownership of the folder in question. I get the same error when also trying to add the owner of the folder as well.
Any idea as to what I can do to try and fix the issue? Thanks!
-
As the subject says, I'd like to figure out how to set --pid host for my container running in portainer. Does anyone know?
Thanks!
-
I have no idea what that means. I didn't know the OMV4 plugin was broken?? My test VM is working fine...
Sorry for not being specific. I mean that it is not appearing in the OMV WebUI, in the same way as it wasn't working on OMV4 in the thread I linked:
Anacron plugin not displayed?My understanding is that anacron is supposed to appear in a new tab there, but it's not.
-
It is in the repo now.
Thanks! I've given it a try and it looks to be broken -- in the same way it was on OMV4.
I have a new OMV5 install, haven't done much to it other than update to OMV5.1, switch to pve kernel, install a ZFS and anacron plugins -- but I'm not seeing anacron appear in the WebUI under Scheduled Jobs (same as on OMV4).
root@OMV:~# dpkg -l | grep anacron
ii anacron 2.3-28 amd64 cron-like program that doesn't go by time
ii openmediavault-anacron 5.0 all anacron plugin for OpenMediaVault.root@OMV:~# ls -l /var/www/openmediavault/js/omv/module/admin/system/cron/
total 24
-rw-r--r-- 1 root root 11850 Sep 3 03:15 Anacron.js
-rw-rw-r-- 1 openmediavault-webgui openmediavault-webgui 10949 Apr 25 2019 Cron.jsAny thoughts?