appwrite icon indicating copy to clipboard operation
appwrite copied to clipboard

🐛 Bug Report: Can't Build Functions

Open helal-muneer opened this issue 3 years ago • 2 comments
trafficstars

👟 Reproduction steps

Using Appwrite v:0.15.3.402 in docker And Appwrite cli v0.18.4

1- Create function with dart-2.17 runtime:

appwrite init function

2- Deploy function without editing it:

appwrite deploy function

3- Open the created function in the functions tab on the Appwrite console and it says 1 deployments found and build faild!.

4- click the Retry Build button and green snakbar apear with Build started successfully message but the build faild again🥲.

👍 Expected behavior

it should build the function succesfully.

👎 Actual Behavior

i got this error in the log: Could not resolve host: appwrite-executor with status code I tried many solutions but none of them worked!

docker network ls

5ea37d4dafbf   appwrite_appwrite   bridge    local
419020c69fda   appwrite_gateway    bridge    local
8b53296f8475   appwrite_runtimes   bridge    local
3ee60aafc46f   bridge              bridge    local
06ce1ffbb3d6   host                host      local
b70d7b2434fb   none                null      local

docker-compose ps

            Name                          Command                 State                       Ports                  
---------------------------------------------------------------------------------------------------------------------
appwrite                       docker-php-entrypoint php  ...   Up           80/tcp                                  
appwrite-executor              executor                         Restarting                                           
appwrite-influxdb              /entrypoint.sh influxd           Up           8086/tcp                                
appwrite-maintenance           maintenance                      Up           80/tcp                                  
appwrite-mariadb               docker-entrypoint.sh mysql ...   Up           3306/tcp                                
appwrite-realtime              realtime                         Up           80/tcp                                  
appwrite-redis                 docker-entrypoint.sh redis ...   Up           6379/tcp                                
appwrite-schedule              schedule                         Up           80/tcp                                  
appwrite-telegraf              /entrypoint.sh telegraf          Up           8092/udp, 8094/tcp, 8125/udp            
appwrite-traefik               /entrypoint.sh --providers ...   Up           0.0.0.0:543->443/tcp, 0.0.0.0:90->80/tcp
appwrite-usage                 usage                            Up           80/tcp                                  
appwrite-worker-audits         worker-audits                    Up           80/tcp                                  
appwrite-worker-builds         worker-builds                    Up           80/tcp                                  
appwrite-worker-certificates   worker-certificates              Up           80/tcp                                  
appwrite-worker-databases      worker-databases                 Up           80/tcp                                  
appwrite-worker-deletes        worker-deletes                   Up           80/tcp                                  
appwrite-worker-functions      worker-functions                 Up           80/tcp                                  
appwrite-worker-mails          worker-mails                     Up           80/tcp                                  
appwrite-worker-messaging      worker-messaging                 Exit 255                                             
appwrite-worker-webhooks       worker-webhooks                  Up           80/tcp 

docker logs appwrite-executor

Fri Sep  9 19:16:03 2022 (7): Fatal Error Unable to create lock file: Bad file descriptor (9)
Fri Sep  9 19:16:15 2022 (7): Fatal Error Unable to create lock file: Bad file descriptor (9)
Fri Sep  9 19:16:29 2022 (7): Fatal Error Unable to create lock file: Bad file descriptor (9)
Fri Sep  9 19:16:39 2022 (7): Fatal Error Unable to create lock file: Bad file descriptor (9)
Fri Sep  9 19:16:46 2022 (7): Fatal Error Unable to create lock file: Bad file descriptor (9)
Fri Sep  9 19:16:52 2022 (7): Fatal Error Unable to create lock file: Bad file descriptor (9)
Fri Sep  9 19:17:01 2022 (7): Fatal Error Unable to create lock file: Bad file descriptor (9)
...

docker ps -a

