Giter VIP home page Giter VIP logo

Comments (8)

Dragon2fly avatar Dragon2fly commented on June 4, 2024 1

Sending SIGTERM to openvpn process, such as sudo kill #pid, did terminate the vpn connection and the script didn't restart openvpn.

Did you mean that sending SIGTERM to the script didn't work properly? Right now the script itself is not handle SIGTERM and so doesn't do the post_action

New push made it handles SIGTERM gracefully :)

from vpngate-with-proxy.

evadogstar avatar evadogstar commented on June 4, 2024 1

It show:
/home/user/vpngate-with-proxy/user_script.sh

Note:

  • it's cli file of previous version.
  • Before that to fix issue with /root folder I delete user_script.sh at vpngate_with_proxy dir and put my user_script.sh

I will test the same with current version

On recent clean version:

It give this error https://i.imgur.com/mbgJluf.png
Run script modified:
sudo sg qvpn -c "sudo python vpnproxy_cli.py $user_home $arg"

Update:
To fix it I created empty vpngate-with-proxy folder at .config directory.

Issue with /rootsolved on new nersion. ./run script send correct user folder to vpngate.

Update2:
To get network connection I modified my run command from above to:
sudo sg qvpn -c "python vpnproxy_cli.py $user_home $arg"

from vpngate-with-proxy.

Dragon2fly avatar Dragon2fly commented on June 4, 2024 1

I found an error! It's my bad leaving the expanduser('~') code intact. I replaced it with proper user_home. Now it should be fine on your system. Please confirm with the newest push

from vpngate-with-proxy.

evadogstar avatar evadogstar commented on June 4, 2024

@Dragon2fly First reboot after update: works ok! But need more testing :) thanks for this update.
p.s. Configs now have other permissions to keep them on updates?

update: got some error


Traceback (most recent call last):
  File "vpnproxy_cli.py", line 408, in <module>
    os.symlink(user_script_file, "user_script.sh")
OSError: [Errno 17] File exists

from vpngate-with-proxy.

Dragon2fly avatar Dragon2fly commented on June 4, 2024

uhm, the line before that line should already check if the file exist or not.
config.ini and user_script.sh have the same processing code. If the is a problem, then it should happen to the config.ini first as it is processed before user_script.sh.

Can you confirm this error again?

from vpngate-with-proxy.

evadogstar avatar evadogstar commented on June 4, 2024

I think this error related to this issue: #14 (comment)
It was a problem with writing configs to /root.

While we have open issue linked above and this ticket about SIGTERM solved: I do not expect now any problems with shutdown. This ticket can be closed. Thanks

from vpngate-with-proxy.

Dragon2fly avatar Dragon2fly commented on June 4, 2024

Can you do one more test below before I close this issue?

open the vpnproxy_cli.py file and put this line

print os.path.realpath("user_script.sh")

before this line

if not os.path.exists("user_script.sh"):

to see if the printed path is the expected one.

from vpngate-with-proxy.

evadogstar avatar evadogstar commented on June 4, 2024

I delete folder at .config dir and clone new repository. Now, it's executed without error. Thanks. :)

from vpngate-with-proxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.