mirror of
https://github.com/karakeep-app/karakeep.git
synced 2026-04-25 16:06:04 +03:00
[GH-ISSUE #933] hoarder not starting after installed on ubuntu 24 plus some questions #618
Closed
opened 2026-03-02 11:51:20 +03:00 by kerem
·
8 comments
No Branch/Tag specified
main
refactor/use-npm-singlefile
onetab
claude/issue-2596-20260321-1401
claude/fix-docs-button-responsive-V3aBQ
claude/review-import-backpressure-D4ArJ
claude/fix-archived-bookmarks-mobile-P9OJW
claude/issue-1189-20260211-1601
claude/fix-nested-smart-lists-3uFkt
claude/issue-2298-20251223-1704
feat/import-v3
claude/add-cli-search-subcommand-6kIe0
claude/add-bookmark-indexing-timestamps-96bPj
claude/auto-disable-failing-feeds-fkDhP
claude/add-tag-search-aliases-HzESD
feat/docker-compose-dev
claude/add-attachedby-tags-endpoint-01WYfemMGHJJjXsPYLvUJAno
claude/fix-crawler-memory-leaks-NE7Ct
bookmark-debugger
claude/issue-2352-20260106-1120
claude/issue-1977-20260102-2348
claude/add-banner-rendering-JeLUk
claude/add-descendant-qualifier-cUm26
claude/skip-metadata-refresh-archives-CAo4Y
claude/fix-archive-pending-banner-pAyGM
claude/add-embeddings-support-h2swV
claude/nested-manage-lists-QVV85
claude/privacy-type-system-MG1bT
claude/add-action-menu-icons-6hNKw
claude/issue-2299-20251223-1711
claude/bookmark-indexing-progress-QwZSI
claude/migrate-bookmark-attachments-3O2te
claude/add-2025-wrapped-feature-tIUIh
claude/improve-ai-settings-design-639tq
claude/add-youtube-metascraper-plugin-0lWC7
claude/add-problem-reporting-gSSEV
claude/add-mobile-list-menus-spcS7
claude/shadcn-bookmark-cards-WWHzP
claude/add-extensions-link-HTeXc
claude/add-onboarding-screens-hsYMO
claude/fix-settings-switch-overflow-nlzM4
claude/clamp-bookmark-titles-diAEz
claude/port-stats-mobile-expo-MuXAn
claude/whats-new-base-version-vrv8C
claude/fix-settings-auth-checks-jgyD8
claude/add-server-version-display-3sGa2
claude/fix-tag-editor-scrolling-rzdbG
claude/add-company-pricing-card-y5mHY
claude/audit-optimize-transactions-xpDVc
codex/ensure-consistent-ui-experience-across-app-pages
claude/plan-opentelemetry-integration-01Jx183mz1Ev8h8JoYj97Auw
libsql
db-indicies
claude/export-import-lists-01UuCWwdaqduAd35NppvjnMD
claude/configurable-worker-timeout-0198GQh6YrrRzqG62xnogyrz
claude/check-import-quota-01CPdxTpHp18Ba62bYcBTVbA
claude/scraper-worker-thread-01FEHen6MGrQHmdBstJSuiyA
claude/customize-dialog-styling-01CVjEv2KgyZJSpCg3mqkvR7
claude/add-asset-cache-headers-0175WhNcqwiwurrmjj52jnLT
claude/add-db-search-plugin-017Xxd4Jq3MfjWT788vgfbaq
benchmarks-2
claude/add-filtered-deletion-01DTxWNcg3hhqdNpeNLa3s6L
claude/actionbutton-loading-spinner-015DY5ZTvgPgFAXTZz3UGaYv
claude/add-broken-links-qualifier-01S31X1LsKiYb9gE1dXTKvi3
claude/docker-release-tag-trigger-01UmzFXEumhK2jdmRGtMcueo
claude/spread-feed-fetch-scheduling-01EihUtmZSyqeE1HfRMessxW
restate-idempotency
claude/align-android-ios-colors-01GJfkhEyZVBReohVioPa8ok
claude/improve-mobile-app-colors-0155LzHfkd5HyJr6YyZMsus5
codex/add-autocomplete-for-search-query-language
claude/add-bookmark-backups-016L2A8Z94n7tDgDdMPdFuAd
claude/restrict-binary-user-permissions-01FSGyy2RXGZvE26YbAejzGi
effect-ts
claude/prepare-trpc-npm-publish-0193EjfwpxSNVNcLXqXjs6Ln
shared-list-sidebar
claude/lazy-load-tiktoken-017UTNpJPTcMMQvNEBa1aFwo
codex/fix-asset-pre-processing-worker-abort-signals
add-groupid
claude/add-bookmark-list-button-01VF7uXYNLsVDzqdozWMXP5M
claude/extract-shared-ui-components-01DSVfaCr6WRqAyx1vJTZk9r
claude/migrate-shadcn-sidebar-01DKjpg9MD5PJ2potemSnbvW
claude/add-collaborators-rate-limits-01VjXyRWWPUkGQKa8d8D8qKj
claude/modernize-dark-mode-01FRfE81PAY5C44pFu1cYocf
claude/add-signed-url-bookmark-01PjYT1ZhvLK2FPJNTAhJsWf
restate-group-id
claude/add-highlights-page-012vhHpn8fVNp3gf7gBeW14s
claude/disable-shared-bookmark-features-01B9fiGUdu6NyWaxSQFsQBxP
claude/mobile-bookmark-grid-layouts-018cGBBMhPJVq6PJVRBpqT2r
claude/add-mobile-bookmark-summary-01494LYoh4sJW5Fj4GPm62Vj
claude/add-mobile-tags-screen-01WRADt4ZzvXVew1Y9vqF8SV
claude/add-highlight-notes-01LpanRLS4a2YMnT1qB5GTqX
claude/add-search-bar-014k2ngaqjwYRVSvqmbuECqr
claude/hide-collaborator-emails-01TQrkkMupC7CR9BTuDkireg
claude/list-invitation-approval-0129V89M1riXW6JqmoF74VfM
claude/add-bookmark-archive-sort-018VbGPGvtmsGgXFEERoAX7B
claude/add-mobile-smart-lists-01251tYo9u1SywE6XFezAv9e
claude/bookmark-drag-drop-01DmWq286ogHpDGHKcXjKr3z
claude/add-rss-import-01DH1Q2axcDeq8nQJR5MWjPJ
claude/mobile-inapp-browser-auth-01KiT6bwyntRPQ1X4oTtAveC
claude/offline-mode-react-query-01D1rE2bdBEPw2teGqunr5Gd
claude/add-singlefile-extension-support-01BEB9QQZABzwfZDvR9Bz5b2
claude/custom-list-slugs-01VxcfkNUXZ97FNpNVURopMq
claude/issue-2148-20251118-1133
claude/add-groupid-queue-fairness-011CV1r8Wb46HuGAg5o95i3m
claude/hide-viewer-shared-lists-01Fst6NBvdxrXXnDhUmjsNDP
claude/collaborative-lists-013AvDvMqkoszDVcSoCYgBcM
claude/implement-feature-01LT5XzGsbEhZkYXNEjEwdui
claude/fix-bookmark-loading-state-01AgF4H2drxwuTCJDB2Xgiu4
claude/admin-user-edit-013tbiRmb1KX2fhSYqmGKCu8
claude/expose-all-api-01YTruEW72WQYMtq4iZoaPkA
claude/add-doc-link-main-016NYLxShpKuH6R8XCBgeZtc
claude/fix-issue-2133-019JLvdSRAUbU4FtjQztcM6S
claude/explore-effect-ts-integration-01F7xb1dWwP1ma4LnLbFGfDD
claude/optimize-dockerfile-build-011CV5gDnPZbdbbVSPDofC4e
claude/add-custom-headers-guide-011CV249t16aWDRb1mCrzQdC
claude/mobile-app-signup-011CUxPtCXgU6U3T8GShTR2Q
claude/crawler-worker-fetch-browser-011CUvcRc24XEr9DTWDW6MX8
claude/fix-issue-784-011CUvubQrcZHG9S3KjpCKbK
codex/add-user-settings-for-inference-language-and-screenshots
claude/fix-mobile-signin-server-address-011CUnaUWwY2Fhq5Xbwhgr8H
better-auth-2
claude/issue-2028-20251012-1429
claude/issue-1010-20251012-1154
codex/update-feed-refresh-job-idempotency-key
restate
import-v2
fix-public-lists
recurse-delete-list
abort-dangling-processing
tag-pagination
ratelimit-plugin
claude/issue-1937-20250914-0912
codex/implement-title-search-query-qualifier
copilot/add-edit-button-for-notes
cookie-path
ai-tag-cleanup
codex/add-allowlist-and-blocklist-env-variables
mobile-retheme
expo-next-upgrade
opencode/issue1788-20250727215611
fix-trailing-slash-deduplication
edit-bookmark-dialog
bookmark-embeddings
rag
nextjs-15
bookmark-hover-bar
sapling-pr-archive-MohamedBassem
track-bookmark-assets
json-cli
admin-settings
mobile-dark-mode
android/v1.9.2-0
ios/v1.9.1-1
android/v1.9.1-0
ios/v1.9.1-0
ios/v1.9.0-2
ios/v1.9.0-1
android/v1.9.0-1
extension/v1.2.9
cli/v0.31.0
sdk/v0.31.0
mcp/v0.31.0
android/v1.9.0-0
ios/v1.9.0-0
v0.31.0
android/v1.8.5-0
cli/v0.30.0
sdk/v0.30.0
ios/v1.8.4-0
android/v1.8.4-0
v0.30.0
cli/v0.29.1
v0.29.3
v0.29.2
v0.29.1
sdk/v0.29.0
cli/v0.29.0
mcp/v0.29.0
ios/v1.8.3-0
android/v1.8.3-0
extension/v1.2.8
v0.29.0
android/v1.8.2-2
android/v1.8.2-1
ios/v1.8.2-0
android/v1.8.2-0
extension/v1.2.7
android/v1.8.1-0
ios/v1.8.1-0
v0.28.0
cli/v0.27.1
cli/v0.27.0
v0.27.1
sdk/v0.27.0
v0.27.0
android/v1.8.0-1
ios/v1.8.0-1
mcp/v0.26.0
sdk/v0.26.0
v0.26.0
cli/v0.25.0
ios/v1.7.0-1
mcp/v0.25.0
v0.25.0
extension/v1.2.6
ios/v1.7.0-0
android/v1.7.0-0
v0.24.1
v0.24.0
mcp/v0.23.10
mcp/v0.23.9
mcp/v0.23.8
extension/v1.2.5
mcp/v0.23.7
mcp/v0.23.6
mcp/v0.23.5
mcp/v0.23.4
sdk/v0.23.2
cli/v0.23.0
extension/v1.2.4
android/v1.6.9-1
ios/v1.6.9-1
v0.23.2
v0.23.1
sdk/v0.23.0
v0.23.0
ios/v1.6.9-0
sdk/v0.22.0
v0.22.0
android/v1.6.8-0
ios/v1.6.8-0
sdk/v0.21.2
sdk/v0.21.1
sdk/v0.21.0
v0.21.0
cli/v0.20.0
v0.20.0
ios/v1.6.7-4
android/v1.6.7-4
ios/v1.6.7-3
android/v1.6.7-3
android/v1.6.7-2
ios/v1.6.7-2
android/v1.6.7-1
ios/v1.6.7-1
ios/v1.6.7-0
android/v1.6.7-0
v0.19.0
android/v1.6.6-0
android/v1.6.5-0
ios/v1.6.5-0
ios/v1.6.4-0
android/v1.6.4-0
v0.18.0
v0.17.1
v0.17.0
ios/v1.6.3-0
android/v1.6.3-0
extension/v1.2.3
ios/v1.6.2-1
android/v1.6.2-1
ios/v1.6.2-0
android/v1.6.2-0
v0.16.0
ios/v1.6.1-3
android/v1.6.1-3
ios/v1.6.1-2
android/v1.6.1-2
android/v1.6.1-1
ios/v1.6.1-1
android/v1.6.1-0
ios/v1.6.1-0
extension/v1.2.2
android/v1.6.0-1
ios/v1.6.0-1
ios/v1.6.0
android/v1.6.0
cli/v0.13.7
cli/v0.13.6
v0.15.0
cli/v0.13.5
extension/v1.2.1
v0.14.0
cli/v0.13.3
cli/v0.13.2
cli/v0.13.1
cli/v0.13.0
v0.13.1
v0.13.0
mobile-v1.5.0
mobile-v1.4.0
v0.12.2
v0.12.1
v0.12.0
v0.11.1
v0.11.0
v0.10.1
v0.10.0
v0.9.0
v0.8.0
v0.7.0
v0.6.0
v0.5.0
v0.4.1
v.0.4.0
v.0.3.1
v0.3.0
v0.2.2
v0.2.1
v0.2.0
v0.1.0
Labels
Clear labels
Mirrored from GitHub Pull Request
UI/UX
android
bug
dependencies
documentation
documentation
extension
feature request
feature request
good first issue
ios
long-term
performance
pri/high
pri/low
pri/medium
pull-request
Mirrored from GitHub Pull Request
question
status/approved
status/icebox
status/pending_clarification
status/untriaged
No labels
UI/UX
android
bug
dependencies
documentation
documentation
extension
feature request
feature request
good first issue
ios
long-term
performance
pri/high
pri/low
pri/medium
pull-request
question
status/approved
status/icebox
status/pending_clarification
status/untriaged
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set.
Reference
starred/karakeep#618
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @xxjoe2 on GitHub (Jan 24, 2025).
Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/933
Describe the Bug
after many attempts to fix unmatched dependencies/nonexisting (not created) directories including subfolders like apps/packages,etc, together with missing modules/deprecated corepack etc, i finally installed hoarder successfully. however it wont start and i can see erros when starting the services via systemctl
i have the docker version installed a few days ago but i l found that bookmarks need to import via cli, so i decided to install hoarder with the script provided. i have referred to the readme but nothing has been mentioned about the problems i encountered
PS actually it's my fault as they can be imported via webui remotely but i doubt if i can close the browser during the import process as there are 10000 bookmarks in the 1st csv and it's still running very slowly
PS2 is there an way to run command line with docker version and how do i change username or password?
Steps to Reproduce
Expected Behaviour
a straight forward installation script which installs hoarder easily without problem, and with all requirements mentioned
Screenshots or Additional Context
Installed Hoarder
Creating configuration files...
Configuration complete
Creating users and modifying permissions...
useradd: user 'meilisearch' already exists
useradd: user 'hoarder' already exists
Users created, permissions modified
Creating service files...
Service files created
Enabling and starting services, please wait...
Done
Cleaning up
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 22 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Cleaned
OK, Hoarder should be accessible on port 3000 of this device's IP address!
root@localhost/opt# curl http://localhost:3000
curl: (7) Failed to connect to localhost port 3000 after 0 ms: Couldn't connect to server
Device Details
No response
Exact Hoarder Version
v0.21.0
Have you checked the troubleshooting guide?
@MohamedBassem commented on GitHub (Feb 1, 2025):
Can you share the errors you're seeing via systemctl?
Also, you don't need to install hoarder from the script to be able to use the CLI. The CLI is distributed as an npm package: https://docs.hoarder.app/command-line
@vhsdream commented on GitHub (Feb 1, 2025):
Hello!
I saw you tagged me from the closed PR that added the script. I'll be the first to admit the install/update script is not the most robust, in that it does not deal with edge cases at all. It is only designed to work from a fresh install of Debian 12/Ubuntu 24.04. If you had previously installed Hoarder before via another method (for example via Docker) then you are likely to run into issues.
I want to echo MohamedBassem's request to see the systemd output for each service -
This will help see which ones have failed and maybe why.
From the limited output you provided, I see it is telling you that certain user accounts already exist, which to me indicates that the script was run multiple times, or that there is/was an existing Hoarder installation.
Please run the script from a fresh installation of Ubuntu 24.04. I understand that if you are running Ubuntu baremetal, untangling the current mess may be challenging, but that is beyond the scope of this issue and certainly beyond the scope of the install script.
I've just spun up a fully up-to-date Ubuntu 24.04 to test the installation script, and while noticing a few errors during the installation process (which I am going to investigate), I can confirm that all dependencies are installed, all necessary services/users are created, and that Hoarder works.
@xxjoe2 commented on GitHub (Feb 1, 2025):
oh, thanks for your info. was looking for cli but anyway i have found a way to run cli within docker already
for the errors in systemctl, they were bascially the same:
`
2025-02-01T23:32:02.716769+08:00 instance-20250108-1026 systemd[1]: Started hoarder-workers.service - Hoarder workers.
2025-02-01T23:32:03.029408+08:00 instance-20250108-1026 hoarder-workers[1079554]: > @hoarder/workers@0.1.0 start:prod /opt/hoarder/apps/workers
2025-02-01T23:32:03.029564+08:00 instance-20250108-1026 hoarder-workers[1079554]: > tsx index.ts
2025-02-01T23:32:03.292141+08:00 instance-20250108-1026 hoarder-workers[1079577]: node:internal/modules/cjs/loader:1244
2025-02-01T23:32:03.292328+08:00 instance-20250108-1026 hoarder-workers[1079577]: const err = new Error(message);
2025-02-01T23:32:03.292433+08:00 instance-20250108-1026 hoarder-workers[1079577]: ^
2025-02-01T23:32:03.292491+08:00 instance-20250108-1026 hoarder-workers[1079577]: Error: Cannot find module 'assetPreprocessingWorker'
2025-02-01T23:32:03.292578+08:00 instance-20250108-1026 hoarder-workers[1079577]: Require stack:
2025-02-01T23:32:03.292646+08:00 instance-20250108-1026 hoarder-workers[1079577]: - /opt/hoarder/apps/workers/index.ts
2025-02-01T23:32:03.292725+08:00 instance-20250108-1026 hoarder-workers[1079577]: at node:internal/modules/cjs/loader:1244:15
2025-02-01T23:32:03.292797+08:00 instance-20250108-1026 hoarder-workers[1079577]: at nextResolveSimple (/usr/lib/node_modules/tsx/dist/register-DCnOAxY2.cjs:3:942)
2025-02-01T23:32:03.292894+08:00 instance-20250108-1026 hoarder-workers[1079577]: at /usr/lib/node_modules/tsx/dist/register-DCnOAxY2.cjs:2:2550
2025-02-01T23:32:03.292973+08:00 instance-20250108-1026 hoarder-workers[1079577]: at /usr/lib/node_modules/tsx/dist/register-DCnOAxY2.cjs:2:1624
2025-02-01T23:32:03.293047+08:00 instance-20250108-1026 hoarder-workers[1079577]: at resolveTsPaths (/usr/lib/node_modules/tsx/dist/register-DCnOAxY2.cjs:3:760)
2025-02-01T23:32:03.293142+08:00 instance-20250108-1026 hoarder-workers[1079577]: at /usr/lib/node_modules/tsx/dist/register-DCnOAxY2.cjs:3:1038
2025-02-01T23:32:03.293211+08:00 instance-20250108-1026 hoarder-workers[1079577]: at m._resolveFilename (file:///usr/lib/node_modules/tsx/dist/register-RyGUjI6j.mjs:1:789)
2025-02-01T23:32:03.293292+08:00 instance-20250108-1026 hoarder-workers[1079577]: at Function._load (node:internal/modules/cjs/loader:1070:27)
2025-02-01T23:32:03.293383+08:00 instance-20250108-1026 hoarder-workers[1079577]: at TracingChannel.traceSync (node:diagnostics_channel:322:14)
2025-02-01T23:32:03.293442+08:00 instance-20250108-1026 hoarder-workers[1079577]: at wrapModuleLoad (node:internal/modules/cjs/loader:217:24) {
2025-02-01T23:32:03.293523+08:00 instance-20250108-1026 hoarder-workers[1079577]: code: 'MODULE_NOT_FOUND',
2025-02-01T23:32:03.293591+08:00 instance-20250108-1026 hoarder-workers[1079577]: requireStack: [ '/opt/hoarder/apps/workers/index.ts' ]
2025-02-01T23:32:03.293650+08:00 instance-20250108-1026 hoarder-workers[1079577]: }
2025-02-01T23:32:03.293706+08:00 instance-20250108-1026 hoarder-workers[1079577]: Node.js v22.13.1
2025-02-01T23:32:03.303644+08:00 instance-20250108-1026 hoarder-workers[1079554]: ELIFECYCLE Command failed with exit code 1.
2025-02-01T23:32:03.304143+08:00 instance-20250108-1026 hoarder-workers[1079554]: WARN Local package.json exists, but node_modules missing, did you mean to install?
2025-02-01T23:32:03.322517+08:00 instance-20250108-1026 systemd[1]: hoarder-workers.service: Main process exited, code=exited, status=1/FAILURE
2025-02-01T23:32:03.322737+08:00 instance-20250108-1026 systemd[1]: hoarder-workers.service: Failed with result 'exit-code'.
2025-02-01T23:32:03.536073+08:00 instance-20250108-1026 systemd[1]: hoarder-workers.service: Scheduled restart job, restart counter is at 1.
2025-02-01T23:32:03.542318+08:00 instance-20250108-1026 systemd[1]: Started hoarder-workers.service - Hoarder workers.
2025-02-01T23:32:03.801711+08:00 instance-20250108-1026 hoarder-workers[1079593]: > @hoarder/workers@0.1.0 start:prod /opt/hoarder/apps/workers
2025-02-01T23:32:03.801892+08:00 instance-20250108-1026 hoarder-workers[1079593]: > tsx index.ts
2025-02-01T23:32:04.048651+08:00 instance-20250108-1026 hoarder-workers[1079616]: node:internal/modules/cjs/loader:1244
2025-02-01T23:32:04.048714+08:00 instance-20250108-1026 hoarder-workers[1079616]: const err = new Error(message);
2025-02-01T23:32:04.048733+08:00 instance-20250108-1026 hoarder-workers[1079616]: ^
2025-02-01T23:32:04.048750+08:00 instance-20250108-1026 hoarder-workers[1079616]: Error: Cannot find module 'assetPreprocessingWorker'
2025-02-01T23:32:04.048768+08:00 instance-20250108-1026 hoarder-workers[1079616]: Require stack:
2025-02-01T23:32:04.048784+08:00 instance-20250108-1026 hoarder-workers[1079616]: - /opt/hoarder/apps/workers/index.ts
2025-02-01T23:32:04.048800+08:00 instance-20250108-1026 hoarder-workers[1079616]: at node:internal/modules/cjs/loader:1244:15
2025-02-01T23:32:04.048818+08:00 instance-20250108-1026 hoarder-workers[1079616]: at nextResolveSimple (/usr/lib/node_modules/tsx/dist/register-DCnOAxY2.cjs:3:942)
2025-02-01T23:32:04.048835+08:00 instance-20250108-1026 hoarder-workers[1079616]: at /usr/lib/node_modules/tsx/dist/register-DCnOAxY2.cjs:2:2550
2025-02-01T23:32:04.048852+08:00 instance-20250108-1026 hoarder-workers[1079616]: at /usr/lib/node_modules/tsx/dist/register-DCnOAxY2.cjs:2:1624
2025-02-01T23:32:04.048891+08:00 instance-20250108-1026 hoarder-workers[1079616]: at resolveTsPaths (/usr/lib/node_modules/tsx/dist/register-DCnOAxY2.cjs:3:760)
2025-02-01T23:32:04.048908+08:00 instance-20250108-1026 hoarder-workers[1079616]: at /usr/lib/node_modules/tsx/dist/register-DCnOAxY2.cjs:3:1038
2025-02-01T23:32:04.048925+08:00 instance-20250108-1026 hoarder-workers[1079616]: at m._resolveFilename (file:///usr/lib/node_modules/tsx/dist/register-RyGUjI6j.mjs:1:789)
2025-02-01T23:32:04.048941+08:00 instance-20250108-1026 hoarder-workers[1079616]: at Function._load (node:internal/modules/cjs/loader:1070:27)
2025-02-01T23:32:04.048958+08:00 instance-20250108-1026 hoarder-workers[1079616]: at TracingChannel.traceSync (node:diagnostics_channel:322:14)
2025-02-01T23:32:04.048975+08:00 instance-20250108-1026 hoarder-workers[1079616]: at wrapModuleLoad (node:internal/modules/cjs/loader:217:24) {
2025-02-01T23:32:04.048991+08:00 instance-20250108-1026 hoarder-workers[1079616]: code: 'MODULE_NOT_FOUND',
2025-02-01T23:32:04.049007+08:00 instance-20250108-1026 hoarder-workers[1079616]: requireStack: [ '/opt/hoarder/apps/workers/index.ts' ]
2025-02-01T23:32:04.049024+08:00 instance-20250108-1026 hoarder-workers[1079616]: }
2025-02-01T23:32:04.049040+08:00 instance-20250108-1026 hoarder-workers[1079616]: Node.js v22.13.1
2025-02-01T23:32:04.059242+08:00 instance-20250108-1026 hoarder-workers[1079593]: ELIFECYCLE Command failed with exit code 1.
2025-02-01T23:32:04.059715+08:00 instance-20250108-1026 hoarder-workers[1079593]: WARN Local package.json exists, but node_modules missing, did you mean to install?
2025-02-01T23:32:04.084315+08:00 instance-20250108-1026 systemd[1]: hoarder-workers.service: Main process exited, code=exited, status=1/FAILURE
2025-02-01T23:32:04.084398+08:00 instance-20250108-1026 systemd[1]: hoarder-workers.service: Failed with result 'exit-code'.
2025-02-01T23:32:04.285934+08:00 instance-20250108-1026 systemd[1]: hoarder-workers.service: Scheduled restart job, restart counter is at 2.
2025-02-01T23:32:04.291428+08:00 instance-20250108-1026 systemd[1]: Started hoarder-workers.service - Hoarder workers.
2025-02-01T23:32:04.569526+08:00 instance-20250108-1026 hoarder-workers[1079630]: > @hoarder/workers@0.1.0 start:prod /opt/hoarder/apps/workers
2025-02-01T23:32:04.569751+08:00 instance-20250108-1026 hoarder-workers[1079630]: > tsx index.ts
2025-02-01T23:32:04.788493+08:00 instance-20250108-1026 hoarder-workers[1079653]: node:internal/modules/cjs/loader:1244
2025-02-01T23:32:04.788582+08:00 instance-20250108-1026 hoarder-workers[1079653]: const err = new Error(message);
2025-02-01T23:32:04.788604+08:00 instance-20250108-1026 hoarder-workers[1079653]: ^
2025-02-01T23:32:04.788633+08:00 instance-20250108-1026 hoarder-workers[1079653]: Error: Cannot find module 'assetPreprocessingWorker'
2025-02-01T23:32:04.788653+08:00 instance-20250108-1026 hoarder-workers[1079653]: Require stack:
2025-02-01T23:32:04.788670+08:00 instance-20250108-1026 hoarder-workers[1079653]: - /opt/hoarder/apps/workers/index.ts
2025-02-01T23:32:04.788686+08:00 instance-20250108-1026 hoarder-workers[1079653]: at node:internal/modules/cjs/loader:1244:15
2025-02-01T23:32:04.788705+08:00 instance-20250108-1026 hoarder-workers[1079653]: at nextResolveSimple (/usr/lib/node_modules/tsx/dist/register-DCnOAxY2.cjs:3:942)
2025-02-01T23:32:04.788722+08:00 instance-20250108-1026 hoarder-workers[1079653]: at /usr/lib/node_modules/tsx/dist/register-DCnOAxY2.cjs:2:2550
2025-02-01T23:32:04.788739+08:00 instance-20250108-1026 hoarder-workers[1079653]: at /usr/lib/node_modules/tsx/dist/register-DCnOAxY2.cjs:2:1624
2025-02-01T23:32:04.788755+08:00 instance-20250108-1026 hoarder-workers[1079653]: at resolveTsPaths (/usr/lib/node_modules/tsx/dist/register-DCnOAxY2.cjs:3:760)
2025-02-01T23:32:04.788772+08:00 instance-20250108-1026 hoarder-workers[1079653]: at /usr/lib/node_modules/tsx/dist/register-DCnOAxY2.cjs:3:1038
2025-02-01T23:32:04.788790+08:00 instance-20250108-1026 hoarder-workers[1079653]: at m._resolveFilename (file:///usr/lib/node_modules/tsx/dist/register-RyGUjI6j.mjs:1:789)
2025-02-01T23:32:04.788806+08:00 instance-20250108-1026 hoarder-workers[1079653]: at Function._load (node:internal/modules/cjs/loader:1070:27)
2025-02-01T23:32:04.788823+08:00 instance-20250108-1026 hoarder-workers[1079653]: at TracingChannel.traceSync (node:diagnostics_channel:322:14)
2025-02-01T23:32:04.788841+08:00 instance-20250108-1026 hoarder-workers[1079653]: at wrapModuleLoad (node:internal/modules/cjs/loader:217:24) {
2025-02-01T23:32:04.788879+08:00 instance-20250108-1026 hoarder-workers[1079653]: code: 'MODULE_NOT_FOUND',
2025-02-01T23:32:04.788899+08:00 instance-20250108-1026 hoarder-workers[1079653]: requireStack: [ '/opt/hoarder/apps/workers/index.ts' ]
2025-02-01T23:32:04.788924+08:00 instance-20250108-1026 hoarder-workers[1079653]: }
2025-02-01T23:32:04.788943+08:00 instance-20250108-1026 hoarder-workers[1079653]: Node.js v22.13.1
2025-02-01T23:32:04.799707+08:00 instance-20250108-1026 hoarder-workers[1079630]: ELIFECYCLE Command failed with exit code 1.
2025-02-01T23:32:04.803373+08:00 instance-20250108-1026 hoarder-workers[1079630]: WARN Local package.json exists, but node_modules missing, did you mean to install?
2025-02-01T23:32:04.820056+08:00 instance-20250108-1026 systemd[1]: hoarder-workers.service: Main process exited, code=exited, status=1/FAILURE
2025-02-01T23:32:04.820138+08:00 instance-20250108-1026 systemd[1]: hoarder-workers.service: Failed with result 'exit-code'.
2025-02-01T23:32:05.036167+08:00 instance-20250108-1026 systemd[1]: hoarder-workers.service: Scheduled restart job, restart counter is at 3.
2025-02-01T23:32:05.041224+08:00 instance-20250108-1026 systemd[1]: Started hoarder-workers.service - Hoarder workers.
2025-02-01T23:32:05.328619+08:00 instance-20250108-1026 hoarder-workers[1079670]: > @hoarder/workers@0.1.0 start:prod /opt/hoarder/apps/workers
2025-02-01T23:32:05.328726+08:00 instance-20250108-1026 hoarder-workers[1079670]: > tsx index.ts
2025-02-01T23:32:05.562508+08:00 instance-20250108-1026 hoarder-workers[1079693]: node:internal/modules/cjs/loader:1244
2025-02-01T23:32:05.562596+08:00 instance-20250108-1026 hoarder-workers[1079693]: const err = new Error(message);
2025-02-01T23:32:05.562617+08:00 instance-20250108-1026 hoarder-workers[1079693]: ^
2025-02-01T23:32:05.562636+08:00 instance-20250108-1026 hoarder-workers[1079693]: Error: Cannot find module 'assetPreprocessingWorker'
2025-02-01T23:32:05.562654+08:00 instance-20250108-1026 hoarder-workers[1079693]: Require stack:
2025-02-01T23:32:05.562672+08:00 instance-20250108-1026 hoarder-workers[1079693]: - /opt/hoarder/apps/workers/index.ts
2025-02-01T23:32:05.562689+08:00 instance-20250108-1026 hoarder-workers[1079693]: at node:internal/modules/cjs/loader:1244:15
2025-02-01T23:32:05.562708+08:00 instance-20250108-1026 hoarder-workers[1079693]: at nextResolveSimple (/usr/lib/node_modules/tsx/dist/register-DCnOAxY2.cjs:3:942)
2025-02-01T23:32:05.562726+08:00 instance-20250108-1026 hoarder-workers[1079693]: at /usr/lib/node_modules/tsx/dist/register-DCnOAxY2.cjs:2:2550
2025-02-01T23:32:05.562742+08:00 instance-20250108-1026 hoarder-workers[1079693]: at /usr/lib/node_modules/tsx/dist/register-DCnOAxY2.cjs:2:1624
2025-02-01T23:32:05.562759+08:00 instance-20250108-1026 hoarder-workers[1079693]: at resolveTsPaths (/usr/lib/node_modules/tsx/dist/register-DCnOAxY2.cjs:3:760)
2025-02-01T23:32:05.562776+08:00 instance-20250108-1026 hoarder-workers[1079693]: at /usr/lib/node_modules/tsx/dist/register-DCnOAxY2.cjs:3:1038
2025-02-01T23:32:05.562794+08:00 instance-20250108-1026 hoarder-workers[1079693]: at m._resolveFilename (file:///usr/lib/node_modules/tsx/dist/register-RyGUjI6j.mjs:1:789)
2025-02-01T23:32:05.562823+08:00 instance-20250108-1026 hoarder-workers[1079693]: at Function._load (node:internal/modules/cjs/loader:1070:27)
2025-02-01T23:32:05.562841+08:00 instance-20250108-1026 hoarder-workers[1079693]: at TracingChannel.traceSync (node:diagnostics_channel:322:14)
2025-02-01T23:32:05.562879+08:00 instance-20250108-1026 hoarder-workers[1079693]: at wrapModuleLoad (node:internal/modules/cjs/loader:217:24) {
2025-02-01T23:32:05.562898+08:00 instance-20250108-1026 hoarder-workers[1079693]: code: 'MODULE_NOT_FOUND',
2025-02-01T23:32:05.562916+08:00 instance-20250108-1026 hoarder-workers[1079693]: requireStack: [ '/opt/hoarder/apps/workers/index.ts' ]
2025-02-01T23:32:05.562932+08:00 instance-20250108-1026 hoarder-workers[1079693]: }
2025-02-01T23:32:05.562949+08:00 instance-20250108-1026 hoarder-workers[1079693]: Node.js v22.13.1
2025-02-01T23:32:05.573851+08:00 instance-20250108-1026 hoarder-workers[1079670]: ELIFECYCLE Command failed with exit code 1.
2025-02-01T23:32:05.574370+08:00 instance-20250108-1026 hoarder-workers[1079670]: WARN Local package.json exists, but node_modules missing, did you mean to install?
2025-02-01T23:32:05.594229+08:00 instance-20250108-1026 systemd[1]: hoarder-workers.service: Main process exited, code=exited, status=1/FAILURE
2025-02-01T23:32:05.594325+08:00 instance-20250108-1026 systemd[1]: hoarder-workers.service: Failed with result 'exit-code'.
2025-02-01T23:32:05.786949+08:00 instance-20250108-1026 systemd[1]: hoarder-workers.service: Scheduled restart job, restart counter is at 4.
2025-02-01T23:32:05.792288+08:00 instance-20250108-1026 systemd[1]: Started hoarder-workers.service - Hoarder workers.
2025-02-01T23:32:06.073660+08:00 instance-20250108-1026 hoarder-workers[1079707]: > @hoarder/workers@0.1.0 start:prod /opt/hoarder/apps/workers
2025-02-01T23:32:06.073757+08:00 instance-20250108-1026 hoarder-workers[1079707]: > tsx index.ts
2025-02-01T23:32:06.309648+08:00 instance-20250108-1026 hoarder-workers[1079730]: node:internal/modules/cjs/loader:1244
2025-02-01T23:32:06.310980+08:00 instance-20250108-1026 hoarder-workers[1079730]: const err = new Error(message);
2025-02-01T23:32:06.311003+08:00 instance-20250108-1026 hoarder-workers[1079730]: ^
2025-02-01T23:32:06.311020+08:00 instance-20250108-1026 hoarder-workers[1079730]: Error: Cannot find module 'assetPreprocessingWorker'
2025-02-01T23:32:06.311036+08:00 instance-20250108-1026 hoarder-workers[1079730]: Require stack:
2025-02-01T23:32:06.311051+08:00 instance-20250108-1026 hoarder-workers[1079730]: - /opt/hoarder/apps/workers/index.ts
2025-02-01T23:32:06.311067+08:00 instance-20250108-1026 hoarder-workers[1079730]: at node:internal/modules/cjs/loader:1244:15
2025-02-01T23:32:06.311083+08:00 instance-20250108-1026 hoarder-workers[1079730]: at nextResolveSimple (/usr/lib/node_modules/tsx/dist/register-DCnOAxY2.cjs:3:942)
2025-02-01T23:32:06.311100+08:00 instance-20250108-1026 hoarder-workers[1079730]: at /usr/lib/node_modules/tsx/dist/register-DCnOAxY2.cjs:2:2550
2025-02-01T23:32:06.311115+08:00 instance-20250108-1026 hoarder-workers[1079730]: at /usr/lib/node_modules/tsx/dist/register-DCnOAxY2.cjs:2:1624
2025-02-01T23:32:06.311130+08:00 instance-20250108-1026 hoarder-workers[1079730]: at resolveTsPaths (/usr/lib/node_modules/tsx/dist/register-DCnOAxY2.cjs:3:760)
2025-02-01T23:32:06.311145+08:00 instance-20250108-1026 hoarder-workers[1079730]: at /usr/lib/node_modules/tsx/dist/register-DCnOAxY2.cjs:3:1038
2025-02-01T23:32:06.311161+08:00 instance-20250108-1026 hoarder-workers[1079730]: at m._resolveFilename (file:///usr/lib/node_modules/tsx/dist/register-RyGUjI6j.mjs:1:789)
2025-02-01T23:32:06.311176+08:00 instance-20250108-1026 hoarder-workers[1079730]: at Function._load (node:internal/modules/cjs/loader:1070:27)
2025-02-01T23:32:06.311194+08:00 instance-20250108-1026 hoarder-workers[1079730]: at TracingChannel.traceSync (node:diagnostics_channel:322:14)
2025-02-01T23:32:06.311209+08:00 instance-20250108-1026 hoarder-workers[1079730]: at wrapModuleLoad (node:internal/modules/cjs/loader:217:24) {
2025-02-01T23:32:06.311224+08:00 instance-20250108-1026 hoarder-workers[1079730]: code: 'MODULE_NOT_FOUND',
2025-02-01T23:32:06.311239+08:00 instance-20250108-1026 hoarder-workers[1079730]: requireStack: [ '/opt/hoarder/apps/workers/index.ts' ]
2025-02-01T23:32:06.311254+08:00 instance-20250108-1026 hoarder-workers[1079730]: }
2025-02-01T23:32:06.311270+08:00 instance-20250108-1026 hoarder-workers[1079730]: Node.js v22.13.1
2025-02-01T23:32:06.320788+08:00 instance-20250108-1026 hoarder-workers[1079707]: ELIFECYCLE Command failed with exit code 1.
2025-02-01T23:32:06.321324+08:00 instance-20250108-1026 hoarder-workers[1079707]: WARN Local package.json exists, but node_modules missing, did you mean to install?
2025-02-01T23:32:06.340834+08:00 instance-20250108-1026 systemd[1]: hoarder-workers.service: Main process exited, code=exited, status=1/FAILURE
2025-02-01T23:32:06.341045+08:00 instance-20250108-1026 systemd[1]: hoarder-workers.service: Failed with result 'exit-code'.
2025-02-01T23:32:06.535960+08:00 instance-20250108-1026 systemd[1]: hoarder-workers.service: Scheduled restart job, restart counter is at 5.
2025-02-01T23:32:06.536489+08:00 instance-20250108-1026 systemd[1]: hoarder-workers.service: Start request repeated too quickly.
2025-02-01T23:32:06.536545+08:00 instance-20250108-1026 systemd[1]: hoarder-workers.service: Failed with result 'exit-code'.
2025-02-01T23:32:06.536578+08:00 instance-20250108-1026 systemd[1]: Failed to start hoarder-workers.service - Hoarder workers.
`
@vhsdream commented on GitHub (Feb 1, 2025):
Turns out the errors I was seeing during the installation were already dealt with in the latest commits. The install script currently pulls the zip from the Release and so it did not have the fixes.
#958 would instead have the script pull the zip from Main, which will have the latest fixes and any new features.
@xxjoe2 your issue is still due to what I mentioned earlier, that you seem to have run the install script in an environment that had a previous Hoarder install, or that you are not using 24.04, or some other reason we haven't figured out yet.
@xxjoe2 commented on GitHub (Feb 1, 2025):
hi, thanks for your reply
the logs from journalctl are too long so i will upload the log files instead
i referred to the readme for installation, which i assumed i dont have to pull the repo in the first place.
some backgrounds first. i am an experienced ubuntu user but not expert, and i am new to docker, npm, node js.
actually it was a fresh ubuntu but i have installed hoarder a few times without success, so it may contain some leftovers but i have removed /opt/hoarder dir. beside, i have install a docker version which is still running after the installation failed. i also tried to clone the repo as i want to make some changes to the sources like landscape support on android app and build it myself. however the built was a failure too
however, in my opinion. with a fresh installation on a ubuntu baremetal, it will never succeed as most of the modules required are not mentioned or matched. besides i had to manually create some dirs like apps, packages/db etc. so if i am a lazy person i wouldnt know i had to create them
after it failed to install i tried to patch it by searching related info about the missing modules etc like corepack, pdf2json, to name a few, and i have pulled a repo to install ghostery/adblocker.
and unfortunately not all of them could be installed properly, and thus left with a broken hoarder
ps some more findings from my bash history:
i installed react@18.3.1 manually
i needed to solve core-js@<3.23.3 is no longer maintained problem by updating it
feel free to let me know if you want anything else
browser.log
web.log
workers.log
@xxjoe2 commented on GitHub (Feb 2, 2025):
it's 24.04(1) noble
if the script installed successfully then there wouldn't be any problem and i wouldn't have to install it for the second time
i remember very clearly that i had to create a few directories, and download a few json/ts files from github manually. but still with lots of unmatched dependencies
i will look at the install script v2 later to see if it fixes these problems
@vhsdream commented on GitHub (Feb 2, 2025):
Hey,
During your install attempt on your Ubuntu instance, did you get the following error:
/usr/lib/node_modules/corepack/dist/lib/corepack.cjs:21535 if (key == null || signature == null) throw new Error('Cannot find matching keyid: ${JSON.stringify({ signatures, keys })}');^
Error: Cannot find matching keyid: {"signatures":[{"sig":"MEQCIHGqHbvc2zImUPEPFpT4grh6rMYslel+lAjFArx8+RUdAiBfnJA+bgmUvO5Lctfkq+46KKDQdx/8RhLPge3pA+EdHA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"keys":[{"expires":null,"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","keytype":"ecdsa-sha2-nistp256","scheme":"ecdsa-sha2-nistp256","key":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE1Olb3zMAFFxXKHiIkQO5cJ3Yhl5i6UPp+IhuteBJbuHcA5UogKo0EWtlWwW6KSaKoTNEYL7JlCQiVnkhBktUgg=="}]} at verifySignature (/usr/lib/node_modules/corepack/dist/lib/corepack.cjs:21535:47) at fetchLatestStableVersion (/usr/lib/node_modules/corepack/dist/lib/corepack.cjs:21553:5) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async fetchLatestStableVersion2 (/usr/lib/node_modules/corepack/dist/lib/corepack.cjs:21672:14) at async Engine.getDefaultVersion (/usr/lib/node_modules/corepack/dist/lib/corepack.cjs:22298:23) at async Engine.executePackageManagerRequest (/usr/lib/node_modules/corepack/dist/lib/corepack.cjs:22396:47) at async Object.runMain (/usr/lib/node_modules/corepack/dist/lib/corepack.cjs:23102:5)Because I've just suddenly encountered this when I ran the script to update Hoarder in Ubuntu 24.04. Then I reverted to a clean snapshot and ran the install, same thing happened.
If this is the same thing that happened to you, it's a Corepack issue - documented here and there are several workarounds/fixes. Currently looking into them but @MohamedBassem would be the best person to know which fix makes sense.
@xxjoe2 commented on GitHub (Feb 2, 2025):
no, iirc
never seen cannot find matching keyid thing