CONTAINER ID   IMAGE                      COMMAND                  CREATED        STATUS                            PORTS                                      NAMES
1a03beffcd32   appwrite/appwrite:0.15.3   "worker-functions"       3 hours ago    Up 3 hours                        80/tcp                                     appwrite-worker-functions
0419d7163513   traefik:2.7                "/entrypoint.sh --pr…"   3 hours ago    Up 3 hours                        0.0.0.0:90->80/tcp, 0.0.0.0:543->443/tcp   appwrite-traefik
3e0218de39f2   appwrite/appwrite:0.15.3   "schedule"               3 hours ago    Up 3 hours                        80/tcp                                     appwrite-schedule
5716d4beab59   appwrite/appwrite:0.15.3   "worker-builds"          3 hours ago    Up 3 hours                        80/tcp                                     appwrite-worker-builds
8ed959a979a1   appwrite/appwrite:0.15.3   "executor"               3 hours ago    Restarting (254) 30 seconds ago                                              appwrite-executor
ef6daaf50c13   appwrite/appwrite:0.15.3   "worker-deletes"         3 hours ago    Up 3 hours                        80/tcp                                     appwrite-worker-deletes
8a5b21f194fe   appwrite/appwrite:0.15.3   "realtime"               3 hours ago    Up 3 hours                        80/tcp                                     appwrite-realtime
c31784634ff4   appwrite/appwrite:0.15.3   "worker-audits"          3 hours ago    Up 3 hours                        80/tcp                                     appwrite-worker-audits
0d046caac9c3   appwrite/appwrite:0.15.3   "worker-mails"           3 hours ago    Up 3 hours                        80/tcp                                     appwrite-worker-mails
5e048cadc162   appwrite/appwrite:0.15.3   "worker-certificates"    3 hours ago    Up 3 hours                        80/tcp                                     appwrite-worker-certificates
d0b6ec992f2b   appwrite/appwrite:0.15.3   "worker-webhooks"        3 hours ago    Up 3 hours                        80/tcp                                     appwrite-worker-webhooks
6eef9336ced6   appwrite/appwrite:0.15.3   "worker-databases"       3 hours ago    Up 3 hours                        80/tcp                                     appwrite-worker-databases
47a1aac7ff58   appwrite/appwrite:0.15.3   "usage"                  3 hours ago    Up 3 hours                        80/tcp                                     appwrite-usage
ed4c9480b60a   appwrite/appwrite:0.15.3   "maintenance"            3 hours ago    Up 3 hours                        80/tcp                                     appwrite-maintenance
5d4f3cc3b749   appwrite/appwrite:0.15.3   "docker-php-entrypoi…"   3 hours ago    Up 3 hours                        80/tcp                                     appwrite
f91f1b93c4d6   appwrite/appwrite:0.15.3   "worker-messaging"       3 hours ago    Exited (255) 3 hours ago                                                     appwrite-worker-messaging
8ae3b6bdb60a   mariadb:10.7               "docker-entrypoint.s…"   3 hours ago    Up 3 hours                        3306/tcp                                   appwrite-mariadb
42657f04fb92   appwrite/influxdb:1.5.0    "/entrypoint.sh infl…"   3 hours ago    Up 3 hours                        8086/tcp                                   appwrite-influxdb
5817aaca51cc   redis:6.2-alpine           "docker-entrypoint.s…"   3 hours ago    Up 3 hours                        6379/tcp                                   appwrite-redis
14702f1f6deb   appwrite/telegraf:1.4.0    "/entrypoint.sh tele…"   3 hours ago    Up 3 hours                        8092/udp, 8125/udp, 8094/tcp               appwrite-telegraf
e09492b41ae5   openruntimes/dart:2.13     "/usr/local/src/star…"   23 hours ago   Exited (127) 23 hours ago                                                    upbeat_chebyshev

🎲 Appwrite version

Version 0.15.x

💻 Operating system

Linux

🧱 Your Environment

Ubuntu 22.04 TLS

👀 Have you spent some time to check if this issue has been raised before?

  • [X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

helal-muneer avatar Sep 10 '22 02:09 helal-muneer

@helal-muneer are there any other logs in appwrite-executor before:

Fatal Error Unable to create lock file: Bad file descriptor (9)

Also, could you please provide the logs for the runtime container (e09492b41ae5 in the list of containers you shared).

stnguyen90 avatar Sep 10 '22 02:09 stnguyen90

are there any other logs in appwrite-executor before: No, There is no logs before.

helal-muneer avatar Sep 10 '22 05:09 helal-muneer

@helal-muneer, would you please provide the logs from the appwrite-worker-builds container and the runtime container?

Also, could there be a disk space issue with docker?

stnguyen90 avatar Nov 14 '22 14:11 stnguyen90

@helal-muneer are you still having this problem?

Please be advised, we'll need to close this due to inactivity soon.

stnguyen90 avatar Dec 08 '22 23:12 stnguyen90