Skip to content

🐞 initial connect to a newly spawned engine "sometimes" takes a lot of time #7599

Closed

Description

@marcosnils

What is the issue?

I have observed that sometimes when calling Dagger the first time (engine gets started) the connect step takes an excessive amount of time.

ref: https://discord.com/channels/707636530424053791/1003718839739105300/1245021511773847562

Dagger version

v0.11.6

Steps to reproduce

It's hard to consistently reproduce since it happens sometimes. What I do to repro is removing the engine container and then trying to run

Log output

130|marcos:tmp/lala (main) (⎈ |dagger-ci)$ dagger -vvv functions
10:57:09 WRN failed to get repo HEAD err="reference not found"

✔ connect 23.7s
✔ starting engine 1.4s
✔ exec docker inspect --type=image registry.dagger.io/engine:v0.11.6 0.0s
┃ "sha256:4abe6937798f93bb2741317ba8b072eb575817d81b67ce389d757ed8a1151dee",
┃ "sha256:2a484567b46745c079a97b2c895ac2c41a002b84336c99b03e3abcd76b3c6bf3",
┃ "sha256:869d49a2f60b99d7b3842a4ee078554807cf9a90beb842f7bcadfeac1c19dea1",
┃ "sha256:e27815e0aa360b7414d02bb513f32b7b069891b949fd6bcfd931c68e07f6ccf5",
┃ "sha256:7655a368429afbc80299bc3a2f4b0e31f464fda4e6619226c6cfc690f729fa69",
┃ "sha256:adbc77ca4bfe7938fe20f7b005d8c6b8f201bb7199741a29606549fa218a76b2",
┃ "sha256:8f26be209fbe7299df887a978ca42cca243d73c8a069e3b917b333b557fad6f7",
┃ "sha256:35137308ef7bc588cdc1554dd190144aa4a3f56b7d29fd5bd2129a7b068ef2f1",
┃ "sha256:117a0dc5c0d944fa507760862b43afe47ec02c0d080f8dc78c072458c8eb6bfb",
┃ "sha256:eda28e5f806fb47abc56a44f9cb6a17b58ebfa3b38ff3eeeb1a18006d2f5f0dc",
┃ "sha256:c997abbe5097e78031856f51f73a69d009df2ea8674a8f490be431daf0a331d3",
┃ "sha256:01d876cfd5755f3b459618cba723d27c5521e83283af9b4765aee583357af310",
┃ "sha256:49449c90260103bae4900cda1f37365b8426a7611795e50a2db04899083456b6",
┃ "sha256:1bdc70b6de021a8f45610a0ec52fee67d5b3c66a5d13a3e712f1459a28734e42"
┃ ]
┃ },
┃ "Metadata": {
┃ "LastTagTime": "0001-01-01T00:00:00Z"
┃ }
┃ }
┃ ]
✔ exec docker run --name dagger-engine-32e0269fab8e9d98 -d --restart always -v /var/lib/dagger --privileged registry.dagger.io/engine:v0.11.6 --debug 0.2s
┃ 854c94934da448cb1df40aae91b02ec6b01c06d4d80bae36e5b7677512439dd8
✔ connecting to engine 22.1s

Activity

  1. added
    kind/bug
    on Jun 10, 2024
  2. self-assigned this
    on Jun 10, 2024
  3. added this to the v0.11.7 milestone on Jun 11, 2024
  4. added a commit that references this issue on Jun 11, 2024
    f91cefa
  5. changed the title [-]🐞 initial `connect` o a newly spawned engine "sometimes" takes a lot of time[/-] [+]🐞 initial `connect` to a newly spawned engine "sometimes" takes a lot of time[/+] on Jun 11, 2024
  6. added a commit that references this issue on Jun 11, 2024
    3942f6a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions