No such file or directory when saving download #11

Open
opened 2025-01-11 14:25:05 +01:00 by tdpeuter · 3 comments
Owner

While going through the queue, the download might fail and crash the server with the following error message:

backend-1   | node:internal/process/promises:394                                                                                                                                                                                                                                            
backend-1   |     triggerUncaughtException(err, true /* fromPromise */);                                                                                                                                                                                                                    
backend-1   |     ^                                                                                                                                                                                                                                                                         
backend-1   |                                                                                                                                                                                                                                                                               
backend-1   | download.saveAs: ENOENT: no such file or directory, copyfile '/tmp/playwright-artifacts-G43SoZ/a900f884-1339-45fa-b266-dc14b519ccd8' -> '/data/Ronald Goedemondt - Geen Sprake Van (2018).zip'                                                                                
backend-1   |     at Lucida.<anonymous> (/app/dist/services/lucida.js:86:28)                                                                                                                                                                                                                
backend-1   |     at /app/dist/services/lucida.js:8:71                                                                                                                                                                                                                                      
backend-1   |     at __awaiter (/app/dist/services/lucida.js:4:12)                                                                                                                                                                                                                          
backend-1   |     at Lucida.saveDownload (/app/dist/services/lucida.js:84:16)                                                                                                                                                                                                               
backend-1   |     at Lucida.<anonymous> (/app/dist/services/lucida.js:127:28)                                                                                                                                                                                                               
backend-1   |     at /app/dist/services/lucida.js:8:71                                                                                                                                                                                                                                      
backend-1   |     at __awaiter (/app/dist/services/lucida.js:4:12)                                                                                                                                                                                                                          
backend-1   |     at Page.<anonymous> (/app/dist/services/lucida.js:126:57) {                                                                                                                                                                                                               
backend-1   |   name: 'Error'                                                                                                                                                                                                                                                               
backend-1   | } 
backend-1   |                                                                                                                                                                                                                                                                               
backend-1   | Node.js v22.13.0                                                                                                                                                                                                                                                              
backend-1 exited with code 0                                                                                                                                                                                                                                                                

The download does not finish and does not end up in the filesystem.

While going through the queue, the download might fail and crash the server with the following error message: ``` backend-1 | node:internal/process/promises:394 backend-1 | triggerUncaughtException(err, true /* fromPromise */); backend-1 | ^ backend-1 | backend-1 | download.saveAs: ENOENT: no such file or directory, copyfile '/tmp/playwright-artifacts-G43SoZ/a900f884-1339-45fa-b266-dc14b519ccd8' -> '/data/Ronald Goedemondt - Geen Sprake Van (2018).zip' backend-1 | at Lucida.<anonymous> (/app/dist/services/lucida.js:86:28) backend-1 | at /app/dist/services/lucida.js:8:71 backend-1 | at __awaiter (/app/dist/services/lucida.js:4:12) backend-1 | at Lucida.saveDownload (/app/dist/services/lucida.js:84:16) backend-1 | at Lucida.<anonymous> (/app/dist/services/lucida.js:127:28) backend-1 | at /app/dist/services/lucida.js:8:71 backend-1 | at __awaiter (/app/dist/services/lucida.js:4:12) backend-1 | at Page.<anonymous> (/app/dist/services/lucida.js:126:57) { backend-1 | name: 'Error' backend-1 | } backend-1 | backend-1 | Node.js v22.13.0 backend-1 exited with code 0 ``` The download does not finish and does not end up in the filesystem.
tdpeuter added the
bug
label 2025-01-11 14:25:05 +01:00
Author
Owner

Would also benefit from #8

Would also benefit from #8
Author
Owner

This one occured while not interacting with the frontend.

