father-bot / chatgpt_telegram_bot

💬 Telegram bot with ChatGPT, Python-based, using OpenAI's API.
https://t.me/chatgpt_karfly_bot
MIT License
5.06k stars 1.77k forks source link

installing problem ubuntu 22.04 python 3.11 docker 20.10.24, build 297e128 #385

Open hasangh20202 opened 10 months ago

hasangh20202 commented 10 months ago

Building 18.0s (1/1) FINISHED => ERROR [internal] booting buildkit 18.0s => => pulling image moby/buildkit:buildx-stable-1 2.5s => => creating container buildx_buildkit_default 15.5s

[internal] booting buildkit:

0 18.01 time="2023-11-01T13:41:15Z" level=warning msg="using host network as the defaultime="2023-11-01T13:41:15Z" level=warning msg="using host network as the default"

0 18.01 time="2023-11-01T13:41:15Z" level=warning msg="skipping containerd worker, as \"/run/containerd/containerd.sock\" does not exist"

0 18.01 dtime="2023-11-01T13:41:15Z" level=info msg="found 1 workers, default=\"zrsudunlb5xo1809ftsye10lr\""

0 18.01 `time="2023-11-01T13:41:15Z" level=warning msg="currently, only the default worker can be used."

0 18.01 \time="2023-11-01T13:41:15Z" level=info msg="running server on /run/buildkit/buildkitd.sock"

0 18.01 time="2023-11-01T13:41:15Z" level=info msg="found 1 workers, default=\"zrsudunlb5xo1809ftsye10lr\""

0 18.01 `time="2023-11-01T13:41time="2023-11-01T13:41:15Z" level=info msg="found 1 workers, default=\"zrsudunlb5xo1809ftsye10lr\""

0 18.01 time="2023-11-01T13:41:15Z" level=info msg="running server on /run/buildkit/buildkitd.sock"

0 18.01 time="2023-11-01T13:41:15Z" level=info msg="running server on /run/buildkit/buildkitd.sock"


http: invalid Host header

karfly commented 10 months ago

Hi! Don't know what the error exactly is but here's the output from GPT-4:

The error you're encountering, Karim, is related to Docker's buildkit. It seems like the buildkit is unable to initialize properly. Here are a few possible causes:

  1. Issue with BuildKit: There might be some issue with the version of BuildKit you are using. You might need to upgrade or downgrade your version.

  2. Missing containerd socket: The log mentions that /run/containerd/containerd.sock does not exist. If you're running this in a Docker container, you may need to ensure that the containerd socket is properly mounted to the container.

  3. Network settings: The log states using host network as the default, which means it's using the host's network, not a user-defined network. If your configuration requires a specific network, this could be causing the issue.

  4. Worker issues: The log also mentions that currently, only the default worker can be used. This could indicate that there is an issue with how the workers are being initialized or used.

To pinpoint the exact issue, I would suggest you to:

Remember to backup your data or code before making any major changes.

az-iot commented 9 months ago

Hello, I found a temporary workaround to build the chatbot by using an older version of docker. Try this: snap info docker (this will give you the available revisions) sudo snap refresh --revision=2746 docker (using revision 2746)