Trying to use the latest development snapshot (a54f89c) results in the service being unable to start due to the following error: error: Could not login as the bot user. This is bad! Error: An invalid token was provided..
The tokens are of course valid.
Full log:
Jul 11 14:38:37 matrix systemd[1]: Starting A bridge between Matrix and Discord....
Jul 11 14:38:37 matrix systemd[1]: Started A bridge between Matrix and Discord..
Jul 11 14:38:40 matrix matrix-appservice-discord[6254]: Jul-11 14:38:40.556 [DiscordStore] info: Starting DB Init
Jul 11 14:38:40 matrix matrix-appservice-discord[6254]: Jul-11 14:38:40.564 [DiscordStore] info: Filename present in config, using sqlite
Jul 11 14:38:40 matrix matrix-appservice-discord[6254]: Jul-11 14:38:40.565 [SQLite3] info: Opening /var/lib/matrix-appservice-discord/discord.db
Jul 11 14:38:40 matrix matrix-appservice-discord[6254]: Jul-11 14:38:40.572 [DiscordStore] info: Database schema version is 11, latest version is 11
Jul 11 14:38:40 matrix matrix-appservice-discord[6254]: Jul-11 14:38:40.573 [DiscordStore] info: Updated database to the latest schema
Jul 11 14:38:40 matrix matrix-appservice-discord[6254]: Jul-11 14:38:40.587 [DiscordAS] info: Started listening on port 9005
Jul 11 14:38:40 matrix matrix-appservice-discord[6254]: Jul-11 14:38:40.653 [ClientFactory] error: Could not login as the bot user. This is bad! Error: An invalid token was provided.
Jul 11 14:38:40 matrix matrix-appservice-discord[6254]: at Promise (/nix/store/jx4ciby585hdrzjfrrk5qrsgg268annc-node_matrix-appservice-discord-0.5.0/lib/node_modules/matrix-appservice-discord/node_m
odules/discord.js/src/client/rest/RESTMethods.js:36:54)
Jul 11 14:38:40 matrix matrix-appservice-discord[6254]: at new Promise (<anonymous>)
Jul 11 14:38:40 matrix matrix-appservice-discord[6254]: at RESTMethods.login (/nix/store/jx4ciby585hdrzjfrrk5qrsgg268annc-node_matrix-appservice-discord-0.5.0/lib/node_modules/matrix-appservice-disc
ord/node_modules/discord.js/src/client/rest/RESTMethods.js:35:12)
Jul 11 14:38:40 matrix matrix-appservice-discord[6254]: at Client.login (/nix/store/jx4ciby585hdrzjfrrk5qrsgg268annc-node_matrix-appservice-discord-0.5.0/lib/node_modules/matrix-appservice-discord/n
ode_modules/discord.js/src/client/Client.js:280:30)
Jul 11 14:38:40 matrix matrix-appservice-discord[6254]: at DiscordClientFactory.<anonymous> (/nix/store/jx4ciby585hdrzjfrrk5qrsgg268annc-node_matrix-appservice-discord-0.5.0/lib/node_modules/matrix-
appservice-discord/src/clientfactory.ts:49:34)
Jul 11 14:38:40 matrix matrix-appservice-discord[6254]: at Generator.next (<anonymous>)
Jul 11 14:38:40 matrix matrix-appservice-discord[6254]: at /nix/store/jx4ciby585hdrzjfrrk5qrsgg268annc-node_matrix-appservice-discord-0.5.0/lib/node_modules/matrix-appservice-discord/build/src/clien
tfactory.js:23:71
Jul 11 14:38:40 matrix matrix-appservice-discord[6254]: at new Promise (<anonymous>)
Jul 11 14:38:40 matrix matrix-appservice-discord[6254]: at __awaiter (/nix/store/jx4ciby585hdrzjfrrk5qrsgg268annc-node_matrix-appservice-discord-0.5.0/lib/node_modules/matrix-appservice-discord/buil
d/src/clientfactory.js:19:12)
Jul 11 14:38:40 matrix matrix-appservice-discord[6254]: at DiscordClientFactory.init (/nix/store/jx4ciby585hdrzjfrrk5qrsgg268annc-node_matrix-appservice-discord-0.5.0/lib/node_modules/matrix-appserv
ice-discord/build/src/clientfactory.js:39:16)
Jul 11 14:38:40 matrix matrix-appservice-discord[6254]: Jul-11 14:38:40.654 [DiscordAS] error: Error: An invalid token was provided.
Jul 11 14:38:40 matrix matrix-appservice-discord[6254]: at Promise (/nix/store/jx4ciby585hdrzjfrrk5qrsgg268annc-node_matrix-appservice-discord-0.5.0/lib/node_modules/matrix-appservice-discord/node_m
odules/discord.js/src/client/rest/RESTMethods.js:36:54)
Jul 11 14:38:40 matrix matrix-appservice-discord[6254]: at new Promise (<anonymous>)
Jul 11 14:38:40 matrix matrix-appservice-discord[6254]: at RESTMethods.login (/nix/store/jx4ciby585hdrzjfrrk5qrsgg268annc-node_matrix-appservice-discord-0.5.0/lib/node_modules/matrix-appservice-disc
ord/node_modules/discord.js/src/client/rest/RESTMethods.js:35:12)
Jul 11 14:38:40 matrix matrix-appservice-discord[6254]: at Client.login (/nix/store/jx4ciby585hdrzjfrrk5qrsgg268annc-node_matrix-appservice-discord-0.5.0/lib/node_modules/matrix-appservice-discord/n
ode_modules/discord.js/src/client/Client.js:280:30)
Jul 11 14:38:40 matrix matrix-appservice-discord[6254]: at DiscordClientFactory.<anonymous> (/nix/store/jx4ciby585hdrzjfrrk5qrsgg268annc-node_matrix-appservice-discord-0.5.0/lib/node_modules/matrix-
appservice-discord/src/clientfactory.ts:49:34)
Jul 11 14:38:40 matrix matrix-appservice-discord[6254]: at Generator.next (<anonymous>)
Jul 11 14:38:40 matrix matrix-appservice-discord[6254]: at /nix/store/jx4ciby585hdrzjfrrk5qrsgg268annc-node_matrix-appservice-discord-0.5.0/lib/node_modules/matrix-appservice-discord/build/src/clien
tfactory.js:23:71
Jul 11 14:38:40 matrix matrix-appservice-discord[6254]: at new Promise (<anonymous>)
Jul 11 14:38:40 matrix matrix-appservice-discord[6254]: at __awaiter (/nix/store/jx4ciby585hdrzjfrrk5qrsgg268annc-node_matrix-appservice-discord-0.5.0/lib/node_modules/matrix-appservice-discord/buil
d/src/clientfactory.js:19:12)
Jul 11 14:38:40 matrix matrix-appservice-discord[6254]: at DiscordClientFactory.init (/nix/store/jx4ciby585hdrzjfrrk5qrsgg268annc-node_matrix-appservice-discord-0.5.0/lib/node_modules/matrix-appserv
ice-discord/build/src/clientfactory.js:39:16)
Jul 11 14:38:40 matrix matrix-appservice-discord[6254]: Jul-11 14:38:40.655 [DiscordAS] error: Failure during startup. Exiting
Downgrading back to the latest tagged release (v0.5.2) without any modification of the registration files allows the service to start and work normally again:
Jul 11 14:41:06 matrix systemd[1]: Starting A bridge between Matrix and Discord....
Jul 11 14:41:06 matrix systemd[1]: Started A bridge between Matrix and Discord..
Jul 11 14:43:17 matrix matrix-appservice-discord[440]: Jul-11 14:43:17.632 [DiscordAS] info: Starting Discord AS
Jul 11 14:43:17 matrix matrix-appservice-discord[440]: Jul-11 14:43:17.896 [DiscordAS] warn: [DEPRECATED] The room store is now part of the SQL
database.The config option roomStorePath no longer has any use.
Jul 11 14:43:17 matrix matrix-appservice-discord[440]: Jul-11 14:43:17.897 [DiscordAS] warn: [DEPRECATED] The user store is now part of the SQL
database.The config option userStorePath no longer has any use.
Jul 11 14:43:18 matrix matrix-appservice-discord[440]: Jul-11 14:43:18.482 [DiscordAS] info: Started listening on port 9005
Jul 11 14:43:18 matrix matrix-appservice-discord[440]: Jul-11 14:43:18.490 [DiscordStore] info: Starting DB Init
Jul 11 14:43:18 matrix matrix-appservice-discord[440]: Jul-11 14:43:18.498 [DiscordStore] info: Filename present in config, using sqlite
Jul 11 14:43:18 matrix matrix-appservice-discord[440]: Jul-11 14:43:18.500 [SQLite3] info: Opening /var/lib/matrix-appservice-discord/discord.db
Jul 11 14:43:18 matrix matrix-appservice-discord[440]: Jul-11 14:43:18.848 [DiscordStore] info: Database schema version is 11, latest version is
10
Jul 11 14:43:18 matrix matrix-appservice-discord[440]: Jul-11 14:43:18.849 [DiscordStore] info: Updated database to the latest schema
Jul 11 14:43:18 matrix matrix-appservice-discord[440]: Jul-11 14:43:18.851 [DiscordAS] info: Initing bridge
Jul 11 14:43:18 matrix matrix-appservice-discord[440]: Jul-11 14:43:18.852 [DiscordAS] info: Initing store.
Jul 11 14:43:24 matrix matrix-appservice-discord[440]: Jul-11 14:43:24.092 [DiscordAS] info: Started listening on port 9005.
Jul 11 14:43:24 matrix matrix-appservice-discord[440]: Jul-11 14:43:24.092 [DiscordAS] info: Initing bot.
Jul 11 14:43:24 matrix matrix-appservice-discord[440]: Jul-11 14:43:24.094 [DiscordBot] info: Discord bot client logged in.
Jul 11 14:43:24 matrix matrix-appservice-discord[440]: Jul-11 14:43:24.094 [DiscordAS] info: Discordbot started successfully
This is running aganist the latest version of Synapse (1.16.1).
Trying to use the latest development snapshot (a54f89c) results in the service being unable to start due to the following error:
error: Could not login as the bot user. This is bad! Error: An invalid token was provided.
. The tokens are of course valid.Full log:
Downgrading back to the latest tagged release (v0.5.2) without any modification of the registration files allows the service to start and work normally again:
This is running aganist the latest version of Synapse (1.16.1).