Closed crypticviper closed 2 years ago
Did you recently pull a newer version of the image? Maybe a change in one of the last commits created this bug. If not, please try to update the container (docker-compose up -d
) and see if this solves the bug.
It seems like OpenVPN gets called without a credentials file. This should only happen if there is no credentials file or it is empty: https://github.com/Trigus42/alpine-qbittorrentvpn/blob/beefcef2f579fd2d8f29c20d472742923e65cddf/rootfs/etc/cont-init.d/02-vpn#L197-L204
The following part should store your credentials in a file ${VPN_CONFIG_NAME}"_credentials.conf
, printing [INFO] Using credentials from env vars
the first time the container is started and from then on use the credentials stored in ${VPN_CONFIG_NAME}"_credentials.conf
, ignoring your VPN credentials in the docker compose file and printing [INFO] Using credentials from /config/openvpn/${VPN_CONFIG_NAME}_credentials.conf
to the log:
https://github.com/Trigus42/alpine-qbittorrentvpn/blob/beefcef2f579fd2d8f29c20d472742923e65cddf/rootfs/etc/cont-init.d/02-vpn#L48-L70
If this is not the first start after you reset the container and deleted the config files, you shouldn't get [INFO] Using credentials from env vars
in your log.
Please check to see if the credentials file which in your case should be stored under /qbittorrent/openvpn/
named xxx.myvpn.com.ovpn_credentials.conf
exists and contains the correct credentials.
@Trigus42 Yes, I think I did pull the latest image few days back. May be that's the reason.
As for credentials file, If I keep xxx.myvpn.com.ovpn.openvpn
file in /qbittorrent/openvpn/
folder, when the conrainer starts it automatically creates a new file called xxx.myvpn.com.ovpn_credentials.conf
and fills it with appropriate credentials after reading it from ENV supplied in docker compose file. And it is never empty, it has correct credentials.
I will try pulling some older versions of the image and see if that helps.
Ok, now it is really weird. I switched to an older version (trigus42/qbittorrentvpn:qbt4.3.9-20211121) and it started working again.
After that I switched back to latest image and things seem to work just fine! Strange! I will try to reproduce this further and if not will close this issue. Thanks for your time.
Ok I was able to sort of reproduce it. I usually have the habit of emptying /qbittorrent/openvpn/
folder and copy a new .openvpn file there (I do this if I have to switch VPN servers) and then restart the container. With latest images, this results in the error I mentioned in my initial post.
I tried below image versions and all of them seem to have this problem (I am not sure if this is an issue or just a weird use case that I have).
trigus42/qbittorrentvpn:latest
trigus42/qbittorrentvpn:qbt4.3.9
trigus42/qbittorrentvpn:qbt4.4.0
For the time being I have found an older version which does work for me with my scenario. This version is:
trigus42/qbittorrentvpn:qbt4.3.9-20211121
May be there are images that are newer than this which work but I haven't tried them all.
Thanks to your info I was able to identify the problem quickly. Please try the trigus42/qbittorrentvpn:testing
image (if you have an x86-64 system) to see if this fixes your problem.
@Trigus42 Thanks for your time and the fix. However, I am sorry, I only have a raspberry pi to test it.
This would probably be armv7, right? I've rebuild the image. You can try it out now.
@Trigus42 it's armv71 as per lscpu
I expected armv7 to include this but somehow it doesn't seem so. I tried the image with testing tag but container doesn't start. I get below repeated errors in container logs.
standard_init_linux.go:228: exec user process caused: exec format error
It was getting late, but now I've built it for all architectures supported by the normal images and tested it on my RPi4. It should work now.
@Trigus42 works fine now. I tested my scenario as well. Everything is working as expected. Thanks a lot for your replies and time. Cheers! Closing this issue.
Great! I have created a new stable image with the changes.
Firstly, thanks for this great container. Have been using it for months now without any issues.
However, since I restarted the container today, I have been only getting below error for some reason. Tried different openvpn configurations (i.e. different VPN servers from my VPN providers to no avail). Thanks in advance for any help in this regard. Cheers!
Below are the container logs:
Below is my docker compose (untouched for months now). I am running this on Portainer which is running on Open Media Vault 6.x.