Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant get ma1sd running #124

Open
CLU91 opened this issue Feb 9, 2023 · 6 comments
Open

Cant get ma1sd running #124

CLU91 opened this issue Feb 9, 2023 · 6 comments

Comments

@CLU91
Copy link

CLU91 commented Feb 9, 2023

Hey there,

i have ma1sd on the same server as matrix-synapse installed. Unfortunately i cant get it up and running. I followed the instructions precisely but somehow.... Logs showing the following:

ERROR App - Invalid or empty value for configuration item: while parsing a block mapping ma1sd in 'reader', line 22, column 1

Meanwhile i figured out, it has a problem with the .yaml file, but i used the example file.... so i dont get it.. maybe someone able to help??

@janonym1
Copy link

janonym1 commented Feb 9, 2023

why dont you post your yaml/config file? we cant know whats wrong without it. It says line 22, what is there? Are all the intendations correct? what system are you using? did you use the playbook or a package manager to install synapse?

@CLU91
Copy link
Author

CLU91 commented Feb 9, 2023

# Sample configuration file explaining the minimum required keys to be set to run ma1sd
#
# For a complete list of options, see https://github.com/ma1uta/ma1sd/docs/README.md
#
# Please follow the Getting Started guide if this is your first time using/configuring ma1sd
#
#  -- https://github.com/ma1uta/ma1sd/blob/master/docs/getting-started.md#getting-started
#

#######################
# Matrix config items #
#######################
# Matrix domain, same as the domain configure in your Homeserver configuration.
# NOTE: in Synapse Homeserver, the Matrix domain is defined as 'server_name' in configuration file.
#
# This is used to build the various identifiers in all the features.
#
# If the hostname of the public URL used to reach your Matrix services is different from your Matrix domain,
# per example matrix.domain.tld vs domain.tld, then use the server.name configuration option.
# See the "Configure" section of the Getting Started guide for more info.
#
matrix:
  domain: 'matrix.company.com'
  v1: false   # deprecated
  v2: true   # MSC2140 API v2. Riot require enabled V2 API.


################
# Signing keys #
################
# Absolute path for the Identity Server signing keys database.
# /!\ THIS MUST **NOT** BE YOUR HOMESERVER KEYS FILE /!\
# If this path does not exist, it will be auto-generated.
#
# During testing, /var/tmp/ma1sd/keys is a possible value
# For production, recommended location shall be one of the following:
#   - /var/lib/ma1sd/keys
#   - /var/opt/ma1sd/keys
#   - /var/local/ma1sd/keys
#
key:
  path: '/var/lib/ma1sd/keys

This is the first part of my config. As mentioned, i used the example config delivered with ma1sd. I just filled out the necessairy settings, but the service doesnt start. Line 22 is where matrix: starts

Im using Ubuntu Server 22.04 and installed Synapse with offical release from https://packages.matrix.org/debian/ executed with standard apt install by ubuntu

@CLU91
Copy link
Author

CLU91 commented Feb 13, 2023

No one who could help? :(

@janonym1
Copy link

Did you try closing the quote?

key:
  path: '/var/lib/ma1sd/keys'

@CLU91
Copy link
Author

CLU91 commented Feb 14, 2023

Did you try closing the quote?

key:
  path: '/var/lib/ma1sd/keys'

Hey... it is closed, i just missed on copying it

@AiYoriAoshi
Copy link

Just in case someone gets here from Google...

The problem comes from the example documentation if you uncomment the ldalp or logging block.
Both blocks are commented out but have an extra space after the comment #
So if you uncomment the block, you will need to remove the extra space for the whole block or at least the heading.

# ldap:
#   enabled: true`

# logging:
#   root: error     # default level for all loggers (apps and thirdparty libraries)
#   app: info       # log level only for the ma1sd
#   requests: false # or true to dump full requests and responses

should be

#ldap:
#  enabled: true`

#logging:
#  root: error     # default level for all loggers (apps and thirdparty libraries)
#  app: info       # log level only for the ma1sd
#  requests: false # or true to dump full requests and responses

Why on earth the snakeyaml parser complains about the first uncommented line and not the actual line that is the problem, is beyond my understanding of Java, but that took me a good while to figure out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants