FAST API debugger not working
Hi Team,
I am using Pycharm Professional 2024.3 EAP on WSL Ubuntu 22.04.5 LTS.
Our codebase is dockerized and we are using FAST API to write our endpoints.
We made changes to build the docker images as non root user. We are able to build and deploy it successfully.
But the existing FAST API debugger and PyTest debugger are breaking as they are still being executed as root user with the following error:
/opt/virtualenvs/teems-bTydf30B-py3.10/bin/python /opt/.pycharm_helpers/pydev/pydevd.py --module --multiprocess --qt-support=auto --port 29781 --file uvicorn teems.inventory.api.app:app --host=0.0.0. --reload --log-level=info
Attaching to teems_pycharm
Container teems_pycharm Creating
Container teems_pycharm Created
Gracefully stopping... (press Ctrl+C again to force)
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/opt/teems/local-entrypoint.sh": permission denied: unknown
Process finished with exit code 1
Please sign in to leave a comment.
Hi Gagandeep Pratihar,
This appears to be a known issue PY-55679, unfortunately. Please try to apply the workaround suggested in this comment.
Apologies for the inconvenience.
I am unable to find the helper folder as mentioned in the comment, is it changed to helpers-pro.
If yes, I am still unable to find the file mentioned in the comments