Truenas Scale k3s apps not able to mount local files when using openvpn

linit

Cadet
Joined
Aug 25, 2018
Messages
9
I have two k3s apps that use openvpn, sabnzbd and transmission. Both apps work fine when I configure openvpn however when I configure a local disk to store downloads from my NAS the mount will not work but the app still runs, I see no errors. If I remove the openvpn configuration then the local files mount as expected.

It seems I cannot use both openvpn and mount local files from my NAS on either of these apps, only the vpn mount will work and I do not see any local files mounted.
I have tried using other openvpn config mount paths, same results.

Has/Can anyone else see this issue?
 

Attachments

  • Screenshot 2022-11-20 at 1.30.19 PM.png
    Screenshot 2022-11-20 at 1.30.19 PM.png
    354.8 KB · Views: 245
  • Screenshot 2022-11-20 at 1.16.06 PM.png
    Screenshot 2022-11-20 at 1.16.06 PM.png
    46.4 KB · Views: 347

morganL

Captain Morgan
Administrator
Moderator
iXsystems
Joined
Mar 10, 2018
Messages
2,694
I assume you mean a local dataset on ZFS....... not disks?

Which software version?
 

linit

Cadet
Joined
Aug 25, 2018
Messages
9
Yes, ZFS. I am using TrueNAS-SCALE-22.02.4. I may have a work around, it seems openvpn mounts to /vpn. If I change my ZFS mounts for these apps to use this mountpoint, I can mount the ZFS volume(i.e. mount to /vpn/media). I should be able to mount to other mount points like /meda or /mnt, etc but cannot.
 

linit

Cadet
Joined
Aug 25, 2018
Messages
9
I patched to TrueNAS-SCALE-22.12-RC.1 today, now the /vpn alternative I had working no longer works and I get a SMB sharing error when I try to use this volume, which I did not have before. Even after removing the SMB share I cannot mount a volume to any path when using Openvpn option. Without the VPN option, the same volume mounts to any location I provide.
 

linit

Cadet
Joined
Aug 25, 2018
Messages
9
I went from bad to worse :(. My Kubernetes has stoped working:

CRITICAL​

Failed to start kubernetes cluster for Applications: Cannot connect to host 127.0.0.1:6443 ssl:default [Connection reset by peer]​

2022-11-21 17:20:15 (America/Chicago)

I have tried reinstalling truenas scale 22.02.4 on a fresh install with a config recover but the server continues to give me the error above.

At this point my Truenas is not useful as all my kube pods cannot run. I don't want to lose all my music, etc.

ANY ADVICE on how I can get my server operational again?

Thanks in advance!
 

marcinw

Cadet
Joined
Dec 4, 2022
Messages
4
Yup... same here. This did not use to happen on "PVC (simple)", but I was forced to change to either PVC or HostPath because otherwise the app wouldn't upgrade. Now after the upgrade if I look into mount, my /data/home gets mounted to /vpn, but my actual storage is not mounted at all.
 

linit

Cadet
Joined
Aug 25, 2018
Messages
9
I ended up reverting back to CORE for now. My ZFS disks were fine after the change back to core.
 

marcinw

Cadet
Joined
Dec 4, 2022
Messages
4
Is that going to solve the problem of not being able to mount media when openvpn configured?
 

Heavy

Explorer
Joined
Aug 12, 2021
Messages
57
Is that going to solve the problem of not being able to mount media when openvpn configured?
No. Id use Wireguard instead if your provider supports it. It doesn't have that issue.
 

marcinw

Cadet
Joined
Dec 4, 2022
Messages
4
Thanks for the tip. Yeah, they are working on it, but it's not available yet, so for now I guess the only option is to downgrade my apps.
 

marcinw

Cadet
Joined
Dec 4, 2022
Messages
4
I was successful at mounting storage to Deluge container from truecharts, with OpenVPN added. The config looks pretty much the same in the UI as for qBitTorrent which won't mount storage if OpenVPN is added. I wonder what the difference is between Deluge and qBitTorrent?
 

Kuro Houou

Contributor
Joined
Jun 17, 2014
Messages
193
Anyone find a way to fix this.. having this exact same issue. Trying to use OpenVPN with ExpressVPN. App works fine mounting host storage before OpenVPN setup. As soon as OpenVPN is setup, all access to the host storage goes away. If I log into the shell it looks like a completely different container and folders almost.
 
Top