【问题标题】:OSError: [Errno 28] inotify watch limit reachedOSError: [Errno 28] inotify watch limit达到
【发布时间】:2022-11-08 23:35:26
【问题描述】:

我正在使用 Streamlit 制作一个基于 python 的网络应用程序。在 Heroku 中部署后,构建成功,但出现应用程序错误。我不知道在源代码中的哪个位置生成了这个错误。请帮我! 错误 :

2022-07-18T18:55:37.985429+00:00 app[web.1]:     Inotify._raise_error()
2022-07-18T18:55:37.985439+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.10/site-packages/watchdog/observers/inotify_c.py", line 398, in _raise_error
2022-07-18T18:55:37.985636+00:00 app[web.1]:     raise OSError(errno.ENOSPC, "inotify watch limit reached")
2022-07-18T18:55:37.985677+00:00 app[web.1]: OSError: [Errno 28] inotify watch limit reached
2022-07-18T18:55:38.387667+00:00 heroku[web.1]: Process exited with status 1
2022-07-18T18:55:38.510041+00:00 heroku[web.1]: State changed from starting to crashed
2022-07-18T18:55:48.000000+00:00 app[api]: Build succeeded
2022-07-18T18:57:33.589417+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=invezto.herokuapp.com request_id=bc8f4556-852e-4dad-8b67-71e49ffaaf23 fwd="49.37.45.19" dyno= connect= service= status=503 bytes= protocol=https
2022-07-18T18:57:33.917128+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=invezto.herokuapp.com request_id=46e2e615-17dc-42f6-a86d-4dfc5fd5ecfc fwd="49.37.45.19" dyno= connect= service= status=503 bytes= protocol=https ``` 

 

【问题讨论】:

    标签: python heroku streamlit heroku-api


    【解决方案1】:

    在命令行添加选项--server.fileWatcherType none 帮助我解决了类似的问题。一个完整的例子看起来像这样streamlit run app.py --server.fileWatcherType none

    【讨论】:

      猜你喜欢
      • 2021-01-07
      • 2023-03-20
      • 1970-01-01
      • 2010-10-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-07-14
      • 2023-03-19
      相关资源
      最近更新 更多