Back

[CLOSED] Functions error: unable to find image locally and runtima filed to launch in allocated time

  • 0
  • Self Hosted
Drake
5 Jan, 2024, 01:25

maybe you can add a sleep to the install command so it doesn't exit too fast

TL;DR
User is experiencing errors with functions unable to find image locally and runtime failing to launch within allocated time. They suggest extracting logs outside of the container for easier access. They mention a 'sleep(2)' command in the code comments and a 'catch' block that removes the container. User contemplates reinstalling everything. They ask if it's normal for the image to be downloaded each time it's executed and express frustration at not being able to find it. User also mentions issues with the container not being found and wanting to figure out the source of the error on line 611. They mention trying various solutions and being relatively new to Docker.
ideclon
5 Jan, 2024, 01:25

That’s what I would have assumed, but IIRC the containers do show up in a docker compose ps for me

ideclon
5 Jan, 2024, 01:25

I might be getting confused between containers, though

D5
5 Jan, 2024, 01:26

you mean this? p docker compose logs openruntimes-executor

Drake
5 Jan, 2024, 01:26

docker compose logs -f openruntimes-executor to follow the logs

D5
5 Jan, 2024, 01:26

I'm a bit noob at docker, sorry 😅

ideclon
5 Jan, 2024, 01:26

And -n 0 to not show any history

ideclon
5 Jan, 2024, 01:27

Self hosting Appwrite for the past almost two years has taught me a tremendous amount about Docker

D5
5 Jan, 2024, 01:28

Doing this too

D5
5 Jan, 2024, 01:28

Because show old history

D5
5 Jan, 2024, 01:29

Anddd

D5
5 Jan, 2024, 01:29

The result iss

D5
5 Jan, 2024, 01:30

Container not found

D5
5 Jan, 2024, 01:30

Seems I can't find it but because it doesn't exists

D5
5 Jan, 2024, 01:33

Is it normal that the image gets downloaded each time it gets executed?

ideclon
5 Jan, 2024, 01:33

No

ideclon
5 Jan, 2024, 01:33

So the same as before. I guess I need to figure out what’s leading to the Exception on line 611

D5
5 Jan, 2024, 01:34

I'm about to kill the VM and install everything again 😬

D5
5 Jan, 2024, 01:34

But I think it's better knowing where the error comes from?

D5
5 Jan, 2024, 01:35

Leaving it for tomorrow, it's 2:35am and I'm very tired 😅

ideclon
5 Jan, 2024, 01:36

Well, in the catch, it removes the container

ideclon
5 Jan, 2024, 01:37

There’s currently a sleep(2) - the comments say to give time to read the logs.

ideclon
5 Jan, 2024, 01:37

But that isn’t really enough time at all to get them

ideclon
5 Jan, 2024, 01:38

I would expect it would make sense to have the logs extracted to somewhere outside the container? Maybe a logs volume, and the logs can be stored as logs-[FUNCTION_ID]-[EXECUTION_ID].txt, or something?

Drake
5 Jan, 2024, 05:08

Maybe...

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more