Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

IO error: lock hold by current process #1008

Open
bfollington opened this issue Nov 30, 2023 · 3 comments
Open

IO error: lock hold by current process #1008

bfollington opened this issue Nov 30, 2023 · 3 comments
Labels
Bug Something isn't working

Comments

@bfollington
Copy link
Collaborator

Encountered by @justinabrahms after trying to sync (with a period of inactivity since last sync).

image

Subsequent attempts failed with different messages, seemingly intermittently:

image

@bfollington bfollington added the Bug Something isn't working label Nov 30, 2023
@bfollington
Copy link
Collaborator Author

Current vague suspicion: large history causing issues, perhaps resulting in a slow rocksdb teardown and multiple attempts to connect at once?

@bfollington
Copy link
Collaborator Author

I've been doing some investiation into whether it's possible to construct two noosphere instances in Subconscious, since this would be the most straightforward explanation of the error we're seeing here.

I've come up empty handed. Even if the issue were to do with disposing and recreating our noosphere reference (i.e. #1007) I can't trigger disposal by performing a regular sync.

Next steps: add more detailed logging to the app and ship and update to see if we can learn more about what's happening on @justinabrahms device.

@jsantell
Copy link
Contributor

jsantell commented Dec 5, 2023

WRT the LOCK file issue: it could be possible on backgrounding, rocks was closing its background threads (which fcntl will release the LOCK file upon completing), and on reopening Subconscious, the database (lock) was still in use -- subconsciousnetwork/noosphere#734 may fix this issue in this case

bfollington added a commit that referenced this issue Jan 16, 2024
1. Allow user configuration of Noosphere log detail (persisted using
AppDefaults)
2. Pipe `stdout` to a logger to capture Noosphere logs

This is per-process on iOS and you can see the result via Console.app

Intended to help with debugging
#1008
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants