如何在AWS代码构建中增加MAX_USER_WATCHERS?错误:ENOSPC:到达的文件数量的系统限制到达的系统限制

发布于 2025-01-24 08:58:45 字数 470 浏览 3 评论 0原文

在AWS代码构建中启动服务器测试柏树测试时遇到此错误

Error: ENOSPC: System limit for number of file watchers reached

,因此我尝试将max_user_watches提高到524288。但是后来我得到了

Running command echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
fs.inotify.max_user_watches=524288
sysctl: setting key "fs.inotify.max_user_watches", ignoring: Read-only file system

如何增加AWS代码构建中的最大用户手表?

getting this error while starting server to test cypress tests in AWS code build

Error: ENOSPC: System limit for number of file watchers reached

so i tried to increase max_user_watches to 524288. But then I was getting

Running command echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
fs.inotify.max_user_watches=524288
sysctl: setting key "fs.inotify.max_user_watches", ignoring: Read-only file system

How could i increase the max user watches in AWS code build?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

柠檬色的秋千 2025-01-31 08:58:45

在所有基础上的构建规格运行命令中,解决了问题

phases:
   install:
      commands:
         - echo fs.inotify.max_user_watches=524288 | tee -a /etc/sysctl.conf && sysctl -p

In the build spec running command on top of all, solved the issue

phases:
   install:
      commands:
         - echo fs.inotify.max_user_watches=524288 | tee -a /etc/sysctl.conf && sysctl -p

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文