10.5.4 update seems to break AVPN

6 views
Skip to first unread message

Ezz

unread,
Jul 1, 2008, 4:36:14 AM7/1/08
to LeapingBytesAlmostVPN
Hi,

After I updated to OS X 10.5.4 I can't use AVPN anymore. After
entering my password the connection fails. In the logging I see the
following messages:

---
SEVERE: Fail to start profile : XXX
ProfileException : Can't assign requested address
at
com.leapingbytes.almostvpn.util.ssh.GanimedSSHSSession.addLocalTunnel(GanimedSSHSSession.java:
84)
at
com.leapingbytes.almostvpn.server.profile.item.impl.SSHPortForward.start(SSHPortForward.java:
149)
at
com.leapingbytes.almostvpn.server.profile.Profile._startItems(Profile.java:
291)
at
com.leapingbytes.almostvpn.server.profile.Profile.start(Profile.java:
241)
at
com.leapingbytes.almostvpn.server.ToolServer.startProfile(ToolServer.java:
408)
at com.leapingbytes.almostvpn.server.ToolServer$1.run(ToolServer.java:
420)
at java.lang.Thread.run(Thread.java:613)
Caused by: java.net.BindException: Can't assign requested address
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.bind(ServerSocket.java:277)
at
ch.ethz.ssh2.channel.LocalAcceptThread.<init>(LocalAcceptThread.java:
48)
at ch.ethz.ssh2.LocalPortForwarder.<init>(LocalPortForwarder.java:48)
at ch.ethz.ssh2.Connection.createLocalPortForwarder(Connection.java:
759)
at
com.leapingbytes.almostvpn.util.ssh.GanimedSSHSSession.addLocalTunnel(GanimedSSHSSession.java:
76)
... 6 more

---

Leaping Bytes, LLC

unread,
Jul 1, 2008, 9:48:22 AM7/1/08
to LeapingBytesAlmostVPN
which version of AVPN are you running (latest is 1.6/226)?

does this problem keep persist after you reboot the box?

Eelco Cramer

unread,
Jul 1, 2008, 9:50:58 AM7/1/08
to LeapingByt...@googlegroups.com
I'am using the latest version of AVPN. I did try to reboot (and fix
file permissions) but the problem still persists.

Thanks,
Eelco

Ezz

unread,
Jul 2, 2008, 8:55:56 AM7/2/08
to LeapingBytesAlmostVPN
Anyone else have this problem with 10.5.4?

On Jul 1, 3:50 pm, "Eelco Cramer" <eelco.cra...@gmail.com> wrote:
> I'am using the latest version of AVPN. I did try to reboot (and fix
> file permissions) but the problem still persists.
>
> Thanks,
> Eelco
>
> On Tue, Jul 1, 2008 at 3:48 PM, Leaping Bytes, LLC
>

Ezz

unread,
Jul 2, 2008, 9:08:23 AM7/2/08
to LeapingBytesAlmostVPN
I found the cause of my problem. This had nothing to do with the
10.5.4 upgrade. I analyzed the log file and it I found that sed was
causing my problem.

Just before upgrading to 10.5.4 I replaced the default installed /usr/
bin/sed with an other version. This version did not work with AVPN.
Switching back to the default version of sed fixed all of my problems.

Regards,
Eelco

Andrei Tchijov

unread,
Jul 2, 2008, 10:26:33 AM7/2/08
to LeapingByt...@googlegroups.com
Which version of "sed" have you tried to use?

This is the command AVPN is using

sed -E "1,1s/[ ]+/ /g"

come to think of it, "-E" is not quite standard option (at least sed
which comes with FC does not have this option). Was it the case of
the problem? Did your version of sed choked on "-E"?

Eelco Cramer

unread,
Jul 2, 2008, 11:23:18 AM7/2/08
to LeapingByt...@googlegroups.com
Yep... The E option caused the problem. I have added the logging of
the event. I was using GNU sed version 4.1.5 at the time of the
problem.

This is the logging of the event:

---
Jul 2, 2008 3:02:06 PM com.leapingbytes.almostvpn.util.ScriptRunner runScript
INFO: Script err :
sed: invalid option -- E
Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...

-n, --quiet, --silent
suppress automatic printing of pattern space
-e script, --expression=script
add the script to the commands to be executed
-f script-file, --file=script-file
add the contents of script-file to the commands to be executed
-i[SUFFIX], --in-place[=SUFFIX]
edit files in place (makes backup if extension supplied)
-l N, --line-length=N
specify the desired line-wrap length for the `l' command
--posix
disable all GNU extensions.
-r, --regexp-extended
use extended regular expressions in the script.
-s, --separate
consider files as separate rather than as a single continuous
long stream.
-u, --unbuffered
load minimal amounts of data from the input files and flush
the output buffers more often
--help display this help and exit
--version output version information and exit

If no -e, --expression, -f, or --file option is given, then the first
non-option argument is taken as the sed script to interpret. All
remaining arguments are names of input files; if no input files are
specified, then the standard input is read.

E-mail bug reports to: bon...@gnu.org .
Be sure to include the word ``sed'' somewhere in the ``Subject:'' field.
utils.sh: line 86: [: =: unary operator expected
ifconfig: interface 169.245.0.2 does not exist
---

Andrei Tchijov

unread,
Jul 1, 2008, 11:00:09 AM7/1/08
to LeapingByt...@googlegroups.com
Could you please e-mail me this file:

~/Library/Application Support/AlmostVPNPRO/almostvpn.log

NOTE: This file does not contain any passwords, but it does contain
real user names/host names/ip addresses. If you want, you can replace
them with placebo.

Also, could you please run following command in the Terminal and e-
mail me results

ifconfig


Andrei Tchijov
Leaping Bytes, LLC

web: www.leapingbytes.com
email: and...@leapingbytes.com
AIM: leapingbytes
Google: leapin...@gmail.com
ICQ: 151229319


On Jul 1, 2008, at 09:50 , Eelco Cramer wrote:

>
> I'am using the latest version of AVPN. I did try to reboot (and fix
> file permissions) but the problem still persists.
>
> Thanks,
> Eelco
>
> On Tue, Jul 1, 2008 at 3:48 PM, Leaping Bytes, LLC
> <andrei....@gmail.com> wrote:
>>
>> which version of AVPN are you running (latest is 1.6/226)?
>>
>> does this problem keep persist after you reboot the box?
>>
>>
>> On Jul 1, 4:36 am, Ezz <eel...@gmail.com> wrote:
>>> Hi,
>>>
>>> After I updated to OS X 10.5.4 I can't use AVPN anymore. After
>>> entering my password the connection fails. In the logging I see the
>>> following messages:
>>>
>>> ---
>>> SEVERE: Fail to start profile : XXX
>>> ProfileException : Can't assign requested address
>>> at

Andrei Tchijov

unread,
Jul 2, 2008, 2:39:16 PM7/2/08
to LeapingByt...@googlegroups.com
I think I should be able to use "-e" option instead (it looks like it
is far more "standard").

Sorry for inconvenience.

Reply all
Reply to author
Forward
0 new messages