#Crazy startup time for service (hello world exemple)

1 messages ยท Page 1 of 1 (latest)

junior lark
#

Using this exemple.
It takes so much time to initialize a tunnel (still idle after minutes)

https://docs.dagger.io/api/services/

What could I do to see why it is like this ? May be my local configuration ?

Dagger Functions support service containers, enabling users to spin up additional long-running services (as containers) and communicate with those services from Dagger Functions.

pulsar crane
junior lark
#

What do I miss ๐Ÿ™‚

pulsar crane
#

@junior lark when you call dagger call http-service up from the example you provided above, that command is never supposed to finish

#

that will be running indefinitely as what it does is start the service and map the ports to your local machine so you can do curl localhost:8080

#

everything seems to be running ok in your case

#

it's similar as doing docker compose $myservice up

junior lark
#

it is running

#

I have a connexion refused

#

with curl

pulsar crane
#

let me repro really quick

#

which system are you running Dagger on?

#

@junior lark

junior lark
#

ubuntu 22 last version of dagger

pulsar crane
#

the tunnel started one

junior lark
#

no I don't see it.

#

I see it with your nginx module exemple

#

and netstat -tuln | grep 8080 gives nothing

pulsar crane
#

do you get to see the exec python?

junior lark
#

nothing like this

pulsar crane
#

it's strange that nginx is working but this example doesn't

junior lark
#

Yeah. I know... is it a different logic a module or ?

#

@pulsar crane I try in a fresh helloDagger install. And it works (engine v0.12.5)

#

I don't know what I can share to understand the differences

pulsar crane
#

@junior lark you were trying on v0.15.1 before?

#

are you sure that both the CLI and the Engine were using the same version?

junior lark
#

dagger verions : dagger v0.15.1 (registry.dagger.io/engine:v0.15.1) linux/amd64

docker container ls:

CONTAINER ID   IMAGE                               COMMAND                  CREATED             STATUS             PORTS     NAMES
51331211a1e3   registry.dagger.io/engine:v0.15.1   "dagger-entrypoint.sโ€ฆ"   About an hour ago   Up About an hour             dagger-engine-v0.15.1
pulsar crane
#

can you hear me @junior lark ?

#

I can hear you @junior lark

raw elk
#

do you have both turned on?

pulsar crane
#

@junior lark jeremy has the same issue as you

#

he's showing me

#

so we're good ๐Ÿ™

raw elk
#

volume up?

junior lark
#

I hear you now

pulsar crane
#

cc @knotty skiff

pulsar crane
#

has the devel autopublish stopped working?

knotty skiff
#

Afaik the docs were republished with the release

#

I'll look into it shortly. I'm not sure why it's not showing up. @halcyon compass any ideas?

halcyon compass
#

Hm I think it's back now

#

Oh wait no

#

I remember we needed to purge the cache at some point?

#

trying that now

#

weird, because it's picked up the go changes fine

#

yeah that's done it i think

#

will do the same for the main docs

#

fixed on main docs now as well

pulsar crane
#

๐Ÿ™ thx Justin