backend-1   | node:internal/process/promises:394                                                                                                                                                                                                                                            
backend-1   |     triggerUncaughtException(err, true /* fromPromise */);                                                                                                                                                                                                                    
backend-1   |     ^                                                                                                                                                                                                                                                                         
backend-1   |                                                                                                                                                                                                                                                                               
backend-1   | download.saveAs: ENOENT: no such file or directory, copyfile '/tmp/playwright-artifacts-1TQZV9/1b5303c2-aa58-486a-b697-83f886b5174a' -> '/data/William Boeva - Reset (2020).zip'                                                                                              
backend-1   |     at Lucida.<anonymous> (/app/dist/services/lucida.js:86:28)                                                                                                                                                                                                                
backend-1   |     at /app/dist/services/lucida.js:8:71                                                                                                                                                                                                                                      
backend-1   |     at __awaiter (/app/dist/services/lucida.js:4:12)                                                                                                                                                                                                                          
backend-1   |     at Lucida.saveDownload (/app/dist/services/lucida.js:84:16)                                                                                                                                                                                                               
backend-1   |     at Lucida.<anonymous> (/app/dist/services/lucida.js:127:28)                                                                                                                                                                                                               
backend-1   |     at /app/dist/services/lucida.js:8:71                                                                                                                                                                                                                                      
backend-1   |     at __awaiter (/app/dist/services/lucida.js:4:12)                                                                                                                                                                                                                          
backend-1   |     at Page.<anonymous> (/app/dist/services/lucida.js:126:57) {                                                                                                                                                                                                               
backend-1   |   name: 'Error'                                                                                                                                                                                                                                                               
backend-1   | }                                                                                                                                                                                                                                                                             
backend-1   |                                                                                                                                                                                                                                                                               
backend-1   | Node.js v22.13.0                                                                                                                                                                                                                                                              
backend-1 exited with code 0 
This one occured while not interacting with the frontend. ``` backend-1 | node:internal/process/promises:394 backend-1 | triggerUncaughtException(err, true /* fromPromise */); backend-1 | ^ backend-1 | backend-1 | download.saveAs: ENOENT: no such file or directory, copyfile '/tmp/playwright-artifacts-1TQZV9/1b5303c2-aa58-486a-b697-83f886b5174a' -> '/data/William Boeva - Reset (2020).zip' backend-1 | at Lucida.<anonymous> (/app/dist/services/lucida.js:86:28) backend-1 | at /app/dist/services/lucida.js:8:71 backend-1 | at __awaiter (/app/dist/services/lucida.js:4:12) backend-1 | at Lucida.saveDownload (/app/dist/services/lucida.js:84:16) backend-1 | at Lucida.<anonymous> (/app/dist/services/lucida.js:127:28) backend-1 | at /app/dist/services/lucida.js:8:71 backend-1 | at __awaiter (/app/dist/services/lucida.js:4:12) backend-1 | at Page.<anonymous> (/app/dist/services/lucida.js:126:57) { backend-1 | name: 'Error' backend-1 | } backend-1 | backend-1 | Node.js v22.13.0 backend-1 exited with code 0 ```
Author
Owner
backend-1   | node:internal/process/promises:394                                                                                                                
backend-1   |     triggerUncaughtException(err, true /* fromPromise */);                                                                                        
backend-1   |     ^                                                             
backend-1   |                                                                   
backend-1   | download.saveAs: ENOENT: no such file or directory, copyfile '/tmp/playwright-artifacts-mAYHdQ/b7c0063b-645b-450a-96af-5cc8d1ef821f' -> '/data/De 
Jeugd van tegenwoordig - Parels Voor De Zwijnen (2005).zip'                     
backend-1   |     at Lucida.<anonymous> (/app/dist/services/lucida.js:86:28)                                                                                    
backend-1   |     at /app/dist/services/lucida.js:8:71                          
backend-1   |     at __awaiter (/app/dist/services/lucida.js:4:12)              
backend-1   |     at Lucida.saveDownload (/app/dist/services/lucida.js:84:16)                                                                                   
backend-1   |     at Lucida.<anonymous> (/app/dist/services/lucida.js:127:28)
backend-1   |     at /app/dist/services/lucida.js:8:71                          
backend-1   |     at __awaiter (/app/dist/services/lucida.js:4:12)              
backend-1   |     at Page.<anonymous> (/app/dist/services/lucida.js:126:57) {                                                                                   
backend-1   |   name: 'Error'                                                   
backend-1   | }                                                                 
backend-1   |                                                                   
backend-1   | Node.js v22.13.0                                                  
backend-1 exited with code 0
``` backend-1 | node:internal/process/promises:394 backend-1 | triggerUncaughtException(err, true /* fromPromise */); backend-1 | ^ backend-1 | backend-1 | download.saveAs: ENOENT: no such file or directory, copyfile '/tmp/playwright-artifacts-mAYHdQ/b7c0063b-645b-450a-96af-5cc8d1ef821f' -> '/data/De Jeugd van tegenwoordig - Parels Voor De Zwijnen (2005).zip' backend-1 | at Lucida.<anonymous> (/app/dist/services/lucida.js:86:28) backend-1 | at /app/dist/services/lucida.js:8:71 backend-1 | at __awaiter (/app/dist/services/lucida.js:4:12) backend-1 | at Lucida.saveDownload (/app/dist/services/lucida.js:84:16) backend-1 | at Lucida.<anonymous> (/app/dist/services/lucida.js:127:28) backend-1 | at /app/dist/services/lucida.js:8:71 backend-1 | at __awaiter (/app/dist/services/lucida.js:4:12) backend-1 | at Page.<anonymous> (/app/dist/services/lucida.js:126:57) { backend-1 | name: 'Error' backend-1 | } backend-1 | backend-1 | Node.js v22.13.0 backend-1 exited with code 0 ```
This repository is archived. You cannot comment on issues.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: tdpeuter/lucida-queue#11
No description provided.