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

Cannot start bridge: Reading file from config.yaml failed #76

Open
carbolymer opened this issue Jan 30, 2019 · 4 comments
Open

Cannot start bridge: Reading file from config.yaml failed #76

carbolymer opened this issue Jan 30, 2019 · 4 comments

Comments

@carbolymer
Copy link

carbolymer commented Jan 30, 2019

I cannot start the bridge:

$ cat config.yaml 
as_address: "127.0.0.1:8822"
as_url: "http://mydomain:8822"
use_https: false

$ ./target/release/matrix-rocketchat 
error: Reading file from config.yaml failed
caused by: The submitted data is not valid YAML: Could not serialize config

besides that, config/config.yml.sample mentions some rocketchat_registration.yml file - where this file come from?

Another thing, matrix-rocketchat expects config.yaml, you've provided a file with different extension in repository: .yml.

@exul
Copy link
Owner

exul commented Jan 30, 2019

Your config.yaml is missing mandatory parameters. All parameters from the sample file are mandatory if not stated otherwise (like "this is only mandatory if you run the application service with SSL").

rocketchat_registration.yml is the part that is needed to apply the configuration to the homeserver. You can read more about it here: https://matrix.org/docs/spec/application_service/r0.1.0.html#id4

Two things I'd like to mention:

  1. As stated in the readme, the bridge isn't production ready and I don't have an ETA when it will be.
  2. I'm working on a full setup description, but before I release it, I'd like to implement in memory token storage instead of storing it into SQLite. I currently don't have a lot of time to work on it, but still plan finish this and hopefully at least release a 0.1 version :-).

@MurzNN
Copy link

MurzNN commented Aug 27, 2019

I got same problem when starting bridge after compiling. Seems it can't find file, so I point to needed file via:

$ ./target/release/matrix-rocketchat -c ./config/config.yml
Aug 27 19:32:43.047 INFO Bot user @rocketchat:ru-matrix.org successfully registered, place: src/matrix-rocketchat/server.rs:91 matrix_rocketchat::server, version: 0.1.0
Aug 27 19:32:43.047 INFO Starting server, address: V4(127.0.0.1:8822), place: src/matrix-rocketchat/server.rs:45 matrix_rocketchat::server, version: 0.1.0
Aug 27 19:32:43.047 INFO Using HTTP, place: src/matrix-rocketchat/server.rs:58 matrix_rocketchat::server, version: 0.1.0

P.S. Glad to hear, that you plan to release 0.1 version! But we need to bridge RocketChat with Matrix already now, so ready to try and test high-explosive alpha version of bridge =)

@exul
Copy link
Owner

exul commented Aug 28, 2019

@MurzNN Does this mean that you have the bridge running? Or is there an issue I can help with? Your config file is located at ./config/config.yml, but the default is ./config.yml, that the reason you need -c ./config/config.yml.
If you have the bridge running, I'd love to get some feedback on how it works, especially since it uses a quite old version of the matrix spec. You can reach me via foss@exul.org.

@MurzNN
Copy link

MurzNN commented Sep 3, 2019

@exul I got very strange problem on Synapse side, described here: matrix-org/synapse#5957
So I can't use any bridge now :(

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