brianmay
This has been annoying me for some time:
Error from chokidar (/home/brian/tree/personal/relixir/robotica/robotica_face/assets/node_modules/css-loader/dist/runtime): Error: EMFILE: too many open files, watch '/home/brian/tree/personal/relixir/robotica/robotica_face/assets/node_modules/css-loader/dist/runtime/api.js'
This message gets displayed for every file in the assets directory, when starting the dev instance. If I stop other running programs, close browser tabs, it will come good temporary, but then go bad again. Only sure fix is to reboot my computer.
Phoenix is the only thing that seems to be affected, and as far as I can tell it isn’t actually affecting running of the application.
My computer is Debian/bullseye.
This is the only running copy of elxir running on this computer.
Wondering if there is something on my system - maybe even the Linux kernel - that is leaking open files.
Trending in Questions
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
Hello!
Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app.
I creat...
New
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
Hello,
I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
Other Trending Topics
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #ai
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Showing Posts 1 to 8- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
dimitarvp
Have you checked your total limit of how many open files can you have at maximum?
kokolegorille
Did You make any changes to the watchers configuration?
brianmay
No. I didn’t make any changes. Apart from changing
--watch-stdinwith--watch.kokolegorille
Did You change this for Webpack 5?
Maybe like this?
brianmay
Hmmm. I am not familiar with this
--watch-options-stdin. The info I saw - somewhere - strongly implied I should drop--watch-stdin.e.g. the top two google results for watch-stdin:
https://github.com/revelrylabs/revelry_phoenix_app_template/issues/811
https://github.com/phoenixframework/phoenix/issues/4020
Which links to the fix:
https://github.com/ruudk/phoenix/commit/67799f647dda4cb8b9275053aa8e1fc0d2ce7303
From the docs:for
watch-options-stdin:Apparently I have 90 copies of webpack running. Oh, that would explain it.
Will make the change, kill my webpacks, and hopefully that will fix this.
Thanks!
It would be good if there was an authoritative source somewhere of correct changes required to the webpack stuff from the standard phoenix template.
See also Webpack error after upgrading mini-css-extract-plugin@1.6.2 - #3 by derek-zhou for an example of just another problem this has caused me.
kokolegorille
You might find reference here…
https://github.com/phoenixframework/phoenix/pull/4054
brianmay
Good point. I guess I should compare my assets directory with the values from the git source at phoenix/installer/templates/phx_assets at main · phoenixframework/phoenix · GitHub
brianmay
Sounds like Pheonix is now switching to using esbuild. https://twitter.com/josevalim/status/1417017859847475201