You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pupeno@Utopia:~/hello-world$ poetry run uvicorn app.main:app --reload --port 5100 --reload-exclude "tmp/postgres"
and I get this error:
Traceback (most recent call last):
File "/home/pupeno/hello-world/.venv/bin/uvicorn", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/pupeno/hello-world/.venv/lib/python3.12/site-packages/click/core.py", line 1442, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pupeno/hello-world/.venv/lib/python3.12/site-packages/click/core.py", line 1363, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/pupeno/hello-world/.venv/lib/python3.12/site-packages/click/core.py", line 1226, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pupeno/hello-world/.venv/lib/python3.12/site-packages/click/core.py", line 794, in invoke
return callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pupeno/hello-world/.venv/lib/python3.12/site-packages/uvicorn/main.py", line 413, in main
run(
File "/home/pupeno/hello-world/.venv/lib/python3.12/site-packages/uvicorn/main.py", line 575, in run
ChangeReload(config, target=server.run, sockets=[sock]).run()
File "/home/pupeno/hello-world/.venv/lib/python3.12/site-packages/uvicorn/supervisors/basereload.py", line 53, in run
for changes in self:
File "/home/pupeno/hello-world/.venv/lib/python3.12/site-packages/uvicorn/supervisors/basereload.py", line 72, in __next__
return self.should_restart()
^^^^^^^^^^^^^^^^^^^^^
File "/home/pupeno/hello-world/.venv/lib/python3.12/site-packages/uvicorn/supervisors/watchfilesreload.py", line 84, in should_restart
changes = next(self.watcher)
^^^^^^^^^^^^^^^^^^
File "/home/pupeno/hello-world/.venv/lib/python3.12/site-packages/watchfiles/main.py", line 130, in watch
raw_changes = watcher.watch(debounce, step, rust_timeout, stop_event)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_rust_notify.WatchfilesRustInternalError: error in underlying watcher: IO error for operation on /home/pupeno/hello-world/tmp/postgres: Permission denied (os error 13) about ["/home/pupeno/hello-world/tmp/postgres"]
I installed the latest watchfiles and tried reload exclude with tmp/, with ., with *. Nothing works. It keeps trying to have access tmp/postgres and getting that error.
Any ideas what am I doing wrong or how to handle this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm running uvicorn like this:
and I get this error:
I installed the latest
watchfiles
and tried reload exclude withtmp/
, with.
, with*
. Nothing works. It keeps trying to have access tmp/postgres and getting that error.Any ideas what am I doing wrong or how to handle this?
Beta Was this translation helpful? Give feedback.
All reactions