๐ ๏ธ9 AttributeError: 'DisabledBackend' object has no attribute '_get_task_meta_for' Celery๋ฅผ ์ด์ฉํ ํฌ๋กค๋ง ์์ ๊ฐ์Airflow์ Celery๋ฅผ ๋น๊ตํ๋ค. ํฌ๋กค๋ง ๊ด๋ฆฌ Airflow vs Celery๊ฐ์๊ธฐ์กด ํ๋ก์ ํธ์ ํฌ๋กค๋ง ์์คํ ์ Airflow๋ก ๊ด๋ฆฌํ๋ค.Airflow ์ด์ ์ค์ด๋ ์๋ฒ์ ๋ฌธ์ ๊ฐ ๋ง์๋ ๋ฐ, ๊ทธ ์ค์์ ์ ์ผ ํฐ ๋ฌธ์ ๋ cpu ์ bonory.tistory.comํฌ๋กค๋ง ์์ ๋ฅผ ์งํํ๋ฉฐ ์๊ฒผ๋ ์ค๋ฅ ๊ธฐ๋ก ๊ฐ์celery app์ ํ์ฑํ ์ํค๊ณ , Fastapi app๋ ํ์ฑํํ๋ค.celery_tasks.pyimport requestsfrom bs4 import BeautifulSoupfrom celery import Celeryimport timecelery_app = Celery( "tasks", broker="redis://localhost:6379/0".. 2025. 2. 11. [systemd] ์๋ฒ reboot ์ ์๋น์ค ์๋ ์คํ ๊ฐ์์๊ฒฉ ์๋ฒ์ ๋ฌธ์ ๊ฐ ๋ฐ์ํด์ reboot ์งํํ๋๋ฐ, ์๊ฒฉ ์๋ฒ์์ ์ด์ ์ค์ธ ์๋น์ค๋ค์ด ๋ค ๋ด๋ ค๊ฐ์ ์๋์ผ๋ก ์คํ์์ผ์ผ ํ๋ค.์ด ๋ฒ๊ฑฐ๋ก์์ ์์ ๊ณ ์, ์๊ฒฉ ์๋ฒ reboot ๋์์ ๋ ์๋์ ์ผ๋ก ์๋น์ค๊ฐ ์คํ๋๋๋ก ์ถ๊ฐํ๋ ค๊ณ ํ๋ค.๋ฐฉ๋ฒ1. systemd์ ์ถ๊ฐ2. crontab์ ์ถ๊ฐ๋ฐฉ๋ฒ 1๏ธโฃ systemd1. ์๋น์ค ํ์ผ ์์ฑsudo vim /etc/systemd/system/my_service.service 2. ์๋น์ค ํ์ผ ์์ฑ[Unit]Description=Activate service automatically when rebooting this server.After=network.target[Service]ExecStart=/bin/bash -c "source /home/my_name/.. 2025. 1. 6. docker: Error response from daemon: Unknown runtime specified nvidia. NVIDIA์ Jetson ํ๋ซํผ์์ Ollama LLM ํจํค์ง๋ฅผ Docker๋ฅผ ํตํด ์คํํ ์ ์๋๋ก ํ๊ฒฝ์ ๊ตฌ์ถํ๋ ๊ณผ์ ์์์๋์ ๋ช ๋ น์ด๋ก container๋ฅผ runํ๋ ค๊ณ ํ๋๊นdocker run --runtime nvidia -it --rm \ --network=host \ -v ~/ollama:/ollama \ -e OLLAMA_MODELS=/ollama \ dustynv/ollama:r36.2.0 ์๋์ ๊ฐ์ ์๋ฌ๋ฉ์ธ์ง๋ฅผ ํ์ธํ ์ ์์๋ค.docker: Error response from daemon: Unknown runtime specified nvidia.See 'docker run --help'. ์ด ์ค๋ฅ๋ Docker๊ฐ nvidia ๋ฐํ์์ ์ธ์ํ์ง ๋ชปํ ๋ ๋ฐ์ํ๋๋ฐ, ์ด๋ NVIDI.. 2024. 11. 14. [pip] ERROR: Could not build wheels for greenlet which use PEP 517 and cannot be installed directly pip3 install sqlalchemy ์๋ํ๋๊นCollecting greenlet Using cached greenlet-3.1.1.tar.gz (186 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... doneBuilding wheels for collected packages: greenlet Building wheel for greenlet (PEP 517) ... error ERROR: Command errored out with exit status 1: command: /Users/hyery95/Desktop/pr.. 2024. 10. 31. [EC2 Instance] file descriptor leak issue ๊ฐ์Docker๋ก Airflow๋ฅผ ๋์ด ec2 instance๊ฐ ํ,๋๋ฌ์ ํ๋ฒ์ฉ ssh ์ ๊ทผ์ด ๋ถ๊ฐ๋ฅํ ์ํ๊ฐ ๋ฐ๋ณต๋์๋ค.AWS ec2 instance ์ํ๋ running ์ํ์ธ๋ฐ airflow๊ฐ ๋ด๋ ค๊ฐ์๊ณ ssh ์ ๊ทผ์ด ์๋๋ ๊ฒ์ด ์๋ฒ๊ฐ ๋ฌด๊ฒ๊ฒ ๋์๊ฐ๊ณ ์์ด์, cpu ๋ฌธ์ ์ด๊ฑฐ๋ memory ๋ฌธ์ ๋ผ๊ณ ํ๋จํ์ฌ์์ฃผ๊ธฐ์ ์ผ๋ก memory ์ฌ์ฉ๋๋ log๋ก ๊ธฐ๋กํ๊ณ , ec2 instance monitoring์ผ๋ก CPU ์ฌ์ฉ๋ฅ ์ ํ์ธํด๋ ๋๋ ทํ ์์ธ์ ์ฐพ์ง ๋ชปํ๋ค. ํ์ธ airflow๊ฐ ๋ด๋ ค๊ฐ ์์ ์ log๋ฅผ ํ๋ํ๋ ์ฐพ์๋ณด๋[ERR] Connection could not be made due to the following error: (pymysql.err.OperationalError) (2003,.. 2024. 8. 6. [SSH] ์ ์ ์ค๋ฅ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! ๊ฐ์ssh ์ ์ ์๋์ ์๋์ ๊ฐ์ ์๋ฌ ๋ฉ์ธ์ง๊ฐ ์ถ๋ ฅ๋์๋ค.@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed.. 2024. 7. 22. [Safari] http ์์ฒญ์ https๋ก ๊ฐ์ ์ ํํด๋ฒ๋ฆฌ๋ ๋ฌธ์ | fastapi, uvicorn ๊ธฐ์กด์ ์งํ๋์ด์ ๋ฐฐํฌ๋ ํ๋ก์ ํธ์์ safari๋ก ์ ์์ ๋ฒ๊ทธ๊ฐ ์๋ค๋ ์ ๋ณด์ local์์ ์คํ์ํค๊ณ localhost๋ก ์ ์์ ์๋ํ๋ค. WARNING: Invalid HTTP request received. Traceback (most recent call last): File "/Users/{myname}/Desktop/project/{projectname}/venv/lib/python3.8/site-packages/uvicorn/protocols/http/httptools_impl.py", line 131, in data_received self.parser.feed_data(data) File "httptools/parser/parser.pyx", line 212, in httptools.p.. 2024. 3. 27. [docker] docker.errors.APIError: 500 Server Error for http+docker://~/start: Internal Server Error ("write /home/~/tmpfile: no space left on device) ์ ์ด์๋๋ docker๊ฐ down ๋๋ฉด์ ์๋น์ค๊ฐ ์ค์ง๋์๋ค. docker๊ฐ ๋จ์ด๋จ๋ฆฐ ์๋ฌ ๋ฉ์ธ์ง๋ ๋ค์๊ณผ ๊ฐ๋ค docker.errors.APIError: 500 Server Error for http+docker://localhost/v1.42/containers/11f76378c2673eed151a57ac10227a419decbbee234c52c9afe74c7643754ad8/start: Internal Server Error ("write /home/ubuntu/.local/share/docker/containers/11f76378c2673eed151a57ac10227a419decbbee234c52c9afe74c7643754ad8/.tmp-hostconfig.json1581200925: no sp.. 2024. 3. 4. [linux] E: Package 'python3-pip' has no installation candidate AWS์์ ec2 instance๋ฅผ ์์ฑํ๊ณ pip์ ์ค์นํ๋ ค๊ณ ํ๋๊น ๋ค์๊ณผ ๊ฐ์ ์๋ฌ๊ฐ ๋ฐ์ํ๋ค. $ sudo apt install python3-pip E: Package 'python3-pip' has no installation candidate pip์ด ํ๋ณด๊ตฐ์ ์๋ค๋ ๊ฒ์ด๋ค. ์ด๋ ๊ฒ ๋๋ฉด apt update๋ฅผ ์งํํ๋ค. sudo apt update sudo apt install python3-pip ์ด์ pip์ด ์ ์ค์น๋๋ค. ์ค์น๊ฐ ๋ค ๋ ๋ ์ฏค์ ์ฒ์๋ณด๋ ๊ฒ ๋์๋ค. ๊ฐ๋ฐ์ธ์ ์ค์ ์ฒ์ ๋ณด๋ ๊ด๊ฒฝ default๋ก ์ง์ ํ๊ณ ๋์ด๊ฐ 2024. 2. 28. ์ด์ 1 ๋ค์