#When using the command, I have the following error: dagger init --sdk=python --source=./dagger
1 messages ยท Page 1 of 1 (latest)
hey Juan! could you run the command with dagger init -vvv to see if we can get more information about the error in the output? thx!
ok comando: dagger init -vvv
this is dagger cloud
hey Juan! looking at the error here: https://v3.dagger.cloud/juandavivienda/traces/459b970c304e547f1356a4958d8415f2?span=c87b53757662c9ee#c87b53757662c9ee:L28 seems like the module is not being able to initialize as the engine doesn't seem to have the right certificate
did you provision the Dagger engine with the correct certificate?
How can I provide the certificate?
https://docs.dagger.io/configuration/custom-ca/ it's mentioned there.
LMK if you have any questions!
Yes, I already did it that way and I still get the error
Seems like it's not picking up the cert correctly. cc @nimble wharf since I'll be on PTO this upcoming week ๐
tks
@frank socket can you docker exec in the Dagger engine container and check if the certificate is effectively at /user/local/share/ca-certificates/?
ok
total 16
drwxr-xr-x 1 root 1001 4096 Feb 12 14:19 .
drwxr-xr-x 1 root 1001 4096 Feb 12 14:19 ..
drwxr-xr-x 2 root root 4096 Jan 8 09:56 ca-certificates
drwxr-xr-x 1 root 1001 4096 Feb 12 14:19 dagger
/usr/local/share # cd ca-certificates/
@frank socket what's inside the ca-certificates folder?
Ok, this seems to be the issue. Looks like you're not mounting the certificate correctly
Your .crt file should be there
OK thanks
I'm going to try it
No, I definitely cannot do it, I will request help from the company's security, every time it comes to obtaining the go dependencies that Dagger needs, I have the restriction.
Hey @frank socket ! Are you starting the engine yourself?
docker run --rm
-v /var/lib/dagger
-v $PWD/ca-certificates:/usr/local/share/ca-certificates/
--name dagger-engine-custom
--privileged
registry.dagger.io/engine:v0.15.4
hello @short olive
Hey @frank socket ! seems correct. Wondering how come you can't see the files in the engine container after it starts
If I do, I try to copy the certificate to the specific location, but I still get the error
What's the filename of your cert?
I am a little confused with so many things I have done, could you help me with a step by step to follow according to the conversation we have had? or have a space and be able to review it! I would appreciate it very much
Do you have a .crt file with the certificate your proxy needs so you're able to access the web?
Should I check that part of the company with security? Or can I obtain that certificate from my computer?
So you never had the certificate?
That's probably why it never worked ๐
So generally your IT department should instruct you where to get it
I'd assume there's a way to get it from the computer also, but it depends how each company sets it up