Re: Postgresql JDBC Connect times out on Mac Mini after Mac OS 10.15.7 upgrade

Поиск
Список
Период
Сортировка
От Jorge Solórzano
Тема Re: Postgresql JDBC Connect times out on Mac Mini after Mac OS 10.15.7 upgrade
Дата
Msg-id CA+cVU8PVJAiGiM7WZGGySbwpiCtceT1Z-LHaLAn67s4jELijoA@mail.gmail.com
обсуждение исходный текст
Ответ на Postgresql JDBC Connect times out on Mac Mini after Mac OS 10.15.7 upgrade  (David Gradwell <david@gradwell.com>)
Список pgsql-jdbc
Hi David,

I don't have a Mac to test, but you should probably check your Java
version running on that system, Catalina is supported since Java
11.0.7 based on this page:
https://www.oracle.com/java/technologies/javase/products-doc-jdk11certconfig.html

As you pointed out, if it works as expected on Windows, Linux and even
on another Mac, the issue doesn't look to be with the JDBC driver, but
with some configuration or environment on that system.

Regards.

On Thu, Oct 8, 2020 at 2:05 PM David Gradwell <david@gradwell.com> wrote:
>
> Before early September 2020 our complete program library using Java, jdbc and postgresql worked fine on a new Mac
Miniand other machines.  Then we started getting connection timeouts from all Java programs running on the Mac Mini
accessingany server except 127.0.0.1.  This was around the time we upgraded to Mac OS 10.15.7. 
>
>
>
> We wrote a simple test Java program and ran the same object code on Mac OS Catalina 10.15.7 on the Mac Mini, a
Windows10 VM running on Parallels running on the same Mac Mini, and a Debian 9.8 VM also running on Parallels also
runningon the same Mac Mini and a MacBook Pro also running 10.15.7. 
>
>
>
> Results summary:
>
>
>
> Mac OS 10.15.7 on the Mac Mini fails to connect to any address except to 127.0.0.1.
> Windows 10 works as expected
> Debian 9.8 works as expected and identically to Windows 10.
> When running on a MacBook Pro running the same operating system (Mac OS 10.15.7) everything works as expected.
>
>
>
>
>
> There are some differences in behaviour between JDBC versions.  The latest (postgresql-42.2.16.jar) hangs on the Mac
Miniwhereas postgresql-9.0-801.jdbc4.jar returns an SQLException after timing out. 
>
>
>
> Using portscan on the Mac Mini shows that port 5432 is open and accessible on the target servers.
>
>
>
> psql connects to the various servers OK including to the MacMini itself using both 127.0.0.1 and its external ip
address.
>
> pgAdmin also connects OK.
>
>
>
> Thus it would appear there is an issue with the JDBC driver running under Mac OS 10.15.7.  We have tried with Apple
toinvestigate whether there is a permissions issue but made no progress. 
>
>
>
> Has anybody else encountered this problem ?
>
>
>
> David Gradwell
>
>
>
>



В списке pgsql-jdbc по дате отправления:

Предыдущее
От: David Gradwell
Дата:
Сообщение: Postgresql JDBC Connect times out on Mac Mini after Mac OS 10.15.7 upgrade
Следующее
От: Dave Cramer
Дата:
Сообщение: [pgjdbc/pgjdbc] 926af2: Pre release42.2.17 (#1912)