logseq / logseq/db-test

Logseq CLI not found when using AppImage (Podman Container)

Open
#965 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
28
Forks
2
PR merge metrics
No merged PRs in 30d

Description

### Search first

- [x] I searched and no similar issues were found

### What Happened?

I am using LogseqDB via a podman container (using Toolbox). This is achieved by running the Appimage in a container.

I was trying to use the CLI tool of logseq, but this was not available via the container.
And whether I ran `logseq --help` within the container or outside of it, I would get the following error:

```
--- Outside of toolbox container ----
❯ logseq --help
node:internal/modules/cjs/loader:1486
throw err;
^

Error: Cannot find module '/tmp/.mount_LogseqMIMnml/resources/app.asar/js/logseq-cli.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1483:15)
at wrapResolveFilename (node:internal/modules/cjs/loader:1056:27)
at defaultResolveImplForCJSLoading (node:internal/modules/cjs/loader:1080:10)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1101:12)
at Module._load (node:internal/modules/cjs/loader:1269:25)
at c._load (node:electron/js2c/node_init:2:18095)
at wrapModuleLoad (node:internal/modules/cjs/loader:262:19)
at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:169:5)
at node:internal/main/run_main_module:33:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

Node.js v24.15.0

-------- Inside of Toolbox container --------
⬢ [USERNAME@toolbx LogseqDB-nightly]$ logseq --help
node:internal/modules/cjs/loader:1486
throw err;
^

Error: Cannot find module '/tmp/.mount_LogseqMIMnml/resources/app.asar/js/logseq-cli.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1483:15)
at wrapResolveFilename (node:internal/modules/cjs/loader:1056:27)
at defaultResolveImplForCJSLoading (node:internal/modules/cjs/loader:1080:10)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1101:12)
at Module._load (node:internal/modules/cjs/loader:1269:25)
at c._load (node:electron/js2c/node_init:2:18095)
at wrapModuleLoad (node:internal/modules/cjs/loader:262:19)
at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:169:5)
at node:internal/main/run_main_module:33:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

Node.js v24.15.0
```

### Reproduce the Bug

1. Open a toolbox container using `$ toolbox create [Name of container]`
2. Navigate to the directory of Appimage, mark it as executable.
3. Be sure to install any dependencies required - generally all electron libraries.
4. Launch the appimage
5. Once launched, close it, and try run `$ logseq --help`

### Expected Behavior

I was expecting that `logseq --help` would produce the various options available with logseq.

### Screenshots

_No response_

### Files

