matrix-org / matrix-hookshot

A bridge between Matrix and multiple project management services, such as GitHub, GitLab and JIRA.
https://matrix-org.github.io/matrix-hookshot/
Apache License 2.0
267 stars 66 forks source link

passkey.pem invalid path - Docker #934

Closed Circenn5130 closed 2 months ago

Circenn5130 commented 2 months ago

Per the documentation Installation via Docker


To get started quickly, you can use the Docker image [halfshot/matrix-hookshot](https://hub.docker.com/r/halfshot/matrix-hookshot).

docker run \
    --name matrix-hookshot \
    -d \
    -p 9993:9993 \ # Homeserver port
    -p 9000:9000 \ # Webhook port
    -p 9002:9002 \ # Metrics port
    -v /etc/matrix-hookshot:/data \
    halfshot/matrix-hookshot:latest

Where /etc/matrix-hookshot would contain the configuration files config.yml and registration.yml. The passKey file should also be stored alongside these files. In your config, you should use the path /data/passkey.pem.

When all 3 files are mounted in /data/* I'm still getting the following error regarding passkey.pem

INFO 17:40:41:871 [ListenerService] Listening on http://0.0.0.0:9000 for webhooks
INFO 17:40:41:872 [ListenerService] Listening on http://0.0.0.0:9001 for widgets
INFO 17:40:41:872 [Appservice] Initialising memory storage
INFO 17:40:41:876 [UserTokenStore] Loading token key file ./passkey.pem
ERROR 17:40:41:881 [App] BridgeApp encountered an error and has stopped: [Error: ENOENT: no such file or directory, open './passkey.pem'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: './passkey.pem'
}

Where should this path be?

Circenn5130 commented 2 months ago

And I just realized I'm an idiot, and hadn't change the path in my config.yml