matrix-org / matrix-appservice-discord

A bridge between Matrix and Discord.
Apache License 2.0
810 stars 151 forks source link

UNABLE_TO_VERIFY_LEAF_SIGNATURE on user registration after startup #711

Open OdinGitDat opened 3 years ago

OdinGitDat commented 3 years ago

I ran ansible-playbook -i inventory/hosts setup.yml --tags=start -kK for the first time and the discord appservice errored out. Journalctl showed this:

Jun 04 01:43:35 ubuntumatrix systemd[1]: Starting Matrix Appservice Discord bridge...
Jun 04 01:43:40 ubuntumatrix systemd[1]: Started Matrix Appservice Discord bridge.
Jun 04 01:43:42 ubuntumatrix matrix-appservice-discord[20264]: Jun-4 01:43:42.721 [bot-sdkMatrixLiteClient (REQ-1)] error: [
Jun 04 01:43:42 ubuntumatrix matrix-appservice-discord[20264]:   Error: unable to verify the first certificate
Jun 04 01:43:42 ubuntumatrix matrix-appservice-discord[20264]:       at TLSSocket.onConnectSecure (_tls_wrap.js:1497:34)
Jun 04 01:43:42 ubuntumatrix matrix-appservice-discord[20264]:       at TLSSocket.emit (events.js:315:20)
Jun 04 01:43:42 ubuntumatrix matrix-appservice-discord[20264]:       at TLSSocket._finishInit (_tls_wrap.js:932:8)
Jun 04 01:43:42 ubuntumatrix matrix-appservice-discord[20264]:       at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:706:12) {
Jun 04 01:43:42 ubuntumatrix matrix-appservice-discord[20264]:     code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE'
Jun 04 01:43:42 ubuntumatrix matrix-appservice-discord[20264]:   }
Jun 04 01:43:42 ubuntumatrix matrix-appservice-discord[20264]: ]
Jun 04 01:43:42 ubuntumatrix matrix-appservice-discord[20264]: Jun-4 01:43:42.722 [bot-sdkAppservice] error: [ 'Encountered error registering user: ' ]
Jun 04 01:43:42 ubuntumatrix matrix-appservice-discord[20264]: Jun-4 01:43:42.722 [bot-sdkAppservice] error: [
Jun 04 01:43:42 ubuntumatrix matrix-appservice-discord[20264]:   Error: unable to verify the first certificate
Jun 04 01:43:42 ubuntumatrix matrix-appservice-discord[20264]:       at TLSSocket.onConnectSecure (_tls_wrap.js:1497:34)
Jun 04 01:43:42 ubuntumatrix matrix-appservice-discord[20264]:       at TLSSocket.emit (events.js:315:20)
Jun 04 01:43:42 ubuntumatrix matrix-appservice-discord[20264]:       at TLSSocket._finishInit (_tls_wrap.js:932:8)
Jun 04 01:43:42 ubuntumatrix matrix-appservice-discord[20264]:       at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:706:12) {
Jun 04 01:43:42 ubuntumatrix matrix-appservice-discord[20264]:     code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE'
Jun 04 01:43:42 ubuntumatrix matrix-appservice-discord[20264]:   }
Jun 04 01:43:42 ubuntumatrix matrix-appservice-discord[20264]: ]
Jun 04 01:43:42 ubuntumatrix matrix-appservice-discord[20264]: Jun-4 01:43:42.724 [DiscordAS] error: A fatal error occurred during startup: Error: unable to verify the first certificate
Jun 04 01:43:42 ubuntumatrix matrix-appservice-discord[20264]:     at TLSSocket.onConnectSecure (_tls_wrap.js:1497:34)
Jun 04 01:43:42 ubuntumatrix matrix-appservice-discord[20264]:     at TLSSocket.emit (events.js:315:20)
Jun 04 01:43:42 ubuntumatrix matrix-appservice-discord[20264]:     at TLSSocket._finishInit (_tls_wrap.js:932:8)
Jun 04 01:43:42 ubuntumatrix matrix-appservice-discord[20264]:     at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:706:12) {
Jun 04 01:43:42 ubuntumatrix matrix-appservice-discord[20264]:   code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE'
Jun 04 01:43:42 ubuntumatrix matrix-appservice-discord[20264]: }
Jun 04 01:43:43 ubuntumatrix systemd[1]: matrix-appservice-discord.service: Main process exited, code=exited, status=1/FAILURE
Jun 04 01:43:43 ubuntumatrix systemd[1]: matrix-appservice-discord.service: Failed with result 'exit-code'.
jaller94 commented 2 years ago

I guess your computer wasn't properly connected to the Internet or a webserver's HTTPS certificate (likely the Matrix homeserver) was configured improperly.