Why do I encounter this problem?

[03:43:50] 🐍 Python dependencies were installed from /app/todo-app-web/requirements.txt using pip.
[03:43:50] πŸ“¦ Processed dependencies!

Collecting usage statistics. To deactivate, set browser.gatherUsageStats to False.

Traceback (most recent call last):
  File "/home/appuser/venv/bin/streamlit", line 8, in <module>
    sys.exit(main())
  File "/home/appuser/venv/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/home/appuser/venv/lib/python3.9/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/home/appuser/venv/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/appuser/venv/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/appuser/venv/lib/python3.9/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/web/cli.py", line 206, in main_run
    _main_run(target, args, flag_options=kwargs)
  File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/web/cli.py", line 242, in _main_run
    bootstrap.run(file, command_line, args, flag_options)
  File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/web/bootstrap.py", line 397, in run
    _install_pages_watcher(main_script_path)
  File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/web/bootstrap.py", line 373, in _install_pages_watcher
    watch_dir(
  File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/watcher/path_watcher.py", line 153, in watch_dir
    return _watch_path(
  File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/watcher/path_watcher.py", line 128, in _watch_path
    watcher_class(
  File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/watcher/event_based_path_watcher.py", line 92, in __init__
    path_watcher.watch_path(
  File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/watcher/event_based_path_watcher.py", line 170, in watch_path
    folder_handler.watch = self._observer.schedule(
  File "/home/appuser/venv/lib/python3.9/site-packages/watchdog/observers/api.py", line 302, in schedule
    emitter.start()
  File "/home/appuser/venv/lib/python3.9/site-packages/watchdog/utils/__init__.py", line 93, in start
    self.on_thread_start()
  File "/home/appuser/venv/lib/python3.9/site-packages/watchdog/observers/inotify.py", line 118, in on_thread_start
    self._inotify = InotifyBuffer(path, self.watch.is_recursive)
  File "/home/appuser/venv/lib/python3.9/site-packages/watchdog/observers/inotify_buffer.py", line 35, in __init__
    self._inotify = Inotify(path, recursive)
  File "/home/appuser/venv/lib/python3.9/site-packages/watchdog/observers/inotify_c.py", line 167, in __init__
    self._add_dir_watch(path, recursive, event_mask)
  File "/home/appuser/venv/lib/python3.9/site-packages/watchdog/observers/inotify_c.py", line 365, in _add_dir_watch
    self._add_watch(path, mask)
  File "/home/appuser/venv/lib/python3.9/site-packages/watchdog/observers/inotify_c.py", line 386, in _add_watch
    Inotify._raise_error()
  File "/home/appuser/venv/lib/python3.9/site-packages/watchdog/observers/inotify_c.py", line 398, in _raise_error
    raise OSError(errno.ENOSPC, "inotify watch limit reached")
OSError: [Errno 28] inotify watch limit reached
[03:43:51] ❗️ error restarting streamlit: exit status 7: output: streamlit: ERROR (not running)
streamlit: ERROR (spawn error)

Hey @shawn,

Can you share a link to the deployed app and a code snippet so we can reproduce this issue?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.