Skip to content

Can't connect to shared database #8944

Open
@falschgeldkind

Description

@falschgeldkind

JabRef version

Latest development branch build (please note build date below)

Operating system

Windows

Details on version and operating system

No response

Checked with the latest development build

  • I made a backup of my libraries before testing the latest development version.
  • I have tested the latest development version and the problem persists

Steps to reproduce the behaviour

  1. Open jabref
  2. Click on Connect to shared Database
  3. Wait a couple of seconds
  4. get an error

Appendix

On one windows devices it DID work, on two others it didn't. To test if it's the firewall blocking the connection I deactivated it but to no avail.
I tried to directly connect to the database (from an windows machine, where jabref was not able to connect) via Datagrip and that worked. So it seems like it is a bug in Jabref..
Do you have any idea what the problem might be? It may be a bug, but why would it work on one windows machine but not the other ones?

Build date 29.06.2022

Log File
Stacktrace:

Connection error
The connection attempt failed.


org.postgresql.util.PSQLException: The connection attempt failed.
        at org.jabref.merged.module@5.7.127/org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(Unknown Source)
        at org.jabref.merged.module@5.7.127/org.postgresql.core.ConnectionFactory.openConnection(Unknown Source)
        at org.jabref.merged.module@5.7.127/org.postgresql.jdbc.PgConnection.<init>(Unknown Source)
        at org.jabref.merged.module@5.7.127/org.postgresql.Driver.makeConnection(Unknown Source)
        at org.jabref.merged.module@5.7.127/org.postgresql.Driver.connect(Unknown Source)
        at java.sql/java.sql.DriverManager.getConnection(Unknown Source)
        at java.sql/java.sql.DriverManager.getConnection(Unknown Source)
        at org.jabref@5.7.127/org.jabref.logic.shared.DBMSConnection.<init>(Unknown Source)
        at org.jabref@5.7.127/org.jabref.gui.shared.SharedDatabaseUIManager.openNewSharedDatabaseTab(Unknown Source)
        at org.jabref@5.7.127/org.jabref.gui.shared.SharedDatabaseLoginDialogViewModel.openSharedDatabase(Unknown Source)
        at org.jabref@5.7.127/org.jabref.gui.shared.SharedDatabaseLoginDialogViewModel.openDatabase(Unknown Source)
        at org.jabref@5.7.127/org.jabref.gui.shared.SharedDatabaseLoginDialogView.openDatabase(Unknown Source)
        at org.jabref@5.7.127/org.jabref.gui.shared.SharedDatabaseLoginDialogView.lambda$new$0(Unknown Source)
        at org.jabref@5.7.127/org.jabref.gui.util.ControlHelper.lambda$setAction$0(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.CompositeEventHandler$NormalEventFilterRecord.handleCapturingEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.CompositeEventHandler.dispatchCapturingEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.EventHandlerManager.dispatchCapturingEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.EventHandlerManager.dispatchCapturingEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.CompositeEventDispatcher.dispatchCapturingEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/javafx.event.Event.fireEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/javafx.scene.Node.fireEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/javafx.scene.control.Button.fire(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.scene.control.inputmap.InputMap.handle(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/javafx.event.Event.fireEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/javafx.scene.Scene$MouseHandler.process(Unknown Source)
        at org.jabref.merged.module@5.7.127/javafx.scene.Scene.processMouseEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)
        at java.base/java.security.AccessController.doPrivileged(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.glass.ui.View.handleMouseEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.glass.ui.View.notifyMouse(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.glass.ui.win.WinApplication._enterNestedEventLoopImpl(Native Method)
        at org.jabref.merged.module@5.7.127/com.sun.glass.ui.win.WinApplication._enterNestedEventLoop(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.glass.ui.Application.enterNestedEventLoop(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.glass.ui.EventLoop.enter(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.tk.quantum.QuantumToolkit.enterNestedEventLoop(Unknown Source)
        at org.jabref.merged.module@5.7.127/javafx.stage.Stage.showAndWait(Unknown Source)
        at org.jabref.merged.module@5.7.127/javafx.scene.control.HeavyweightDialog.showAndWait(Unknown Source)
        at org.jabref.merged.module@5.7.127/javafx.scene.control.Dialog.showAndWait(Unknown Source)
        at org.jabref@5.7.127/org.jabref.gui.JabRefDialogService.showCustomDialogAndWait(Unknown Source)
        at org.jabref@5.7.127/org.jabref.gui.shared.ConnectToSharedDatabaseCommand.execute(Unknown Source)
        at org.jabref@5.7.127/org.jabref.gui.actions.JabRefAction.lambda$new$3(Unknown Source)
        at org.jabref.merged.module@5.7.127/org.controlsfx.control.action.Action.handle(Unknown Source)
        at org.jabref.merged.module@5.7.127/org.controlsfx.control.action.Action.handle(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/javafx.event.Event.fireEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/javafx.scene.control.MenuItem.fire(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.scene.control.ContextMenuContent$MenuItemContainer.doSelect(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.scene.control.ContextMenuContent$MenuItemContainer.lambda$createChildren$12(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/javafx.event.Event.fireEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/javafx.scene.Scene$MouseHandler.process(Unknown Source)
        at org.jabref.merged.module@5.7.127/javafx.scene.Scene.processMouseEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)
        at java.base/java.security.AccessController.doPrivileged(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.glass.ui.View.handleMouseEvent(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.glass.ui.View.notifyMouse(Unknown Source)
        at org.jabref.merged.module@5.7.127/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
        at org.jabref.merged.module@5.7.127/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(Unknown Source)
        at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.net.SocketTimeoutException: Connect timed out
        at java.base/java.net.SocksSocketImpl.readSocksReply(Unknown Source)
        at java.base/java.net.SocksSocketImpl.connect(Unknown Source)
        at java.base/java.net.Socket.connect(Unknown Source)
        at org.jabref.merged.module@5.7.127/org.postgresql.core.PGStream.createSocket(Unknown Source)
        at org.jabref.merged.module@5.7.127/org.postgresql.core.PGStream.<init>(Unknown Source)
        at org.jabref.merged.module@5.7.127/org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(Unknown Source)
        ... 115 more

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions