-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
AS incoming events are not forwarded from Synapse to AS daemon port #5957
Comments
Nope, it only forwards messages for users matching the regex you specify in users regexes |
@t3chguy thanks, so events to |
Or you add it to the regex I believe |
Empirically, that is not true (unless there's some recent change that doesn't apply to previously set up appservices?). All of my bridges default to |
Interesting, I retract my statements then. I must be misremembering my battles when writing AS's a year or so back |
Looking at logs in other servers, all talks with AS sender part must be represented in logs via lines, containing AS id, for
But on my Synapse instance there are no such lines in logs, |
I think you're both right? @MurzNN has to specify a regex matching The code for determining which events to send to an AS starts here: https://github.com/matrix-org/synapse/blob/master/synapse/appservice/__init__.py#L223. Tracing it through is left as an exercise for the reader. |
(this isn't a synapse bug) |
My point was I don't do that and my bridges work. I only have
https://github.com/matrix-org/synapse/blob/master/synapse/appservice/__init__.py#L244-L248 seems to be saying I'm right, specifically |
oh right, yes. Hrm. I still think this is probably a configuration error, but I don't immediately know what the problem is... |
I have configuration, near to default, and already try to comment out some specific features (rate limits, enable_metrics: False, metrics_port: 9092), so I can't understand which setting is prevent events forwarding to AS. Here is my config, excluding commented lines:
and AS config
After restarting Synapse I see, that AS is initialized successfully:
But when I create new room with Even when AS daemon is totally dead and not responding, Synapse must inform about failed transaction queries to AS host:port in logs, yes? |
If I try to start chat from other homeserver to
but no other AS-related events :( |
Maybe I enable some verbose logging in Synapse, for find source of this problem? |
Same problem when I try to create new room with regex matched user, eg
and no new events sent to AS daemon :( |
@neilisfragile this is not a question, this is a Synapse issue, that break all AS (bridges) on our server :( |
Might not be useful in this case but I had the same exact problem when referencing appservice-irc running in another container by the container name in appservice registration file. Testing the url with another container's name with curl in synapse container works as one would expect. |
Replacing appservice url from name (localhost) to IP (127.0.0.1) not help. Upgrading to Synapse 1.4 not help too with solving this bug :( |
Same problem with |
I tried to move
So I go to lookup into SQL database tables, related to appservices, and see that all of them are empty: As I understand, if appservice is activated, it must be added, at least, to
I even try to add "whatsapp|up|0" record manually to How can I debug this process and find the source, why appservices on my Synapse are not inited successfully? |
Regarding to https://github.com/matrix-org/synapse/blob/master/synapse/storage/appservice.py - And I even don't see in logs record about starting scheduler, regarding to https://github.com/matrix-org/synapse/blob/master/synapse/appservice/scheduler.py#L78 :
is empty. Does anybody have ideas, why it is not starting and how to debug this? |
I have the same issue, or at least it seems like it is. I run an IRC bridge, and IRC -> Matrix works fine, but Matrix -> IRC doesn't. Synapse doesn't seem to forward anything at all to the IRC AppService. Grepping for "transactions" in my log file (set to debug) yields nothing, but when starting Synapse it does say that the appservice was registered. My AS configuration file is as follows:
When I Is there any way I can help further debugging this issue? |
Did you ever solve this? |
No, problem is still here on last Synapse :( |
Yup, still haven't been able to get it to work either. |
Bummer. This breaks all bridges on our server. Even setting loglevel to debug gives no clues of whats going wrong. |
AMEN! I was able to fix it: |
so is this a duplicate of #1834? |
I'm going to assume this is fixed. Let us know if not. |
I have a problem very similar to this (unsure if it's exactly the same). I'm trying to write an AS, and when I first started I was getting transaction requests. The request would fail (the AS I'm writing is very much WIP), and I'd see logs emitted by the scheduler indicating increased waiting periods for trying again. But now I'm in a state where it doesn't even try, and I haven't been able to figure out how to make it try. #1834 isn't my issue as Similarly to #5957 (comment), I also don't have a row in
I haven't yet even figured out a way to begin troubleshooting, really. |
@aggieben Create a new issue 🙂 |
@MadLittleMods The guidance I'm getting is confusing. The repo says to ask for support in the matrix channel rather than by filing an issue, which I have on three occasions and not gotten a response. Should I file a support issue anyway? To clarify, I suppose it's possible that my issue could be due to a bug, but I'm assuming it's operator error. |
@aggieben Your explanation sounds valid for an issue. And it's bound to a separate new problem given this issue is from a year or two ago. The Matrix channel is meant "for support installing or managing Synapse" which is more on the administering, configuring, and deploying side. While it could be a user error, it does sound like it's not working with no easy way to debug. And I've seen a couple other people run into a similar problem to you. |
I have problem, that Synapse 1.3.1 don't forward events to AS bot - try with two AS daemons -
mautrix-whatsapp
, andmatrix-rocketchat
.In
registration.yaml
I havesender_localpart: whatsappbot
, this means that all events to @whatsappbot:myhomeserver.org must be redirected to configuredurl: http://localhost:29318
automatically?I create new room with this user, post messages to it, but see no events in
mautrix-whatsapp
service debug logs.But port 29318 is open and I can telnet to it from synapse daemon user successfully.
Communication from AS side to Synapse works well, bridge was successfully changing user names to string from config file, here are events in logs:
and when I change
as_token
andhs_token
to bad values, see errors in logs.Can you please describe, how forwarding event to AS daemon processes (and all other AS talks) are represented in Synapse logs, for filter out it from many log records? And why in our server events are not forwarded to AS? Is this a Synapse bug?
The text was updated successfully, but these errors were encountered: