[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
Owner

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

  1. download the installation scripts
  2. run it with root
  3. it produces lots of errors but still shows that hoarder may be running at localhost:3000 but actually this is not the case

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?

  • I have checked the troubleshooting guide and I haven't found a solution to my problem
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 1. download the installation scripts 2. run it with root 3. it produces lots of errors but still shows that hoarder may be running at localhost:3000 but actually this is not the case ### 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? - [x] I have checked the troubleshooting guide and I haven't found a solution to my problem
kerem 2026-03-02 11:51:20 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@MohamedBassem commented on GitHub (Feb 1, 2025):

and i can see erros when starting the services via systemctl

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

<!-- gh-comment-id:2628961706 --> @MohamedBassem commented on GitHub (Feb 1, 2025): > and i can see erros when starting the services via systemctl 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
Author
Owner

@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 -

journalctl -exu hoarder-web
journalctl -exu hoarder-browser
journalctl -exu hoarder-workers

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.

Image

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.

<!-- gh-comment-id:2628985238 --> @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 - ``` journalctl -exu hoarder-web journalctl -exu hoarder-browser journalctl -exu hoarder-workers ``` 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. ![Image](https://github.com/user-attachments/assets/0c16f8fb-751c-491b-9e0d-9f13fef93ab6) 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.
Author
Owner

@xxjoe2 commented on GitHub (Feb 1, 2025):

and i can see erros when starting the services via systemctl

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

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.
`

<!-- gh-comment-id:2629061056 --> @xxjoe2 commented on GitHub (Feb 1, 2025): > > and i can see erros when starting the services via systemctl > > 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 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. `
Author
Owner

@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.

<!-- gh-comment-id:2629067765 --> @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.
Author
Owner

@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

<!-- gh-comment-id:2629069316 --> @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](https://github.com/user-attachments/files/18629964/browser.log) [web.log](https://github.com/user-attachments/files/18629965/web.log) [workers.log](https://github.com/user-attachments/files/18629966/workers.log)
Author
Owner

@xxjoe2 commented on GitHub (Feb 2, 2025):

@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.

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

<!-- gh-comment-id:2629303860 --> @xxjoe2 commented on GitHub (Feb 2, 2025): > [@xxjoe2](https://github.com/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. 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
Author
Owner

@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.

<!-- gh-comment-id:2629536823 --> @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](https://github.com/nodejs/corepack/issues/612) and there are several workarounds/fixes. Currently looking into them but @MohamedBassem would be the best person to know which fix makes sense.
Author
Owner

@xxjoe2 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+

no, iirc

never seen cannot find matching keyid thing

<!-- gh-comment-id:2629538398 --> @xxjoe2 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+ no, iirc never seen cannot find matching keyid thing
Sign in to join this conversation.
No milestone
No project
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
No description provided.