Back

[SOLVED] Unable to build function

  • 0
  • Functions
D5
27 May, 2023, 15:23

Did you had setup all environment vars?

TL;DR
Unable to build function. Solution: Use `docker compose build`.
D5
27 May, 2023, 15:23

And api keys?

Bouahaza
27 May, 2023, 15:23
Bouahaza
27 May, 2023, 15:23

Oh on function params

Bouahaza
27 May, 2023, 15:23

True.....

D5
27 May, 2023, 15:24

Try setting all variables from console

Bouahaza
27 May, 2023, 15:25

Same error ๐Ÿ˜ฆ

Drake
27 May, 2023, 15:26

How did you install docker?

D5
27 May, 2023, 15:26

It seems like docker has missing files

Bouahaza
27 May, 2023, 15:27

I install Docker when I setup my VM, from ubuntu-server iso

Bouahaza
27 May, 2023, 15:27

docker -v => Docker version 23.0.1, build a5ee5b1

Bouahaza
27 May, 2023, 15:28

Installer allow to install common lib (open ssh, docker, etc..)

Drake
27 May, 2023, 15:31

From same machine?

Bouahaza
27 May, 2023, 15:31

I deploy from my computer but appwrite is on docker swarm on premise

Bouahaza
27 May, 2023, 15:32

I rebuild a VM and appwrite now, with docker compose build

D5
27 May, 2023, 15:32

Install firstly ubuntu and then install docker. Appwrite doesnt needs docker warm mode enabled (unless horizontal scale)

Bouahaza
27 May, 2023, 15:32

To try it

Bouahaza
27 May, 2023, 15:32

Swarm is only for production, not on my VM

Drake
27 May, 2023, 15:35

Right but you've used the same Appwrite CLI deploy to both your production and this new Appwrite instance and it works against production, but not against this new instance?

Bouahaza
27 May, 2023, 15:38

Yes

Bouahaza
27 May, 2023, 15:39

(build in progress, I'll keep you informed)

Bouahaza
27 May, 2023, 15:44

It's works....

Bouahaza
27 May, 2023, 15:48

2nd build, works. Really strange. While we use ansible, all VM are same.... The mysteries of computing :appwritemagician: Thanks @Steven and @D5

Bouahaza
27 May, 2023, 15:49

[SOLVED] Unable to build function

Bouahaza
27 May, 2023, 15:54

NB: docker compose build seems to be the trick

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