question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 issue

I’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:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
TannerGilbertcommented, Oct 5, 2020

@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.

2reactions
maybebotcommented, Oct 5, 2020

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 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found