Lambda Issue #1612
Replies: 4 comments 9 replies
-
How do you run the crawler? cc @vladfrangu, is it possible the auto-purge would fail if the folder does not exist? |
Beta Was this translation helpful? Give feedback.
-
I just have a simple handler function that has:
And the actual code for crawling is just: `let links = [];
});` |
Beta Was this translation helpful? Give feedback.
-
Just for some more context I created a container for my lambda and this issue disappeared. Not sure if it means it is the ensureDir being unsafe or not but it seems to not reproduce this error now using a container. |
Beta Was this translation helpful? Give feedback.
-
Could you please provide a full code sample that we can test ourselves in a Lambda env to debug this and help you out 🙏 |
Beta Was this translation helpful? Give feedback.
-
I deployed a lambda on AWS where I want to do some crawling. When I try to run it I get the following error:
{ "errorType": "Runtime.UnhandledPromiseRejection", "errorMessage": "Error: ENOENT: no such file or directory, mkdir '/var/task/storage'", "trace": [ "Runtime.UnhandledPromiseRejection: Error: ENOENT: no such file or directory, mkdir '/var/task/storage'", " at process.<anonymous> (file:///var/runtime/index.mjs:1131:17)", " at process.emit (node:events:527:28)", " at processEmit [as emit] (/var/task/node_modules/signal-exit/index.js:199:34)", " at emit (node:internal/process/promises:140:20)", " at processPromiseRejections (node:internal/process/promises:274:27)", " at processTicksAndRejections (node:internal/process/task_queues:97:32)" ] }
Now tbh I only suspect Crawlee could be the issue only because of the storage mentioned in the error, hoping some guidance here can help. For context I use the following settings in my crawlee.json file:
{ "persistStorage": false, "localDataDirectory": "/tmp", "writeMetadata": false }
The above to me would seem to say that nothing would be written to any path or dir, is that correct? Just for some testing I had added the localDataDirectory path just in case it was still writing something. Also note I do not write anything to any place within my code.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions