funny-blue•2y ago
Lock file is already being held
I keep getting this error when trying to run my scraper. the first time I ran the job it completed but never properly ended so I had to force close my terminal. After doing so I kept getting this error.
I tried deleting the files in the request_queues folder, started a fresh repo and ran
rm -rf ~/Library/Caches/ms-playwright/__dirlock
with no luck
```
INFO PlaywrightCrawler: Starting the crawler.
INFO PlaywrightCrawler: enqueueing new URLs from https://www.redfin.com/city/10201/NV/Las-Vegas/filter/min-price=200k,max-price=700k,min-beds=3,min-baths=2
/Users/simon/code/sample-projects/redfin-playwright/node_modules/proper-lockfile/lib/lockfile.js:68
return callback(Object.assign(new Error('Lock file is already being held'), { code: 'ELOCKED', file }));
^
Error: Lock file is already being held
at /Users/simon/code/sample-projects/redfin-playwright/node_modules/proper-lockfile/lib/lockfile.js:68:47
at callback (/Users/simon/code/sample-projects/redfin-playwright/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/simon/code/sample-projects/redfin-playwright/storage/request_queues/default/4dzK9jwiUEb3r35.json'
}0 Replies