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

User ID already taken #32

Open
scheissegalo opened this issue Jun 15, 2022 · 1 comment
Open

User ID already taken #32

scheissegalo opened this issue Jun 15, 2022 · 1 comment

Comments

@scheissegalo
Copy link

Hi,
first of all, thank you for this. I can´t get it running but I am thankful it exists.

I followed the readme to set this puppet up. First i used nodejs v16 wat did not worked at all. Then i switched to the latest nodejs v12 and i was able to compile. I generadet a registration.yaml and edited my homeserver.yaml. When i start the puppet this is the log i get:
Jun-15 17:30:15.986 [Store] info: Starting DB Init Jun-15 17:30:15.988 [Store] info: Filename present in config, using sqlite Jun-15 17:30:15.988 [SQLite3] info: Opening database.db Jun-15 17:30:15.991 [Store] info: Database schema version is 16, latest version is 16 Jun-15 17:30:15.993 [PuppetBridge] info: Starting application service.... Jun-15 17:30:15.999 [bot-sdk-MatrixHttpClient] info: (REQ-1) POST http://localhost:8008/_matrix/client/r0/register Jun-15 17:30:16.025 [PuppetBridge] info: Application service started! Jun-15 17:30:16.026 [PuppetBridge] info: Setting bridge user data... Jun-15 17:30:16.026 [bot-sdk-MatrixHttpClient] info: (REQ-2) GET http://localhost:8008/_matrix/client/r0/profile/%40_steampuppet_bot%3Achat.north-industries.com Jun-15 17:30:16.036 [PuppetBridge] info: Activating users... Jun-15 17:30:16.038 [PresenceHandler] info: Starting presence handler with new interval 5000ms

looking all good, right?
here is the log from synapse:
2022-06-15 00:48:24,644 - synapse.http.server - 95 - INFO - POST-83 - <XForwardedForRequest at 0x7fc1a832c240 method='POST' uri='/_matrix/client/r0/register' clientproto='HTTP/1.1' site='8008'> SynapseError: 400 - User ID already taken. 2022-06-15 00:48:24,645 - synapse.access.http.8008 - 448 - INFO - POST-83 - 127.0.0.1 - 8008 - {@_steampuppet_bot:mydomain.com} Processed request: 0.002sec/0.000sec (0.000sec, 0.000sec) (0.000sec/0.000sec/1) 60B 400 "POST /_matrix/client/r0/register HTTP/1.1" "got (https://github.com/sindresorhus/got)" [0 dbevts] 2022-06-15 00:48:24,661 - synapse.access.http.8008 - 448 - INFO - GET-84 - 127.0.0.1 - 8008 - {None} Processed request: 0.001sec/0.000sec (0.002sec, 0.000sec) (0.000sec/0.000sec/2) 34B 200 "GET /_matrix/client/r0/profile/%40_steampuppet_bot%3Amydomain.com HTTP/1.1" "got (https://github.com/sindresorhus/got)" [0 dbevts]
I changed the user id in the registration.yaml and restarted matrix synapse, but still get the same message. I've repeated the generating regestration.yaml serveral times but i always get "User ID already taken" from synapse. I also can't find any user named "@_steampuppet_bot:mydomain.com"

mx-puppet-steam config.yaml:
`bridge:

Port to host the bridge on which your homeserver will connect to

port: 6000

Address for the bridge to bind to; if running as a Docker container, you

probably want 0.0.0.0 here

bindAddress: localhost

Name of your homeserver

domain: mydomain.com

URL where the bridge can connect to your homeserver

homeserverUrl: http://localhost:8008

provisioning:

Which users are allowed to issue commands to @_steampuppet_bot

whitelist:
- "@*"

A blacklist can be used instead:

blacklist:

- "@username:matrix\.myhomeserver\.com"

Shared secret for the provisioning API for use by integration managers.

If this is not set, the provisioning API will not be enabled.

sharedSecret: AlahaslDSDLJlj#fsda

Path prefix for the provisioning API. /v1 will be appended to the prefix automatically.

apiPrefix: /_matrix/provision

presence:

Bridge Steam online/offline status

enabled: true

How often to send status to the homeserver in milliseconds

interval: 5000
`

(note i removed my domainname from logs and examples)
Matrix synapse is running on localhost:8008 and connected with nginx proxy to my domain

@scheissegalo
Copy link
Author

Sorry for this mess, i hope attaching the files help.
config.yaml.log
matrix.log
mx-puppet-steam.log

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

1 participant