Skip to content

[BUG] Cannot bind server socket: Address already in use #319

@justjoheinz

Description

@justjoheinz

Describe the bug
I use doom emacs and have configured org-roam ui as follows:


(use-package! websocket
  :after org-roam)

(use-package! org-roam-ui
    ;; :after org-roam
    :hook (after-init . org-roam-ui-mode)
    :config
    (setq org-roam-ui-sync-theme t
          org-roam-ui-follow t
          org-roam-ui-update-on-save t
          org-roam-ui-open-on-start nil))

When I open a 2nd instance I receive the error that the address is already in use. A consequence of org-roam-ui being initialised a second time.

My attempts to remedy the problem failed so far. I'd like to only start org-roam-ui when it is not yet running. org-roam-ui-open-on-start is obviously to late. And my attempts with hook failed. Please suggest how that could be avoided and if necessary update the documentation in the README.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions