polkaned / dockerfiles

MIT License
109 stars 53 forks source link

"Already Activated" Error #33

Closed pshankland closed 3 years ago

pshankland commented 3 years ago

Hi, using the latest version and docker compose. Have the following in my compose file:

version: "2.1" services: expressvpn: image: polkaned/expressvpn container_name: expressvpn environment:

  • ACTIVATION_CODE=myActivationCode cap_add:
  • NET_ADMIN devices:
    • /dev/net/tun stdin_open: true tty: true command: /bin/bash privileged: true restart: unless-stopped ports:
  • "6789:6789" #NZBGet
  • "8989:8989" #Sonarr
  • "7878:7878" #Radarr

When running 'docker-compose up' for a second time after stopping the container, I get the following:

expressvpn | Restarting ExpressVPN service: expressvpnd. expressvpn | spawn expressvpn activate expressvpn | Already activated. Logout from your account (y/N)? expressvpn | myActivationCode expressvpn | send: spawn id exp4 not open expressvpn | while executing expressvpn | "send "n\r"" expressvpn | (file "/tmp/expressvpnActivate.sh" line 6) expressvpn | Please disconnect first before trying to connect again.

It seems as though that when you stop the container, the connection remains open.

pshankland commented 3 years ago

I am receiving this error when using CTRL + C to quit the docker containers. Using 'docker-compose down' stops the issue.