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

Server hangs on no such file #5

Open
j3ll3nl opened this issue Sep 9, 2021 · 1 comment
Open

Server hangs on no such file #5

j3ll3nl opened this issue Sep 9, 2021 · 1 comment

Comments

@j3ll3nl
Copy link

j3ll3nl commented Sep 9, 2021

When using Hydbrid disk cache in combination with next-boost sometimes we got currupt files ending up in the following error. I think we should catch this.

(node:67992) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/tmp/boost/5e/fe/cbc7e7aa02d9161d7897ac88571f.v'
    at Object.openSync (fs.js:462:3)
    at Object.readFileSync (fs.js:364:35)
    at Object.read (/Users/j/node_modules/hybrid-disk-cache/dist/utils.js:53:31)
    at Cache.get (/Users/j/node_modules/hybrid-disk-cache/dist/index.js:58:32)
    at Object.<anonymous> (/Users/j/node_modules/next-boost/dist/cache-manager.js:48:34)
    at Generator.next (<anonymous>)
    at /Users/j/node_modules/next-boost/dist/cache-manager.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/Users/j/node_modules/next-boost/dist/cache-manager.js:4:12)
    at Object.serveCache (/Users/j/node_modules/next-boost/dist/cache-manager.js:35:12)

@rjyo
Copy link
Collaborator

rjyo commented Sep 9, 2021

Try to move the cache to somewhere else than the /tmp
It's for test usage and files will get deleted by the system in some unmanageable manner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants