Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem deploying container #263

Open
6 tasks done
wickedyoda opened this issue Dec 21, 2023 · 7 comments
Open
6 tasks done

Problem deploying container #263

wickedyoda opened this issue Dec 21, 2023 · 7 comments

Comments

@wickedyoda
Copy link
Contributor

Is there a pinned issue for this?

  • I have read the pinned issues

Is there an existing or similar issue for this?

  • I have searched the existing issues

Is there any comment in the documentation for this?

  • I have read the documentation, especially the FAQ and Troubleshooting parts

Is this related to the container/transmission?

  • I have checked the container repo for issues

Are you using the latest release?

  • I am using the latest release

Have you tried using the dev branch latest?

  • I have tried using dev branch

Config used

version: '2'
services:
transmission:
image: haugene/transmission-openvpn:latest
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun
restart: always
ports:
- "9091:9091"
- "8888:8888"
dns:
- 192.168.100.2
- 1.1.1.1
- 8.8.4.4
volumes:
- /etc/localtime:/etc/localtime:ro
- /home/traver/nasmedia/torrantdownloads:/data
- /home/traver/docker/transmission-docker/openvpn/custom/:/etc/openvpn/custom/
- /home/traver/docker/transmission-docker/config:/config

environment:
- OPENVPN_PROVIDER=MULLVAD
- OPENVPN_CONFIG=default
- OPENVPN_USERNAME=XXXXXXX
- OPENVPN_PASSWORD=m
- OPENVPN_OPTS=--inactive 3600 --ping 10 --ping-exit 60
- LOCAL_NETWORK=192.168.100.0/24
sysctls:
- "net.ipv6.conf.all.disable_ipv6=0"

proxy:
image: haugene/transmission-openvpn-proxy:latest
links:
- transmission
ports:
- 8089:8080
volumes:
- /etc/localtime:/etc/localtime:ro
- /home/traver/docker/transmission-docker/openvpn/custom/:/etc/openvpn/custom/
- /home/traver/docker/transmission-docker/config:/config

rss:
image: haugene/transmission-rss:latest
links:
- transmission
environment:
- RSS_URL=http://.../xxxxx.rss

Current Behavior

Container constantly restarts

Expected Behavior

Container pulls configs and runs

How have you tried to solve the problem?

I get the following when the docker compose trys to pull the configs for VPN

Creating TUN device /dev/net/tun
Using OpenVPN provider: MULLVAD
Running with VPN_CONFIG_SOURCE auto
No bundled config script found for MULLVAD. Defaulting to external config
Will get configs from https://github.com/haugene/vpn-configs-contrib.git
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

Log output

Creating TUN device /dev/net/tun
Using OpenVPN provider: MULLVAD
Running with VPN_CONFIG_SOURCE auto
No bundled config script found for MULLVAD. Defaulting to external config
Will get configs from https://github.com/haugene/vpn-configs-contrib.git
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

Environment

- OS: Ubuntu 21
- Docker: 24.0.7

Anything else?

No response

@pkishino
Copy link
Collaborator

Is this a new deployment?
Have you tried to completely delete all config and data and deploy new?
I can’t replicate this locally with neither new nor updated container ..

@wickedyoda
Copy link
Contributor Author

I noticed the ovpn container was in a constant restart, stopped the container and restarted but nothing changed. Removed the container and reloaded it from the same docker-compose as normal. Removed the containers, and images, then pulled again using :dev and :latest. images. Same errors in log and constant reboot, but the logs load to the error above and reboot the container.

I have also removed all directories associated with the containers and configs, then let them be recreated during setup.

@pkishino
Copy link
Collaborator

You could try using CUSTOM provider and manually providing the ovpn (which you could download yourself from the repo) to make sure everything else works.
I tried spinning up a similar environment as yourself but it worked as expected..

@pkishino
Copy link
Collaborator

I wonder if you have some permission issues with the mounts or such? You could also try providing a different url to the ovpns (take a look at the fetch external script) in the main repo.. this looks very hard to debug on my end

@aalencia
Copy link

aalencia commented Jan 6, 2024

im also getting an error that appears in the same ballpark to me. in this error however it appears the call to git is returning a different error:


01/06/2024
01:48:31 AM
Starting container with revision: 07f5a2b9aea5028c9bb75438c1552708e91dde71
01/06/2024
01:48:31 AM
TRANSMISSION_HOME is currently set to: /config/transmission-home
01/06/2024
01:48:31 AM
Creating TUN device /dev/net/tun
01/06/2024
01:48:31 AM
Using OpenVPN provider: MULLVAD
01/06/2024
01:48:31 AM
Running with VPN_CONFIG_SOURCE auto
01/06/2024
01:48:31 AM
No bundled config script found for MULLVAD. Defaulting to external config
01/06/2024
01:48:31 AM
Will get configs from https://github.com/haugene/vpn-configs-contrib.git
01/06/2024
01:48:31 AM
Repository is already cloned, checking for update
01/06/2024
01:48:32 AM
There is no tracking information for the current branch.
01/06/2024
01:48:32 AM
Please specify which branch you want to merge with.
01/06/2024
01:48:32 AM
See git-pull(1) for details.
01/06/2024
01:48:32 AM
01/06/2024
01:48:32 AM
    git pull <remote> <branch>
01/06/2024
01:48:32 AM
01/06/2024
01:48:32 AM
If you wish to set tracking information for this branch you can do so with:
01/06/2024
01:48:32 AM
01/06/2024
01:48:32 AM
    git branch --set-upstream-to=origin/<branch> master
