linuxserver / docker-obsidian

GNU General Public License v3.0
187 stars 15 forks source link

[BUG] url links don't work (obsidian://open?vault=[vault_name]&file=[file_name]) #15

Open Xhiffer opened 2 weeks ago

Xhiffer commented 2 weeks ago

Is there an existing issue for this?

Current Behavior

When I click on the URL linking to the file in my 'Documents' vault, it opens an empty Google search page.

(Screenshot of the link and the 'Documents' page in my vault) image

When I run Obsidian on my Windows computer with this URL, it redirects me to the correct note.

Expected Behavior

It should open a new tab with my file '100002_1'.

Steps To Reproduce

1) Run the Docker container. 2) Open localhost:3000. 3) Install Copilot. 4) Right-click on a file tab and select "Copy Obsidian URL." 5) Create a URL on a page like this: test. 6) Click the link. -Expected result: Opens the file in a new tab. -Actual result: Opens an empty Google search page in Chrome.

Note: This works on my Windows 11 Enterprise setup but not in the Docker environment.

Environment

- OS: Windows 11 Entreprise
- How docker service was installed:
docker desktop

CPU architecture

x86-64

Docker creation

docker compose up

docker-compose.yml :

version: '3.8'

services:
  obsidian:
    image: lscr.io/linuxserver/obsidian:latest
    container_name: obsidian
    security_opt:
      - seccomp:unconfined 
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
    volumes:
      - ./config:/config
      - ./documents:/documents
    ports:
      - 3000:3000
      - 3001:3001
    devices:
      - ./dev/dri:/dev/dri 
    shm_size: "1gb"
    restart: unless-stopped
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: all
              capabilities: [gpu]

Container logs

───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    1000
User GID:    1000
───────────────────────────────────────
**** adding /dev/dri/renderD128 to video group lpadmin with id 110 ****
**** adding /dev/dri/card0 to video group video with id 44 ****
[custom-init] No custom files found, skipping...
/usr/bin/nvidia-smi
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.

Xvnc KasmVNC 1.3.3 - built Nov  2 2024 18:58:26
Copyright (C) 1999-2018 KasmVNC Team and many others (see README.me)
See http://kasmweb.com for information on KasmVNC.
Underlying X server release 12014000, The X.Org Foundation

/usr/bin/nvidia-smi
[ls.io-init] done.
Obt-Message: Xinerama extension is not present on the server
17
 2024-11-04 18:08:24,571 [INFO] websocket 0: got client connection from 127.0.0.1
 2024-11-04 18:08:24,578 [PRIO] Connections: accepted: @172.21.0.1_1730743704.572203::websocket
 2024-11-04 18:08:48,734 [INFO] websocket 1: got client connection from 127.0.0.1
 2024-11-04 18:08:48,741 [PRIO] Connections: accepted: @172.21.0.1_1730743728.735041::websocket
 2024-11-04 22:06:50,628 [PRIO] Connections: closed: @172.21.0.1_1730743704.572203::websocket (Clean disconnection)
 2024-11-05 12:32:40,775 [PRIO] Connections: closed: @172.21.0.1_1730743728.735041::websocket (Clean disconnection)
 2024-11-05 12:56:33,989 [INFO] websocket 2: got client connection from 127.0.0.1
 2024-11-05 12:56:33,996 [PRIO] Connections: accepted: @172.21.0.1_1730811393.990313::websocket
 2024-11-05 13:32:30,503 [INFO] websocket 3: got client connection from 127.0.0.1
 2024-11-05 13:32:30,510 [PRIO] Connections: accepted: @172.21.0.1_1730813550.504086::websocket
 2024-11-05 14:02:58,700 [PRIO] Connections: closed: @172.21.0.1_1730811393.990313::websocket (Clean disconnection)
 2024-11-05 14:03:01,619 [INFO] websocket 4: got client connection from 127.0.0.1
 2024-11-05 14:03:01,626 [PRIO] Connections: accepted: @172.21.0.1_1730815381.620146::websocket
 2024-11-05 14:39:30,953 [PRIO] Connections: closed: @172.21.0.1_1730815381.620146::websocket (Clean disconnection)
 2024-11-05 14:39:30,953 [PRIO] Connections: closed: @172.21.0.1_1730813550.504086::websocket (Clean disconnection)
X connection to :1 broken (explicit kill or server shutdown).
Connection failure: Connection refused
pa_context_connect() failed: Connection refused
[migrations] started
[migrations] no migrations found
usermod: no changes
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    1000
User GID:    1000
───────────────────────────────────────
**** permissions for /dev/dri/renderD128 are good ****
**** permissions for /dev/dri/card0 are good ****
[custom-init] No custom files found, skipping...
/usr/bin/nvidia-smi
/usr/bin/nvidia-smi
[ls.io-init] done.
_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root

Xvnc KasmVNC 1.3.3 - built Nov  2 2024 18:58:26
Copyright (C) 1999-2018 KasmVNC Team and many others (see README.me)
See http://kasmweb.com for information on KasmVNC.
Underlying X server release 12014000, The X.Org Foundation

Obt-Message: Xinerama extension is not present on the server
17
 2024-11-05 16:09:51,693 [INFO] websocket 0: got client connection from 127.0.0.1
 2024-11-05 16:09:51,699 [PRIO] Connections: accepted: @172.21.0.1_1730822991.693725::websocket
 2024-11-05 16:10:21,111 [INFO] websocket 1: got client connection from 127.0.0.1
 2024-11-05 16:10:21,117 [PRIO] Connections: accepted: @172.21.0.1_1730823021.111654::websocket
 2024-11-05 17:07:08,359 [PRIO] Connections: closed: @172.21.0.1_1730823021.111654::websocket (Clean disconnection)
 2024-11-05 17:07:08,456 [INFO] websocket 2: got client connection from 127.0.0.1
 2024-11-05 17:07:08,463 [PRIO] Connections: accepted: @172.21.0.1_1730826428.456881::websocket
 2024-11-05 17:12:52,954 [PRIO] Connections: closed: @172.21.0.1_1730822991.693725::websocket (Clean disconnection)
 2024-11-05 17:12:52,954 [PRIO] Connections: closed: @172.21.0.1_1730826428.456881::websocket (Clean disconnection)
X connection to :1 broken (explicit kill or server shutdown).
[migrations] started
[migrations] no migrations found
usermod: no changes
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    1000
User GID:    1000
───────────────────────────────────────
**** permissions for /dev/dri/renderD128 are good ****
**** permissions for /dev/dri/card0 are good ****
[custom-init] No custom files found, skipping...
[ls.io-init] done.
/usr/bin/nvidia-smi
/usr/bin/nvidia-smi
_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root

Xvnc KasmVNC 1.3.3 - built Nov  2 2024 18:58:26
Copyright (C) 1999-2018 KasmVNC Team and many others (see README.me)
See http://kasmweb.com for information on KasmVNC.
Underlying X server release 12014000, The X.Org Foundation

Obt-Message: Xinerama extension is not present on the server
17
 2024-11-05 17:14:08,667 [INFO] websocket 0: got client connection from 127.0.0.1
 2024-11-05 17:14:08,673 [PRIO] Connections: accepted: @172.21.0.1_1730826848.667855::websocket
github-actions[bot] commented 2 weeks ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.