Lock file already held

Hi I seem to be running into this issue with lock file being held? I don't need to persist state as I'm returning it in memory
return callback(Object.assign(new Error('Lock file is already being held'), { code: 'ELOCKED', file }));
^

Error: Lock file is already being held
at /Users/jwarder/Workspace/bypigeon-address/node_modules/proper-lockfile/lib/lockfile.js:68:47
at callback (/Users/jwarder/Workspace/bypigeon-address/node_modules/graceful-fs/polyfills.js:306:20)
at FSReqCallback.oncomplete (node:fs:202:5)
at FSReqCallback.callbackTrampoline (node:internal/async_hooks:130:17) {
code: 'ELOCKED',
file: '/Users/jwarder/Workspace/bypigeon-address/storage/key_value_stores/default/SDK_SESSION_POOL_STATE.json'
}
return callback(Object.assign(new Error('Lock file is already being held'), { code: 'ELOCKED', file }));
^

Error: Lock file is already being held
at /Users/jwarder/Workspace/bypigeon-address/node_modules/proper-lockfile/lib/lockfile.js:68:47
at callback (/Users/jwarder/Workspace/bypigeon-address/node_modules/graceful-fs/polyfills.js:306:20)
at FSReqCallback.oncomplete (node:fs:202:5)
at FSReqCallback.callbackTrampoline (node:internal/async_hooks:130:17) {
code: 'ELOCKED',
file: '/Users/jwarder/Workspace/bypigeon-address/storage/key_value_stores/default/SDK_SESSION_POOL_STATE.json'
}
`
1 Reply
Hall
Hall6mo ago
Someone will reply to you shortly. In the meantime, this might help:

Did you find this page helpful?