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

Failed to set up crypto on intent (IO error: could not acquire lock) #609

Closed
jaller94 opened this issue Jan 5, 2023 · 1 comment · Fixed by #714
Closed

Failed to set up crypto on intent (IO error: could not acquire lock) #609

jaller94 opened this issue Jan 5, 2023 · 1 comment · Fixed by #714
Labels
E2EE Encryption related issues T-Defect Bugs, crashes, hangs, vulnerabilities, or other reported problems.

Comments

@jaller94
Copy link
Contributor

jaller94 commented Jan 5, 2023

Hookshot was already running for 2+ hours when it crashed with this message.

Crash example 1

INFO 16:56:44:962 [ConnectionManager] Looking to provision connection for !MBKReTGbuldfQteUbW:localhost uk.half-shot.matrix-hookshot.feed for @jaller94:localhost with data {"url":"https://chrpaul.de/feed.xml","label":"Chr Paul"}
INFO 16:56:45:120 [FeedConnection] Connection 0e343504299411063c7324cc5166baa8 created for !MBKReTGbuldfQteUbW:localhost, {"url":"https://chrpaul.de/feed.xml","label":"Chr Paul"}
ERROR 16:56:45:246 [Appservice] Failed to set up crypto on intent @hookshot:localhost [Error: IO error: could not acquire lock on "/home/jaller94/Git/matrix-hookshot/data/encryption/2d03b2ce09b8e551150e45d1418338aa0f43c531f79e8a34a1758bcbbbc850d0/matrix-sdk-crypto/db": Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" }] {
  code: 'GenericFailure'
}
Error: IO error: could not acquire lock on "/home/jaller94/Git/matrix-hookshot/data/encryption/2d03b2ce09b8e551150e45d1418338aa0f43c531f79e8a34a1758bcbbbc850d0/matrix-sdk-crypto/db": Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" }
error Command failed with exit code 1.

Crash example 2

INFO 10:11:30:044 [Appservice] Processing transaction 7820
INFO 10:11:30:044 [Appservice] Processing ephemeral event of type m.presence
INFO 10:11:30:045 [Appservice] 127.0.0.1 - - [03/Jan/2023:09:11:30 +0000] "PUT /transactions/7820?access_token=%3Credacted%3E HTTP/1.1" 200 2 "-" "Synapse/1.74.0"

ERROR 10:20:51:618 [Appservice] Failed to set up crypto on intent @hookshot:localhost [Error: IO error: could not acquire lock on "/home/jaller94/Git/matrix-hookshot/data/encryption/2d03b2ce09b8e551150e45d1418338aa0f43c531f79e8a34a1758bcbbbc850d0/matrix-sdk-crypto/db": Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" }] {
  code: 'GenericFailure'
}
Error: IO error: could not acquire lock on "/home/jaller94/Git/matrix-hookshot/data/encryption/2d03b2ce09b8e551150e45d1418338aa0f43c531f79e8a34a1758bcbbbc850d0/matrix-sdk-crypto/db": Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" }
error Command failed with exit code 1.
@jaller94 jaller94 added the T-Defect Bugs, crashes, hangs, vulnerabilities, or other reported problems. label Jan 5, 2023
@jaller94 jaller94 changed the title E2EE: Failed to set up crypto on intent E2EE: Failed to set up crypto on intent (IO error: could not acquire lock) Jan 5, 2023
@jaller94 jaller94 changed the title E2EE: Failed to set up crypto on intent (IO error: could not acquire lock) Failed to set up crypto on intent (IO error: could not acquire lock) Jan 5, 2023
@Half-Shot Half-Shot added the E2EE Encryption related issues label Jan 5, 2023
@Kaaybi
Copy link

Kaaybi commented Feb 25, 2023

I finally got the error myself, giving my logs just in case:

INFO 13:39:39:793 [Appservice] Processing event of type m.room.encrypted
WARN 13:39:39:797 [Appservice] Bot client was not able to decrypt !PfhOPObLDFfXZLepTX:kaybi.fr $pg7mN6DyHp2oBe8gDVA-wJ9kfZM981ZugNpBoXbeiuc - trying other intents
ERROR 13:39:40:115 [Appservice] Decryption error on !PfhOPObLDFfXZLepTX:kaybi.fr $pg7mN6DyHp2oBe8gDVA-wJ9kfZM981ZugNpBoXbeiuc [Error: decryption failed because the room key is missing] {
  code: 'GenericFailure'
}
WARN 13:39:40:116 [Bridge] Failed to decrypt event $pg7mN6DyHp2oBe8gDVA-wJ9kfZM981ZugNpBoXbeiuc from !PfhOPObLDFfXZLepTX:kaybi.fr: decryption failed because the room key is missing
INFO 13:39:40:121 [Appservice] 172.18.0.32 - - [25/Feb/2023:13:39:40 +0000] "PUT /transactions/522?access_token=%3Credacted%3E HTTP/1.1" 200 2 "-" "Synapse/1.73.0"
INFO 15:28:42:380 [Appservice] Processing transaction 523
INFO 15:28:42:381 [Appservice] Processing ephemeral event of type m.receipt
DEBUG 15:28:43:091 [MatrixHttpClient] (REQ-72) { errcode: 'M_NOT_FOUND', error: 'Event not found.' }
DEBUG 15:28:43:126 [MatrixHttpClient] (REQ-73) { errcode: 'M_NOT_FOUND', error: 'Event not found.' }
DEBUG 15:28:43:836 [MatrixHttpClient] (REQ-74) { errcode: 'M_NOT_FOUND', error: 'Event not found.' }
ERROR 15:28:44:468 [Appservice] Failed to set up crypto on intent @hookshot:kaybi.fr [Error: IO error: could not acquire lock on "/encryption/50d19d768c4cecb1f06ba4f9f2eb176d87926c62ed924ae5fd26f3143c58b426/matrix-sdk-crypto/db": Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" }] {
  code: 'GenericFailure'
}
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^
[Error: IO error: could not acquire lock on "/encryption/50d19d768c4cecb1f06ba4f9f2eb176d87926c62ed924ae5fd26f3143c58b426/matrix-sdk-crypto/db": Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" }] {
  code: 'GenericFailure'
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E2EE Encryption related issues T-Defect Bugs, crashes, hangs, vulnerabilities, or other reported problems.
Projects
None yet
3 participants