#[Solved] Dagger call can't connect to engine

1 messages Β· Page 1 of 1 (latest)

pseudo goblet
#

hello, there πŸ‘‹

I'm getting the these debug messages on repeat on the Dagger Engine.
(log attached as it was too long)
Running a Dagger engine on a kubernetes cluster (_EXPERIMENTAL_DAGGER_RUNNER_HOST flag set) and whenever I make a dagger call it can't connect to the engine.
Any ideas on how to solve the issue?

thank you!

#

Dagger call can't connect to engine

#

Running dagger v0.13.0

strong ferry
rich musk
pseudo goblet
rich musk
pseudo goblet
strong ferry
#

Sorry! Let us know if we can help with anything else.
I just spun up a k3s cluster on rancher desktop, applied the Dagger helm chart, installed argo workflows, and used the sample here https://docs.dagger.io/integrations/argo-workflows/ (removed the Dagger Cloud token bit).

Dagger provides a programmable container engine that can be invoked from an Argo Workflow to run a Dagger pipeline. This allows you to benefit from Dagger's caching, debugging, and visualization features, whilst still keeping all of your existing Argo Workflows infrastructure.

#

end of argo submit -n argo --watch ./workflow.yaml πŸ‘‡

#

kubectl logs -n argo -f dagger-in-argo-lbvl5 πŸ‘‡

pseudo goblet
#

is there a way to change log level from the engine logs?

rich musk
#

hey @pseudo goblet if we make the k3s module do you still need this?

#

I can allocate some time in checking the KCD module again today

pseudo goblet
#

Buenos dias, @rich musk
I think that if we make the KCD module work we can make for a better demo, but I think that sending events from GitHub to a local cluster might get a bit trickier, altough not impossible.

rich musk
pseudo goblet
#

I can't right now, but if you can arrange a space in about 2 hours I can join you

rich musk
#

just let me know

#

in the meantime I'll check the KCD module again

#

the issue was that the client was taking too long to connect to the engine, correct?

pseudo goblet
#

I was testing out the KCD module and i'm getting the same logs in the engine as reported here

#

could it be related to dagger cloud cache?

rich musk
pseudo goblet
#

removed right after the comment, but still getting the error

rich musk
#

πŸ‘ checking now

#

the KCD module works fine for me in v0.13.1 @pseudo goblet

pseudo goblet
#

πŸ€”
can you run the dagger-workflow?

pseudo goblet
pseudo goblet
#

i have 30 min more or less

rich musk
#

@pseudo goblet managed to get the K3s module running way faster now

#

sending a patch here

#

here's what I changed:

diff --git a/KCD/main.go b/KCD/main.go
index aff37e1..df1785d 100644
--- a/KCD/main.go
+++ b/KCD/main.go
@@ -30,7 +30,10 @@ func New(
 }
 
 func (c *Kcd) CreateCluster(ctx context.Context) *Kcd {
-    c.KCDServer = dag.K3S(c.Name).Server()
+    kc := dag.K3S(c.Name).Container()
+    kc = kc.WithMountedCache("/var/lib/dagger", dag.CacheVolume("varlibdagger"))
+
+    c.KCDServer = dag.K3S(c.Name).WithContainer(kc).Server()
     return c
 }
#

LMK if that makes your module run faster πŸ™Œ

#

it works pretty fast to me

pseudo goblet
#

@rich musk, I managed to solve the error on this thread.
It was indeed the HostPath volume being misconfigured.
damn this yaml...

#

I'm marking this thread as solved and try the solution you proposed for the KCD module and continue in the thread #1284289915734982790

Thank you! πŸ™