01/06/2024
01:48:32 AM
Container stopped

@aalencia
Copy link

aalencia commented Jan 6, 2024

not sure if this is related but i figured id drop this here.

@EverlyScott
Copy link

I'm having this same issue but using a local openvpn config file.

Here's my config:

version: "2.0"
services:
    transmission-openvpn:
        container_name: transmission
        cap_add:
            - NET_ADMIN
        volumes:
            - '/var/transmission/data:/data'
            - '/var/transmission/config:/config'
            - './windscribe.ovpn:/config/vpn-configs-contrib/openvpn/-local-/windscribe.ovpn:ro'
        environment:
            - "OPENVPN_PROVIDER=-local-"
            - OPENVPN_CONFIG=windscribe
            - OPENVPN_USERNAME=********
            - OPENVPN_PASSWORD=********
        logging:
            driver: "json-file"
            options:
                max-size: 10m
        ports:
            - 9091:9091
        image: haugene/transmission-openvpn

Here's my log with debug enabled:

root@vmi484998:/var/transmission# docker compose up
[+] Running 1/1
 ⠿ Container transmission  Recreated                                                                                                                               0.1s
Attaching to transmission
transmission  | + [[ -n 07f5a2b9aea5028c9bb75438c1552708e91dde71 ]]
transmission  | + echo 'Starting container with revision: 07f5a2b9aea5028c9bb75438c1552708e91dde71'
transmission  | + echo 'TRANSMISSION_HOME is currently set to: /config/transmission-home'
transmission  | Starting container with revision: 07f5a2b9aea5028c9bb75438c1552708e91dde71
transmission  | TRANSMISSION_HOME is currently set to: /config/transmission-home
transmission  | + [[ /config != \/\c\o\n\f\i\g ]]
transmission  | + '[' -d /data/transmission-home ']'
transmission  | + [[ -x /scripts/openvpn-pre-start.sh ]]
transmission  | + grep -q OVERRIDE_DNS
transmission  | + compgen -e
transmission  | + nslookup google.com
transmission  | + [[ true == \t\r\u\e ]]
transmission  | + echo 'Creating TUN device /dev/net/tun'
transmission  | + rm -f /dev/net/tun
transmission  | Creating TUN device /dev/net/tun
transmission  | + mkdir -p /dev/net
transmission  | + mknod /dev/net/tun c 10 200
transmission  | + chmod 0666 /dev/net/tun
transmission  | + VPN_PROVIDER=local
transmission  | + export VPN_PROVIDER=local
transmission  | + VPN_PROVIDER=local
transmission  | + export VPN_PROVIDER_HOME=/etc/openvpn/local
transmission  | + VPN_PROVIDER_HOME=/etc/openvpn/local
transmission  | + mkdir -p /etc/openvpn/local
transmission  | Using OpenVPN provider: LOCAL
transmission  | + [[ -z '' ]]
transmission  | + [[ local == \*\*\N\o\n\e\*\* ]]
transmission  | + [[ -z local ]]
transmission  | + echo 'Using OpenVPN provider: LOCAL'
transmission  | + [[ local == \c\u\s\t\o\m ]]
transmission  | + [[ -n '' ]]
transmission  | + [[ -z '' ]]
transmission  | + VPN_CONFIG_SOURCE=auto
transmission  | + VPN_CONFIG_SOURCE=auto
transmission  | + echo 'Running with VPN_CONFIG_SOURCE auto'
transmission  | + [[ auto == \a\u\t\o ]]
transmission  | + [[ -f /etc/openvpn/local/configure-openvpn.sh ]]
transmission  | + [[ local == \c\u\s\t\o\m ]]
transmission  | Running with VPN_CONFIG_SOURCE auto
transmission  | + echo 'No bundled config script found for LOCAL. Defaulting to external config'
transmission  | No bundled config script found for LOCAL. Defaulting to external config
transmission  | + VPN_CONFIG_SOURCE=external
transmission  | + [[ external == \e\x\t\e\r\n\a\l ]]
transmission  | + [[ local != \c\u\s\t\o\m ]]
transmission  | + ./etc/openvpn/fetch-external-configs.sh
transmission  | + VPN_CONFIG_SOURCE_TYPE=github_clone
transmission  | + GITHUB_CONFIG_SOURCE_REPO=haugene/vpn-configs-contrib
transmission  | + GITHUB_CONFIG_SOURCE_REVISION=main
transmission  | + [[ github_clone == \g\i\t\h\u\b\_\z\i\p ]]
transmission  | + [[ github_clone == \g\i\t\h\u\b\_\c\l\o\n\e ]]
transmission  | + GITHUB_CONFIG_REPO_URL=https://github.com/haugene/vpn-configs-contrib.git
transmission  | + config_repo=/config/vpn-configs-contrib
transmission  | + git config --global --add safe.directory /config/vpn-configs-contrib
transmission  | Will get configs from https://github.com/haugene/vpn-configs-contrib.git
transmission  | + echo 'Will get configs from https://github.com/haugene/vpn-configs-contrib.git'
transmission  | + [[ -d /config/vpn-configs-contrib ]]
transmission  | ++ git -C /config/vpn-configs-contrib remote -v
transmission  | ++ head -1
transmission  | ++ awk '{print $2}'
transmission  | ++ sed -e 's/https:\/\/github.com\///' -e s/.git//
transmission  | fatal: not a git repository (or any parent up to mount point /)
transmission  | Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
transmission  | + GITHUB_CONFIG_SOURCE_LOCAL=

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants