1.5.3


Old Stuff

 www.your-freedom.net
 www.secure-tunnel.com

Ticket #78 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Stops working with broken pipe error (uncertain what triggers)

Reported by: woogli@mac.com Assigned to: andrei
Priority: normal Milestone: AlmostVPN 0.9.7
Component: PreferencePanel Version: 0.9
Severity: blocker Keywords: broken pipe job removal
Cc:

Description (Last modified by andrei)

Hi again. Fantastic prefPane, by the way. Now that I have the security working, and can test it, I can see how cool it is.

However, I'm running into the following problem: After starting/stopping a few times (powerbook 17, running 10.4.3), AlmostVPN will suddenly stop working. When I try to start one of my profiles (it doesn't matter which: I've deleted all pref files and the pane and reinstalled and the problem will persist once it starts), my connection will fail. The only thing that will restore functionality is rebooting the system (I haven't figured out which service to kickstart). I've run the program in debug mode, and attached the log. Here is what I see in my system.log file (note: this is the output of trying to start/stop a number of times, including exiting the prefpane etc):

Nov 29 00:01:54 escher launchd[2524]: com.leapingbytes.almostVPN.profiles.Tunnelled Email: exited abnormally: Broken pipe
Nov 29 00:01:54 escher launchd[2524]: com.leapingbytes.almostVPN.profiles.Tunnelled Email: 9 more failures without living at least 60 seconds will cause job removal
Nov 29 00:03:02 escher sudo:     thom : TTY=console ; PWD=/ ; USER=root ; COMMAND=/usr/bin/defaults delete com.apple.loginwindow LoginHook
Nov 29 00:03:02 escher sudo:     thom : TTY=console ; PWD=/ ; USER=root ; COMMAND=/usr/bin/defaults delete com.apple.loginwindow LogoutHook
Nov 29 00:03:32 escher sudo:     thom : TTY=console ; PWD=/ ; USER=root ; COMMAND=/usr/bin/defaults delete com.apple.loginwindow LoginHook
Nov 29 00:03:32 escher sudo:     thom : TTY=console ; PWD=/ ; USER=root ; COMMAND=/usr/bin/defaults delete com.apple.loginwindow LogoutHook
Nov 29 00:03:50 escher launchd[2524]: com.leapingbytes.almostVPN.profiles.Tunnelled Email: exited abnormally: Broken pipe
Nov 29 00:03:50 escher launchd[2524]: com.leapingbytes.almostVPN.profiles.Tunnelled Email: 9 more failures without living at least 60 seconds will cause job removal
Nov 29 00:04:38 escher sudo:     thom : TTY=console ; PWD=/ ; USER=root ; COMMAND=/usr/bin/defaults delete com.apple.loginwindow LoginHook
Nov 29 00:04:38 escher sudo:     thom : TTY=console ; PWD=/ ; USER=root ; COMMAND=/usr/bin/defaults delete com.apple.loginwindow LogoutHook
Nov 29 00:05:07 escher sudo:     thom : TTY=console ; PWD=/ ; USER=root ; COMMAND=/usr/bin/defaults delete com.apple.loginwindow LoginHook
Nov 29 00:05:08 escher sudo:     thom : TTY=console ; PWD=/ ; USER=root ; COMMAND=/usr/bin/defaults delete com.apple.loginwindow LogoutHook
Nov 29 00:05:16 escher launchd[2524]: com.leapingbytes.almostVPN.profiles.Tunnelled Email: exited abnormally: Broken pipe
Nov 29 00:05:16 escher launchd[2524]: com.leapingbytes.almostVPN.profiles.Tunnelled Email: 9 more failures without living at least 60 seconds will cause job removal
Nov 29 00:05:38 escher sudo:     thom : TTY=console ; PWD=/ ; USER=root ; COMMAND=/usr/bin/defaults delete com.apple.loginwindow LoginHook
Nov 29 00:05:38 escher sudo:     thom : TTY=console ; PWD=/ ; USER=root ; COMMAND=/usr/bin/defaults delete com.apple.loginwindow LogoutHook

Cheers,

Thom

Attachments

almostvpn.log (26.7 kB) - added by woogli@mac.com on 11/29/05 00:21:48.
log file - NOTE: the log file includes successful connections as well.
Nov 29 00-01-54 escher launc.textClipping (0 bytes) - added by woogli@mac.com on 11/29/05 00:24:51.
text clipping of system.log (friendlier than the ticket description)

Change History

11/29/05 00:21:48 changed by woogli@mac.com

  • attachment almostvpn.log added.

log file - NOTE: the log file includes successful connections as well.

11/29/05 00:24:51 changed by woogli@mac.com

  • attachment Nov 29 00-01-54 escher launc.textClipping added.

text clipping of system.log (friendlier than the ticket description)

11/29/05 08:31:15 changed by andrei

  • status changed from new to assigned.
  • milestone set to AlmostVPN 0.9.5.

When you get into this state next time, could you please run this command

ifconfig 

and then cut/paste output into this ticket. If my theory is correct, you should see 64.69.88.89 as an alias on your "main" interface. If you do see it, you car restore your system back to operational state with this command

ifconfig <interface> 64.69.88.89 -alias

<inerface> - substitute interface name from ifconfig output

NOTE. Please use "{{{" "}}}" when you paste ifconfig output (on separate lines before and after)

11/29/05 13:04:12 changed by andrei

  • description changed.

11/29/05 13:45:34 changed by andrei

  • version changed from 0.9 to 1.0.

I think I know what is going on. You are trying to do AlmostVPN connection to the server you are trying to do ssh to (recursive.ca/64.69.88.89). Unfortunately it does not work (yet). AlmostVPN connection works by creating alias for IP address you are trying to connect. Unfortunately if you try to do it for IP you are SSHed to, it will kill SSH connection. As of now, the only suggestion I can make is to us "plain old tunnels" if you want to access services on your "ssh gateway" host. So in you case, you will create tunnel -L 60110:64.69.88.89:110. The down side is that you will have to change configuration of you e-mail client.

I am working on this problem and it is possible that I will be able to solve it (to some degree) in one of next releases. Sorry for inconvenience.

11/29/05 15:25:58 changed by woogli@hotmail.com

Hi Andrei,

Thanks for the update. Yes, you are correct in your interpretation of what I'm doing. I apologise, I should have included that in the initial description. Of interest on this note: I was getting a failure when trying to connect, due to the 'fingerprint' changing. This must be due to the fact the ssh connection is getting killed. I switched to another account (to connect to the original host), and so far haven't ended up with the broken pipe problem. Having said that, I haven't played with it much today, so I can't be sure. I will post again if this changes.

Cheers,

Thom

11/29/05 15:40:38 changed by andrei

fingerprint change message is the result of aliasing problem I have described. After AlmostVPN have created alias for recursive.ca/64.69.88.89, ssh will try to talk to your local host (due to alias) and not real one. Your local host has different identity file - which cause fingerprint change message.

Question: One of possible solutions is for AlmostVPN to change "name to ip" mapping for your ssh gateway (recursive.ca in your case) (temporarily while you are using it). So while you are running AlmostVPN profile, recursive.ca will resolve not to 64.69.88.89 but something else (most likely something like 127.0.0.x). First question is, will this solution work for you? Second question is, in order to make it possible, it is necessary to change "name resolution order". ( you can read here about what needs to be done ). So question is, will you have any problems with AlmostVPN changing name resolution order?

11/29/05 16:40:10 changed by andrei

  • milestone changed from AlmostVPN 0.9.5 to AlmostVPN 1.0.

12/13/05 12:22:36 changed by andrei

  • status changed from assigned to closed.
  • version changed from 1.0 to 0.9.
  • resolution set to fixed.
  • milestone changed from AlmostVPN 1.0 to AlmostVPN 0.9.7.

I took the plunge and have implemented approach described above. Looks like it work nicely.