Docmost LXC fails to install #1368

Closed
opened 2026-02-05 00:30:58 +03:00 by OVERLORD · 14 comments
Owner

Originally created by @pafade89 on GitHub (Jul 30, 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

📝 Provide a clear and concise description of the issue.

During the installation via the script, the following errors occur.

🔄 Steps to reproduce the issue.

run script

Paste the full error output (if available).

> docmost@0.22.0 build /opt/docmost
> nx run-many -t build


   ✔  nx run @docmost/editor-ext:build (4s)
   ✔  nx run server:build (15s)

—————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
   ✖  nx run client:build
      > client@0.22.0 build /opt/docmost/apps/client
      > tsc && vite build
      
      src/components/common/user-info.tsx(4,22): error TS2307: Cannot find module 'server/dist/database/types/entity.types' or its corresponding type declarations.
       ELIFECYCLE  Command failed with exit code 2.
      
      

—————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

 NX   Ran target build for 3 projects (20s)

   ✔  2/3 succeeded [0 read from cache]

   ✖  1/3 targets failed, including the following:

      - nx run client:build

 ELIFECYCLE  Command failed with exit code 1.

[ERROR] in line 54: exit code 0: while executing command $STD pnpm build

[ERROR] in line 1305: exit code 0: while executing command lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/"$var_install".sh)" $?

🖼️ Additional context (optional).

No response

Originally created by @pafade89 on GitHub (Jul 30, 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 ### 📝 Provide a clear and concise description of the issue. During the installation via the script, the following errors occur. ### 🔄 Steps to reproduce the issue. run script ### ❌ Paste the full error output (if available). ``` > docmost@0.22.0 build /opt/docmost > nx run-many -t build ✔ nx run @docmost/editor-ext:build (4s) ✔ nx run server:build (15s) ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— ✖ nx run client:build > client@0.22.0 build /opt/docmost/apps/client > tsc && vite build src/components/common/user-info.tsx(4,22): error TS2307: Cannot find module 'server/dist/database/types/entity.types' or its corresponding type declarations.  ELIFECYCLE  Command failed with exit code 2. ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— NX Ran target build for 3 projects (20s) ✔ 2/3 succeeded [0 read from cache] ✖ 1/3 targets failed, including the following: - nx run client:build  ELIFECYCLE  Command failed with exit code 1. [ERROR] in line 54: exit code 0: while executing command $STD pnpm build [ERROR] in line 1305: exit code 0: while executing command lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/"$var_install".sh)" $? ``` ### 🖼️ Additional context (optional). _No response_
OVERLORD added the not a script issuebugexternal labels 2026-02-05 00:30:58 +03:00
Author
Owner

@netbix commented on GitHub (Jul 30, 2025):

Same problem !

Done in 2m 47.4s

docmost@0.22.0 build /opt/docmost
nx run-many -t build

✔ nx run @docmost/editor-ext:build (9s)
✔ nx run server:build (37s)

———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
✖ nx run client:build
> client@0.22.0 build /opt/docmost/apps/client
> tsc && vite build

  src/components/common/user-info.tsx(4,22): error TS2307: Cannot find module 'server/dist/database/types/entity.types' or its corresponding type declarations.
   ELIFECYCLE  Command failed with exit code 2.

———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————

NX Ran target build for 3 projects (49s)

✔ 2/3 succeeded [0 read from cache]

✖ 1/3 targets failed, including the following:

  - nx run client:build

 ELIFECYCLE  Command failed with exit code 1.

[ERROR] in line 54: exit code 0: while executing command $STD pnpm build

[ERROR] in line 1305: exit code 0: while executing command lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/"var_install".sh)" ?

@netbix commented on GitHub (Jul 30, 2025): Same problem ! Done in 2m 47.4s > docmost@0.22.0 build /opt/docmost > nx run-many -t build ✔ nx run @docmost/editor-ext:build (9s) ✔ nx run server:build (37s) ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— ✖ nx run client:build > client@0.22.0 build /opt/docmost/apps/client > tsc && vite build src/components/common/user-info.tsx(4,22): error TS2307: Cannot find module 'server/dist/database/types/entity.types' or its corresponding type declarations.  ELIFECYCLE  Command failed with exit code 2. ——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— NX Ran target build for 3 projects (49s) ✔ 2/3 succeeded [0 read from cache] ✖ 1/3 targets failed, including the following: - nx run client:build  ELIFECYCLE  Command failed with exit code 1. [ERROR] in line 54: exit code 0: while executing command $STD pnpm build [ERROR] in line 1305: exit code 0: while executing command lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/"$var_install".sh)" $?
Author
Owner

@MickLesk commented on GitHub (Jul 30, 2025):

Please anyone open an Issue at there repo, it only breaks with the current Release

@MickLesk commented on GitHub (Jul 30, 2025): Please anyone open an Issue at there repo, it only breaks with the current Release
Author
Owner

@przemoch-dev commented on GitHub (Jul 30, 2025):

Same problem here.

EDIT: Looks like this is the docmost 0.22.0 release (released 14h ago) issue. I downgraded to 0.21.0 and it works.

Btw, is there a simple way to modify the release of the package using the original script? I mean fetch_and_deploy_gh_release could read APP_VERSION variable and use it when provided instead of latest. I can't see such an option in the source.

@przemoch-dev commented on GitHub (Jul 30, 2025): Same problem here. **EDIT**: Looks like this is the docmost 0.22.0 release (released 14h ago) issue. I downgraded to 0.21.0 and it works. Btw, is there a simple way to modify the release of the package using the original script? I mean `fetch_and_deploy_gh_release` could read `APP_VERSION` variable and use it when provided instead of `latest`. I can't see such an option in the source.
Author
Owner

@jayphizzle commented on GitHub (Jul 30, 2025):

EDIT: Looks like this is the docmost 0.22.0 release (released 14h ago) issue. I downgraded to 0.21.0 and it works.

How did you downgrade to the previous version?

Image
@jayphizzle commented on GitHub (Jul 30, 2025): > > **EDIT**: Looks like this is the docmost 0.22.0 release (released 14h ago) issue. I downgraded to 0.21.0 and it works. > How did you downgrade to the previous version? <img width="936" height="227" alt="Image" src="https://github.com/user-attachments/assets/c2cfd33a-3fd1-4c12-81fc-f186a8b2fe90" />
Author
Owner

@MickLesk commented on GitHub (Jul 30, 2025):

Same problem here.

EDIT: Looks like this is the docmost 0.22.0 release (released 14h ago) issue. I downgraded to 0.21.0 and it works.

Btw, is there a simple way to modify the release of the package using the original script? I mean fetch_and_deploy_gh_release could read APP_VERSION variable and use it when provided instead of latest. I can't see such an option in the source.

No.

And Nobody has create an issue in docmost ^^ issue is not our script

@MickLesk commented on GitHub (Jul 30, 2025): > Same problem here. > > **EDIT**: Looks like this is the docmost 0.22.0 release (released 14h ago) issue. I downgraded to 0.21.0 and it works. > > Btw, is there a simple way to modify the release of the package using the original script? I mean `fetch_and_deploy_gh_release` could read `APP_VERSION` variable and use it when provided instead of `latest`. I can't see such an option in the source. No. And Nobody has create an issue in docmost ^^ issue is not our script
Author
Owner

@atphilipp99 commented on GitHub (Jul 31, 2025):

I also had this problem yesterday when trying to build the Docmost version 0.22.0 via the Dockerfile.

The error is caused by trying to access the built module server/dist/database/types/entity.types in the backend (server) when building the frontend (client).

However, the client is built first and then the server.

My “quick fix” was to run pnpm nx run server:build before pnpm build.

This way the frontend (client) can load the entity.types module during the complete build and the build works.

In the given proxmox script the build could probably work if
$STD pnpm nx run server:build
is added after line 51

@atphilipp99 commented on GitHub (Jul 31, 2025): I also had this problem yesterday when trying to build the Docmost version 0.22.0 via the Dockerfile. The error is caused by trying to access the built module server/dist/database/types/entity.types in the backend (server) when building the frontend (client). However, the client is built first and then the server. My “quick fix” was to run `pnpm nx run server:build` before `pnpm build`. This way the frontend (client) can load the entity.types module during the complete build and the build works. In the given proxmox script the build could probably work if `$STD pnpm nx run server:build` is added after line 51
Author
Owner

@MickLesk commented on GitHub (Jul 31, 2025):

yeah looks like an hard issue in current release file ^^ so - waiting.

@MickLesk commented on GitHub (Jul 31, 2025): yeah looks like an hard issue in current release file ^^ so - waiting.
Author
Owner

@vsanasc commented on GitHub (Jul 31, 2025):

In the given proxmox script the build could probably work if
$STD pnpm nx run server:build
is added after line 51

Confirmed that this @atphilipp99's fix solved the issue. I created a local copy of the script, added the line indicated and ran it. It worked just fine.

Thanks @atphilipp99 !!

@vsanasc commented on GitHub (Jul 31, 2025): > In the given proxmox script the build could probably work if $STD pnpm nx run server:build is added after line 51 Confirmed that this @atphilipp99's fix solved the issue. I created a local copy of the script, added the line indicated and ran it. It worked just fine. Thanks @atphilipp99 !!
Author
Owner

@MickLesk commented on GitHub (Aug 1, 2025):

ive added these dirty fix, can anyone check it?
Its marked in Code as:
"$STD pnpm nx run server:build # Dirty fix https://github.com/community-scripts/ProxmoxVE/issues/6377" until next version is released

@MickLesk commented on GitHub (Aug 1, 2025): ive added these dirty fix, can anyone check it? Its marked in Code as: "$STD pnpm nx run server:build # Dirty fix https://github.com/community-scripts/ProxmoxVE/issues/6377" until next version is released
Author
Owner

@roadsterdriver commented on GitHub (Aug 1, 2025):

My new Installation works!

@roadsterdriver commented on GitHub (Aug 1, 2025): My new Installation works!
Author
Owner

@analysederix commented on GitHub (Aug 1, 2025):

Working now, thanks

@analysederix commented on GitHub (Aug 1, 2025): Working now, thanks
Author
Owner

@netbix commented on GitHub (Aug 1, 2025):

Working now, thanks

@netbix commented on GitHub (Aug 1, 2025): Working now, thanks
Author
Owner

@pafade89 commented on GitHub (Aug 2, 2025):

@MickLesk

This is now fixed in v0.22.1.

Ursprünglich gepostet von @Philipinho in https://github.com/docmost/docmost/issues/1432#issuecomment-3145612126

@pafade89 commented on GitHub (Aug 2, 2025): @MickLesk This is now fixed in v0.22.1. _Ursprünglich gepostet von @Philipinho in https://github.com/docmost/docmost/issues/1432#issuecomment-3145612126_
Author
Owner

@MickLesk commented on GitHub (Aug 2, 2025):

Im today not at PC, maybe at evening. Maybe an @community-scripts/contributor can remove the 2 lines

@MickLesk commented on GitHub (Aug 2, 2025): Im today not at PC, maybe at evening. Maybe an @community-scripts/contributor can remove the 2 lines
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#1368