[Pkg-erlang-devel] Bug#598525: erlang-odbc: odbc:connect(ConnStr, Options) fails with timeout

Sergei Golovan sgolovan at nes.ru
Sat Oct 16 08:28:21 UTC 2010


On Fri, Oct 15, 2010 at 11:01 PM, Christian Adams
<adams at skavaer.homelinux.org> wrote:
>  Hi Sergei,
>
> Am 12.10.2010 um 10:08 schrieb Sergei Golovan:
>
> I've tried to run it (though with unixodbc 2.2.11 and postgresql 8.3
> from Lenny) and it seems to work fine.

Using unixodbc 2.2.14p2-2 from sid works for me also.

>
> Could you try to check if unixodbc works itself (using isql for example)?
>
> unixodbc itself works (tested with isql, odbctest, DataManager)
> I also tested with a SQLite DSN with the same results ..

OK

>
> Also, try to install the erlang-base package instead of
> erlang-base-hipe (it tends to be more robust).
>
> installing erlang-base on this machine instead of erlang-base-hipe made no
> difference at all ..
> but I did the same tests on some other machines (a Powerbook G4 and a
> freshly installed squeeze in a VirtualBox) and to my surprise it worked like
> it should  ..
> you can close the bug as it looks like a false alarm .. but I now have a
> question: do you have an idea how I could solve the problem on the 'faulty'
> machine?

On connect Erlang ODBC application opens two TCP sockets (using IPv6 if
available or IPv4), runs odbcserver process and expects it to connect back to
both these sockets. If it fails to do that in 5 seconds it stops with
timeout error
(as in your case). So, there might be firewall issues.

Cheers!
-- 
Sergei Golovan





More information about the Pkg-erlang-devel mailing list