Back

[SOLVED] Errors while deploying functions

  • 0
  • Self Hosted
  • Functions
crostal
10 Sep, 2023, 15:22

her everyone, I used the Akamai one click installation to install the latest version of appwrite. everything is working fine expect for the functions. when I try to deploy any of them it fails with this error:

Could not resolve host: appwrite-executor with status code 0

I tried to check the logs of appwrite-worker-builds

Fatal error: Uncaught RedisException: socket error on read socket in /usr/src/c> Stack trace: #0 /usr/src/code/vendor/colinmollenhour/credis/Client.php(1334): Redis->ping() #1 /usr/src/code/vendor/resque/php-resque/lib/Resque/Redis.php(265): Credis_Cli> #2 /usr/src/code/vendor/resque/php-resque/lib/Resque/Worker.php(180): Resque_Re> #3 /usr/src/code/vendor/resque/php-resque/bin/resque(185): Resque_Worker->work(> #4 {main}

TL;DR
User was experiencing errors while deploying functions in Appwrite. They tried upgrading and restarting containers, but the issue persisted. However, they realized they forgot to update the Appwrite CLI tool, so they updated it and the issue was resolved.
crostal
10 Sep, 2023, 15:32

I think it might have been cause I forgot to update the appwrite cli tool. trying that now to solve it 😄

crostal
10 Sep, 2023, 15:56

even after updating to the new appwrite, deleting the function and creating a new one i'm still getting the same error

Drake
10 Sep, 2023, 22:10

What version of Appwrite are you on?

crostal
11 Sep, 2023, 06:01

I'm on 4.2 now

crostal
11 Sep, 2023, 06:01

And the cli is on 4.0.0

Drake
11 Sep, 2023, 19:04

Did you upgrade?

Would you try to restart the containers?

TypeScript
docker compose down

Make sure all containers and networks get removed.

TypeScript
docker compose up -d --remove-orphans
crostal
11 Sep, 2023, 21:42

that fixed it, sorry I'm not super familiar with docker. thank you so much for the help I did not upgrade, I freshly installed appwrite on Akamai and copied my website there (the appwrite config, database, functions were all new)

crostal
11 Sep, 2023, 21:44

[SOLVED] Errors while deploying functions

Drake
11 Sep, 2023, 22:32

no worries at all! I'm glad it's resolved!

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