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

Failing to cache on Windows #37

Closed
psychobolt opened this issue Jun 24, 2024 · 8 comments
Closed

Failing to cache on Windows #37

psychobolt opened this issue Jun 24, 2024 · 8 comments

Comments

@psychobolt
Copy link

Hi, there is a error with finding the temporary cached data on Windows. See logs:

Error: Unable to upload cache: Error: ENOENT: no such file or directory, open 'D:\tmp\cache-24932.tg.bin'
{"level":50,"time":1719255262077,"pid":3380,"hostname":"fv-az1489-381","reqId":"req-a","req":{"method":"PUT","url":"/v8/artifacts/1d9d215f8c05f1f4?slug=turbogha","hostname":"localhost:41230","remoteAddress":"::1","remotePort":50049},"res":{"statusCode":500},"err":{"type":"Error","message":"ENOENT: no such file or directory, open 'D:\\tmp\\cache-24932.tg.bin'","stack":"Error: ENOENT: no such file or directory, open 'D:\\tmp\\cache-24932.tg.bin'","errno":-[40](https://github.com/psychobolt/vite-storybook-boilerplate/actions/runs/9652918639/job/26624145421#step:10:40)58,"code":"ENOENT","syscall":"open","path":"D:\\tmp\\cache-24932.tg.bin"},"msg":"ENOENT: no such file or directory, open 'D:\\tmp\\cache-24932.tg.bin'"}
@rharkor
Copy link
Owner

rharkor commented Jun 25, 2024

Hi 👋,

Can you share me the full output logs of the job and post job please, also if you can show me the action file in order to reproduce it.

What I suppose is that my package doesn't recognize being used in a GitHub action and tries to start in dev mode. This may be due to some missing environment variables (maybe if run from a custom worker).

@psychobolt
Copy link
Author

psychobolt commented Jun 25, 2024

You can see the full log link in my comment

....https://github.com/psychobolt/vite-storybook-boilerplate/actions/runs/9652918639/job/26624145421#step:10:40

Also the issue can be narrowed down to using linux paths as noted here. Would be preferred to use runner.temp (reference)?

@rharkor
Copy link
Owner

rharkor commented Jun 25, 2024

Thanks for your feedback, in fact I was using the runner.temp folder for the logfile server but I forgot to use it for temporary cached files.

I fixed it in the latest version (https://github.com/rharkor/caching-for-turbo/releases/tag/v1.4).

Thanks for your patience

@rharkor rharkor closed this as completed Jun 25, 2024
@psychobolt
Copy link
Author

Thank you for the very fast updates!

@psychobolt
Copy link
Author

@rharkor rharkor reopened this Jun 25, 2024
@rharkor
Copy link
Owner

rharkor commented Jun 25, 2024

Oh yes stupid me releasing without packaging the app 😶‍🌫️

@rharkor rharkor mentioned this issue Jun 25, 2024
Merged
@rharkor
Copy link
Owner

rharkor commented Jun 25, 2024

@psychobolt
Okay finally, I added some tests in my CI to make sure that it wont appear again.

Check v1.5 and let me know if it works for you 😉

@rharkor rharkor closed this as completed Jun 25, 2024
@psychobolt
Copy link
Author

Thanks! It is working for me now

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