Bug: Docmost is not working with Draw.io #1737

Closed
opened 2026-02-05 02:06:25 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @andersonDadario on GitHub (Oct 7, 2025).

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

Docmost

📂 What was the exact command used to execute the script?

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/docmost.sh)"

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

📈 Which Proxmox version are you on?

9.0.3

📝 Provide a clear and concise description of the issue.

It's not possible to edit Draw.io diagrams.

🔄 Steps to reproduce the issue.

Premise

  • Page has a "Draw.io" diagram

Expectation

  • Double click "Double-click to edit Draw.io diagram"
  • Be able to edit Draw.io Diagram

Reality
- Double click "Double-click to edit Draw.io diagram";
- See error in the Web UI: "Failed to load page. An error occurred.";
- See stack trace in JS console

Paste the full error output (if available).

Browser console JS stacktrace:

TypeError: URL constructor:  is not a valid URL.
    k9t http://docmost:3000/assets/index-Dykvah5b.js:1894
    M9t http://docmost:3000/assets/index-Dykvah5b.js:1894
    Cj http://docmost:3000/assets/index-Dykvah5b.js:39
    hre http://docmost:3000/assets/index-Dykvah5b.js:41
    qre http://docmost:3000/assets/index-Dykvah5b.js:41
    Bre http://docmost:3000/assets/index-Dykvah5b.js:41
    Xje http://docmost:3000/assets/index-Dykvah5b.js:41
    $9 http://docmost:3000/assets/index-Dykvah5b.js:41
    Jj http://docmost:3000/assets/index-Dykvah5b.js:41
    $re http://docmost:3000/assets/index-Dykvah5b.js:41
    eg http://docmost:3000/assets/index-Dykvah5b.js:39
    Gb http://docmost:3000/assets/index-Dykvah5b.js:41
    flushSync http://docmost:3000/assets/index-Dykvah5b.js:41
    current http://docmost:3000/assets/index-Dykvah5b.js:103
    k http://docmost:3000/assets/index-Dykvah5b.js:103
    C http://docmost:3000/assets/index-Dykvah5b.js:103
    jWe http://docmost:3000/assets/index-Dykvah5b.js:103
    q0 http://docmost:3000/assets/index-Dykvah5b.js:100
    A9 http://docmost:3000/assets/index-Dykvah5b.js:41
    ex http://docmost:3000/assets/index-Dykvah5b.js:41
    Zje http://docmost:3000/assets/index-Dykvah5b.js:41
    Xb http://docmost:3000/assets/index-Dykvah5b.js:41
    $re http://docmost:3000/assets/index-Dykvah5b.js:41
    eg http://docmost:3000/assets/index-Dykvah5b.js:39
    Sc http://docmost:3000/assets/index-Dykvah5b.js:41
    Sc http://docmost:3000/assets/index-Dykvah5b.js:41
    hf http://docmost:3000/assets/index-Dykvah5b.js:41
    Nje http://docmost:3000/assets/index-Dykvah5b.js:39
    s http://docmost:3000/assets/index-Dykvah5b.js:100
    y http://docmost:3000/assets/index-Dykvah5b.js:1894
    onClick http://docmost:3000/assets/index-Dykvah5b.js:1894
    cr http://docmost:3000/assets/index-Dykvah5b.js:38
    ea http://docmost:3000/assets/index-Dykvah5b.js:38
    af http://docmost:3000/assets/index-Dykvah5b.js:38
    pne http://docmost:3000/assets/index-Dykvah5b.js:38
    mne http://docmost:3000/assets/index-Dykvah5b.js:38
    tj http://docmost:3000/assets/index-Dykvah5b.js:38
    tP http://docmost:3000/assets/index-Dykvah5b.js:41
    un http://docmost:3000/assets/index-Dykvah5b.js:38
    tj http://docmost:3000/assets/index-Dykvah5b.js:38
    PD http://docmost:3000/assets/index-Dykvah5b.js:38
    DDe http://docmost:3000/assets/index-Dykvah5b.js:38
    gne http://docmost:3000/assets/index-Dykvah5b.js:38
    ej http://docmost:3000/assets/index-Dykvah5b.js:38
    g4 http://docmost:3000/assets/index-Dykvah5b.js:38
    g4 http://docmost:3000/assets/index-Dykvah5b.js:38
    Bje http://docmost:3000/assets/index-Dykvah5b.js:41
    Hre http://docmost:3000/assets/index-Dykvah5b.js:41
    Bre http://docmost:3000/assets/index-Dykvah5b.js:41
    Xje http://docmost:3000/assets/index-Dykvah5b.js:41
    $9 http://docmost:3000/assets/index-Dykvah5b.js:41
    $re http://docmost:3000/assets/index-Dykvah5b.js:41
    eg http://docmost:3000/assets/index-Dykvah5b.js:39
    Zje http://docmost:3000/assets/index-Dykvah5b.js:41
    Xb http://docmost:3000/assets/index-Dykvah5b.js:41
    Lre http://docmost:3000/assets/index-Dykvah5b.js:41
    k http://docmost:3000/assets/index-Dykvah5b.js:26
    O http://docmost:3000/assets/index-Dykvah5b.js:26
    mPe http://docmost:3000/assets/index-Dykvah5b.js:26
    mPe http://docmost:3000/assets/index-Dykvah5b.js:26
    gPe http://docmost:3000/assets/index-Dykvah5b.js:26
    bPe http://docmost:3000/assets/index-Dykvah5b.js:34
    sve http://docmost:3000/assets/index-Dykvah5b.js:41
    vPe http://docmost:3000/assets/index-Dykvah5b.js:41
    <anonymous> http://docmost:3000/assets/index-Dykvah5b.js:41

🖼️ Additional context (optional).

It seems that Docmost works with Draw.io natively, but in this Proxmox installation it doesn't.
Given that a better error message would be helpful, I raised this issue in both repositories: Docmost (https://github.com/docmost/docmost/issues/1662) and here.

Originally created by @andersonDadario on GitHub (Oct 7, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? Docmost ### 📂 What was the exact command used to execute the script? bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/docmost.sh)" ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 📈 Which Proxmox version are you on? 9.0.3 ### 📝 Provide a clear and concise description of the issue. It's not possible to edit Draw.io diagrams. ### 🔄 Steps to reproduce the issue. Premise - Page has a "Draw.io" diagram Expectation - Double click "Double-click to edit Draw.io diagram" - Be able to edit Draw.io Diagram Reality - Double click "Double-click to edit Draw.io diagram"; - See error in the Web UI: "Failed to load page. An error occurred."; - See stack trace in JS console ### ❌ Paste the full error output (if available). Browser console JS stacktrace: ``` TypeError: URL constructor: is not a valid URL. k9t http://docmost:3000/assets/index-Dykvah5b.js:1894 M9t http://docmost:3000/assets/index-Dykvah5b.js:1894 Cj http://docmost:3000/assets/index-Dykvah5b.js:39 hre http://docmost:3000/assets/index-Dykvah5b.js:41 qre http://docmost:3000/assets/index-Dykvah5b.js:41 Bre http://docmost:3000/assets/index-Dykvah5b.js:41 Xje http://docmost:3000/assets/index-Dykvah5b.js:41 $9 http://docmost:3000/assets/index-Dykvah5b.js:41 Jj http://docmost:3000/assets/index-Dykvah5b.js:41 $re http://docmost:3000/assets/index-Dykvah5b.js:41 eg http://docmost:3000/assets/index-Dykvah5b.js:39 Gb http://docmost:3000/assets/index-Dykvah5b.js:41 flushSync http://docmost:3000/assets/index-Dykvah5b.js:41 current http://docmost:3000/assets/index-Dykvah5b.js:103 k http://docmost:3000/assets/index-Dykvah5b.js:103 C http://docmost:3000/assets/index-Dykvah5b.js:103 jWe http://docmost:3000/assets/index-Dykvah5b.js:103 q0 http://docmost:3000/assets/index-Dykvah5b.js:100 A9 http://docmost:3000/assets/index-Dykvah5b.js:41 ex http://docmost:3000/assets/index-Dykvah5b.js:41 Zje http://docmost:3000/assets/index-Dykvah5b.js:41 Xb http://docmost:3000/assets/index-Dykvah5b.js:41 $re http://docmost:3000/assets/index-Dykvah5b.js:41 eg http://docmost:3000/assets/index-Dykvah5b.js:39 Sc http://docmost:3000/assets/index-Dykvah5b.js:41 Sc http://docmost:3000/assets/index-Dykvah5b.js:41 hf http://docmost:3000/assets/index-Dykvah5b.js:41 Nje http://docmost:3000/assets/index-Dykvah5b.js:39 s http://docmost:3000/assets/index-Dykvah5b.js:100 y http://docmost:3000/assets/index-Dykvah5b.js:1894 onClick http://docmost:3000/assets/index-Dykvah5b.js:1894 cr http://docmost:3000/assets/index-Dykvah5b.js:38 ea http://docmost:3000/assets/index-Dykvah5b.js:38 af http://docmost:3000/assets/index-Dykvah5b.js:38 pne http://docmost:3000/assets/index-Dykvah5b.js:38 mne http://docmost:3000/assets/index-Dykvah5b.js:38 tj http://docmost:3000/assets/index-Dykvah5b.js:38 tP http://docmost:3000/assets/index-Dykvah5b.js:41 un http://docmost:3000/assets/index-Dykvah5b.js:38 tj http://docmost:3000/assets/index-Dykvah5b.js:38 PD http://docmost:3000/assets/index-Dykvah5b.js:38 DDe http://docmost:3000/assets/index-Dykvah5b.js:38 gne http://docmost:3000/assets/index-Dykvah5b.js:38 ej http://docmost:3000/assets/index-Dykvah5b.js:38 g4 http://docmost:3000/assets/index-Dykvah5b.js:38 g4 http://docmost:3000/assets/index-Dykvah5b.js:38 Bje http://docmost:3000/assets/index-Dykvah5b.js:41 Hre http://docmost:3000/assets/index-Dykvah5b.js:41 Bre http://docmost:3000/assets/index-Dykvah5b.js:41 Xje http://docmost:3000/assets/index-Dykvah5b.js:41 $9 http://docmost:3000/assets/index-Dykvah5b.js:41 $re http://docmost:3000/assets/index-Dykvah5b.js:41 eg http://docmost:3000/assets/index-Dykvah5b.js:39 Zje http://docmost:3000/assets/index-Dykvah5b.js:41 Xb http://docmost:3000/assets/index-Dykvah5b.js:41 Lre http://docmost:3000/assets/index-Dykvah5b.js:41 k http://docmost:3000/assets/index-Dykvah5b.js:26 O http://docmost:3000/assets/index-Dykvah5b.js:26 mPe http://docmost:3000/assets/index-Dykvah5b.js:26 mPe http://docmost:3000/assets/index-Dykvah5b.js:26 gPe http://docmost:3000/assets/index-Dykvah5b.js:26 bPe http://docmost:3000/assets/index-Dykvah5b.js:34 sve http://docmost:3000/assets/index-Dykvah5b.js:41 vPe http://docmost:3000/assets/index-Dykvah5b.js:41 <anonymous> http://docmost:3000/assets/index-Dykvah5b.js:41 ``` ### 🖼️ Additional context (optional). It seems that Docmost works with Draw.io natively, but in this Proxmox installation it doesn't. Given that a better error message would be helpful, I raised this issue in both repositories: Docmost (https://github.com/docmost/docmost/issues/1662) and here.
OVERLORD added the bug label 2026-02-05 02:06:25 +03:00
Author
Owner

@michelroegl-brunner commented on GitHub (Oct 7, 2025):

That must be a upstream issue. I dont see how the install script is the cause for a invalid url format

@michelroegl-brunner commented on GitHub (Oct 7, 2025): That must be a upstream issue. I dont see how the install script is the cause for a invalid url format
Author
Owner

@tremor021 commented on GitHub (Oct 7, 2025):

I will do a little test, just to be sure

@tremor021 commented on GitHub (Oct 7, 2025): I will do a little test, just to be sure
Author
Owner

@tremor021 commented on GitHub (Oct 7, 2025):

Ok, this is not a bug /opt/docmost/.env

Image

You need your own draw.io server for this to work.

@tremor021 commented on GitHub (Oct 7, 2025): Ok, this is not a bug `/opt/docmost/.env` <img width="191" height="51" alt="Image" src="https://github.com/user-attachments/assets/6f8aecf7-6251-4dfc-9ecf-fd07d3aa196a" /> You need your own draw.io server for this to work.
Author
Owner

@tremor021 commented on GitHub (Oct 7, 2025):

Ok, i was wrong.... I digged a bit more and seems like DRAWIO_URL should point to https://embed.diagrams.net if you don't have your own Draw.IO server.

I'm gonna push a PR to fix this

@tremor021 commented on GitHub (Oct 7, 2025): Ok, i was wrong.... I digged a bit more and seems like `DRAWIO_URL` should point to `https://embed.diagrams.net` if you don't have your own Draw.IO server. I'm gonna push a PR to fix this
Author
Owner

@andersonDadario commented on GitHub (Oct 7, 2025):

Ok, i was wrong.... I digged a bit more and seems like DRAWIO_URL should point to https://embed.diagrams.net if you don't have your own Draw.IO server.

I'm gonna push a PR to fix this

I can confirm that setting the value to "https://embed.diagrams.net" works. (I updated manually).

Thank you for the PR.

@andersonDadario commented on GitHub (Oct 7, 2025): > Ok, i was wrong.... I digged a bit more and seems like `DRAWIO_URL` should point to `https://embed.diagrams.net` if you don't have your own Draw.IO server. > > I'm gonna push a PR to fix this I can confirm that setting the value to "https://embed.diagrams.net" works. (I updated manually). Thank you for the PR.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#1737