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.

Docz attempting to watch files during production build

See original GitHub issue

Bug Report

Docz is watching for filesystem changes even while building the production build. This causes our CI pipeline to fail. I can’t really configure the amount of file watchers in the pipeline.

The error thrown is:

$ docz build                                                                                                                                                                                                                         
events.js:173
      throw er; // Unhandled 'error' event
      ^

Error: ENOSPC: System limit for number of file watchers reached, watch '/tmp/build/de0ad76f/oos-frontend-platforms/packages/oos-ui/doczrc.js'
    at FSWatcher.start (internal/fs/watchers.js:165:26)
    at Object.watch (fs.js:1275:11)
    at createFsWatchInstance (/tmp/build/de0ad76f/oos-frontend-platforms/node_modules/docz-core/node_modules/chokidar/lib/nodefs-handler.js:42:15)
    at setFsWatchListener (/tmp/build/de0ad76f/oos-frontend-platforms/node_modules/docz-core/node_modules/chokidar/lib/nodefs-handler.js:85:15)
    at FSWatcher.NodeFsHandler._watchWithNodeFs (/tmp/build/de0ad76f/oos-frontend-platforms/node_modules/docz-core/node_modules/chokidar/lib/nodefs-handler.js:237:14)
    at FSWatcher.NodeFsHandler._handleFile (/tmp/build/de0ad76f/oos-frontend-platforms/node_modules/docz-core/node_modules/chokidar/lib/nodefs-handler.js:264:21)
    at FSWatcher.<anonymous> (/tmp/build/de0ad76f/oos-frontend-platforms/node_modules/docz-core/node_modules/chokidar/lib/nodefs-handler.js:495:21)
    at FSReqCallback.oncomplete (fs.js:160:5)

To Reproduce

Run docz with no file watchers available

docz build # when no file watcher available

Environment

  • OS: Concourse CI pipeline on docker image node:latest

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
evanvincommented, May 9, 2019

This is not fixed for me

1reaction
pedronauckcommented, Apr 24, 2019

Fixed, will be released in the next version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Docz attempting to watch files during production build #650
Bug Report Docz is watching for filesystem changes even while building the production build. This causes our CI pipeline to fail.
Read more >
webpack --watch isn't compiling changed files - Stack Overflow
If your code isn't being recompiled, try increasing the number of watchers (in Ubuntu): echo fs.inotify.max_user_watches=524288 | sudo tee -a ...
Read more >
API - esbuild
#Build API. The build API call operates on one or more files in the file system. This allows the files to reference each...
Read more >
Build troubleshooting tips - Netlify Docs
This article provides troubleshooting tips for failing builds in Netlify's build service. In case your build fails on Netlify, first make sure it...
Read more >
Watching a Directory for Changes (The Java™ Tutorials ...
See JDK Release Notes for information about new features, enhancements, ... Play with creating, deleting, and editing files in the test directory.
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