PIA not reconnect after fail

On older versions it used to try endlessly to reconnect if connection fail, but in latest it only tries for limited retries and goes into disconnected mode and pia tray goes red... no more retry to connect.

Comments

  • Log file of v72 and later when network disconnected and reconnected :

    /home/payam/.pia_manager/pia_manager/openvpn_manager.rb:104:in `start'
    /home/payam/.pia_manager/pia_manager/pia_manager.rb:159:in `block in connect'
    <internal:prelude>:10:in `synchronize'
    /home/payam/.pia_manager/pia_manager/pia_manager.rb:159:in `connect'
    /home/payam/.pia_manager/pia_manager/pia_manager.rb:93:in `handle_command'
    /home/payam/.pia_manager/pia_manager/pia_manager.rb:289:in `block (3 levels) in start_command_server'
    /home/payam/.pia_manager/pia_manager/pia_common.rb:31:in `block in safe'
    [2018-03-18T16:18:34.154Z] <debug> #27593/10176860 |OpenvpnManager| "/home/payam/.pia_manager/openvpn_launcher.64" --route -n delete 216.155.131.76
    [2018-03-18T16:18:34.186Z] <info> #27593/10176860 |OpenvpnManager| Going down
    [2018-03-18T16:18:34.187Z] <info> #27593/10176860 |OpenvpnManager| Connection status is down
    [2018-03-18T16:18:34.187Z] <debug> #27593/10176860 |OpenvpnManager| Updated status
    [2018-03-18T16:18:34.189Z] <info> #27593/10176860 |OpenvpnManager| Stopped polling OpenVPN for connection status
    [2018-03-18T16:18:34.189Z] <debug> #27593/10176860 |OpenvpnManager| Stopped polling
    [2018-03-18T16:18:34.189Z] <debug> #27593/10176860 |OpenvpnManager| Port forward loop down (if enabled)
    [2018-03-18T16:18:34.189Z] <debug> #27593/10176860 |OpenvpnManager| Cleared PID
    [2018-03-18T16:18:34.190Z] <info> #27593/10176860 |OpenvpnManager| Restoring DNS servers
    [2018-03-18T16:18:34.190Z] <debug> #27593/10176860 |OpenvpnManager| DNS restored (if enabled)
    [2018-03-18T16:18:34.190Z] <debug> #27593/10176860 |OpenvpnManager| Killswitch down (if enabled)
    [2018-03-18T16:18:34.190Z] <debug> #27593/10176860 |OpenvpnManager| DNS leak down (if enabled)
    [2018-03-18T16:18:34.190Z] <debug> #27593/10176860 |OpenvpnManager| Down finished successfully
    [2018-03-18T16:18:34.190Z] <info> #27593/10176860 |OpenvpnManager| Status is stopped
    [2018-03-18T16:18:34.195Z] <info> #27593/7362180 |RegionManager| Checking latency
    [2018-03-18T16:18:34.478Z] <debug> #27593/6466520 |PiaManager| Received payload {"cmd"=>"clear_notifications", "params"=>{}}
    [2018-03-18T16:18:34.479Z] <debug> #27593/6440000 |PiaManager| Handling command clear_notifications
    [2018-03-18T16:19:21.364Z] <info> #27593/6434420 |RegionManager| Getting region data
    [2018-03-18T16:19:34.245Z] <info> #27593/7362180 |RegionManager| Checking latency
    [2018-03-18T16:20:06.650Z] <debug> #27593/6434420 |RegionManager| #<Errno::ECONNRESET: Connection reset by peer>
    /home/payam/.pia_manager/pia_manager/64/net/protocol.rb:141:in `read_nonblock'
    /home/payam/.pia_manager/pia_manager/64/net/protocol.rb:141:in `rbuf_fill'
    /home/payam/.pia_manager/pia_manager/64/net/protocol.rb:122:in `readuntil'
    /home/payam/.pia_manager/pia_manager/64/net/protocol.rb:132:in `readline'
    /home/payam/.pia_manager/pia_manager/64/net/http.rb:2563:in `read_status_line'
    /home/payam/.pia_manager/pia_manager/64/net/http.rb:2552:in `read_new'
    /home/payam/.pia_manager/pia_manager/64/net/http.rb:1320:in `block in transport_request'
    /home/payam/.pia_manager/pia_manager/64/net/http.rb:1317:in `catch'
    /home/payam/.pia_manager/pia_manager/64/net/http.rb:1317:in `transport_request'
    /home/payam/.pia_manager/pia_manager/64/net/http.rb:1294:in `request'
    /home/payam/.pia_manager/pia_manager/64/net/http.rb:1308:in `send_entity'
    /home/payam/.pia_manager/pia_manager/64/net/http.rb:1097:in `post'
    /home/payam/.pia_manager/pia_manager/region_manager.rb:47:in `block in check_regions'
    /home/payam/.pia_manager/pia_manager/64/net/http.rb:746:in `start'
    /home/payam/.pia_manager/pia_manager/region_manager.rb:47:in `check_regions'
    [2018-03-18T16:20:39.273Z] <info> #27593/7362180 |RegionManager| Checking latency
    [2018-03-18T16:21:44.308Z] <info> #27593/7362180 |RegionManager| Checking latency

     Log of v70 after network disconnected and reconnected:
     [03/18/18 20:08:39] [down] Going down
    [03/18/18 20:08:39] status: stopped
    [03/18/18 20:08:39] connection_status: down
    [03/18/18 20:08:39] [down] updated status
    [03/18/18 20:08:39] [down] stopped polling
    [03/18/18 20:08:39] [down] port forward loop down (if enabled)
    [03/18/18 20:08:39] [down] cleared pid
    [03/18/18 20:08:39] [down] dns restored (if enabled)
    [03/18/18 20:08:39] [down] killswitch down (if enabled)
    [03/18/18 20:08:39] [down] dnsleak down (if enabled)
    [03/18/18 20:08:39] [down] DOWN finished successfully
    [03/18/18 20:08:39] checking latency
    [03/18/18 20:08:42] status: starting
    [03/18/18 20:08:42] #
    /home/payam/.pia_manager/pia_manager/openvpn_manager.rb:1220:in `readline'
    /home/payam/.pia_manager/pia_manager/openvpn_manager.rb:1220:in `block (2 levels) in cmd'
    /home/payam/.pia_manager/pia_manager/pia_common.rb:291:in `timeout'
    /home/payam/.pia_manager/pia_manager/openvpn_manager.rb:1218:in `block in cmd'
    :10:in `synchronize'
    /home/payam/.pia_manager/pia_manager/openvpn_manager.rb:1210:in `cmd'
    /home/payam/.pia_manager/pia_manager/openvpn_manager.rb:1240:in `block in start_connection_status_polling'
    /home/payam/.pia_manager/pia_manager/pia_common.rb:24:in `block in safe'
    [03/18/18 20:08:42] flushed_dns
    [03/18/18 20:08:42] starting openvpn: "/home/payam/.pia_manager/openvpn_launcher.64" "--client" "--persist-key" "--persist-tun" "--comp-lzo" "yes" "--dev" "tun" "--script-security" "2" "--remote" "209.222.15.235" "1194" "--auth-user-pass" "/home/payam/.pia_manager/data/user_pass.txt" "--writepid" "/home/payam/.pia_manager/log/openvpn.pid" "--proto" "udp" "--nobind" "--management" "127.0.0.1" "31749" "--log-append" "/home/payam/.pia_manager/log/openvpn.log" "--remote-cert-tls" "server" "--cipher" "aes-128-cbc" "--auth" "sha1" "--ca" "/home/payam/.pia_manager/data/ca.crt" "--sndbuf" "262144" "--rcvbuf" "262144" "--tls-remote" "e34f7031c2c5c5c0f5946abffd6be372" "--pia-signal-settings" "--daemon"
    [03/18/18 20:08:42] created process
    [03/18/18 20:08:42] connection_status: connecting
    [03/18/18 20:08:42] #
    /home/payam/.pia_manager/pia_manager/openvpn_manager.rb:1214:in `initialize'
    /home/payam/.pia_manager/pia_manager/openvpn_manager.rb:1214:in `open'
    /home/payam/.pia_manager/pia_manager/openvpn_manager.rb:1214:in `block (2 levels) in cmd'
    /home/payam/.pia_manager/pia_manager/pia_common.rb:291:in `timeout'
    /home/payam/.pia_manager/pia_manager/openvpn_manager.rb:1213:in `block in cmd'
    :10:in `synchronize'
    /home/payam/.pia_manager/pia_manager/openvpn_manager.rb:1210:in `cmd'
    /home/payam/.pia_manager/pia_manager/openvpn_manager.rb:1174:in `block (2 levels) in wait_management'
    /home/payam/.pia_manager/pia_manager/openvpn_manager.rb:1172:in `loop'
    /home/payam/.pia_manager/pia_manager/openvpn_manager.rb:1172:in `block in wait_management'
    /home/payam/.pia_manager/pia_manager/pia_common.rb:291:in `timeout'
    /home/payam/.pia_manager/pia_manager/openvpn_manager.rb:1171:in `wait_management'
    /home/payam/.pia_manager/pia_manager/openvpn_manager.rb:93:in `start'
    /home/payam/.pia_manager/pia_manager/pia_manager.rb:137:in `block in connect'
    :10:in `synchronize'
    [03/18/18 20:08:59] connection_status: CONNECTED
    [03/18/18 20:08:59] state: 1521391138,CONNECTED,SUCCESS,10.94.10.6,209.222.15.235
    

    V70 reconnect but later versions  dont ... 
  • it's not nice to hammer away endlessly trying to reconnect
  • This is a known issue. The main reason for this is to not hammer the servers or your ISP with reconnections right after a failure.

    I've already reported that one and suggested letting it reconnect infinitely but with a delay between attempts. It should make its way into a future release, but I don't have any ETA to give.

    You can stay on the old version for now if this is a big issue for you or you can also set up OpenVPN instead as an alternative.
  • I dont understand how could it hammer isp or pia servers when network is disconnected ?
  • a network connection path must exist to layer a VPN on top
  • I don't understand what you are trying to prove ....

    I disconnect internet from modem, and reconnect it after 10 minutes.
    On v70 PIA app reconnects, but later versions not.
  • i answered your question. "prove" doesn't enter into it.

    you may easily (programmatically) check the status of your VPN link every 10 minutes and, if down, initiate VPN establishment.
  • Then what's the point in using PIA app when we should run other watchdog scripts to check our vpn?
    I thought using PIA app is to prevent all other scripts to check our privacy.


  • eh?  you run your system the way you want. you have software tools to establish the configuration you prefer.
    a teeny script to keep an eye on your VPN status has no direct effect on "our privacy". talk sense, mister.
  • As I said in my previous post, it is already known and reported. I worked with the developers today on possible fixes for this ;)

    As for the  hammering, it's not that big of a deal but it generates a lot of unnecessary traffic, and if the reason the server is unreachable is network congestion/DDoS that's just adding more to it and making it harder for it to come back up. Thousands of clients trying to connect multiple times all together at the same time in itself is kind of a mini DDoS. That's why most software have a reconnect timer.
Sign In or Register to comment.