haugene / vpn-configs-contrib

A collection of configs for various VPN providers
GNU General Public License v3.0
174 stars 739 forks source link

Container crashing when trying to retrieve VPN configs #241

Closed Qhilm closed 9 months ago

Qhilm commented 9 months ago

Is there a pinned issue for this?

Is there an existing or similar issue for this?

Is there any comment in the documentation for this?

Is this related to the container/transmission?

Are you using the latest release?

Have you tried using the dev branch latest?

Config used

version: '3.8'
services:
  transmission-openvpn:
    container_name: 'haugene'
    cap_add:
      - NET_ADMIN
    devices:
      - '/dev/net/tun'
    volumes:
      - /volume1/data/transmission-data/:/data
      - /volume1/data/haugene/resolv.conf:/etc/resolv.conf
      - /volume1/data/haugene/:/config
    environment:
      - OPENVPN_PROVIDER=PROTONVPN
      - OPENVPN_CONFIG=dk.protonvpn.net.udp
      - OPENVPN_USERNAME=**None**
      - OPENVPN_PASSWORD=**None**
      - LOCAL_NETWORK=192.168.1.0/24
      - OVERRIDE_DNS_1=94.140.14.14
      - OVERRIDE_DNS_2=149.112.112.112
      - OPENVPN_OPTS=--inactive 3600 --ping 10 --ping-exit 60
      #- TRANSMISSION_RATIO_LIMIT=3
      #- TRANSMISSION_RATIO_LIMIT_ENABLED=true
      - TRANSMISSION_SPEED_LIMIT_UP_ENABLED=true
      - TRANSMISSION_SPEED_LIMIT_UP=1000
    logging:
      driver: json-file
      options:
        max-size: 10m
    sysctls:
      - net.ipv6.conf.all.disable_ipv6=0
    ports:
      - '9091:9091'
    image: haugene/transmission-openvpn:dev

networks:
  default:
    external:
      name: mybridge

Current Behavior

Container crashes at start with this error:

error: Your local changes to the following files would be overwritten by merge: openvpn/privado/updateConfigs.sh Please commit your changes or stash them before you merge.

The issue started somewhere in the last 8 days, it was working fine 8 days ago and as far as I can tell ourobouros did not upgrade this container in the last 8 days.

Expected Behavior

container starting normally

How have you tried to solve the problem?

  1. tried the dev channel
  2. DNS seems to work because I can see this in the logs:

    Will get configs from https://github.com/haugene/vpn-configs-contrib.git Repository is already cloned, checking for update

Log output

Starting container with revision: 52d432ddca774080040627e3b6ec61fc9e6b0ac7 TRANSMISSION_HOME is currently set to: /config/transmission-home One or more OVERRIDE_DNS addresses found. Will use them to overwrite /etc/resolv.conf Creating TUN device /dev/net/tun Using OpenVPN provider: PROTONVPN Running with VPN_CONFIG_SOURCE auto No bundled config script found for PROTONVPN. Defaulting to external config Will get configs from https://github.com/haugene/vpn-configs-contrib.git Repository is already cloned, checking for update error: Your local changes to the following files would be overwritten by merge: openvpn/privado/updateConfigs.sh Please commit your changes or stash them before you merge. Aborting Updating 45cc9b305..35ec20293

Environment

- OS: DSM 7.2
- Docker: 20.10.23

Anything else?

No response

Qhilm commented 9 months ago

Update: problem does not happen with focal channel.

Qhilm commented 9 months ago

I erased the content of the vpn-configs-contrib folder to test, and the error is now:

Will get configs from https://github.com/haugene/vpn-configs-contrib.git fatal: not a git repository (or any parent up to mount point /)

I also tried removing OVERRIDE_DNS_1 and OVERRIDE_DNS_2, it doesn't seem to change much.

pkishino commented 9 months ago

https://github.com/haugene/docker-transmission-openvpn/issues/2727#issuecomment-1736374402 delete vpn-configs-contrib then delete container and restart.. it's a git thing..

Qhilm commented 9 months ago

Ha. I had to delete the entire vpn-configs-contrib folder. I had previously deleted the contents only but not the folder itself, which was somehow not helping. Maybe some hidden files I missed. Thanks.