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
No such file or directory - bs_fetch:atomic_write_cache_file:chmod - Error building app with Docker in development #262
Comments
It likely has something to do with the application source (and therefore |
I am getting this error as well, and it most likely is because the volume shared with docker container isn't available to write yet (to |
As a temporary fix, I am using the following strategy to disable it in the docker container where is fails. I have changed the require to:
And then in my docker compose file, I pass the environment variable for the affected container using:
|
Why you not remove the bootsnap gem in Gemfile and require command? |
@EnziinSystem because the codebase is used by others who have local dev environments set up (without docker) and I didn't want to mess it up for them. Also we didn't want to lose the benefits of bootsnap for production environment. |
I understand you disable in the sidekiq container and you still enable it in the main application, isn't it? |
I have the same issue and it's very annoying... Someone is working on a fix about this issue ? |
I solved the problem.
In the boot .rb config
|
Closing in favor of #353, more investigation happened there, and at this point we believe it is caused by a race conditions when multiple process use the same cache directory. That other issue also include an experimental fix, that I'd appreciate if people suffering from this problem could experiment with and report back. |
I've used the latest version 1.4.4 and even the edge version on master but my app refuses to successfully build or startup.
Here's my Dockerfile:
And here's my docker-compose.yml file:
My Gemfile:
Tried this:
gem 'bootsnap', '>= 1.4.4', require: false
And this in my Gemfile but both are producing the same error
gem 'bootsnap', :git => 'https://github.com/Shopify/bootsnap', :branch => 'master',
And here's the error i've been getting for a few days:
Any idea how to fix this error, please?
The text was updated successfully, but these errors were encountered: