FATAL ENOENT: no such file or directory, open '/usr/src/app/node_modules/.cache/pwa/icon/iphonexsmax_1242x2688.png' when building in docker
See original GitHub issueI’m getting FATAL ENOENT: no such file or directory, open '/usr/src/app/node_modules/.cache/pwa/icon/iphonexsmax_1242x2688.png'
when building my Nuxt pwa app in Docker on a DigitalOcean droplet. The weird thing is that it only happens when I build the container on DigitalOcean an not on my local machine.
Nuxt PWA version: 3.0.2
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:8 (2 by maintainers)
Top Results From Across the Web
'ENOENT: No such file or directory' Error in Docker build
It states that it can't find the file in the specified directory: ENOENT: no such file or directory, open '/app/package.json'.
Read more >No such file or directory for /var/lib/docker/overlay2 · Issue #1396
Docker image encounters error no such file or directory when building images. Restarting Docker does not resolve.
Read more >no such file or directory, open '/usr/app/package.json' CI error ...
as you see i'm already wrote COPY package*.json /usr/app/ when i'm try to run docker-compose run bona_api ls it only returns node_modules.
Read more >Build step: No such file or directory · Codefresh | Docs
Codefresh is a Docker-native CI/CD platform. Instantly build , test and deploy Docker images.
Read more >How to fix “exec user process caused „no such file or directory ...
Let's fix this! Fixing the Error using dos2unix. Docker outputs all build steps when creating an image based on a Dockerfile. The “exec...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@maybebot I set the swap to 1GB as described in the article you mentioned and now it seems to work fine. Thanks for the help.
Somebody else reported the same problem on the Discord Nuxt server on a 5$ droplet.
@TannerGilbert and the others, are you also building on the 5$ droplet?
My guess is that 1GB of ram is not enough for jimp (the image generation tool used by this module) to create the large iphonexsmax_1242x2688.png image. If jimp fails it doesn’t kill the build process (jimp issue here) but later on nuxt cannot find the file.
A workaround, if I am right, would be to add some swap space to the 1GB ram droplet, and see if that helps. DO guide here. Of course upgrading to a pricier droplet would have the same result.
If somebody can test this solution, please share the results here 😃