matrix-org / matrix-org/matrix-hookshot

Command yarn start:resetcrypto fails on latest docker image

Open
#730 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

S-Minor T-Defect
Dominant language
TypeScript
Stars
450
Forks
95
Avg merge
1d 2h
Merged PRs (30d)
23

Description

An error is raised when issuing command 'yarn start:resetcrypto' on latest docker image:

```
root@ec34b1b80aed:/bin/matrix-hookshot# yarn start:resetcrypto
yarn run v1.22.19
$ node --require source-map-support/register lib/App/ResetCryptoStore.js
Error: Cannot find module '/bin/matrix-hookshot/lib/App/ResetCryptoStore.js'
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
at Function.Module._load (node:internal/modules/cjs/loader:920:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47
error Command failed with exit code 1.
```

And indeed the file 'ResetCryptoStore.js' in the image is not stored in path '/bin/matrix-hookshot/lib/App/' but '/bin/matrix-hookshot/App/' instead.

Contributor guide

Open the contributing guide

First steps

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

Research direction

Start by checking the yarn start:resetcrypto script and the Docker image layout, comparing the script's expected lib/App/ResetCryptoStore.js path with the reported App/ location. Done means the command runs successfully on the latest Docker image without the module-not-found error.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, node.js, typescript
Domain
build-system, devops
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.