Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Synapse doesn't start if the signing key file contains a newline #13737

Closed
thibaultamartin opened this issue Sep 7, 2022 · 0 comments · Fixed by #13738
Closed

Synapse doesn't start if the signing key file contains a newline #13737

thibaultamartin opened this issue Sep 7, 2022 · 0 comments · Fixed by #13738
Assignees
Labels
A-Config Configuration, or the documentation thereof O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Tolerable Minor significance, cosmetic issues, low or no impact to users. T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues.

Comments

@thibaultamartin
Copy link

Description

When deploying a synapse instance I copied a /data/mydomain.signing.key file which contained the line Synapse had generated on first start and a new line.

Synapse didn't start and complained with

Starting synapse with args -m synapse.app.homeserver --config-path /data/homeserver.yaml

Error in configuration:
  Error reading signing_key: not enough values to unpack (expected 3, got 0)

Steps to reproduce

  • Generate a new configuration file for Synapse.
  • Add a newline in /data/yourdomain.signing.key
  • Start the container.

Homeserver

Container based deployment

Synapse Version

1.66.0

Installation Method

Docker (matrixdotorg/synapse)

Platform

Rocky Linux 8.5 & Podman

Relevant log output

Starting synapse with args -m synapse.app.homeserver --config-path /data/homeserver.yaml

Error in configuration:
  Error reading signing_key: not enough values to unpack (expected 3, got 0)

Anything else that would be useful to know?

No response

@reivilibre reivilibre self-assigned this Sep 7, 2022
@DMRobertson DMRobertson added A-Config Configuration, or the documentation thereof S-Tolerable Minor significance, cosmetic issues, low or no impact to users. T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues. O-Uncommon Most users are unlikely to come across this or unexpected workflow labels Sep 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Config Configuration, or the documentation thereof O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Tolerable Minor significance, cosmetic issues, low or no impact to users. T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
Projects
None yet
3 participants