ERROR No such file or directory (os error 2)

I have a django app and I am using [[statics]] to share static files, and I frequently get this error showing up on logs:

ERROR No such file or directory (os error 2)

Everything seems to be working. I found two related issues:

However they were automatically closed due to inactivity. I don’t know what protocol is here, but I wanted to keep the issue live in hopes that a solution is found.

Hey there,

That is definitely an interesting error. Thanks for doing some digging on your side to start things off. I did just want to share the bottom portion of this post. Maybe trying this will help?

i get this error in the logs of my rails api - #16 by rubys.

After disabling the [[statics]] the problem went away. So I’m not sure what’s going on.

I ended up removing [[statics]] and using a better file server (whitenoise in django) to serve the static files. This will be more CDN friendly down the line anyways.

1 Like

I’m glad to hear it went away! Also thanks for letting us know what you did as a replacement! Helps others who might be in the same boat!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.