Skip to content

Reconnecting forever on network down

'Sometimes when the network goes down and comes back, it will say "reconnecting" forever. HIGH PRIORITY' By Elijah via https://pad.riseup.net/p/bitmask-qa

I've disconnected manually my networt and this is the resulting log:

2013-09-09 16:25:56,441 - leap.openvpn - INFO - Mon Sep  9 16:25:56 2013 [snail.dev.bitmask.net] Peer Connection Initiated with [AF_INET]176.53.69.19:1194
2013-09-09 16:25:58,707 - leap.openvpn - INFO - Mon Sep  9 16:25:58 2013 TUN/TAP device tun0 opened
Mon Sep  9 16:25:58 2013 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Mon Sep  9 16:25:58 2013 /sbin/ifconfig tun0 10.42.0.2 netmask 255.255.248.0 mtu 1500 broadcast 10.42.7.255
2013-09-09 16:25:59,015 - leap.openvpn - INFO - Mon Sep  9 16:25:59 2013 Initialization Sequence Completed
2013-09-09 16:26:09,795 - leap.bitmask.services.soledad.soledadbootstrapper - ERROR - Socket error while initializing soledad
2013-09-09 16:26:09,799 - leap.bitmask.services.soledad.soledadbootstrapper - DEBUG - Retrieving key for ii@dev.bitmask.net
2013-09-09 16:26:09,801 - leap.bitmask.config.providerconfig - DEBUG - Going to verify SSL against /home/ivan/.config/leap/providers/dev.bitmask.net/keys/ca/cacert.pem
2013-09-09 16:26:09,818 - leap.common.check - ERROR - Bug: Found more than one private key for address!
2013-09-09 16:26:11,232 - leap.common.check - ERROR -   File "/usr/lib/python2.7/threading.py", line 783, in __bootstrap
2013-09-09 16:26:11,233 - leap.common.check - ERROR -     self.__bootstrap_inner()
2013-09-09 16:26:11,233 - leap.common.check - ERROR -   File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
2013-09-09 16:26:11,233 - leap.common.check - ERROR -     self.run()
2013-09-09 16:26:11,233 - leap.common.check - ERROR -   File "/usr/lib/python2.7/threading.py", line 763, in run
2013-09-09 16:26:11,234 - leap.common.check - ERROR -     self.__target(*self.__args, **self.__kwargs)
2013-09-09 16:26:11,234 - leap.common.check - ERROR -   File "/home/ivan/.virtualenvs/leap/lib/python2.7/site-packages/Twisted-13.1.0-py2.7-linux-i686.egg/twisted/python/threadpool.py", line 191, in _worker
2013-09-09 16:26:11,234 - leap.common.check - ERROR -     result = context.call(ctx, function, *args, **kwargs)
2013-09-09 16:26:11,235 - leap.common.check - ERROR -   File "/home/ivan/.virtualenvs/leap/lib/python2.7/site-packages/Twisted-13.1.0-py2.7-linux-i686.egg/twisted/python/context.py", line 118, in callWithContext
2013-09-09 16:26:11,235 - leap.common.check - ERROR -     return self.currentContext().callWithContext(ctx, func, *args, **kw)
2013-09-09 16:26:11,236 - leap.common.check - ERROR -   File "/home/ivan/.virtualenvs/leap/lib/python2.7/site-packages/Twisted-13.1.0-py2.7-linux-i686.egg/twisted/python/context.py", line 81, in callWithContext
2013-09-09 16:26:11,236 - leap.common.check - ERROR -     return func(*args,**kw)
2013-09-09 16:26:11,236 - leap.common.check - ERROR -   File "/mnt/datos/Unixono/Proyectos/LEAP/leap_client/src/leap/bitmask/services/soledad/soledadbootstrapper.py", line 276, in _gen_key
2013-09-09 16:26:11,237 - leap.common.check - ERROR -     private=True, fetch_remote=False)
2013-09-09 16:26:11,237 - leap.common.check - ERROR -   File "/mnt/datos/Unixono/Proyectos/LEAP/keymanager/src/leap/keymanager/__init__.py", line 258, in get_key
2013-09-09 16:26:11,238 - leap.common.check - ERROR -     key = self._wrapper_map[ktype].get_key(address, private=private)
2013-09-09 16:26:11,238 - leap.common.check - ERROR -   File "/mnt/datos/Unixono/Proyectos/LEAP/keymanager/src/leap/keymanager/openpgp.py", line 294, in get_key
2013-09-09 16:26:11,238 - leap.common.check - ERROR -     doc = self._get_key_doc(address, private)
2013-09-09 16:26:11,239 - leap.common.check - ERROR -   File "/mnt/datos/Unixono/Proyectos/LEAP/keymanager/src/leap/keymanager/openpgp.py", line 384, in _get_key_doc
2013-09-09 16:26:11,239 - leap.common.check - ERROR -     'private' if private else 'public')
2013-09-09 16:26:11,240 - leap.bitmask.gui.mainwindow - DEBUG - ERROR on soledad bootstrapping:
2013-09-09 16:26:11,241 - leap.bitmask.gui.mainwindow - ERROR - Found more than one private key for address!
2013-09-09 16:26:49,004 - leap.openvpn - INFO - Mon Sep  9 16:26:49 2013 [snail.dev.bitmask.net] Inactivity timeout (--ping-restart), restarting
2013-09-09 16:26:49,006 - leap.openvpn - INFO - Mon Sep  9 16:26:49 2013 ERROR: Linux route delete command failed: external program exited with error status: 7
2013-09-09 16:26:49,010 - leap.openvpn - INFO - Mon Sep  9 16:26:49 2013 /sbin/ifconfig tun0 0.0.0.0
2013-09-09 16:26:49,036 - leap.openvpn - INFO - Mon Sep  9 16:26:49 2013 SIGUSR1[soft,ping-restart] received, process restarting

(from redmine: created on 2013-09-09, closed on 2013-10-21, relates #3964 (closed), relates #4060 (closed), precedes #3900 (closed), precedes #3901 (closed))