were you able to get it running in the meantime?
Posts by myscha
-
-
OK, thanks. In this case I'll have to wait, but that's no problem.
-
I wasn't able to delete it manually. Instead I recovered a backup that I made before.
Unfortunately I'm absolutely new to Kubernetes and the issue you linked seems rather special and too complicated to solve on my own. Is there any chance that
External Content gist.github.comContent embedded from external sources will not be displayed without your consent.Through the activation of external content, you agree that personal data may be transferred to third party platforms. We have provided more information on this in our privacy policy. -
I'm trying to install Immich via openmediavault-k8s, but without any success.
My OMV is version 7.4.17-2 and it runs as VM on a Proxmox server. I've created 3 new directories (backup-k8s, immich-import and immich-library) for this purpose. I set the first one for Kubernetes snapshots and the other 2 in the Immich recipe. So my recipe starts with:
Code{% set runAsUser = 'nobody' %} {% set runAsGroup = 'users' %} {% set librarySharedFolderName = 'immich-library' %} {% set importSharedFolderName = 'immich-import' %}
The installation always fails with the message:
Code
Display MoreFailed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LC_ALL=C.UTF-8; export LANGUAGE=; kubectl apply -f '/tmp/Wy7QBc' 2>&1' with exit code '1': Warning: Detected changes to resource immich-app which is currently being deleted. namespace/immich-app unchanged persistentvolume/immich-library unchanged Warning: Detected changes to resource immich which is currently being deleted. helmchart.helm.cattle.io/immich configured resource mapping not found for name: "immich-websecure" namespace: "immich-app" from "/tmp/Wy7QBc": no matches for kind "IngressRoute" in version "traefik.containo.us/v1alpha1" ensure CRDs are installed first Error from server (Forbidden): error when creating "/tmp/Wy7QBc": persistentvolumeclaims "immich-library" is forbidden: unable to create new content in namespace immich-app because it is being terminated OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LC_ALL=C.UTF-8; export LANGUAGE=; kubectl apply -f '/tmp/Wy7QBc' 2>&1' with exit code '1': Warning: Detected changes to resource immich-app which is currently being deleted. namespace/immich-app unchanged persistentvolume/immich-library unchanged Warning: Detected changes to resource immich which is currently being deleted. helmchart.helm.cattle.io/immich configured resource mapping not found for name: "immich-websecure" namespace: "immich-app" from "/tmp/Wy7QBc": no matches for kind "IngressRoute" in version "traefik.containo.us/v1alpha1" ensure CRDs are installed first Error from server (Forbidden): error when creating "/tmp/Wy7QBc": persistentvolumeclaims "immich-library" is forbidden: unable to create new content in namespace immich-app because it is being terminated in /usr/share/php/openmediavault/system/process.inc:247 Stack trace: #0 /usr/share/openmediavault/engined/rpc/kubectl.inc(191): OMV\System\Process->execute() #1 [internal function]: Engined\Rpc\OMVRpcServiceKubectl->apply() #2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(122): call_user_func_array() #3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod() #4 /usr/share/openmediavault/engined/rpc/k8s.inc(353): OMV\Rpc\Rpc::call() #5 [internal function]: Engined\Rpc\OMVRpcServiceK8s->applyRecipe() #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(122): call_user_func_array() #7 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod() #8 /usr/sbin/omv-engined(544): OMV\Rpc\Rpc::call() #9 {main}
-
donh
Thanks, I'll try that later.
ZokiI think I was not clear enough. My intention is to use only the DHCP server of the router (FritzBox). Therefore I have set it up so that it always assigns the same IP to the OMV virtual machine and also gives it the name 'server'. The router identifies the virtual machine by its MAC address.
It's set up the same way for my HTPC, but of course with different MAC address, different IP address and different name. There it works. The HTPC is also the host for the OMV guest.
-
I'm running OMV 5.6.26-1 on Debian 10 as QEMU/KVM virtual machine on Ubuntu 20.04.4. I have setup bridged network on Ubuntu and assigned two dedicated IP addresses, one for the host and one for the guest. Host and guest get their IPs from FritzBox DHCP in a static manner. In general it works well but occasionally I was not able to access the server using its name.
I thought the problems are caused by the active IPv6 DHCP server on the router, so I disabled IPv6 on the router. But with only IPv4 it has become even worse. I can ping the host using its name, but the guest only by using the assigned IP. No chance to reach it via its name.
What can cause this and what could I try to solve it?
-
Hello,
I'm posting this in Offtopic as it's not about a problem with OMV. If a mod thinks it would fit better into the NFS corner, please move it.
I'm running an OMV server and it shares some directories via NFS with other Linux PCs in my LAN. On client side I have one line in /etc/fstab which mounts all subdirectories at once with the correct ro/rw access.
Now I'd like to do the same with my HTPC. Therefore I took some lines from the servers /etc/exports and adapted it to the HTPCs directory structure:
Code/data/dir1 192.168.178.123(fsid=1,rw,subtree_check,secure) /data/dir2 192.168.178.1/24(fsid=2,ro,subtree_check,secure,async) /data 192.168.178.123(ro,fsid=0,root_squash,no_subtree_check,hide) /data 192.168.178.1/24(ro,fsid=0,root_squash,no_subtree_check,hide)
I try to share /data/dir2 to everybody in this subnet as read-only and /data/dir1 to a specific client as read-write. Unfortunately the OMV one-liner in /etc/fstab doesn't work with the HTPC exports. I have to add another line specifically for /data/dir1. Otherwise it's mounted as ro instead of rw.
So my question is: does OMV do anything more special than this?
What I really want is to share all children of /data as ro but /data/dir1 as rw.
-
Seems like I solved the problem by disabling HW clock updates as described here: https://www.mythtv.org/wiki/AC…p#Disable_hwclock_updates
-
In my case ASD always shuts the PC down (S5, "Herunterfahren").
If I execute rtcwake -m no -u -t $(date -d '19:30 tomorrow' +%s) as scheduled job in OMV the PC wakes up fine every day. But it doesn't if I disable this job and let wakealarm do its work, although I didn't change anything in autoshutdown. -
Does the PC never wake up? I have the problem that it wakes once after a manual start and then never again, although /sys/class/rtc/rtc0/wakealarm contains the expected time.
Wakealarm only wakes once -
Yes, I know. The advantage of the wakealarm plugin is that it is very comfortable to have more than only a few wakeup times and you can adjust the times easily. Using the scheduled jobs does not offer that comfort.
Edit:
And it doesn't explain why the stock version or my version above don't work. -
Apparently and unfortunately it didn't work either. So I'm still searching for a solution apart from waking it manually via WoL.
-
I think I solved it now. I made the following changes in /usr/sbin/wakealarm:
Code
Display Moredef set_alarm(self): """Set upcoming wakealarm.""" if self.next_alarm and self.next_alarm != self.current_alarm: timestamp = '{0:.0f}\n'.format(time.mktime(self.next_alarm.timetuple())) # with open(WAKEALARM, 'w') as f: # f.write('0\n') # with open(WAKEALARM, 'w') as f: # f.write(timestamp) subprocess.call(["sudo", "rtcwake", "-m", "no", "-u", "-t", timestamp[:-1]]) log.info('Wakealarm set to: %s', self.next_alarm) else: log.warning('No alarm to be set.')
-
No, it's not just you. The bugtracker also says that it's unable to connect to the database.
-
In the meantime I was able to figure out how OMV can be configured to deliver notification emails locally, without being overwritten by OMV.
This can be achieved by setting the variables OMV_POSTFIX_MAIN_MYDESTINATION and OMV_POSTFIX_MAIN_INET_INTERFACES in /etc/default/openmediavault
Codeecho 'OMV_POSTFIX_MAIN_MYDESTINATION="server.local, server, localhost.local, localhost"' | sudo tee -a /etc/default/openmediavault echo 'OMV_POSTFIX_MAIN_INET_INTERFACES="localhost"' | sudo tee -a /etc/default/openmediavault
In the GUI the following has to be set
- Enable
- SMTP server: localhost
- SMTP port: 25
- E-Mail sender: omv@localhost.home
- Primary E-Mail: omv@localhost.homeTest mails and notifications will be stored in /var/mail/omv afterwards. Now, only a service to fetch the mails via pop3 or imap is missing.
EDIT:
Some imap/ pop3 servers only work with emails in Maildir/ format and not with the default mbox format from above.
To solve this, the line home_mailbox = Maildir/ has to be appended to the postfix config in /etc/postfix/main.cf. Therefore I created the file /usr/share/openmediavault/mkconf/postfix.d/15main_custom with the following content:which only appends the desired line to the postfix config. After restarting postfix it stores emails in the folder ~/Maildir.
To be continued...
-
But if you are still interested, let me know and I will try to put something together for you.
I am still interested. As far as I understand it, the only thing that is missing for this to work is a pop or imap access, as postfix is able to do everything else, isn't it?
It would be great if you could drop some lines here.
-
I do this all the time. Just add some type of POP server into your OMV. I used popa3d.
OMV asks for SMTP connection details. How did you set up the pop server there?
-
I just want to get notifications in the LAN, no need to access them from the WAN side of the router. Is there an easy way to achieve this?
-
My router (firewall) is configured so that the NAS has no internet access at all. But anyway I'd like to receive Email notifications, for example, about the disk health.
Has anyone set up an email server on his NAS? What would be the preferable way: direct setup or via docker image? Are the tiny and easy to configure solutions?
-
I'm running the latest OMV Arrakis together with the autoshutdown and wakealarm plugins. I configured autoshutdown in a way that it shuts the NAS down after some time of inactivity and wakealarm should wake the NAS up some hours later.
This sequence works exactly one time, that means:
- manually start the NAS
- autoshutdown shuts it down
- wakealarm wakes it up
- autoshutdown shuts it down
- NAS never wakes up againEvery time I execute date -d @$(cat /sys/class/rtc/rtc0/wakealarm) it shows me the correct time on the correct day, athough I never had a look immediately before shutting the NAS down. So waking up by RTC is generally working, but anything happens after the first wakeup of the second shutdown.
How can I debug this? Does anyone else have this problem?