H2 database (localhost)

162 views
Skip to first unread message

nick slegers

unread,
Oct 12, 2018, 9:06:36 AM10/12/18
to H2 Database
After a few weeks of using the h2 database engine, i got the folowing error message and now i can't use the database anymore. I tried uninstalling/removing h2 from my system and restarted the pc multiple times.

The Web Console server could not be started. Possible cause: another server is already running at http://10.140.66.30:8082
Root cause: IO Exception: "java.net.SocketException: Permission denied: listen failed"; "port: 8082 ssl: false" [90031-196]
The TCP server could not be started. Possible cause: another server is already running at tcp://10.140.66.30:9092
Root cause: IO Exception: "java.net.SocketException: Permission denied: listen failed"; "port: 0 ssl: false" [90031-196]
The PG server could not be started. Possible cause: another server is already running at pg://10.140.66.30:5435
Root cause: IO Exception: "java.net.SocketException: Permission denied: listen failed"; "port: 0 ssl: false" [90031-196]
Exception in thread "main" org.h2.jdbc.JdbcSQLException: IO Exception: "java.net.SocketException: Permission denied: listen failed"; "port: 8082 ssl: false" [90031-196]
        at org.h2.message.DbException.getJdbcSQLException(DbException.java:345)
        at org.h2.message.DbException.get(DbException.java:168)
        at org.h2.message.DbException.convertIOException(DbException.java:330)
        at org.h2.util.NetUtils.createServerSocketTry(NetUtils.java:183)
        at org.h2.util.NetUtils.createServerSocket(NetUtils.java:146)
        at org.h2.server.web.WebServer.start(WebServer.java:342)
        at org.h2.tools.Server.start(Server.java:484)
        at org.h2.tools.Console.runTool(Console.java:234)
        at org.h2.tools.Console.main(Console.java:102)
Caused by: java.net.SocketException: Permission denied: listen failed
        at java.base/java.net.DualStackPlainSocketImpl.listen0(Native Method)
        at java.base/java.net.DualStackPlainSocketImpl.socketListen(Unknown Source)
        at java.base/java.net.PlainSocketImpl.socketListen(Unknown Source)
        at java.base/java.net.AbstractPlainSocketImpl.listen(Unknown Source)
        at java.base/java.net.ServerSocket.bind(Unknown Source)
        at java.base/java.net.ServerSocket.<init>(Unknown Source)
        at java.base/java.net.ServerSocket.<init>(Unknown Source)
        at org.h2.util.NetUtils.createServerSocketTry(NetUtils.java:176)
        ... 5 more

If i check with netstat if an other service is using the port i get no results. How could i solve this problem?

EDIT:
I'm using h2-2017-06-10 on windows 10

Noel Grandin

unread,
Oct 12, 2018, 9:13:30 AM10/12/18
to h2-da...@googlegroups.com


On 2018/10/12 2:37 PM, nick slegers wrote:
> After a few weeks of using the h2 database engine, i got the folowing error message and now i can't use the database
> anymore. I tried uninstalling/removing h2 from my system and restarted the pc multiple times.
>

I guess your Windows firewall is blocking it.
Reply all
Reply to author
Forward
0 new messages