I can confirm that Logseq CLI was installed in the system, here is the terminal output when running the AppImage for the first time:
```
⬢ [USERNAME@toolbx LogseqDB-nightly]$ ./Logseq-linux-x86_64-2.0.1.AppImage
LaunchProcess: failed to execvp:
xdg-settings
16:41:50.976 › Logseq App(2.0.1) Starting...
16:41:51.631 › restore proxy settings {:type "system"}
16:41:51.632 › set proxy to {:type "system"}
16:41:51.637 › :cli/install Installed launcher at /var/home/USERNAME/.local/bin/logseq
16:41:51.640 › [updater] configure-auto-updater {:platform "linux", :arch "x64", :channel nil}
16:41:51.643 › [updater] init-auto-updater
Checking for update
Error: Error: Cannot find latest-linux.yml in the latest release artifacts (https://github.com/logseq/logseq/releases/download/0.10.15/latest-linux.yml): HttpError: 404
"method: GET url: https://github.com/logseq/logseq/releases/download/0.10.15/latest-linux.yml\n\nPlease double check that your authentication token is correct. Due to security reasons, actual status maybe not reported, but 404.\n"
Headers: {
"cache-control": "no-cache",
"content-encoding": "gzip",
"content-length": "29",
"content-security-policy": "default-src 'none'; base-uri 'self'; connect-src 'self'; form-action 'self'; img-src 'self' data:; script-src 'self'; style-src 'unsafe-inline'",
"content-type": "text/plain; charset=utf-8",
"date": "Wed, 24 Jun 2026 14:42:09 GMT",
"referrer-policy": "no-referrer-when-downgrade",
"server": "github.com",
"strict-transport-security": "max-age=31536000; includeSubdomains; preload",
"vary": "X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With, Sec-Fetch-Site,Accept-Encoding, Accept, X-Requested-With",
"x-content-type-options": "nosniff",
"x-frame-options": "deny",
"x-github-request-id": "BF75:373EBC:2776A0D:206075D:6A3BECC0",
"x-xss-protection": "0"
}
at createHttpError (/tmp/.mount_LogseqMIMnml/resources/app.asar/node_modules/builder-util-runtime/out/httpExecutor.js:21:12)
at ElectronHttpExecutor.handleResponse (/tmp/.mount_LogseqMIMnml/resources/app.asar/node_modules/builder-util-runtime/out/httpExecutor.js:121:20)
at ClientRequest. (/tmp/.mount_LogseqMIMnml/resources/app.asar/node_modules/builder-util-runtime/out/httpExecutor.js:87:26)
at ClientRequest.emit (node:events:509:28)
at SimpleURLLoaderWrapper. (node:electron/js2c/browser_init:2:134095)
at SimpleURLLoaderWrapper.emit (node:events:509:28)
at newError (/tmp/.mount_LogseqMIMnml/resources/app.asar/node_modules/builder-util-runtime/out/error.js:5:19)
at fetchData (/tmp/.mount_LogseqMIMnml/resources/app.asar/node_modules/electron-updater/out/providers/GitHubProvider.js:114:63)
at async GitHubProvider.getLatestVersion (/tmp/.mount_LogseqMIMnml/resources/app.asar/node_modules/electron-updater/out/providers/GitHubProvider.js:124:23)
at async AppImageUpdater.getUpdateInfoAndProvider (/tmp/.mount_LogseqMIMnml/resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:389:19)
at async AppImageUpdater.doCheckForUpdates (/tmp/.mount_LogseqMIMnml/resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:402:24)
16:41:55.107 › [updater/error] Error: Cannot find latest-linux.yml in the latest release artifacts (https://github.com/logseq/logseq/releases/download/0.10.15/latest-linux.yml): HttpError: 404
"method: GET url: https://github.com/logseq/logseq/releases/download/0.10.15/latest-linux.yml\n\nPlease double check that your authentication token is correct. Due to security reasons, actual status maybe not reported, but 404.\n"
Headers: {
"cache-control": "no-cache",
"content-encoding": "gzip",
"content-length": "29",
"content-security-policy": "default-src 'none'; base-uri 'self'; connect-src 'self'; form-action 'self'; img-src 'self' data:; script-src 'self'; style-src 'unsafe-inline'",
"content-type": "text/plain; charset=utf-8",
"date": "Wed, 24 Jun 2026 14:42:09 GMT",
"referrer-policy": "no-referrer-when-downgrade",
"server": "github.com",
"strict-transport-security": "max-age=31536000; includeSubdomains; preload",
"vary": "X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With, Sec-Fetch-Site,Accept-Encoding, Accept, X-Requested-With",
"x-content-type-options": "nosniff",
"x-frame-options": "deny",
"x-github-request-id": "BF75:373EBC:2776A0D:206075D:6A3BECC0",
"x-xss-protection": "0"
}
at createHttpError (/tmp/.mount_LogseqMIMnml/resources/app.asar/node_modules/builder-util-runtime/out/httpExecutor.js:21:12)
at ElectronHttpExecutor.handleResponse (/tmp/.mount_LogseqMIMnml/resources/app.asar/node_modules/builder-util-runtime/out/httpExecutor.js:121:20)
at ClientRequest. (/tmp/.mount_LogseqMIMnml/resources/app.asar/node_modules/builder-util-runtime/out/httpExecutor.js:87:26)
at ClientRequest.emit (node:events:509:28)
at SimpleURLLoaderWrapper. (node:electron/js2c/browser_init:2:134095)
at SimpleURLLoaderWrapper.emit (node:events:509:28)
at newError (/tmp/.mount_LogseqMIMnml/resources/app.asar/node_modules/builder-util-runtime/out/error.js:5:19)
at fetchData (/tmp/.mount_LogseqMIMnml/resources/app.asar/node_modules/electron-updater/out/providers/GitHubProvider.js:114:63)
at async GitHubProvider.getLatestVersion (/tmp/.mount_LogseqMIMnml/resources/app.asar/node_modules/electron-updater/out/providers/GitHubProvider.js:124:23)
at async AppImageUpdater.getUpdateInfoAndProvider (/tmp/.mount_LogseqMIMnml/resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:389:19)
at async AppImageUpdater.doCheckForUpdates (/tmp/.mount_LogseqMIMnml/resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:402:24)
16:41:55.108 › [updater/auto-check] Error: Cannot find latest-linux.yml in the latest release artifacts (https://github.com/logseq/logseq/releases/download/0.10.15/latest-linux.yml): HttpError: 404
"method: GET url: https://github.com/logseq/logseq/releases/download/0.10.15/latest-linux.yml\n\nPlease double check that your authentication token is correct. Due to security reasons, actual status maybe not reported, but 404.\n"
Headers: {
"cache-control": "no-cache",
"content-encoding": "gzip",
"content-length": "29",
"content-security-policy": "default-src 'none'; base-uri 'self'; connect-src 'self'; form-action 'self'; img-src 'self' data:; script-src 'self'; style-src 'unsafe-inline'",
"content-type": "text/plain; charset=utf-8",
"date": "Wed, 24 Jun 2026 14:42:09 GMT",
"referrer-policy": "no-referrer-when-downgrade",
"server": "github.com",
"strict-transport-security": "max-age=31536000; includeSubdomains; preload",
"vary": "X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With, Sec-Fetch-Site,Accept-Encoding, Accept, X-Requested-With",
"x-content-type-options": "nosniff",
"x-frame-options": "deny",
"x-github-request-id": "BF75:373EBC:2776A0D:206075D:6A3BECC0",
"x-xss-protection": "0"
}
at createHttpError (/tmp/.mount_LogseqMIMnml/resources/app.asar/node_modules/builder-util-runtime/out/httpExecutor.js:21:12)
at ElectronHttpExecutor.handleResponse (/tmp/.mount_LogseqMIMnml/resources/app.asar/node_modules/builder-util-runtime/out/httpExecutor.js:121:20)
at ClientRequest. (/tmp/.mount_LogseqMIMnml/resources/app.asar/node_modules/builder-util-runtime/out/httpExecutor.js:87:26)
at ClientRequest.emit (node:events:509:28)
at SimpleURLLoaderWrapper. (node:electron/js2c/browser_init:2:134095)
at SimpleURLLoaderWrapper.emit (node:events:509:28)
at newError (/tmp/.mount_LogseqMIMnml/resources/app.asar/node_modules/builder-util-runtime/out/error.js:5:19)
at fetchData (/tmp/.mount_LogseqMIMnml/resources/app.asar/node_modules/electron-updater/out/providers/GitHubProvider.js:114:63)
at async GitHubProvider.getLatestVersion (/tmp/.mount_LogseqMIMnml/resources/app.asar/node_modules/electron-updater/out/providers/GitHubProvider.js:124:23)
at async AppImageUpdater.getUpdateInfoAndProvider (/tmp/.mount_LogseqMIMnml/resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:389:19)
at async AppImageUpdater.doCheckForUpdates (/tmp/.mount_LogseqMIMnml/resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:402:24)
(node:17653) [DEP0176] DeprecationWarning: fs.W_OK is deprecated, use fs.constants.W_OK instead
(Use `logseq --trace-deprecation ...` to show where the warning was created)
16:42:00.321 › [Marketplace] === Updating: wirtzdan/logseq-paper-theme ===
16:42:01.156 › [Marketplace] INFO: use github api - https://plugins.logseq.io/github/api
16:42:02.156 › [Marketplace] Release latest: https://plugins.logseq.io/github/api/repos/wirtzdan/logseq-paper-theme/releases/latest :status 200
16:42:02.165 › [Marketplace] Release latest: v0.2.2 from null
16:42:02.166 › [Marketplace] Release compare: v0.2.2 (current) > v0.2.2 (latest)
16:42:02.167 › [Marketplace] Update skip: no new version
```

### Browser, Desktop or Mobile Platform Information

OS: Fedora Silverblue 44
app version: Logseq-linux-x86_64-2.0.1.AppImage

### Additional Context

_No response_

### Are you willing to submit a PR? If you know how to fix the bug.

- [ ] I'm willing to submit a PR (Thank you!)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the Logseq-linux-x86_64-2.0.1.AppImage in a Toolbox container, then inspect the installed launcher at /var/home/USERNAME/.local/bin/logseq and the missing resources/app.asar/js/logseq-cli.js path. Done means running logseq --help inside and outside the container displays the available CLI options instead of MODULE_NOT_FOUND.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, node.js
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.