Skip to content
Back

Error name is already in use by container

  • 0
  • Self Hosted
  • Functions
develocode777
19 Oct, 2023, 10:47

Why do I get the error below when I execute one of the functions and how can I fix it?

An internal curl error has occurred while starting runtime! Error Msg: Docker Error: docker: Error response from daemon: Conflict. The container name "/appwrite-executor-dev-brd-651a6853601e29912cc7" is already in use by container "32b06a08d0a1741056160f0d9fed07dbdc58f0dbdbace0bac2a170788f0b2fdb". You have to remove (or rename) that container to be able to reuse that name. See 'docker run --help'. \nError Code: 500

TL;DR
The user encountered an error where the container name is already in use. They tried restarting and restoring the .env file but the error still persisted. The support team suggested that restarting should resolve the issue. They also checked the logs and asked the user to execute some commands to gather more details. The user provided more information about the steps that led to the error and the version of Appwrite they are using. Solution: Restarting the Appwrite server should resolve the issue.
Tessa
19 Oct, 2023, 17:37

@Aditya Oberai can you take a look at this?

Aditya Oberai
19 Oct, 2023, 17:39

@develocode777 can you share more about any steps that led to the error? Were you trying to redeploy and execute a function or was this the first time?

Also, what version of Appwrite are you self-hosting?

develocode777
20 Oct, 2023, 07:40

@Aditya Oberai we did the upgrade to 1.4.5, then run migration and then changed _APP_WORKER_PER_CORE to 11

develocode777
20 Oct, 2023, 07:41

if we restart appwrite the error goes away but it comes back after a while

Aditya Oberai
20 Oct, 2023, 13:03

Can you try this command in your appwrite installation directory?

TypeScript
docker logs openruntimes-executor

Also

TypeScript
docker logs appwrite-worker-functions
Aditya Oberai
20 Oct, 2023, 13:04

Let's check the logs once and see if we get more details

develocode777
20 Oct, 2023, 13:14

@Aditya Oberai here

Aditya Oberai
23 Oct, 2023, 14:11

cc: @Meldiron

Meldiron
24 Oct, 2023, 07:32

Hey there 👋 Error you mentioned in your first message could be reasonable after migration - some containers might have nto been cleaned up properly. That caused missmatch between docker state, and executor state. Restart is a good solution to that, as it should not be happening anymore.

Regarding function worker, logs seems good to me.

Regarding executor, I can only see issues with build containers, most likely causing realtime logs to not work (but rest of build works fine, so you are not facing any significant issue).

Can you confirm with me what issue are you facing currently? Do you still see errors when trying to execute your function?

develocode777
24 Oct, 2023, 08:05

@Meldiron Hello, we are getting the same error even after restarting a few times, we even restored the same .env file before we made those changes

develocode777
24 Oct, 2023, 08:08

but now the error is from a different function

develocode777
24 Oct, 2023, 13:00

we've upgraded to 1.4.7, run migrate and restarted and it seems to be ok now

develocode777
2 Nov, 2023, 10:20

@Meldiron after a fresh install of version 1.4.5 I get this error again randomly on functions

develocode777
2 Nov, 2023, 10:20

some work some don't

develocode777
2 Nov, 2023, 10:21

we had to go to version 1.4.5 because next versions have an issue with high cpu on appwrite-worker-deletes

Drake
13 Nov, 2023, 21:08

btw, this should be resolved in the latest patch

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