What do you mean? The commands I used to download and install system-resolved?
Beiträge von gadric
-
-
Well, I have 2 OMV setups here. One OMV in bridge-mode, one in normal mode. In terms of base OS and OMV setup, they are the same (except network).
On the normal one, I do not have these issues. On the bridge mode one, this is the 2nd time I had this issue. That made me suspicious.
-
Problem solved. It seems to be related to the fact that I have a bridged Network set up in OMV (because of Home Assistant in KVM). Somehow system-resolved.service was removed and I had no Internet connection. Local network access was working.
I downloaded system-resolved directly from Debian: https://packages.debian.org/bullseye-backports/amd64/systemd-resolved/download
Then upload it to OMV and executed: dpkg -i [tt]systemd-resolved_252.4-1~bpo11+1_amd64.deb
Reboot and everything worked again.
-
Hi,
I am currently facing a strange issue. I ran apt update in the cli and it always showed me this:
Code
Alles anzeigenGet: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 Err:4 http://deb.debian.org/debian bullseye InRelease Could not resolve 'deb.debian.org' Err:5 http://security.debian.org/debian-security bullseye-security InRelease Could not resolve 'security.debian.org' Err:6 http://packages.openmediavault.org/public shaitan InRelease Could not resolve 'packages.openmediavault.org' Err:7 http://deb.debian.org/debian bullseye-updates InRelease Could not resolve 'deb.debian.org' Err:8 https://openmediavault-plugin-developers.github.io/packages/debian shaitan InRelease Could not resolve 'openmediavault-plugin-developers.github.io' Err:9 https://download.docker.com/linux/debian bullseye InRelease Could not resolve 'download.docker.com' Err:10 http://httpredir.debian.org/debian bullseye-backports InRelease Could not resolve 'httpredir.debian.org' Get:11 file:/var/cache/openmediavault/archives Translation-en Ign:11 file:/var/cache/openmediavault/archives Translation-en Err:12 https://openmediavault.github.io/packages shaitan InRelease Could not resolve 'openmediavault.github.io' Err:13 http://deb.debian.org/debian bullseye-backports InRelease Could not resolve 'deb.debian.org' Err:14 https://openmediavault-plugin-developers.github.io/packages/debian shaitan-testing InRelease Could not resolve 'openmediavault-plugin-developers.github.io' Get:3 file:/var/cache/openmediavault/archives Packages Ign:3 file:/var/cache/openmediavault/archives Packages Get:11 file:/var/cache/openmediavault/archives Translation-en Ign:11 file:/var/cache/openmediavault/archives Translation-en Get:3 file:/var/cache/openmediavault/archives Packages Ign:3 file:/var/cache/openmediavault/archives Packages Get:11 file:/var/cache/openmediavault/archives Translation-en Ign:11 file:/var/cache/openmediavault/archives Translation-en Get:3 file:/var/cache/openmediavault/archives Packages Ign:3 file:/var/cache/openmediavault/archives Packages Get:11 file:/var/cache/openmediavault/archives Translation-en Ign:11 file:/var/cache/openmediavault/archives Translation-en Get:3 file:/var/cache/openmediavault/archives Packages Ign:3 file:/var/cache/openmediavault/archives Packages Get:11 file:/var/cache/openmediavault/archives Translation-en Ign:11 file:/var/cache/openmediavault/archives Translation-en Get:3 file:/var/cache/openmediavault/archives Packages Ign:3 file:/var/cache/openmediavault/archives Packages Get:11 file:/var/cache/openmediavault/archives Translation-en Ign:11 file:/var/cache/openmediavault/archives Translation-en Get:3 file:/var/cache/openmediavault/archives Packages Get:11 file:/var/cache/openmediavault/archives Translation-en Ign:11 file:/var/cache/openmediavault/archives Translation-en Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. W: Failed to fetch http://deb.debian.org/debian/dists/bullseye/InRelease Could not resolve 'deb.debian.org' W: Failed to fetch http://deb.debian.org/debian/dists/bullseye-updates/InRelease Could not resolve 'deb.debian.org' W: Failed to fetch http://deb.debian.org/debian/dists/bullseye-backports/InRelease Could not resolve 'deb.debian.org' W: Failed to fetch https://openmediavault-plugin-developers.github.io/packages/debian/dists/shaitan/InRelease Could not resolve 'openmediavault-plugin-developers.github.io' W: Failed to fetch https://openmediavault-plugin-developers.github.io/packages/debian/dists/shaitan-testing/InRelease Could not resolve 'openmediavault-plugin-developers.github.io' W: Failed to fetch https://download.docker.com/linux/debian/dists/bullseye/InRelease Could not resolve 'download.docker.com' W: Failed to fetch http://httpredir.debian.org/debian/dists/bullseye-backports/InRelease Could not resolve 'httpredir.debian.org' W: Failed to fetch http://security.debian.org/debian-security/dists/bullseye-security/InRelease Could not resolve 'security.debian.org' W: Failed to fetch http://packages.openmediavault.org/public/dists/shaitan/InRelease Could not resolve 'packages.openmediavault.org' W: Failed to fetch https://openmediavault.github.io/packages/dists/shaitan/InRelease Could not resolve 'openmediavault.github.io' W: Some index files failed to download. They have been ignored, or old ones used instead.
Also ping google.com results in: ping: google.com: Name or service not known
After a little bit of digging I found out that my systemd-resolved is missing:
Coderoot@xxxxxx:~# systemctl status systemd-resolved Unit systemd-resolved.service could not be found.
how can I fix this? omv-firstaid did not help
-
There is already an update path:
Check if the plugins you have/need are already ported: omv-extras plugins - porting progress to OMV 6.x (done) - Plugins - openmediavault
Run omv-release-upgrade as root.
Done
Cool, I will test this. Quick question, does this also directly upgrade Debian to 11?
-
Problem solved. I had to use the q35 chipset. then it works.
-
Hi,
I have installed Home Assistant as VM on top of openmediavault with the help of the KVM plugin. It works really good with one exception: I can only add 2 USB devices. If I try to add the third one, it shows: Unable to add USB device to VM - internal error: No free USB ports (See attached).
-
This guide was inspired by the [GUIDE] Use Telegram as notification service by subzero79. I used Telegram for a long time. But due to a more privacy and data protection approach of Signal, I switched to Signal Messenger.
What you need
- A free phone number
- curl
- Remote ssh access with sudo access
- Docker
Signal does not offer a bot service, so we need to have an extra number to act as the bot. There are a couple of service providers which offers free phone numbers. Should be easy to obtain an extra number.
Once you have the extra number, connect to your OMV instance via ssh and then install docker:
bbernhard created a signal-cli wrapper which offers a rest-api: https://github.com/bbernhard/signal-cli-rest-api. This will be used to send the notifications over Signal.
To start the port using this command
Codedocker run \ --name "/signal-cli-rest-api" \ --volume "<config_path>:/home/.local/share/signal-cli" \ --restart "unless-stopped" \ --port "8080:8080" \ "bbernhard/signal-cli-rest-api:latest"
To register the number, follow the official guide: https://github.com/bbernhard/s…ob/master/doc/EXAMPLES.md
Once this is done, we can create our script
nano /usr/share/openmediavault/notification/sink.d/10signal
Then paste this content into the file:
Bash
Alles anzeigen#!/bin/bash sender="<sender number>" recipiant="<receiver number>" contenttype="Content-Type: application/json" signal_msg_url="http://127.0.0.1:8080/v2/send" # The message file needs to altered as the new line literals does not work directly. More, monit adds a \ to the hostname. This needs to changed, too. sed -E -i -e ':a;N;$!ba;s/\r{0,1}\n/\\n/g' -e 's|\\'"${HOSTNAME}"'|'"${HOSTNAME}"'|g' "$OMV_NOTIFICATION_MESSAGE_FILE" content=$(cat "$OMV_NOTIFICATION_MESSAGE_FILE") # If you want to send the message to more than 1 person, then add the number of the repcipiants in [] separated by "," generate_msg_data() { cat <<EOF {"message": "${content}", "number": "$sender", "recipients": ["$recipiant"]} EOF } curl -X POST -H "$contenttype" -d "$(generate_msg_data)" "$signal_msg_url"
Save the file
Then the script needs to be made executable:
chmod 700 /usr/share/openmediavault/notification/sink.d/10signal
-
Can you try moving: /usr/lib/systemd/system-sleep/autoshutdown-restart to /lib/systemd/system-sleep/autoshutdown-restart as in the 5.1.7 update we move to systemd start-up what than pm-utils. if this work you should see the script (above autoshutdown-restart) write a log entry to /var/log/autoshutdown.log on the restart if this is not logged the the scripts if still falling for some reason. Also can you verify you are using 'systemctl suspend' command.
Please leave feedback if the above works and raze bug in: https://github.com/OpenMediaVa…enmediavault-autoshutdown and i jump on a fix ASAP
I got this working, but not with this solution.
In /usr/lib/systemd/system-sleep/ and in /lib/systemd/system-sleep/ the same file existed.
What I did: chmod +x /lib/systemd/system-sleep/autoshutdown-restart not the /usr/... .
Now it seems to work again.
-
Hi,
I have a problem with the most recent version of autoshutdown plugin. If worked perfect since a couple of years. With the most recent version (5.1.7) it behaves strange. When the system wakes up from sleep mode, then the plugin is inactive. `systemctl status autoshutdown.service` Shows `inactive`. In this state, my system wont get back to sleep again. I have to activate is manually.
Any ideas?
-
I am now using another approach. I am using signal-cli-rest-api to wrap a REST API around the signal-cli commands. This seems to work.
-
Yes the script can be executed. Permission for this file is 755.
-
Hi,
I have been using custom notification with telegram following this guide: [GUIDE] Use Telegram as notification service. This works very good also with OMV5.
However, I am thinking to switch to Signal Messenger. I thought I could use a similar approach. I have duplicated the Telegram OMV sink.d file and inserted this code for signal:
Bash#!/bin/bash sender="+49xxxxxx" recipiant="+49yyyyyyy" echo -e "${OMV_NOTIFICATION_SUBJECT} on the ${OMV_NOTIFICATION_DATE} \n\n $(cat ${OMV_NOTIFICATION_MESSAGE_FILE})" |signal-cli -u $sender send $recipiant
However, this script seems not to be triggered.
I tested already manual message sending with signal which works very well. Also using this commands it works without any issues:
Codeexport OMV_NOTIFICATION_SUBJECT=test export OMV_NOTIFICATION_DATE=testdate export OMV_NOTIFICATION_MESSAGE_FILE=/tmp/testfile /usr/share/openmediavault/notification/sink.d/./20signal
Any idea why it does not work automatically with custom notification and sink scripts?
-
Hi,
Since a couple of days I ran into a strange „problem“. In OMV WebGUI or using df in the console, it reports my /dev/sda1 mounted in /boot/efi as nearly full
Code
Alles anzeigenroot@xxxxxxxxx:~# df -h Filesystem Size Used Avail Use% Mounted on udev 7.8G 0 7.8G 0% /dev tmpfs 1.6G 12M 1.6G 1% /run /dev/mapper/xxxxxxxx--vg-root 32G 10G 21G 34% / tmpfs 7.8G 0 7.8G 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup tmpfs 7.8G 0 7.8G 0% /tmp /dev/sda2 237M 92M 133M 41% /boot /dev/sda1 511M 510M 1.9M 100% /boot/efi folder2ram 7.8G 29M 7.8G 1% /var/log folder2ram 7.8G 0 7.8G 0% /var/tmp folder2ram 7.8G 880K 7.8G 1% /var/lib/openmediavault/rrd folder2ram 7.8G 1.2M 7.8G 1% /var/spool folder2ram 7.8G 22M 7.8G 1% /var/lib/rrdcached folder2ram 7.8G 4.0K 7.8G 1% /var/lib/monit folder2ram 7.8G 1.3M 7.8G 1% /var/cache/samba
However, Checking with du, orgparted reports something completed different:
I already purged old Kernels and also did apt-get autoremove and rebooted a couple of times. Nothing helped so far.
Anyone has an idea?
-
I'm also thinking about to move my Home Assistant installation from a Raspi to my OMV5 using the new official supervised installation (https://github.com/home-assistant/supervised-installer)
tbl: You seems to have some experience. Does it make any problems? The instructions itself seems to be only supported if anything else runs on the host system.
-
3.7.6 appears to have fixed everything but the Diff script is still issuing the same error at line 490.
Code
Alles anzeigenError #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; export SHELL=/bin/sh; sudo --shell --non-interactive --user=root -- /usr/sbin/omv-snapraid-diff 2>&1' with exit code '2': /usr/sbin/omv-snapraid-diff: line 490: syntax error near unexpected token `else' /usr/sbin/omv-snapraid-diff: line 490: `else' in /usr/share/openmediavault/engined/rpc/cron.inc:175 Stack trace: #0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(565): OMVRpcServiceCron->{closure}('/tmp/bgstatus4v...', '/tmp/bgoutputiS...') #1 /usr/share/openmediavault/engined/rpc/cron.inc(179): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure)) #2 [internal function]: OMVRpcServiceCron->execute(Array, Array) #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array) #4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('execute', Array, Array) #5 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Cron', 'execute', Array, Array, 1) #6 {main
Same error here.
-
Can you try to add func.getattr=newe in the mount options of mergerfs partition?
-
Problem solved. The new mergerfs seems to have an issue with acl list. Needed to add the plex to users group. now works.
-
ah I see. Maybe the unisonFS plugin is the problem. Can you please post your fstab config ? I would like to check if something in my config is wrong.
my config look is this:
Code/srv/dev-disk-by-label-xxxx:/srv/dev-disk-by-label-xxxx:/srv/dev-disk-by-label-xxxx:/srv/dev-disk-by-label-xxxx:/srv/dev-disk-by-label-xxxx:/srv/dev-disk-by-label-xxxx /srv/yyyyyyyyyyyyyyyyyyyyyyyyyyy fuse.mergerfs defaults,allow_other,direct_io,use_ino,category.create=mfs,minfreespace=500G 0 0
-
OMV 4.x is Stretch based, not Jessie.
sorry my mistake ...
I am running OMV 4.x and Plex in a docker. I too just recently upgraded to mergerfs 2.26.2~debian-stretch. I have no problems with Plex and this release of mergerfs.
also after a reboot? My problems started after reboot ...